Skip to content

Commit e30eb2a

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

File tree

278 files changed

+18095
-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.

278 files changed

+18095
-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: 32 additions & 19 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+
Inside of your Astro project, you'll see the following folders and files:
8+
9+
```text
10+
/
11+
├── public/
12+
│ └── favicon.svg
13+
├── src
14+
│   ├── assets
15+
│   │   └── astro.svg
16+
│   ├── components
17+
│   │   └── Welcome.astro
18+
│   ├── layouts
19+
│   │   └── Layout.astro
20+
│   └── pages
21+
│   └── index.astro
22+
└── package.json
1423
```
1524

16-
## Building
17-
18-
To create a production version of your app:
25+
To learn more about the folder structure of an Astro project, refer to
26+
[our guide on project structure](https://docs.astro.build/en/basics/project-structure/).
1927

20-
```sh
21-
npm run build
22-
```
28+
## 🧞 Commands
2329

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

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

astro.config.mjs

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
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+
redirects: {
9+
"/": "/en",
10+
},
11+
integrations: [sitemap()],
12+
i18n: {
13+
defaultLocale: "en",
14+
locales: ["en", "de", "ch"],
15+
routing: {
16+
prefixDefaultLocale: true,
17+
},
18+
},
19+
experimental: {
20+
fonts: [
21+
{
22+
provider: fontProviders.google(),
23+
name: "Lato",
24+
cssVariable: "--font-lato",
25+
},
26+
],
27+
},
28+
});

eslint.config.js

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

0 commit comments

Comments
 (0)