Ladvace/astro-bento-portfolio
About
Astro-bento-portfolio is a minimal bento-like (almost) single page portfolio website made in Astro
Other ProjectsWhat you can do
- Bento-grid layout — sleek, minimal, single-page-first design
- Switchable UI themes — glass, sharp, neon and paper styles, with color variants
- Fully responsive
- Blog with Markdown content, reading-time estimates and RSS (/rss.xml)
Measured star growth
- in 24h
- 0
- in 7 days
- +2
- in 15 days
- +6
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
Original
astro-bento-portfolio
A modern, bento-style personal portfolio built with Astro.

Live: gianmarcocavallo.com · Demo: demo.gianmarcocavallo.com
Features
Bento-grid layout — sleek, minimal, single-page-first design
Switchable UI themes — glass, sharp, neon and paper styles, with color variants
Fully responsive
Blog with Markdown content, reading-time estimates and RSS (
/rss.xml)Works — Markdown case studies for your projects (
/works)Guestbook — visitors can leave messages and reactions (backed by libSQL)
Interactive 3D globe and a travel map of visited countries
Playground — a collection of animation/interaction experiments (GSAP morphs, Rive, WebGL-ish effects, scroll animations, and more)
Subtle UI sound effects (toggleable)
Performance & SEO optimized — sitemap, robots.txt, Open Graph tags
Ready to deploy on Netlify (SSR)
Tech Stack
| Area | Tools |
|---|---|
| Framework | Astro (SSR) |
| Styling | UnoCSS |
| UI islands | SolidJS, Svelte |
| Animation | Motion, GSAP, Lenis, Rive |
| Dataviz | D3 (globe) |
| Database | Drizzle ORM on libSQL / Turso (guestbook) |
| Hosting | Netlify adapter |
Prerequisites
Getting Started
# 1. Clone
git clone https://github.com/Ladvace/astro-bento-portfolio
cd astro-bento-portfolio
# 2. Install dependencies
pnpm install
# 3. Start the dev server (http://localhost:4321)
pnpm dev
Make It Yours
Run the interactive setup to personalize the site:
pnpm site-setup
This walks you through your name, links, email, location/timezone and more, updating src/site-config.ts and writing SITE_URL to .env. Restart the dev server afterwards.
A few things the script doesn't cover:
- Swap the avatar/memoji images — replace
src/assets/me-dither*.webpwith your own. - Remove (or replace with your own ID) the Umami analytics script tag in
src/layouts/BasicLayout.astro.
Works or Blog on the home grid
The home grid has one tile shared by Works and Blog, picked by what you've written: it links to whichever has entries, and splits into two half tiles when both do. With neither, it shows Blog.
To add a project, drop a Markdown file in src/data/works/. Two options under works in src/site-config.ts control how much each card shows: descriptions: true adds the description to the card, and detailPages: true turns each file's body into a case study page at /works/<file-name>:
---
title: My project
description: One-line summary (shown when works.descriptions is on).
year: 2026
role: Design & development # optional
stack: [Astro, TypeScript]
cover: ../../assets/works/my-project.webp # optional
url: https://example.com # optional
repo: https://github.com/you/my-project # optional
current: true # optional, still ongoing: shows "2026 – Now"
endYear: 2027 # optional, finished: shows "2026 – 2027" (use one or the other)
personal: true # optional, Personal instead of Professional badge
order: 1 # optional, breaks ties within a year
---
## Overview
What it is, what you did, how it turned out.
Demo mode
Building with DEMO=true reads content from src/data/demo/ instead of src/data/: sample blog posts and no works, so the home grid shows the Blog tile and /works redirects home. Demo pages are also marked noindex so they don't compete with your real site in search results. Preview it locally with pnpm dev:demo.
To host a demo next to your real site, create a second Netlify site from the same repo, set the DEMO=true environment variable on it, and give it its own domain (e.g. demo.yourdomain.com).
Scripts
| Command | Description |
|---|---|
pnpm dev |
Start the dev server |
pnpm dev:demo |
Start the dev server in demo mode |
pnpm build |
Production build |
pnpm preview |
Preview the production build locally |
pnpm check |
Type-check with astro check |
pnpm eslint |
Lint src |
pnpm format |
Format with Prettier |
pnpm site-setup |
Interactive personalization |
Database (Guestbook) (optional)
The guestbook uses Drizzle ORM over a remote libSQL database (e.g. Turso). The rest of the site builds and runs without it; only the guestbook page needs it. Provide your database credentials as environment variables:
TURSO_DATABASE_URL=libsql://<your-database>.turso.io
TURSO_AUTH_TOKEN=<your-auth-token>
GUESTBOOK_ADMIN_SECRET=<output of: openssl rand -hex 32>
Only you can reply to guestbook messages. Log in at /guestbook/login with GUESTBOOK_ADMIN_SECRET and the reply forms appear on the guestbook. Without a secret of at least 32 characters, replying stays disabled.
Then create the table:
CREATE TABLE "Guestbook" (
"id" integer PRIMARY KEY,
"name" text NOT NULL,
"message" text NOT NULL,
"website" text,
"parentId" integer,
"heartCount" integer,
"createdAt" text NOT NULL
);
The client and schema live in src/lib/db.ts. createdAt is stored as an ISO 8601 string.
These variables must be set in your deploy environment. If you don't need the guestbook, delete
src/lib/db.ts,src/pages/guestbook.astro,src/pages/guestbook/login.astro,src/lib/guestbook-auth.tsand thesrc/pages/api/guestbook.ts/api/guestbook/session.ts/reactions.tsroutes.
Deploy on Netlify 
Deploying on Netlify is optional but recommended for the quickest setup. Fork this repo and link it to your Netlify account — or use the one-click button below. If you use the guestbook, set the database environment variables (above) in your Netlify site settings.
License
Released under the MIT License.
Author
Gianmarco Cavallo — github.com/Ladvace · gianmarcocavallo.com
Explore related projects
Loading…