Skip to content
项目

关于

👔 作品集项目

网站与应用开发

这些数字如何统计

可以做什么

  • CSS + CSS Modules

实测星标增长

24小时
0
7天
0
15天
0
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

Matthias Kretschmann portfolio logo

👔 Portfolio thingy.

matthiaskretschmann.com



🎉 Features

The whole portfolio is created with Astro, using statically generated pages with a pinch of web components.

The whole tech stack:

If you are looking for the former Next.js-based app, it is archived in the nextjs-deprecated branch.

If you are looking for the former Gatsby-based app, it is archived in the gatsby-deprecated branch.

💍 One data file to rule all pages

All displayed project content is powered by one YAML file where all the portfolio's projects are defined. The project content itself is transformed from Markdown written inside the YAML file into HTML on build time.

Astro automatically creates pages from each item in that file in the [slug].astro page template. Utilizing the get-projects.ts script which validates, transforms and enhances the data.

🖼 Project images

All project images live under src/_content/images. Each project lists its images in display order under images in src/_content/projects.yml, with a file name and an alt description for each. The build fails if a listed file does not exist or is listed twice for a project.

During production build, the dominant color for each image is extracted with sharp, and then used for the initial loading state for each image. Astro generates all required image sizes for delivering responsible, responsive images to visitors.

🐱 GitHub repositories

The open source section at the bottom of the front page shows selected GitHub repositories, sourced from GitHub.

On build time, all my public repositories are fetched from GitHub, then filtered against the ones defined in repos.json, sorted by the last push date.

If you want to know how, have a look at the respective components:

📍 Location

On client-side, my current and, if known, my next physical location on a city level is fetched from my (private) lugara.me profile and displayed in the header.

If you want to know how, have a look at the respective components:

💅 Theme switcher

Includes a theme switcher which allows user to toggle between a light and a dark theme. Done without any dependencies:

  • before document renders, the theme is set based on system preference or session storage user preference in the <head>
  • the theme switch component then listens/dispatches a custom event to sync its UI

If you want to know how this works in detail, have a look at the respective files:

📇 Client-side vCard creation

The Add to addressbook button in the footer automatically creates a downloadable vCard file on the client-side, based on data defined in src/_content/meta.json.

If you want to know how, have a look at the respective component:

🤓 Scripts

🎈 Add a new project

To add a new project, run the following command. This adds a new item to the top of the projects.yml file, creating the title & slug from the argument:

bun run new -- "Hello"

Then continue modifying the new entry in src/_content/projects.yml.

Finally, put the project images into src/_content/images/ and list them in display order with file and alt under images in src/_content/projects.yml.

🌄 Favicon generation

This generates all required favicon sizes and puts them in public/ folder. All sourced from:

  • src/assets/favicon-512.png
  • src/assets/favicon.svg (handcrafted, adaptive based on OS theme)

Also creates a web manifest.

bun run favicon

✨ Development

Requires Bun to be installed.

git clone [email protected]:kremalicious/portfolio.git
cd portfolio/

cp .env.example .env
vi .env

bun i
bun run dev

🔮 Linting

Biome is setup for all linting and formatting purposes:

bun run lint

👩‍🔬 Testing

Test suite is setup with Bun Test Runner for unit tests.

To run all tests:

bun run test

Most test files live beside the respective component. Testing setup, fixtures, and mocks can be found in the test/ folder.

🚚 Deployment

Every branch or Pull Request is automatically deployed by Vercel with their GitHub integration, where the main branch is automatically aliased to matthiaskretschmann.com. A link to a preview deployment will appear under each Pull Request.

🏛 Licenses

© Copyright 2025 Matthias Kretschmann

All images and projects are plain ol' copyright, most displayed projects are subject to the copyright of their respective owners.

Don't care if you fork & play with it, but you're not allowed to publish anything from it as a whole without my written permission. Also please be aware, the combination of typography, colors & layout makes up my brand identity. So please don't just clone everything, but rather do a remix!

All the rest, like all code and documentation, is under:

The MIT License

Full MIT license text

探索相关项目

加载中…