Switch the site to Astro

This commit is contained in:
Andras Schmelczer 2026-05-25 13:10:58 +01:00
parent a5f64a3ff8
commit 2e02e52661
14 changed files with 8633 additions and 17018 deletions

View file

@ -1,21 +1,35 @@
# Portfolio
# schmelczer.dev
> An easy-to-configure timeline for your projects.
A static personal blog for Andras Schmelczer, built with Astro.
[Check out the live version.](https://schmelczer.dev)
The site is article-first: articles live in `src/content/posts`, project index entries
live in `src/content/projects`, and normal pages are rendered as static HTML with no
required client JavaScript.
## Configuration
## Setup
- The actual content is in the [data](src/data) folder, starting with [portfolio.ts](src/data/portfolio.ts)
- The assets referenced should be located in [data/media](src/data/media)
```sh
npm ci
npx playwright install --with-deps chromium # required before `npm run qa:overflow`
```
## Build
## Commands
1. `npm install`
2. `npm run build`
3. You can find the results in the [dist](dist) folder
```sh
npm run dev
npm run lint
npm run build
npm run preview
npm run qa
```
## Info
## Structure
- All images are converted to `WebP` after being imported into any file.
> Except for the og-image, and SVGs.
- `src/content/posts`: Markdown articles
- `src/content/projects`: project index entries
- `src/pages`: static routes
- `src/layouts`: page and post layouts
- `src/components`: reusable UI pieces
- `src/styles/global.css`: the visual system
- `public/media/downloads`: CV and thesis PDFs
- `public/media/video`: project videos