Skip to content

Commit 323237a

Browse files
committed
Implement redesign with Astro
1 parent 54c8102 commit 323237a

File tree

290 files changed

+18758
-7513
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

290 files changed

+18758
-7513
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
4040
uses: actions/upload-pages-artifact@v4
4141
with:
42-
path: ./build
42+
path: ./dist
4343

4444
deploy:
4545
name: Deploy

.gitignore

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,24 @@
1-
node_modules
1+
# build output
2+
dist/
23

3-
# Output
4-
.output
5-
.vercel
6-
.netlify
7-
.wrangler
8-
/.svelte-kit
9-
/build
4+
# generated types
5+
.astro/
106

11-
# OS
12-
.DS_Store
13-
Thumbs.db
7+
# dependencies
8+
node_modules/
9+
10+
# logs
11+
npm-debug.log*
12+
yarn-debug.log*
13+
yarn-error.log*
14+
pnpm-debug.log*
1415

15-
# Env
16+
# environment variables
1617
.env
17-
.env.*
18-
!.env.example
19-
!.env.test
18+
.env.production
19+
20+
# macOS-specific files
21+
.DS_Store
2022

21-
# Vite
22-
vite.config.js.timestamp-*
23-
vite.config.ts.timestamp-*
23+
# jetbrains setting folder
24+
.idea/

.npmrc

Lines changed: 0 additions & 1 deletion
This file was deleted.

.prettierignore

Lines changed: 0 additions & 9 deletions
This file was deleted.

.prettierrc

Lines changed: 0 additions & 15 deletions
This file was deleted.

.prettierrc.mjs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// .prettierrc.mjs
2+
/** @type {import("prettier").Config} */
3+
export default {
4+
proseWrap: "always",
5+
plugins: ["prettier-plugin-astro"],
6+
overrides: [
7+
{
8+
files: "*.astro",
9+
options: {
10+
parser: "astro",
11+
},
12+
},
13+
],
14+
};

LICENSE

Lines changed: 0 additions & 13 deletions
This file was deleted.

README.md

Lines changed: 33 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,39 @@
11
# bespinian.io
22

3-
The bespinian homepage available at <https://bespinian.io>. Powered by [`create-svelte`](https://github.com/sveltejs/kit/tree/master/packages/create-svelte).
4-
5-
## Developing
6-
7-
Once you've created a project and installed dependencies with `npm install` (or `pnpm install` or `yarn`), start a development server:
8-
9-
```sh
10-
npm run dev
11-
12-
# or start the server and open the app in a new browser tab
13-
npm run dev -- --open
3+
The bespinian website reachable at [bespinian.io](https://bespinian.io)
4+
5+
## 🚀 Project Structure
6+
7+
This is an Astro-based multilingual website with the following structure:
8+
9+
```text
10+
/
11+
├── public/ # Static assets (favicon, images, robots.txt)
12+
├── src/
13+
│ ├── assets/ # Image assets (logos, team photos, partners, etc.)
14+
│ ├── components/ # Reusable Astro components
15+
│ ├── content/ # Content collections (blog posts, customers, jobs, services)
16+
│ ├── data/ # Data files
17+
│ ├── i18n/ # Internationalization (translations)
18+
│ ├── layouts/ # Page layouts
19+
│ ├── lib/ # Utility functions
20+
│ ├── pages/ # File-based routing with [lang] dynamic routes
21+
│ └── styles/ # Global styles
22+
├── .github/ # GitHub workflows and configuration
23+
└── package.json
1424
```
1525

16-
## Building
17-
18-
To create a production version of your app:
19-
20-
```sh
21-
npm run build
22-
```
26+
## 🧞 Commands
2327

24-
You can preview the production build with `npm run preview`.
28+
All commands are run from the root of the project, from a terminal:
2529

26-
> To deploy your app, you may need to install an [adapter](https://svelte.dev/docs/kit/adapters) for your target environment.
30+
| Command | Action |
31+
| :------------------ | :----------------------------------------------- |
32+
| `npm install` | Installs dependencies |
33+
| `npm run dev` | Starts local dev server at `localhost:4321` |
34+
| `npm run build` | Build your production site to `./dist/` |
35+
| `npm run preview` | Preview your build locally, before deploying |
36+
| `npm run check` | Run Astro type checking |
37+
| `npm run format` | Format code with Prettier |
38+
| `npm run lint` | Check code formatting with Prettier |
39+
| `npm run astro ...` | Run CLI commands like `astro add`, `astro check` |

astro.config.mjs

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
// @ts-check
2+
import { defineConfig, fontProviders } from "astro/config";
3+
import sitemap, { ChangeFreqEnum } from "@astrojs/sitemap";
4+
5+
// https://astro.build/config
6+
export default defineConfig({
7+
site: "https://bespinian.io",
8+
integrations: [
9+
sitemap({
10+
filter: (page) => !page.includes("/404"),
11+
customPages: [],
12+
serialize(item) {
13+
// Set priority and changefreq based on URL patterns
14+
if (item.url.match(/\/(en|de|ch)\/?$/)) {
15+
// Homepage for each language
16+
item.priority = 1.0;
17+
item.changefreq = ChangeFreqEnum.WEEKLY;
18+
} else if (item.url.includes("/blog/")) {
19+
// Blog posts
20+
item.priority = 0.7;
21+
item.changefreq = ChangeFreqEnum.MONTHLY;
22+
} else if (item.url.includes("/customers/")) {
23+
// Customer case studies
24+
item.priority = 0.8;
25+
item.changefreq = ChangeFreqEnum.MONTHLY;
26+
} else if (item.url.includes("/services/")) {
27+
// Service pages
28+
item.priority = 0.9;
29+
item.changefreq = ChangeFreqEnum.MONTHLY;
30+
} else if (item.url.includes("/about/jobs/")) {
31+
// Job listings
32+
item.priority = 0.6;
33+
item.changefreq = ChangeFreqEnum.WEEKLY;
34+
} else {
35+
// Other pages (about, contact, etc.)
36+
item.priority = 0.5;
37+
item.changefreq = ChangeFreqEnum.MONTHLY;
38+
}
39+
return item;
40+
},
41+
}),
42+
],
43+
i18n: {
44+
locales: ["en", "de", "ch"],
45+
defaultLocale: "en",
46+
routing: {
47+
prefixDefaultLocale: true,
48+
redirectToDefaultLocale: false,
49+
},
50+
},
51+
experimental: {
52+
fonts: [
53+
{
54+
provider: fontProviders.google(),
55+
name: "Lato",
56+
cssVariable: "--font-lato",
57+
},
58+
],
59+
},
60+
});

eslint.config.js

Lines changed: 0 additions & 42 deletions
This file was deleted.

0 commit comments

Comments
 (0)