https://github.com/flibustier/portfolio
Personnal Portfolio š¼ļø (v4 with Astro)
https://github.com/flibustier/portfolio
astro astrojs dark-mode nuxt2 vue
Last synced: 5 months ago
JSON representation
Personnal Portfolio š¼ļø (v4 with Astro)
- Host: GitHub
- URL: https://github.com/flibustier/portfolio
- Owner: flibustier
- License: agpl-3.0
- Created: 2016-08-24T22:54:05.000Z (almost 10 years ago)
- Default Branch: v4
- Last Pushed: 2025-09-12T20:56:25.000Z (9 months ago)
- Last Synced: 2025-09-12T22:55:42.996Z (9 months ago)
- Topics: astro, astrojs, dark-mode, nuxt2, vue
- Language: Astro
- Homepage: https://jonathan.pl/
- Size: 51.1 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# [Personal Portfolio](https://jonathan.pl) šØ
## š 2024 Update
v4 of my personal portfolio using [Astro](https://astro.build/) is now [live](https://jonathan.pl)!
Migration from 2020 Nuxt 2 reaching [End of Life](https://v2.nuxt.com/lts) was the opportunity to try [Astro](https://astro.build/).
Iām very happy with the result, achieving an impressive size reduction:
v3 (248.71 kB)
```text
/index.html (24,53 kB)
āāā 6d9de06.js (2,37 kB)
āāā 8182508.js (172.05 kB)
āāā 766eaf8.js (60.26 kB)
āāā 92ce22e.js (16.51 kB)
āāā 0b849bb.js (9.53 kB)
```
v4 (11,83 kB)
```text
/index.html (11,83 kB)
```
With all JS and CSS inlined.
And of course [Lighthouse](https://developer.chrome.com/docs/lighthouse/overview/) score increased:
v3

v4

One of the challenges was to re-create [Nuxt Color Mode](https://color-mode.nuxtjs.org/) with vanilla JS and CSS.

With the help of the [Astro docs](https://docs.astro.build/en/tutorial/6-islands/2/), the result was very neat, you can check the component [Switch.astro](./src/components/Switch.astro)
On the other hand, I chose to abandon the [Vue Transition Component](https://vuejs.org/guide/built-ins/transition) to avoid introducing a JS framework in the project.
## š¦ History
- [v4](https://github.com/flibustier/portfolio/tree/v4) 2024 [Astro](https://astro.build/) (SSG) custom CSS + JS
- [v3](https://github.com/flibustier/portfolio/tree/v3) 2020 [Nuxt 2](https://nuxt.com/) (SSG) + Vue 2 + SCSS
- [v2](https://github.com/flibustier/portfolio/tree/v2) 2018 [Phenomic](https://github.com/MoOx/phenomic)
- v1 Static HTML + CSS
## š§āšØ Project Structure
Inside of the Astro project, you'll see the following folders and files:
```text
/
āāā public/
ā āāā icons/
ā āāā images/
āāā src/
ā āāā components/
ā ā āāā Card.astro
ā āāā layouts/
ā ā āāā Layout.astro
ā āāā pages/
ā āāā index.astro
āāā package.json
```
Astro looks for `.astro` or `.md` files in the `src/pages/` directory. Each page is exposed as a route based on its file name.
There's nothing special about `src/components/`, but that's where we like to put any Astro/React/Vue/Svelte/Preact components.
Any static assets, like images, can be placed in the `public/` directory.
## š§ Commands
All commands are run from the root of the project, from a terminal:
| Command | Action |
| :------------------------ | :----------------------------------------------- |
| `npm install` | Installs dependencies |
| `npm run dev` | Starts local dev server at `localhost:4321` |
| `npm run build` | Build your production site to `./dist/` |
| `npm run preview` | Preview your build locally, before deploying |
| `npm run astro ...` | Run CLI commands like `astro add`, `astro check` |
| `npm run astro -- --help` | Get help using the Astro CLI |