Skip to content

Commit 0f4219d

Browse files
committed
Implement redesign with Astro
1 parent 54c8102 commit 0f4219d

File tree

281 files changed

+18324
-7514
lines changed

Some content is hidden

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

281 files changed

+18324
-7514
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: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
// @ts-check
2+
import { defineConfig, fontProviders } from "astro/config";
3+
import sitemap from "@astrojs/sitemap";
4+
5+
// https://astro.build/config
6+
export default defineConfig({
7+
site: "https://bespinian.io",
8+
integrations: [sitemap()],
9+
i18n: {
10+
locales: ["en", "de", "ch"],
11+
defaultLocale: "en",
12+
routing: {
13+
prefixDefaultLocale: true,
14+
redirectToDefaultLocale: false,
15+
},
16+
},
17+
experimental: {
18+
fonts: [
19+
{
20+
provider: fontProviders.google(),
21+
name: "Lato",
22+
cssVariable: "--font-lato",
23+
},
24+
],
25+
},
26+
});

eslint.config.js

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

0 commit comments

Comments
 (0)