Vite Emilia is a minimalistic portfolio/photography site featuring a masonry grid, page transitions, and large images. It is built with React 19, Vite+, TanStack Start, and Tailwind CSS 4, optimized for Static Site Generation (SSG).
- SSG Ready: Pre-renders all routes into static HTML for maximum performance and SEO.
- Modern Stack: React 19, Vite+, TanStack Start/Router, Tailwind CSS 4.
- Image Optimization: Automatic BlurHash generation and responsive image handling.
- Minimal Design: Clean typography and masonry layout focusing on photography.
- MDX Support: Author projects using MDX with frontmatter.
To install and run the starter locally, you can use:
vp install
vp devThe site will be running at http://localhost:5173.
To build the static site:
vpr buildTo run all checks (linting, formatting, type-checking):
vpr checkThe generated static files will be in the dist/client directory.
Projects are automatically loaded from src/content.
- Create a new folder inside
src/content. - Create an
index.mdxfile and add the frontmatter. - Add images to the folder created in step 1.
- Reference your desired image as your
coverin the frontmatter.
Example index.mdx:
---
slug: "/my-project"
cover: "./cover-image.jpg"
date: "2024-03-20"
title: "My New Project"
areas:
- Photography
- Design
---- Site Metadata: Edit
src/lib/site.config.tsto update the site title, description, and social handles. - Styling: Edit
src/index.cssto change theme colors and variables.
This project is based on Gatsby Starter Portfolio: Emilia by LekoArts.