Portfoleo

Astro
Typescript

Portfolio is simply the website you are currently browsing. This is a personal site bringing together my profile and the personal projects that I wish to share.

il y a environ 1 an

img

The main objective was obviously to have a personal site that would serve as a showcase for me, but also, as is often the case, the opportunity to experiment with technology that I had not yet used: [Astro](https:// astro.build).

Features

Stack

Quite simple, due to our simple need for content management in this project. Astro perfectly meets this need, particularly thanks to its Content collections. Simply added to this the framework TailwindCSS as well as the use of D3.js to create a graph that catches the eye πŸ‘€

I18n

In order to access the site in several languages ​​(English and French in particular), the content managed by astro must also be translated.

To do this, we use the astro-i18next plugin, which allows for each content collection to have a version per language of the content: in this case one in English, one in French.

β”œβ”€β”€ content
β”‚   β”œβ”€β”€ projects
β”‚   β”‚   β”œβ”€β”€ fr
β”‚   β”‚   β”‚   β”œβ”€β”€ portfoleo.md
β”‚   β”‚   β”‚   β”œβ”€β”€ scrapart.md
β”‚   β”‚   β”œβ”€β”€ en
β”‚   β”‚   β”‚   β”œβ”€β”€ portfoleo.md
β”‚   β”œβ”€β”€ experiences
β”‚   β”‚   β”œβ”€β”€ fr
β”‚   β”‚   β”‚   β”œβ”€β”€ company_1.md
β”‚   β”‚   β”‚   β”œβ”€β”€ company_2.md
β”‚   β”‚   β”œβ”€β”€ en
β”‚   β”‚   β”‚   β”œβ”€β”€ company_1.md

Depending on the URL used (which contains the locale β€œen” for example when accessing the site in English), Astro will load the appropriate content. Of course this always requires writing the content in different languages.

Check the code!