Initial portfolio commit (Next.js + Docker + Gitea integration)
4
.dockerignore
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
node_modules
|
||||||
|
.next
|
||||||
|
.git
|
||||||
|
.env*
|
||||||
41
.gitignore
vendored
Normal file
@@ -0,0 +1,41 @@
|
|||||||
|
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
|
||||||
|
|
||||||
|
# dependencies
|
||||||
|
/node_modules
|
||||||
|
/.pnp
|
||||||
|
.pnp.*
|
||||||
|
.yarn/*
|
||||||
|
!.yarn/patches
|
||||||
|
!.yarn/plugins
|
||||||
|
!.yarn/releases
|
||||||
|
!.yarn/versions
|
||||||
|
|
||||||
|
# testing
|
||||||
|
/coverage
|
||||||
|
|
||||||
|
# next.js
|
||||||
|
/.next/
|
||||||
|
/out/
|
||||||
|
|
||||||
|
# production
|
||||||
|
/build
|
||||||
|
|
||||||
|
# misc
|
||||||
|
.DS_Store
|
||||||
|
*.pem
|
||||||
|
|
||||||
|
# debug
|
||||||
|
npm-debug.log*
|
||||||
|
yarn-debug.log*
|
||||||
|
yarn-error.log*
|
||||||
|
.pnpm-debug.log*
|
||||||
|
|
||||||
|
# env files (can opt-in for committing if needed)
|
||||||
|
.env*
|
||||||
|
|
||||||
|
# vercel
|
||||||
|
.vercel
|
||||||
|
|
||||||
|
# typescript
|
||||||
|
*.tsbuildinfo
|
||||||
|
next-env.d.ts
|
||||||
30
Dockerfile
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
FROM node:20-alpine AS base
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
|
FROM base AS deps
|
||||||
|
RUN apk add --no-cache libc6-compat
|
||||||
|
COPY package.json package-lock.json* ./
|
||||||
|
RUN npm ci
|
||||||
|
|
||||||
|
FROM base AS builder
|
||||||
|
COPY --from=deps /app/node_modules ./node_modules
|
||||||
|
COPY . .
|
||||||
|
RUN ls -la app/projects/[slug]/page.tsx
|
||||||
|
RUN npm run build
|
||||||
|
|
||||||
|
FROM base AS runner
|
||||||
|
ENV NODE_ENV=production
|
||||||
|
ENV PORT=3000
|
||||||
|
ENV HOSTNAME=0.0.0.0
|
||||||
|
|
||||||
|
RUN addgroup -S nodejs && adduser -S nextjs -G nodejs
|
||||||
|
|
||||||
|
COPY --from=builder /app/public ./public
|
||||||
|
COPY --from=builder /app/.next/standalone ./
|
||||||
|
COPY --from=builder /app/.next/static ./.next/static
|
||||||
|
|
||||||
|
USER nextjs
|
||||||
|
EXPOSE 3000
|
||||||
|
CMD ["node", "server.js"]
|
||||||
|
|
||||||
|
|
||||||
36
README.md
Normal file
@@ -0,0 +1,36 @@
|
|||||||
|
This is a [Next.js](https://nextjs.org) project bootstrapped with [`create-next-app`](https://nextjs.org/docs/app/api-reference/cli/create-next-app).
|
||||||
|
|
||||||
|
## Getting Started
|
||||||
|
|
||||||
|
First, run the development server:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
npm run dev
|
||||||
|
# or
|
||||||
|
yarn dev
|
||||||
|
# or
|
||||||
|
pnpm dev
|
||||||
|
# or
|
||||||
|
bun dev
|
||||||
|
```
|
||||||
|
|
||||||
|
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
|
||||||
|
|
||||||
|
You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file.
|
||||||
|
|
||||||
|
This project uses [`next/font`](https://nextjs.org/docs/app/building-your-application/optimizing/fonts) to automatically optimize and load [Geist](https://vercel.com/font), a new font family for Vercel.
|
||||||
|
|
||||||
|
## Learn More
|
||||||
|
|
||||||
|
To learn more about Next.js, take a look at the following resources:
|
||||||
|
|
||||||
|
- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
|
||||||
|
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.
|
||||||
|
|
||||||
|
You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js) - your feedback and contributions are welcome!
|
||||||
|
|
||||||
|
## Deploy on Vercel
|
||||||
|
|
||||||
|
The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.
|
||||||
|
|
||||||
|
Check out our [Next.js deployment documentation](https://nextjs.org/docs/app/building-your-application/deploying) for more details.
|
||||||
5
app/_data/get-project.ts
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
import { projects } from "./projects";
|
||||||
|
|
||||||
|
export function getProjectBySlug(slug: string) {
|
||||||
|
return projects.find((p) => p.slug === slug);
|
||||||
|
}
|
||||||
99
app/_data/projects.ts
Normal file
@@ -0,0 +1,99 @@
|
|||||||
|
export type ProjectLink = { label: string; href: string };
|
||||||
|
|
||||||
|
export type ProjectSection = {
|
||||||
|
title: string;
|
||||||
|
content: string;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type Project = {
|
||||||
|
slug: string;
|
||||||
|
title: string;
|
||||||
|
description: string;
|
||||||
|
tag: string;
|
||||||
|
href: string;
|
||||||
|
image: string;
|
||||||
|
year?: string;
|
||||||
|
stack?: string[];
|
||||||
|
status?: "Live" | "WIP" | "Archived";
|
||||||
|
links?: ProjectLink[];
|
||||||
|
sections?: ProjectSection[];
|
||||||
|
gallery?: string[];
|
||||||
|
};
|
||||||
|
|
||||||
|
export const projects: Project[] = [
|
||||||
|
{
|
||||||
|
slug: "unraid-docker",
|
||||||
|
title: "Unraid + Docker Homelab",
|
||||||
|
description:
|
||||||
|
"Cloudflare Tunnel → NPM → Docker services. Clean routing, access control, and observability-first layout.",
|
||||||
|
tag: "Infrastructure + UI",
|
||||||
|
href: "/projects/unraid-docker",
|
||||||
|
image: "/projects/unraid_docker.png",
|
||||||
|
year: "2026",
|
||||||
|
stack: ["Unraid", "Docker", "Cloudflare", "NPM"],
|
||||||
|
status: "WIP",
|
||||||
|
links: [
|
||||||
|
{ label: "Home", href: "/" },
|
||||||
|
{ label: "Lab", href: "/lab" },
|
||||||
|
{ label: "Projects", href: "/#projects" },
|
||||||
|
],
|
||||||
|
gallery: [
|
||||||
|
"/projects/unraid_docker.png",
|
||||||
|
"/projects/image_2026-02-21_112603143.png",
|
||||||
|
],
|
||||||
|
sections: [
|
||||||
|
{
|
||||||
|
title: "Goal",
|
||||||
|
content:
|
||||||
|
"A secure, cleanly routed homelab with no open router ports—Cloudflare Tunnel into Nginx Proxy Manager, backed by containerized services and a structured dashboard UI.",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "Architecture",
|
||||||
|
content:
|
||||||
|
"Cloudflare → Tunnel → NPM → service containers. The portfolio and dashboard live behind NPM; access lists protect sensitive routes.",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "Next",
|
||||||
|
content:
|
||||||
|
"Wire read-only Docker discovery via docker-socket-proxy, then implement the Lab dashboard: metrics row, service list, and topology visualization with Hide IP/Ports ON by default.",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
slug: "macropad",
|
||||||
|
title: "Macropad Controller",
|
||||||
|
description:
|
||||||
|
"A tactile control surface for workflows: 12 macro keys, 4 encoders, and RGB feedback — paired with a desktop app for press/hold macros and per-app volume control.",
|
||||||
|
tag: "Embedded + Desktop",
|
||||||
|
href: "/projects/macropad",
|
||||||
|
image: "/projects/macropad.png",
|
||||||
|
year: "2025–2026",
|
||||||
|
stack: ["ESP32", "USB HID", "FastLED", "Python", "GUI", "EEPROM"],
|
||||||
|
status: "WIP",
|
||||||
|
links: [
|
||||||
|
{ label: "Home", href: "/" },
|
||||||
|
{ label: "Projects", href: "/#projects" },
|
||||||
|
],
|
||||||
|
gallery: [
|
||||||
|
"/projects/macropad.png",
|
||||||
|
"/projects/Model.png",
|
||||||
|
],
|
||||||
|
sections: [
|
||||||
|
{
|
||||||
|
title: "What it is",
|
||||||
|
content:
|
||||||
|
"A programmable macropad with physical controls and real-time RGB feedback. It’s built for fast actions (macros), precise adjustments (encoders), and clear state visibility (LED bars/rings).",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "Why it exists",
|
||||||
|
content:
|
||||||
|
"Keyboard shortcuts are powerful but invisible. This gives you a physical interface where macros, holds, and volume states are obvious and consistent across apps.",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "How it works",
|
||||||
|
content:
|
||||||
|
"The desktop app assigns press/hold macros and target apps for volume control. The ESP32 executes input logic and drives LED animation synced to system state.",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
];
|
||||||
BIN
app/favicon.ico
Normal file
|
After Width: | Height: | Size: 25 KiB |
106
app/globals.css
Normal file
@@ -0,0 +1,106 @@
|
|||||||
|
@import "tailwindcss";
|
||||||
|
|
||||||
|
@tailwind base;
|
||||||
|
@tailwind components;
|
||||||
|
@tailwind utilities;
|
||||||
|
|
||||||
|
/* ------------------------------------------------ */
|
||||||
|
/* Base Typography & Rendering Improvements */
|
||||||
|
/* ------------------------------------------------ */
|
||||||
|
|
||||||
|
html {
|
||||||
|
font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
body {
|
||||||
|
text-rendering: optimizeLegibility;
|
||||||
|
-webkit-font-smoothing: antialiased;
|
||||||
|
-moz-osx-font-smoothing: grayscale;
|
||||||
|
}
|
||||||
|
|
||||||
|
html, body {
|
||||||
|
max-width: 100%;
|
||||||
|
overflow-x: hidden;
|
||||||
|
}
|
||||||
|
/* ------------------------------------------------ */
|
||||||
|
/* Liquid Glass System */
|
||||||
|
/* ------------------------------------------------ */
|
||||||
|
|
||||||
|
.glass {
|
||||||
|
background: rgba(255, 255, 255, 0.62);
|
||||||
|
backdrop-filter: blur(22px) saturate(1.35);
|
||||||
|
-webkit-backdrop-filter: blur(22px) saturate(1.35);
|
||||||
|
border: 1px solid rgba(0, 0, 0, 0.07);
|
||||||
|
box-shadow:
|
||||||
|
0 22px 70px rgba(0, 0, 0, 0.08),
|
||||||
|
0 2px 12px rgba(0, 0, 0, 0.04);
|
||||||
|
}
|
||||||
|
|
||||||
|
.glass-strong {
|
||||||
|
background: rgba(255, 255, 255, 0.72);
|
||||||
|
backdrop-filter: blur(26px) saturate(1.45);
|
||||||
|
-webkit-backdrop-filter: blur(26px) saturate(1.45);
|
||||||
|
border: 1px solid rgba(0, 0, 0, 0.08);
|
||||||
|
box-shadow:
|
||||||
|
0 28px 90px rgba(0, 0, 0, 0.10),
|
||||||
|
0 3px 16px rgba(0, 0, 0, 0.05);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* ------------------------------------------------ */
|
||||||
|
/* Specular Highlight Overlay (Apple-like sheen) */
|
||||||
|
/* ------------------------------------------------ */
|
||||||
|
|
||||||
|
.specular {
|
||||||
|
position: relative;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
.specular::before {
|
||||||
|
content: "";
|
||||||
|
position: absolute;
|
||||||
|
inset: -40%;
|
||||||
|
background: radial-gradient(
|
||||||
|
circle at 30% 20%,
|
||||||
|
rgba(255, 255, 255, 0.65),
|
||||||
|
rgba(255, 255, 255, 0.00) 55%
|
||||||
|
);
|
||||||
|
transform: rotate(-8deg);
|
||||||
|
pointer-events: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.specular::after {
|
||||||
|
content: "";
|
||||||
|
position: absolute;
|
||||||
|
inset: 0;
|
||||||
|
background: linear-gradient(
|
||||||
|
to bottom,
|
||||||
|
rgba(255, 255, 255, 0.18),
|
||||||
|
rgba(255, 255, 255, 0.00) 30%,
|
||||||
|
rgba(0, 0, 0, 0.02)
|
||||||
|
);
|
||||||
|
pointer-events: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Hide scrollbars for gallery */
|
||||||
|
.scrollbar-hide {
|
||||||
|
-ms-overflow-style: none;
|
||||||
|
scrollbar-width: none;
|
||||||
|
}
|
||||||
|
.scrollbar-hide::-webkit-scrollbar {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* ------------------------------------------------ */
|
||||||
|
/* Optional Subtle Noise Layer (if used) */
|
||||||
|
/* ------------------------------------------------ */
|
||||||
|
|
||||||
|
.noise-overlay {
|
||||||
|
pointer-events: none;
|
||||||
|
position: absolute;
|
||||||
|
inset: 0;
|
||||||
|
opacity: 0.06;
|
||||||
|
mix-blend-mode: soft-light;
|
||||||
|
background-image: url("/noise.png");
|
||||||
|
}
|
||||||
39
app/lab/page.tsx
Normal file
@@ -0,0 +1,39 @@
|
|||||||
|
export const dynamic = "force-dynamic";
|
||||||
|
export const revalidate = 0;
|
||||||
|
|
||||||
|
export default function LabPlaceholder() {
|
||||||
|
return (
|
||||||
|
<main className="min-h-screen bg-white relative">
|
||||||
|
<div className="pointer-events-none absolute inset-0">
|
||||||
|
<div className="absolute -top-40 -left-40 h-[520px] w-[520px] rounded-full bg-black/5 blur-3xl" />
|
||||||
|
<div className="absolute -bottom-40 -right-40 h-[520px] w-[520px] rounded-full bg-black/5 blur-3xl" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div className="relative mx-auto max-w-6xl px-6 py-10">
|
||||||
|
<h1 className="text-4xl md:text-5xl font-semibold tracking-tight text-black/90">
|
||||||
|
Lab
|
||||||
|
</h1>
|
||||||
|
<p className="mt-3 text-black/70 max-w-2xl leading-relaxed">
|
||||||
|
Dashboard shell comes next: metrics row + services list + topology, with
|
||||||
|
“Hide IP/Ports” default ON.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<div className="mt-8 rounded-3xl glass specular p-6">
|
||||||
|
<div className="text-sm font-semibold text-black/85">Status</div>
|
||||||
|
<div className="mt-2 text-sm text-black/70 leading-relaxed">
|
||||||
|
Coming online after UI + read-only container discovery is wired.
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div className="mt-10">
|
||||||
|
<a
|
||||||
|
className="rounded-3xl border border-black/15 px-5 py-3 text-sm font-medium hover:border-black/30 transition"
|
||||||
|
href="/"
|
||||||
|
>
|
||||||
|
Back
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</main>
|
||||||
|
);
|
||||||
|
}
|
||||||
22
app/layout.tsx
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
import "./globals.css";
|
||||||
|
import Navbar from "@/components/navbar";
|
||||||
|
|
||||||
|
export const metadata = {
|
||||||
|
title: "Brian De Winne",
|
||||||
|
description: "Portfolio + lab dashboard",
|
||||||
|
};
|
||||||
|
|
||||||
|
export default function RootLayout({
|
||||||
|
children,
|
||||||
|
}: {
|
||||||
|
children: React.ReactNode;
|
||||||
|
}) {
|
||||||
|
return (
|
||||||
|
<html lang="en" className="overflow-x-hidden">
|
||||||
|
<body className="bg-white text-black antialiased overflow-x-hidden">
|
||||||
|
<Navbar />
|
||||||
|
{children}
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
);
|
||||||
|
}
|
||||||
29
app/page.tsx
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
export const dynamic = "force-dynamic";
|
||||||
|
export const revalidate = 0;
|
||||||
|
|
||||||
|
import Hero from "@/components/hero";
|
||||||
|
import FeaturedProjects from "@/components/featured-projects";
|
||||||
|
import Footer from "@/components/footer";
|
||||||
|
|
||||||
|
export default function HomePage() {
|
||||||
|
return (
|
||||||
|
<main className="min-h-screen bg-white relative">
|
||||||
|
{/* Ambient “liquid” light */}
|
||||||
|
<div className="pointer-events-none absolute inset-0">
|
||||||
|
<div className="absolute -top-40 -left-40 h-[520px] w-[520px] rounded-full bg-black/5 blur-3xl" />
|
||||||
|
<div className="absolute -bottom-40 -right-40 h-[520px] w-[520px] rounded-full bg-black/5 blur-3xl" />
|
||||||
|
<div className="pointer-events-none absolute inset-0 opacity-[0.06] mix-blend-soft-light"
|
||||||
|
style={{ backgroundImage: "public/noise.png" }} />
|
||||||
|
</div>
|
||||||
|
<div className="relative mx-auto max-w-6xl px-6 py-10">
|
||||||
|
<Hero />
|
||||||
|
<div className="mt-14" id="projects">
|
||||||
|
<FeaturedProjects />
|
||||||
|
</div>
|
||||||
|
<div className="mt-16">
|
||||||
|
<Footer />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</main>
|
||||||
|
);
|
||||||
|
}
|
||||||
275
app/projects/[slug]/page.tsx
Normal file
@@ -0,0 +1,275 @@
|
|||||||
|
import { notFound } from "next/navigation";
|
||||||
|
import { getProjectBySlug } from "@/app/_data/get-project";
|
||||||
|
|
||||||
|
import GalleryCarousel from "@/components/gallery-carousel";
|
||||||
|
import ScrollHero from "@/components/scroll-hero";
|
||||||
|
import { Reveal, Stagger, StaggerItem } from "@/components/reveal";
|
||||||
|
|
||||||
|
export const dynamic = "force-dynamic";
|
||||||
|
export const revalidate = 0;
|
||||||
|
|
||||||
|
function Badge({ children }: { children: React.ReactNode }) {
|
||||||
|
return (
|
||||||
|
<span className="inline-flex items-center rounded-full border border-black/10 bg-white/60 px-3 py-1 text-xs text-black/65">
|
||||||
|
{children}
|
||||||
|
</span>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
function FeatureTile({ title, desc }: { title: string; desc: string }) {
|
||||||
|
return (
|
||||||
|
<div className="rounded-3xl glass specular p-5">
|
||||||
|
<div className="text-sm font-semibold text-black/85">{title}</div>
|
||||||
|
<div className="mt-2 text-sm text-black/75 leading-relaxed">{desc}</div>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
export default async function ProjectPage({
|
||||||
|
params,
|
||||||
|
}: {
|
||||||
|
params: Promise<{ slug: string }>;
|
||||||
|
}) {
|
||||||
|
const { slug } = await params;
|
||||||
|
const project = getProjectBySlug(slug);
|
||||||
|
if (!project) return notFound();
|
||||||
|
|
||||||
|
return (
|
||||||
|
<main className="min-h-screen bg-white relative">
|
||||||
|
{/* ambient light */}
|
||||||
|
<div className="pointer-events-none absolute inset-0">
|
||||||
|
<div className="absolute -top-40 -left-40 h-[520px] w-[520px] rounded-full bg-black/5 blur-3xl" />
|
||||||
|
<div className="absolute -bottom-40 -right-40 h-[520px] w-[520px] rounded-full bg-black/5 blur-3xl" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{/* optional noise (if you generated noise.png) */}
|
||||||
|
<div className="noise-overlay" />
|
||||||
|
|
||||||
|
<div className="relative mx-auto max-w-6xl px-6 py-10">
|
||||||
|
{/* breadcrumbs / links */}
|
||||||
|
<Reveal>
|
||||||
|
<div className="flex flex-wrap items-center gap-2">
|
||||||
|
{(project.links ?? [{ label: "Home", href: "/" }]).map((l) => (
|
||||||
|
<a
|
||||||
|
key={l.href}
|
||||||
|
href={l.href}
|
||||||
|
className="text-sm text-black/60 hover:text-black transition"
|
||||||
|
>
|
||||||
|
{l.label}
|
||||||
|
</a>
|
||||||
|
))}
|
||||||
|
<span className="text-sm text-black/40">/</span>
|
||||||
|
<span className="text-sm text-black/70">{project.title}</span>
|
||||||
|
</div>
|
||||||
|
</Reveal>
|
||||||
|
|
||||||
|
{/* header */}
|
||||||
|
<div className="mt-6 grid grid-cols-1 lg:grid-cols-2 gap-8 items-start">
|
||||||
|
<Reveal delay={0.02}>
|
||||||
|
<div>
|
||||||
|
<div className="text-sm text-black/60">{project.tag}</div>
|
||||||
|
|
||||||
|
<h1 className="mt-3 text-4xl md:text-5xl font-semibold tracking-tight text-black/90 leading-[1.05]">
|
||||||
|
{project.title}
|
||||||
|
</h1>
|
||||||
|
|
||||||
|
<p className="mt-4 text-base md:text-lg text-black/75 leading-relaxed max-w-xl">
|
||||||
|
{project.description}
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<div className="mt-6 flex flex-wrap gap-2">
|
||||||
|
{project.status && <Badge>{project.status}</Badge>}
|
||||||
|
{project.year && <Badge>{project.year}</Badge>}
|
||||||
|
{(project.stack ?? []).map((s) => (
|
||||||
|
<Badge key={s}>{s}</Badge>
|
||||||
|
))}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</Reveal>
|
||||||
|
|
||||||
|
{/* scroll-reactive hero */}
|
||||||
|
<Reveal delay={0.05}>
|
||||||
|
<ScrollHero src={project.image} alt={project.title} />
|
||||||
|
</Reveal>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{/* centered carousel */}
|
||||||
|
<Reveal delay={0.05}>
|
||||||
|
<GalleryCarousel
|
||||||
|
images={project.gallery ?? []}
|
||||||
|
title="Gallery"
|
||||||
|
autoPlay
|
||||||
|
intervalMs={4500}
|
||||||
|
/>
|
||||||
|
</Reveal>
|
||||||
|
|
||||||
|
{/* sections */}
|
||||||
|
<Stagger>
|
||||||
|
<div className="mt-10 grid grid-cols-1 lg:grid-cols-3 gap-5">
|
||||||
|
{(project.sections ?? []).map((s) => (
|
||||||
|
<StaggerItem key={s.title}>
|
||||||
|
<section className="rounded-3xl glass specular p-6">
|
||||||
|
<h2 className="text-sm font-semibold text-black/85">
|
||||||
|
{s.title}
|
||||||
|
</h2>
|
||||||
|
<p className="mt-3 text-sm text-black/75 leading-relaxed">
|
||||||
|
{s.content}
|
||||||
|
</p>
|
||||||
|
</section>
|
||||||
|
</StaggerItem>
|
||||||
|
))}
|
||||||
|
</div>
|
||||||
|
</Stagger>
|
||||||
|
|
||||||
|
{/* macropad enhancements */}
|
||||||
|
{project.slug === "macropad" && (
|
||||||
|
<div className="mt-10">
|
||||||
|
<Reveal>
|
||||||
|
<h2 className="text-xl font-semibold tracking-tight text-black/90">
|
||||||
|
Key capabilities
|
||||||
|
</h2>
|
||||||
|
<p className="mt-2 text-sm text-black/70 leading-relaxed max-w-2xl">
|
||||||
|
Designed around muscle memory: fast macros, precise control, and
|
||||||
|
clear feedback.
|
||||||
|
</p>
|
||||||
|
</Reveal>
|
||||||
|
|
||||||
|
<Stagger>
|
||||||
|
<div className="mt-5 grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-5">
|
||||||
|
<StaggerItem>
|
||||||
|
<FeatureTile
|
||||||
|
title="Press vs Hold macros"
|
||||||
|
desc="Assign separate actions for tap and hold, with a configurable threshold in milliseconds."
|
||||||
|
/>
|
||||||
|
</StaggerItem>
|
||||||
|
<StaggerItem>
|
||||||
|
<FeatureTile
|
||||||
|
title="Per-app volume control"
|
||||||
|
desc="Encoders adjust volume for selected programs, and the LED bars reflect the current level."
|
||||||
|
/>
|
||||||
|
</StaggerItem>
|
||||||
|
<StaggerItem>
|
||||||
|
<FeatureTile
|
||||||
|
title="LED state syncing"
|
||||||
|
desc="RGB strips and encoder rings display color + fill based on system state and app selection."
|
||||||
|
/>
|
||||||
|
</StaggerItem>
|
||||||
|
<StaggerItem>
|
||||||
|
<FeatureTile
|
||||||
|
title="Persistent settings"
|
||||||
|
desc="Color profiles and device preferences persist across reboots using EEPROM."
|
||||||
|
/>
|
||||||
|
</StaggerItem>
|
||||||
|
<StaggerItem>
|
||||||
|
<FeatureTile
|
||||||
|
title="Macro recording UI"
|
||||||
|
desc="Record key sequences automatically or enter them manually, then bind to any button."
|
||||||
|
/>
|
||||||
|
</StaggerItem>
|
||||||
|
<StaggerItem>
|
||||||
|
<FeatureTile
|
||||||
|
title="Profiles"
|
||||||
|
desc="Switch layouts per workflow. Export/import profiles as JSON."
|
||||||
|
/>
|
||||||
|
</StaggerItem>
|
||||||
|
</div>
|
||||||
|
</Stagger>
|
||||||
|
|
||||||
|
<Reveal delay={0.05}>
|
||||||
|
<div className="mt-8 grid grid-cols-1 lg:grid-cols-2 gap-5">
|
||||||
|
{/* Roadmap */}
|
||||||
|
<div className="rounded-3xl glass-strong specular p-6">
|
||||||
|
<div className="flex items-center justify-between gap-3">
|
||||||
|
<div className="text-sm font-semibold text-black/85">Roadmap</div>
|
||||||
|
<span className="text-xs text-black/55">Last updated: Feb 2026</span>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div className="mt-5 space-y-4">
|
||||||
|
{[
|
||||||
|
{
|
||||||
|
title: "WIP (now)",
|
||||||
|
desc: "Macro editor, press/hold mapping, LED syncing, core firmware stability.",
|
||||||
|
done: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "Beta",
|
||||||
|
desc: "Profiles + export/import, device discovery, per-app volume routing polish.",
|
||||||
|
done: false,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "v1",
|
||||||
|
desc: "Installer packaging, cross-platform hotkey backend, full documentation + demo video.",
|
||||||
|
done: false,
|
||||||
|
},
|
||||||
|
].map((item) => (
|
||||||
|
<div
|
||||||
|
key={item.title}
|
||||||
|
className="flex items-start gap-3 rounded-3xl border border-black/10 bg-white/60 p-4"
|
||||||
|
>
|
||||||
|
<div
|
||||||
|
className={[
|
||||||
|
"mt-0.5 h-3 w-3 rounded-full border",
|
||||||
|
item.done
|
||||||
|
? "bg-black/55 border-black/25"
|
||||||
|
: "bg-white/70 border-black/15",
|
||||||
|
].join(" ")}
|
||||||
|
/>
|
||||||
|
<div>
|
||||||
|
<div className="text-sm font-semibold text-black/85">
|
||||||
|
{item.title}
|
||||||
|
</div>
|
||||||
|
<div className="mt-1 text-sm text-black/70 leading-relaxed">
|
||||||
|
{item.desc}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
))}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{/* Architecture */}
|
||||||
|
<div className="rounded-3xl glass-strong specular p-6">
|
||||||
|
<div className="text-sm font-semibold text-black/85">Architecture</div>
|
||||||
|
<div className="mt-4 grid grid-cols-1 gap-4 text-sm text-black/75">
|
||||||
|
<div className="rounded-3xl border border-black/10 bg-white/60 p-4">
|
||||||
|
<div className="text-xs text-black/60">ESP32 firmware</div>
|
||||||
|
<ul className="mt-2 list-disc pl-5 space-y-1 text-black/75">
|
||||||
|
<li>Encoder + button input scanning</li>
|
||||||
|
<li>Hold threshold + action dispatch</li>
|
||||||
|
<li>FastLED strips + ring feedback</li>
|
||||||
|
<li>EEPROM persistence (colors/settings)</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div className="rounded-3xl border border-black/10 bg-white/60 p-4">
|
||||||
|
<div className="text-xs text-black/60">Desktop app</div>
|
||||||
|
<ul className="mt-2 list-disc pl-5 space-y-1 text-black/75">
|
||||||
|
<li>Macro recording + manual entry</li>
|
||||||
|
<li>Per-app volume selection + control</li>
|
||||||
|
<li>Profiles (save/load/export JSON)</li>
|
||||||
|
<li>Sync state → LEDs (color + fill)</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</Reveal>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
|
|
||||||
|
{/* back */}
|
||||||
|
<Reveal delay={0.04}>
|
||||||
|
<div className="mt-10">
|
||||||
|
<a
|
||||||
|
href="/#projects"
|
||||||
|
className="inline-flex items-center rounded-3xl border border-black/15 bg-white/60 px-5 py-3 text-sm font-medium text-black/80 hover:text-black hover:border-black/30 transition"
|
||||||
|
>
|
||||||
|
← Back to projects
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
</Reveal>
|
||||||
|
</div>
|
||||||
|
</main>
|
||||||
|
);
|
||||||
|
}
|
||||||
180
components/architecture-breakdown.tsx
Normal file
@@ -0,0 +1,180 @@
|
|||||||
|
"use client";
|
||||||
|
|
||||||
|
import * as React from "react";
|
||||||
|
import { Reveal } from "@/components/reveal";
|
||||||
|
|
||||||
|
export type ArchitectureLayer = {
|
||||||
|
title: string;
|
||||||
|
subtitle?: string;
|
||||||
|
bullets: string[];
|
||||||
|
};
|
||||||
|
|
||||||
|
export type ArchitectureInterface = {
|
||||||
|
label: string;
|
||||||
|
detail: string;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type ArchitectureBreakdownData = {
|
||||||
|
title?: string;
|
||||||
|
subtitle?: string;
|
||||||
|
layers: ArchitectureLayer[];
|
||||||
|
flow: Array<{ from: string; to: string; note?: string }>;
|
||||||
|
interfaces: ArchitectureInterface[];
|
||||||
|
};
|
||||||
|
|
||||||
|
export function ArchitectureBreakdown({
|
||||||
|
title = "Architecture",
|
||||||
|
subtitle = "How the system is structured and how state moves through it.",
|
||||||
|
data,
|
||||||
|
}: {
|
||||||
|
title?: string;
|
||||||
|
subtitle?: string;
|
||||||
|
data: ArchitectureBreakdownData;
|
||||||
|
}) {
|
||||||
|
return (
|
||||||
|
<section className="relative overflow-hidden">
|
||||||
|
<div className="glass-strong noise-overlay rounded-3xl p-6 sm:p-8 shadow-sm relative overflow-hidden">
|
||||||
|
<div className="flex flex-col gap-2">
|
||||||
|
<h2 className="text-xl sm:text-2xl font-semibold tracking-tight">
|
||||||
|
{title}
|
||||||
|
</h2>
|
||||||
|
<p className="text-sm sm:text-[15px] text-black/60 max-w-3xl">
|
||||||
|
{subtitle}
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{/* Layers */}
|
||||||
|
<div className="mt-6 sm:mt-8 grid gap-4 lg:grid-cols-3">
|
||||||
|
{data.layers.map((layer, idx) => (
|
||||||
|
<Reveal key={`${layer.title}-${idx}`}>
|
||||||
|
<div className="glass rounded-3xl p-5 sm:p-6 h-full">
|
||||||
|
<div className="flex items-start justify-between gap-3">
|
||||||
|
<div className="min-w-0">
|
||||||
|
<div className="text-[11px] uppercase tracking-[0.18em] text-black/45">
|
||||||
|
Layer {String(idx + 1).padStart(2, "0")}
|
||||||
|
</div>
|
||||||
|
<h3 className="mt-2 text-base sm:text-lg font-semibold tracking-tight">
|
||||||
|
{layer.title}
|
||||||
|
</h3>
|
||||||
|
{layer.subtitle ? (
|
||||||
|
<p className="mt-1 text-sm text-black/60">
|
||||||
|
{layer.subtitle}
|
||||||
|
</p>
|
||||||
|
) : null}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div className="shrink-0">
|
||||||
|
<span className="glass px-2.5 py-1 rounded-full text-[11px] text-black/55 tabular-nums">
|
||||||
|
{String(idx + 1).padStart(2, "0")}/03
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<ul className="mt-4 grid gap-2 text-sm text-black/70">
|
||||||
|
{layer.bullets.map((b, bi) => (
|
||||||
|
<li key={`${layer.title}-b-${bi}`} className="flex gap-2">
|
||||||
|
<span className="mt-[7px] h-1.5 w-1.5 rounded-full bg-black/25" />
|
||||||
|
<span className="min-w-0">{b}</span>
|
||||||
|
</li>
|
||||||
|
))}
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</Reveal>
|
||||||
|
))}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{/* Flow */}
|
||||||
|
<div className="mt-6 sm:mt-8">
|
||||||
|
<Reveal>
|
||||||
|
<div className="glass rounded-3xl p-5 sm:p-6">
|
||||||
|
<div className="flex flex-col sm:flex-row sm:items-end sm:justify-between gap-2">
|
||||||
|
<div>
|
||||||
|
<div className="text-[11px] uppercase tracking-[0.18em] text-black/45">
|
||||||
|
Data flow
|
||||||
|
</div>
|
||||||
|
<h3 className="mt-2 text-base sm:text-lg font-semibold tracking-tight">
|
||||||
|
State moves as a pipeline
|
||||||
|
</h3>
|
||||||
|
<p className="mt-1 text-sm text-black/60 max-w-3xl">
|
||||||
|
Configuration is authored on desktop, executed deterministically, then mirrored back as
|
||||||
|
LED feedback so the device stays readable at a glance.
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div className="mt-5 grid gap-3">
|
||||||
|
{data.flow.map((step, i) => (
|
||||||
|
<div
|
||||||
|
key={`${step.from}-${step.to}-${i}`}
|
||||||
|
className="glass rounded-2xl px-4 py-3"
|
||||||
|
>
|
||||||
|
<div className="flex flex-col sm:flex-row sm:items-center sm:justify-between gap-2">
|
||||||
|
<div className="min-w-0">
|
||||||
|
<div className="text-sm text-black/75">
|
||||||
|
<span className="font-semibold">{step.from}</span>
|
||||||
|
<span className="mx-2 text-black/30">→</span>
|
||||||
|
<span className="font-semibold">{step.to}</span>
|
||||||
|
</div>
|
||||||
|
{step.note ? (
|
||||||
|
<div className="mt-1 text-[13px] text-black/60">
|
||||||
|
{step.note}
|
||||||
|
</div>
|
||||||
|
) : null}
|
||||||
|
</div>
|
||||||
|
<div className="shrink-0 text-[12px] text-black/45 tabular-nums">
|
||||||
|
Step {String(i + 1).padStart(2, "0")}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
))}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</Reveal>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{/* Interfaces */}
|
||||||
|
<div className="mt-6 sm:mt-8">
|
||||||
|
<Reveal>
|
||||||
|
<div className="glass rounded-3xl p-5 sm:p-6">
|
||||||
|
<div className="text-[11px] uppercase tracking-[0.18em] text-black/45">
|
||||||
|
Interfaces
|
||||||
|
</div>
|
||||||
|
<h3 className="mt-2 text-base sm:text-lg font-semibold tracking-tight">
|
||||||
|
Stable contracts between modules
|
||||||
|
</h3>
|
||||||
|
<p className="mt-1 text-sm text-black/60 max-w-3xl">
|
||||||
|
The system stays maintainable because boundaries are explicit and small.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<div className="mt-5 grid gap-3 sm:grid-cols-2">
|
||||||
|
{data.interfaces.map((it, idx) => (
|
||||||
|
<div
|
||||||
|
key={`${it.label}-${idx}`}
|
||||||
|
className="glass rounded-2xl p-4"
|
||||||
|
>
|
||||||
|
<div className="flex items-start justify-between gap-3">
|
||||||
|
<div className="min-w-0">
|
||||||
|
<div className="text-sm font-semibold text-black/75">
|
||||||
|
{it.label}
|
||||||
|
</div>
|
||||||
|
<div className="mt-1 text-sm text-black/60">
|
||||||
|
{it.detail}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<span className="glass px-2.5 py-1 rounded-full text-[11px] text-black/50 tabular-nums">
|
||||||
|
{String(idx + 1).padStart(2, "0")}
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
))}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</Reveal>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{/* Specular highlight */}
|
||||||
|
<div className="pointer-events-none specular absolute -top-24 -right-24 h-64 w-64 rounded-full opacity-50 blur-2xl" />
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
);
|
||||||
|
}
|
||||||
75
components/desktop-ui-showcase.tsx
Normal file
@@ -0,0 +1,75 @@
|
|||||||
|
"use client";
|
||||||
|
|
||||||
|
import Image from "next/image";
|
||||||
|
import { motion } from "framer-motion";
|
||||||
|
import { Reveal } from "@/components/reveal";
|
||||||
|
|
||||||
|
export type UIScreenshot = {
|
||||||
|
src: string;
|
||||||
|
title: string;
|
||||||
|
description?: string;
|
||||||
|
};
|
||||||
|
|
||||||
|
export function DesktopUIShowcase({
|
||||||
|
title = "Desktop Interface",
|
||||||
|
subtitle = "Control surface software designed for clarity and speed.",
|
||||||
|
screenshots,
|
||||||
|
}: {
|
||||||
|
title?: string;
|
||||||
|
subtitle?: string;
|
||||||
|
screenshots: UIScreenshot[];
|
||||||
|
}) {
|
||||||
|
return (
|
||||||
|
<section className="relative overflow-hidden">
|
||||||
|
<div className="glass-strong noise-overlay rounded-3xl p-6 sm:p-8 shadow-sm relative overflow-hidden">
|
||||||
|
{/* Header */}
|
||||||
|
<div className="flex flex-col gap-2">
|
||||||
|
<h2 className="text-xl sm:text-2xl font-semibold tracking-tight">
|
||||||
|
{title}
|
||||||
|
</h2>
|
||||||
|
<p className="text-sm sm:text-[15px] text-black/60 max-w-3xl">
|
||||||
|
{subtitle}
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{/* Grid */}
|
||||||
|
<div className="mt-6 sm:mt-8 grid gap-5 sm:grid-cols-2 lg:grid-cols-3">
|
||||||
|
{screenshots.map((shot, i) => (
|
||||||
|
<Reveal key={shot.src}>
|
||||||
|
<motion.div
|
||||||
|
whileHover={{ y: -6 }}
|
||||||
|
transition={{ type: "spring", stiffness: 160, damping: 18 }}
|
||||||
|
className="glass rounded-3xl overflow-hidden group"
|
||||||
|
>
|
||||||
|
{/* Image */}
|
||||||
|
<div className="relative aspect-[16/10] w-full overflow-hidden">
|
||||||
|
<Image
|
||||||
|
src={shot.src}
|
||||||
|
alt={shot.title}
|
||||||
|
fill
|
||||||
|
className="object-cover transition duration-500 group-hover:scale-[1.04]"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{/* Caption */}
|
||||||
|
<div className="p-4">
|
||||||
|
<div className="text-sm font-semibold text-black/75">
|
||||||
|
{shot.title}
|
||||||
|
</div>
|
||||||
|
{shot.description ? (
|
||||||
|
<div className="mt-1 text-sm text-black/60 leading-relaxed">
|
||||||
|
{shot.description}
|
||||||
|
</div>
|
||||||
|
) : null}
|
||||||
|
</div>
|
||||||
|
</motion.div>
|
||||||
|
</Reveal>
|
||||||
|
))}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{/* Specular highlight */}
|
||||||
|
<div className="pointer-events-none specular absolute -top-24 -right-24 h-64 w-64 rounded-full opacity-50 blur-2xl" />
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
);
|
||||||
|
}
|
||||||
85
components/featured-projects.tsx
Normal file
@@ -0,0 +1,85 @@
|
|||||||
|
"use client";
|
||||||
|
|
||||||
|
import Image from "next/image";
|
||||||
|
import { motion } from "framer-motion";
|
||||||
|
import { projects } from "@/app/_data/projects";
|
||||||
|
|
||||||
|
|
||||||
|
function Badge({ children }: { children: React.ReactNode }) {
|
||||||
|
return (
|
||||||
|
<span className="inline-flex items-center rounded-full border border-black/10 bg-white/60 px-2.5 py-1 text-[11px] text-black/65">
|
||||||
|
{children}
|
||||||
|
</span>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
export default function FeaturedProjects() {
|
||||||
|
return (
|
||||||
|
<section>
|
||||||
|
<div className="flex items-end justify-between gap-6">
|
||||||
|
<div>
|
||||||
|
<h2 className="text-3xl md:text-4xl font-semibold tracking-tight text-black/90">
|
||||||
|
Featured projects
|
||||||
|
</h2>
|
||||||
|
<p className="mt-2 text-black/75 max-w-2xl leading-relaxed">
|
||||||
|
Infrastructure, software, and lab-adjacent builds — minimal UI with
|
||||||
|
real systems behind it.
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div className="mt-7 grid grid-cols-1 md:grid-cols-2 gap-5">
|
||||||
|
{projects.map((p, i) => (
|
||||||
|
<motion.a
|
||||||
|
key={p.title}
|
||||||
|
href={p.href}
|
||||||
|
initial={{ opacity: 0, y: 12 }}
|
||||||
|
whileInView={{ opacity: 1, y: 0 }}
|
||||||
|
viewport={{ once: true, amount: 0.35 }}
|
||||||
|
transition={{ duration: 0.45, delay: i * 0.05 }}
|
||||||
|
className="group rounded-3xl glass specular overflow-hidden transition will-change-transform hover:translate-y-[-2px]"
|
||||||
|
>
|
||||||
|
{/* image */}
|
||||||
|
<div className="relative h-56 w-full">
|
||||||
|
<Image
|
||||||
|
src={p.image}
|
||||||
|
alt={p.title}
|
||||||
|
fill
|
||||||
|
className="object-cover transition duration-700 ease-out group-hover:scale-[1.03]"
|
||||||
|
priority={i === 0}
|
||||||
|
/>
|
||||||
|
<div className="absolute inset-0 bg-gradient-to-t from-black/20 via-black/0 to-transparent pointer-events-none" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{/* content */}
|
||||||
|
<div className="p-5">
|
||||||
|
<div className="flex items-center justify-between gap-3">
|
||||||
|
<div className="text-xs text-black/60">{p.tag}</div>
|
||||||
|
{p.status && <Badge>{p.status}</Badge>}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div className="mt-2 text-xl font-semibold tracking-tight text-black/90">
|
||||||
|
{p.title}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div className="mt-2 text-sm text-black/75 leading-relaxed">
|
||||||
|
{p.description}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div className="mt-4 flex flex-wrap gap-2">
|
||||||
|
{p.year && <Badge>{p.year}</Badge>}
|
||||||
|
{(p.stack ?? []).slice(0, 4).map((s) => (
|
||||||
|
<Badge key={s}>{s}</Badge>
|
||||||
|
))}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div className="mt-5 text-sm font-medium text-black/70 group-hover:text-black/90 transition">
|
||||||
|
View →
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</motion.a>
|
||||||
|
))}
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
);
|
||||||
|
}
|
||||||
22
components/footer.tsx
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
export default function Footer() {
|
||||||
|
return (
|
||||||
|
<footer className="border-t border-black/10 pt-8 pb-10">
|
||||||
|
<div className="flex flex-col md:flex-row md:items-center md:justify-between gap-4">
|
||||||
|
<div className="text-sm text-black/60">
|
||||||
|
© {new Date().getFullYear()} Brian De Winne
|
||||||
|
</div>
|
||||||
|
<div className="flex gap-4 text-sm">
|
||||||
|
<a className="text-black/60 hover:text-black transition" href="/lab">
|
||||||
|
Lab
|
||||||
|
</a>
|
||||||
|
<a
|
||||||
|
className="text-black/60 hover:text-black transition"
|
||||||
|
href="mailto:website+dewinnebrian@gmail.com"
|
||||||
|
>
|
||||||
|
Email
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</footer>
|
||||||
|
);
|
||||||
|
}
|
||||||
185
components/gallery-carousel.tsx
Normal file
@@ -0,0 +1,185 @@
|
|||||||
|
"use client";
|
||||||
|
|
||||||
|
import Image from "next/image";
|
||||||
|
import { useEffect, useMemo, useRef, useState } from "react";
|
||||||
|
|
||||||
|
type Props = {
|
||||||
|
images: string[];
|
||||||
|
title?: string;
|
||||||
|
autoPlay?: boolean;
|
||||||
|
intervalMs?: number;
|
||||||
|
};
|
||||||
|
|
||||||
|
export default function GalleryCarousel({
|
||||||
|
images,
|
||||||
|
title = "Gallery",
|
||||||
|
autoPlay = true,
|
||||||
|
intervalMs = 4500,
|
||||||
|
}: Props) {
|
||||||
|
const containerRef = useRef<HTMLDivElement | null>(null);
|
||||||
|
const itemRefs = useRef<(HTMLButtonElement | null)[]>([]);
|
||||||
|
const [active, setActive] = useState(0);
|
||||||
|
const [paused, setPaused] = useState(false);
|
||||||
|
|
||||||
|
const safeImages = useMemo(() => images.filter(Boolean), [images]);
|
||||||
|
|
||||||
|
function clampIndex(i: number) {
|
||||||
|
const n = safeImages.length;
|
||||||
|
if (n === 0) return 0;
|
||||||
|
return (i + n) % n;
|
||||||
|
}
|
||||||
|
|
||||||
|
function scrollToIndex(i: number) {
|
||||||
|
const idx = clampIndex(i);
|
||||||
|
setActive(idx);
|
||||||
|
|
||||||
|
const track = containerRef.current;
|
||||||
|
const el = itemRefs.current[idx];
|
||||||
|
if (!track || !el) return;
|
||||||
|
|
||||||
|
const trackRect = track.getBoundingClientRect();
|
||||||
|
const elRect = el.getBoundingClientRect();
|
||||||
|
|
||||||
|
const target =
|
||||||
|
track.scrollLeft +
|
||||||
|
(elRect.left + elRect.width / 2) -
|
||||||
|
(trackRect.left + trackRect.width / 2);
|
||||||
|
|
||||||
|
track.scrollTo({ left: target, behavior: "smooth" });
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// Auto-advance
|
||||||
|
useEffect(() => {
|
||||||
|
if (!autoPlay || paused || safeImages.length <= 1) return;
|
||||||
|
const t = setInterval(() => scrollToIndex(active + 1), intervalMs);
|
||||||
|
return () => clearInterval(t);
|
||||||
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||||
|
}, [autoPlay, paused, active, intervalMs, safeImages.length]);
|
||||||
|
|
||||||
|
// Keep active in sync when user swipes/scrolls
|
||||||
|
useEffect(() => {
|
||||||
|
const el = containerRef.current;
|
||||||
|
if (!el || safeImages.length <= 1) return;
|
||||||
|
|
||||||
|
let raf = 0;
|
||||||
|
|
||||||
|
const onScroll = () => {
|
||||||
|
cancelAnimationFrame(raf);
|
||||||
|
raf = requestAnimationFrame(() => {
|
||||||
|
const rect = el.getBoundingClientRect();
|
||||||
|
const centerX = rect.left + rect.width / 2;
|
||||||
|
|
||||||
|
let bestIdx = active;
|
||||||
|
let bestDist = Number.POSITIVE_INFINITY;
|
||||||
|
|
||||||
|
for (let i = 0; i < safeImages.length; i++) {
|
||||||
|
const item = itemRefs.current[i];
|
||||||
|
if (!item) continue;
|
||||||
|
const r = item.getBoundingClientRect();
|
||||||
|
const itemCenter = r.left + r.width / 2;
|
||||||
|
const d = Math.abs(itemCenter - centerX);
|
||||||
|
if (d < bestDist) {
|
||||||
|
bestDist = d;
|
||||||
|
bestIdx = i;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (bestIdx !== active) setActive(bestIdx);
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
el.addEventListener("scroll", onScroll, { passive: true });
|
||||||
|
return () => {
|
||||||
|
el.removeEventListener("scroll", onScroll);
|
||||||
|
cancelAnimationFrame(raf);
|
||||||
|
};
|
||||||
|
}, [active, safeImages.length]);
|
||||||
|
|
||||||
|
if (safeImages.length === 0) return null;
|
||||||
|
|
||||||
|
return (
|
||||||
|
<section className="mt-10">
|
||||||
|
<div className="flex items-center justify-between gap-4">
|
||||||
|
<h2 className="text-xl font-semibold tracking-tight text-black/90">
|
||||||
|
{title}
|
||||||
|
</h2>
|
||||||
|
|
||||||
|
<div className="flex items-center gap-2">
|
||||||
|
<button
|
||||||
|
type="button"
|
||||||
|
onClick={() => scrollToIndex(active - 1)}
|
||||||
|
className="rounded-full border border-black/10 bg-white/70 px-3 py-2 text-sm text-black/70 hover:text-black hover:border-black/25 transition"
|
||||||
|
aria-label="Previous"
|
||||||
|
>
|
||||||
|
←
|
||||||
|
</button>
|
||||||
|
<button
|
||||||
|
type="button"
|
||||||
|
onClick={() => scrollToIndex(active + 1)}
|
||||||
|
className="rounded-full border border-black/10 bg-white/70 px-3 py-2 text-sm text-black/70 hover:text-black hover:border-black/25 transition"
|
||||||
|
aria-label="Next"
|
||||||
|
>
|
||||||
|
→
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{/* Track */}
|
||||||
|
<div
|
||||||
|
ref={containerRef}
|
||||||
|
onMouseEnter={() => setPaused(true)}
|
||||||
|
onMouseLeave={() => setPaused(false)}
|
||||||
|
className="mt-4 flex w-full max-w-full gap-4 overflow-x-auto overflow-y-hidden overscroll-x-contain pb-3 scrollbar-hide px-2"
|
||||||
|
style={{ scrollSnapType: "x mandatory" }}
|
||||||
|
>
|
||||||
|
{safeImages.map((img, i) => (
|
||||||
|
<button
|
||||||
|
key={`${img}-${i}`}
|
||||||
|
ref={(el) => {
|
||||||
|
itemRefs.current[i] = el;
|
||||||
|
}}
|
||||||
|
type="button"
|
||||||
|
onClick={() => scrollToIndex(i)}
|
||||||
|
className={[
|
||||||
|
"relative shrink-0 rounded-3xl glass-strong specular overflow-hidden",
|
||||||
|
"min-w-[320px] md:min-w-[520px] h-[220px] md:h-[320px]",
|
||||||
|
"transition will-change-transform",
|
||||||
|
"focus:outline-none focus:ring-2 focus:ring-black/20",
|
||||||
|
i === active ? "scale-[1.00]" : "scale-[0.97] opacity-90 hover:opacity-100",
|
||||||
|
].join(" ")}
|
||||||
|
style={{ scrollSnapAlign: "center" }}
|
||||||
|
aria-label={`Select image ${i + 1}`}
|
||||||
|
>
|
||||||
|
<Image
|
||||||
|
src={img}
|
||||||
|
alt={`Gallery image ${i + 1}`}
|
||||||
|
fill
|
||||||
|
className="object-cover"
|
||||||
|
priority={i === 0}
|
||||||
|
/>
|
||||||
|
<div className="absolute inset-0 bg-gradient-to-t from-black/10 to-transparent pointer-events-none" />
|
||||||
|
</button>
|
||||||
|
))}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{/* Dots */}
|
||||||
|
{safeImages.length > 1 && (
|
||||||
|
<div className="mt-3 flex items-center justify-center gap-2">
|
||||||
|
{safeImages.map((_, i) => (
|
||||||
|
<button
|
||||||
|
key={i}
|
||||||
|
type="button"
|
||||||
|
onClick={() => scrollToIndex(i)}
|
||||||
|
className={[
|
||||||
|
"h-2.5 w-2.5 rounded-full transition",
|
||||||
|
i === active ? "bg-black/50" : "bg-black/15 hover:bg-black/30",
|
||||||
|
].join(" ")}
|
||||||
|
aria-label={`Go to slide ${i + 1}`}
|
||||||
|
/>
|
||||||
|
))}
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
|
</section>
|
||||||
|
);
|
||||||
|
}
|
||||||
127
components/hero.tsx
Normal file
@@ -0,0 +1,127 @@
|
|||||||
|
"use client";
|
||||||
|
|
||||||
|
import { motion } from "framer-motion";
|
||||||
|
|
||||||
|
export default function Hero() {
|
||||||
|
return (
|
||||||
|
<section className="grid grid-cols-1 lg:grid-cols-2 gap-10 items-center">
|
||||||
|
<motion.div
|
||||||
|
initial={{ opacity: 0, y: 10 }}
|
||||||
|
animate={{ opacity: 1, y: 0 }}
|
||||||
|
transition={{ duration: 0.45 }}
|
||||||
|
>
|
||||||
|
|
||||||
|
<h1 className="mt-3 text-5xl md:text-6xl font-semibold tracking-tight text-black/90 leading-[1.05]">
|
||||||
|
Brian De Winne.
|
||||||
|
<br />
|
||||||
|
<span className="text-black/65">Clean systems, clean UI.</span>
|
||||||
|
</h1>
|
||||||
|
|
||||||
|
<p className="mt-6 text-base md:text-lg text-black/70 leading-relaxed max-w-xl">
|
||||||
|
Portfolio + lab dashboard hosted on Unraid behind Cloudflare Tunnel and
|
||||||
|
Nginx Proxy Manager. Minimal design, hardened routing, real visibility.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<div className="mt-8 flex flex-wrap gap-3">
|
||||||
|
<a
|
||||||
|
href="#projects"
|
||||||
|
className="rounded-3xl bg-black text-white px-5 py-3 text-sm font-medium shadow-[0_10px_30px_rgba(0,0,0,0.15)] transition hover:translate-y-[-1px]"
|
||||||
|
>
|
||||||
|
View projects
|
||||||
|
</a>
|
||||||
|
|
||||||
|
<a
|
||||||
|
href="/lab"
|
||||||
|
className="rounded-3xl border border-black/15 px-5 py-3 text-sm font-medium transition hover:border-black/30"
|
||||||
|
>
|
||||||
|
Lab dashboard
|
||||||
|
</a>
|
||||||
|
|
||||||
|
<a
|
||||||
|
href="mailto:website+dewinnebrian@gmail.com"
|
||||||
|
className="rounded-3xl border border-black/15 px-5 py-3 text-sm font-medium transition hover:border-black/30"
|
||||||
|
>
|
||||||
|
Contact
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div className="mt-8 flex flex-wrap items-center gap-3 text-xs text-black/55">
|
||||||
|
<span className="inline-flex items-center gap-2 rounded-3xl border border-black/10 px-3 py-2 bg-white/60">
|
||||||
|
<span className="h-2 w-2 rounded-full bg-black/30" />
|
||||||
|
Belgium
|
||||||
|
</span>
|
||||||
|
<span className="inline-flex items-center gap-2 rounded-3xl border border-black/10 px-3 py-2 bg-white/60">
|
||||||
|
<span className="h-2 w-2 rounded-full bg-black/30" />
|
||||||
|
Unraid • Docker • CF Tunnel
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
</motion.div>
|
||||||
|
|
||||||
|
<motion.div
|
||||||
|
initial={{ opacity: 0, y: 12 }}
|
||||||
|
animate={{ opacity: 1, y: 0 }}
|
||||||
|
transition={{ duration: 0.55, delay: 0.05 }}
|
||||||
|
className="relative"
|
||||||
|
>
|
||||||
|
<div className="rounded-3xl glass-strong specular overflow-hidden">
|
||||||
|
<div className="px-5 py-4 border-b border-black/10 flex items-center justify-between">
|
||||||
|
<div className="text-sm font-semibold text-black/85">
|
||||||
|
System Snapshot
|
||||||
|
</div>
|
||||||
|
<div className="text-xs text-black/55">dewinnebrian.com</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div className="p-5">
|
||||||
|
<div className="grid grid-cols-3 gap-3">
|
||||||
|
<MiniStat label="Containers" value="—" />
|
||||||
|
<MiniStat label="Running" value="—" />
|
||||||
|
<MiniStat label="Networks" value="—" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div className="mt-5 rounded-3xl border border-black/10 p-4 bg-white/60">
|
||||||
|
<div className="text-xs text-black/55">Status</div>
|
||||||
|
<div className="mt-2 text-sm font-medium text-black/85">
|
||||||
|
Reverse-proxied through NPM, tunneled via Cloudflare.
|
||||||
|
</div>
|
||||||
|
<div className="mt-3 text-xs text-black/60 leading-relaxed">
|
||||||
|
The lab dashboard will surface container inventory, networks, and
|
||||||
|
exposure—while hiding IP/ports by default.
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div className="mt-5 grid grid-cols-2 gap-3">
|
||||||
|
<div className="rounded-3xl border border-black/10 p-4 bg-white/60">
|
||||||
|
<div className="text-xs text-black/55">Design</div>
|
||||||
|
<div className="mt-2 text-sm font-medium text-black/85">
|
||||||
|
Liquid glass
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div className="rounded-3xl border border-black/10 p-4 bg-white/60">
|
||||||
|
<div className="text-xs text-black/55">Deploy</div>
|
||||||
|
<div className="mt-2 text-sm font-medium text-black/85">
|
||||||
|
Next.js container
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div className="pointer-events-none absolute -z-10 inset-0 blur-3xl opacity-40">
|
||||||
|
<div className="absolute right-10 top-10 h-48 w-48 rounded-full bg-black/10" />
|
||||||
|
<div className="absolute left-10 bottom-10 h-56 w-56 rounded-full bg-black/10" />
|
||||||
|
</div>
|
||||||
|
</motion.div>
|
||||||
|
</section>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
function MiniStat({ label, value }: { label: string; value: string }) {
|
||||||
|
return (
|
||||||
|
<div className="rounded-3xl border border-black/10 bg-white/70 p-4">
|
||||||
|
<div className="text-xs text-black/55">{label}</div>
|
||||||
|
<div className="mt-1 text-2xl font-semibold tracking-tight text-black/90">
|
||||||
|
{value}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
}
|
||||||
53
components/navbar.tsx
Normal file
@@ -0,0 +1,53 @@
|
|||||||
|
"use client";
|
||||||
|
|
||||||
|
import { useEffect, useState } from "react";
|
||||||
|
import { motion } from "framer-motion";
|
||||||
|
|
||||||
|
export default function Navbar() {
|
||||||
|
const [scrolled, setScrolled] = useState(false);
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
const handler = () => setScrolled(window.scrollY > 8);
|
||||||
|
window.addEventListener("scroll", handler);
|
||||||
|
return () => window.removeEventListener("scroll", handler);
|
||||||
|
}, []);
|
||||||
|
|
||||||
|
return (
|
||||||
|
<motion.header
|
||||||
|
initial={{ opacity: 0, y: -12 }}
|
||||||
|
animate={{ opacity: 1, y: 0 }}
|
||||||
|
transition={{ duration: 0.45 }}
|
||||||
|
className={`sticky top-0 z-50 transition-all duration-300 ${
|
||||||
|
scrolled ? "glass border-b border-black/10" : "bg-transparent"
|
||||||
|
}`}
|
||||||
|
>
|
||||||
|
<div className="mx-auto max-w-6xl px-6 h-16 flex items-center justify-between">
|
||||||
|
<a
|
||||||
|
href="/"
|
||||||
|
className="text-sm font-semibold tracking-tight text-black/85 transition hover:text-black"
|
||||||
|
>
|
||||||
|
dewinnebrian
|
||||||
|
</a>
|
||||||
|
|
||||||
|
<nav className="flex items-center gap-8 text-sm text-black/65">
|
||||||
|
<a href="/#projects" className="transition hover:text-black">
|
||||||
|
Projects
|
||||||
|
</a>
|
||||||
|
<a href="/lab" className="transition hover:text-black">
|
||||||
|
Lab
|
||||||
|
</a>
|
||||||
|
<a
|
||||||
|
href="mailto:website+dewinnebrian@gmail.com"
|
||||||
|
className="transition hover:text-black"
|
||||||
|
>
|
||||||
|
Contact
|
||||||
|
</a>
|
||||||
|
</nav>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{scrolled && (
|
||||||
|
<div className="absolute inset-x-0 bottom-0 h-px bg-gradient-to-r from-transparent via-black/10 to-transparent" />
|
||||||
|
)}
|
||||||
|
</motion.header>
|
||||||
|
);
|
||||||
|
}
|
||||||
59
components/reveal.tsx
Normal file
@@ -0,0 +1,59 @@
|
|||||||
|
"use client";
|
||||||
|
|
||||||
|
import { motion } from "framer-motion";
|
||||||
|
|
||||||
|
export function Reveal({
|
||||||
|
children,
|
||||||
|
delay = 0,
|
||||||
|
}: {
|
||||||
|
children: React.ReactNode;
|
||||||
|
delay?: number;
|
||||||
|
}) {
|
||||||
|
return (
|
||||||
|
<motion.div
|
||||||
|
initial={{ opacity: 0, y: 14 }}
|
||||||
|
whileInView={{ opacity: 1, y: 0 }}
|
||||||
|
viewport={{ once: true, amount: 0.25 }}
|
||||||
|
transition={{ duration: 0.45, ease: "easeOut", delay }}
|
||||||
|
>
|
||||||
|
{children}
|
||||||
|
</motion.div>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
export function Stagger({
|
||||||
|
children,
|
||||||
|
}: {
|
||||||
|
children: React.ReactNode;
|
||||||
|
}) {
|
||||||
|
return (
|
||||||
|
<motion.div
|
||||||
|
initial="hidden"
|
||||||
|
whileInView="show"
|
||||||
|
viewport={{ once: true, amount: 0.2 }}
|
||||||
|
variants={{
|
||||||
|
hidden: {},
|
||||||
|
show: { transition: { staggerChildren: 0.06 } },
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
{children}
|
||||||
|
</motion.div>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
export function StaggerItem({ children }: { children: React.ReactNode }) {
|
||||||
|
return (
|
||||||
|
<motion.div
|
||||||
|
variants={{
|
||||||
|
hidden: { opacity: 0, y: 14 },
|
||||||
|
show: {
|
||||||
|
opacity: 1,
|
||||||
|
y: 0,
|
||||||
|
transition: { duration: 0.42, ease: "easeOut" },
|
||||||
|
},
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
{children}
|
||||||
|
</motion.div>
|
||||||
|
);
|
||||||
|
}
|
||||||
212
components/roadmap-timeline.tsx
Normal file
@@ -0,0 +1,212 @@
|
|||||||
|
"use client";
|
||||||
|
|
||||||
|
import * as React from "react";
|
||||||
|
import { motion } from "framer-motion";
|
||||||
|
import { Reveal } from "@/components/reveal";
|
||||||
|
|
||||||
|
export type RoadmapStatus = "done" | "in-progress" | "next" | "planned";
|
||||||
|
|
||||||
|
export type RoadmapItem = {
|
||||||
|
title: string;
|
||||||
|
description?: string;
|
||||||
|
status: RoadmapStatus;
|
||||||
|
date?: string;
|
||||||
|
bullets?: string[];
|
||||||
|
};
|
||||||
|
|
||||||
|
function statusLabel(status: RoadmapStatus) {
|
||||||
|
switch (status) {
|
||||||
|
case "done":
|
||||||
|
return "Shipped";
|
||||||
|
case "in-progress":
|
||||||
|
return "In progress";
|
||||||
|
case "next":
|
||||||
|
return "Next up";
|
||||||
|
case "planned":
|
||||||
|
return "Planned";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function statusWeight(status: RoadmapStatus) {
|
||||||
|
// Progress-style weighting:
|
||||||
|
// done = 1.0, in-progress = 0.6, next = 0.25, planned = 0.0
|
||||||
|
switch (status) {
|
||||||
|
case "done":
|
||||||
|
return 1.0;
|
||||||
|
case "in-progress":
|
||||||
|
return 0.6;
|
||||||
|
case "next":
|
||||||
|
return 0.25;
|
||||||
|
case "planned":
|
||||||
|
return 0.0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function statusDotClass(status: RoadmapStatus) {
|
||||||
|
// Keep neutral, glassy, specular (no hard colors).
|
||||||
|
// Use opacity + ring + subtle fill to communicate state.
|
||||||
|
switch (status) {
|
||||||
|
case "done":
|
||||||
|
return "bg-white/80 ring-1 ring-white/40 shadow-sm";
|
||||||
|
case "in-progress":
|
||||||
|
return "bg-white/60 ring-1 ring-white/30 shadow-sm";
|
||||||
|
case "next":
|
||||||
|
return "bg-white/35 ring-1 ring-white/25";
|
||||||
|
case "planned":
|
||||||
|
return "bg-white/20 ring-1 ring-white/20";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function statusPillClass(status: RoadmapStatus) {
|
||||||
|
switch (status) {
|
||||||
|
case "done":
|
||||||
|
return "glass px-2.5 py-1 text-[11px] tracking-wide text-black/70";
|
||||||
|
case "in-progress":
|
||||||
|
return "glass px-2.5 py-1 text-[11px] tracking-wide text-black/70";
|
||||||
|
case "next":
|
||||||
|
return "glass px-2.5 py-1 text-[11px] tracking-wide text-black/60";
|
||||||
|
case "planned":
|
||||||
|
return "glass px-2.5 py-1 text-[11px] tracking-wide text-black/55";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
export function RoadmapTimeline({
|
||||||
|
title = "Roadmap",
|
||||||
|
subtitle = "Build plan and delivery cadence for this system.",
|
||||||
|
items,
|
||||||
|
}: {
|
||||||
|
title?: string;
|
||||||
|
subtitle?: string;
|
||||||
|
items: RoadmapItem[];
|
||||||
|
}) {
|
||||||
|
const total = Math.max(items.length, 1);
|
||||||
|
const progress =
|
||||||
|
Math.min(
|
||||||
|
1,
|
||||||
|
Math.max(
|
||||||
|
0,
|
||||||
|
items.reduce((acc, it) => acc + statusWeight(it.status), 0) / total
|
||||||
|
)
|
||||||
|
) || 0;
|
||||||
|
|
||||||
|
const progressPct = Math.round(progress * 100);
|
||||||
|
|
||||||
|
return (
|
||||||
|
<section className="relative overflow-hidden">
|
||||||
|
<div className="glass-strong noise-overlay rounded-3xl p-6 sm:p-8 shadow-sm">
|
||||||
|
<div className="flex flex-col gap-2">
|
||||||
|
<div className="flex items-start justify-between gap-4">
|
||||||
|
<div>
|
||||||
|
<h2 className="text-xl sm:text-2xl font-semibold tracking-tight">
|
||||||
|
{title}
|
||||||
|
</h2>
|
||||||
|
<p className="mt-1 text-sm sm:text-[15px] text-black/60">
|
||||||
|
{subtitle}
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div className="shrink-0 text-right">
|
||||||
|
<div className="text-[11px] uppercase tracking-[0.18em] text-black/45">
|
||||||
|
Progress
|
||||||
|
</div>
|
||||||
|
<div className="mt-1 text-lg font-semibold tabular-nums">
|
||||||
|
{progressPct}%
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div className="mt-3">
|
||||||
|
<div className="glass rounded-2xl p-3">
|
||||||
|
<div className="flex items-center justify-between text-[12px] text-black/55">
|
||||||
|
<span>Planned → Shipped</span>
|
||||||
|
<span className="tabular-nums">{progressPct}%</span>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div className="mt-2 h-2 overflow-hidden rounded-full bg-black/[0.06]">
|
||||||
|
<motion.div
|
||||||
|
className="h-full rounded-full bg-white/70"
|
||||||
|
initial={{ width: 0 }}
|
||||||
|
whileInView={{ width: `${progressPct}%` }}
|
||||||
|
viewport={{ once: true, margin: "-20% 0px -20% 0px" }}
|
||||||
|
transition={{ type: "spring", stiffness: 80, damping: 18 }}
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div className="mt-6 sm:mt-8">
|
||||||
|
<div className="relative">
|
||||||
|
{/* Timeline spine */}
|
||||||
|
<div className="pointer-events-none absolute left-[11px] top-1 bottom-1 w-px bg-black/10" />
|
||||||
|
|
||||||
|
<div className="flex flex-col gap-4">
|
||||||
|
{items.map((it, idx) => (
|
||||||
|
<Reveal key={`${it.title}-${idx}`}>
|
||||||
|
<div className="relative pl-10">
|
||||||
|
<div
|
||||||
|
className={[
|
||||||
|
"absolute left-[2px] top-[10px] h-[18px] w-[18px] rounded-full",
|
||||||
|
statusDotClass(it.status),
|
||||||
|
].join(" ")}
|
||||||
|
/>
|
||||||
|
|
||||||
|
<div className="glass rounded-3xl p-4 sm:p-5">
|
||||||
|
<div className="flex flex-wrap items-center justify-between gap-3">
|
||||||
|
<div className="min-w-0">
|
||||||
|
<div className="flex flex-wrap items-center gap-2">
|
||||||
|
<h3 className="text-[15px] sm:text-base font-semibold tracking-tight">
|
||||||
|
{it.title}
|
||||||
|
</h3>
|
||||||
|
<span
|
||||||
|
className={[
|
||||||
|
"rounded-full",
|
||||||
|
statusPillClass(it.status),
|
||||||
|
].join(" ")}
|
||||||
|
>
|
||||||
|
{statusLabel(it.status)}
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{(it.date || it.description) && (
|
||||||
|
<div className="mt-1 text-sm text-black/60">
|
||||||
|
{it.date ? (
|
||||||
|
<span className="tabular-nums">{it.date}</span>
|
||||||
|
) : null}
|
||||||
|
{it.date && it.description ? (
|
||||||
|
<span className="mx-2 text-black/25">•</span>
|
||||||
|
) : null}
|
||||||
|
{it.description ? <span>{it.description}</span> : null}
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div className="shrink-0 text-[12px] text-black/45 tabular-nums">
|
||||||
|
{String(idx + 1).padStart(2, "0")}/{String(items.length).padStart(2, "0")}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{it.bullets?.length ? (
|
||||||
|
<ul className="mt-3 grid gap-2 text-sm text-black/70">
|
||||||
|
{it.bullets.map((b, bi) => (
|
||||||
|
<li key={`${it.title}-b-${bi}`} className="flex gap-2">
|
||||||
|
<span className="mt-[7px] h-1.5 w-1.5 rounded-full bg-black/25" />
|
||||||
|
<span className="min-w-0">{b}</span>
|
||||||
|
</li>
|
||||||
|
))}
|
||||||
|
</ul>
|
||||||
|
) : null}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</Reveal>
|
||||||
|
))}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{/* Specular highlight */}
|
||||||
|
<div className="pointer-events-none specular absolute -top-24 -right-24 h-64 w-64 rounded-full opacity-50 blur-2xl" />
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
);
|
||||||
|
}
|
||||||
40
components/scroll-hero.tsx
Normal file
@@ -0,0 +1,40 @@
|
|||||||
|
"use client";
|
||||||
|
|
||||||
|
import Image from "next/image";
|
||||||
|
import { motion, useScroll, useTransform } from "framer-motion";
|
||||||
|
import { useRef } from "react";
|
||||||
|
|
||||||
|
export default function ScrollHero({
|
||||||
|
src,
|
||||||
|
alt,
|
||||||
|
}: {
|
||||||
|
src: string;
|
||||||
|
alt: string;
|
||||||
|
}) {
|
||||||
|
const ref = useRef<HTMLDivElement | null>(null);
|
||||||
|
const { scrollYProgress } = useScroll({
|
||||||
|
target: ref,
|
||||||
|
offset: ["start start", "end start"],
|
||||||
|
});
|
||||||
|
|
||||||
|
// Tech-style: slightly more noticeable than Apple A, but still classy
|
||||||
|
const scale = useTransform(scrollYProgress, [0, 1], [1.05, 1.0]);
|
||||||
|
const y = useTransform(scrollYProgress, [0, 1], [0, 18]);
|
||||||
|
|
||||||
|
return (
|
||||||
|
<div ref={ref} className="rounded-3xl glass-strong specular overflow-hidden">
|
||||||
|
<div className="relative h-[320px] md:h-[420px] w-full">
|
||||||
|
<motion.div style={{ scale, y }} className="absolute inset-0">
|
||||||
|
<Image
|
||||||
|
src={src}
|
||||||
|
alt={alt}
|
||||||
|
fill
|
||||||
|
className="object-cover"
|
||||||
|
priority
|
||||||
|
/>
|
||||||
|
<div className="absolute inset-0 bg-gradient-to-t from-black/15 via-black/0 to-transparent pointer-events-none" />
|
||||||
|
</motion.div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
}
|
||||||
18
eslint.config.mjs
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
import { defineConfig, globalIgnores } from "eslint/config";
|
||||||
|
import nextVitals from "eslint-config-next/core-web-vitals";
|
||||||
|
import nextTs from "eslint-config-next/typescript";
|
||||||
|
|
||||||
|
const eslintConfig = defineConfig([
|
||||||
|
...nextVitals,
|
||||||
|
...nextTs,
|
||||||
|
// Override default ignores of eslint-config-next.
|
||||||
|
globalIgnores([
|
||||||
|
// Default ignores of eslint-config-next:
|
||||||
|
".next/**",
|
||||||
|
"out/**",
|
||||||
|
"build/**",
|
||||||
|
"next-env.d.ts",
|
||||||
|
]),
|
||||||
|
]);
|
||||||
|
|
||||||
|
export default eslintConfig;
|
||||||
7
next.config.ts
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
import type { NextConfig } from "next";
|
||||||
|
|
||||||
|
const nextConfig: NextConfig = {
|
||||||
|
output: "standalone",
|
||||||
|
};
|
||||||
|
|
||||||
|
export default nextConfig;
|
||||||
7078
package-lock.json
generated
Normal file
30
package.json
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
{
|
||||||
|
"name": "portfolio",
|
||||||
|
"version": "0.1.0",
|
||||||
|
"private": true,
|
||||||
|
"scripts": {
|
||||||
|
"dev": "next dev",
|
||||||
|
"build": "next build",
|
||||||
|
"start": "next start",
|
||||||
|
"lint": "eslint"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"framer-motion": "^12.34.0",
|
||||||
|
"next": "16.1.6",
|
||||||
|
"postcss-cli": "^11.0.1",
|
||||||
|
"react": "19.2.3",
|
||||||
|
"react-dom": "19.2.3"
|
||||||
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
"@tailwindcss/postcss": "^4.1.18",
|
||||||
|
"@types/node": "^20",
|
||||||
|
"@types/react": "^19",
|
||||||
|
"@types/react-dom": "^19",
|
||||||
|
"autoprefixer": "^10.4.24",
|
||||||
|
"eslint": "^9",
|
||||||
|
"eslint-config-next": "16.1.6",
|
||||||
|
"postcss": "^8.5.6",
|
||||||
|
"tailwindcss": "^4.1.18",
|
||||||
|
"typescript": "^5"
|
||||||
|
}
|
||||||
|
}
|
||||||
6
postcss.config.js
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
module.exports = {
|
||||||
|
plugins: {
|
||||||
|
"@tailwindcss/postcss": {},
|
||||||
|
autoprefixer: {},
|
||||||
|
},
|
||||||
|
};
|
||||||
5
postcss.config.mjs
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
export default {
|
||||||
|
plugins: {
|
||||||
|
"@tailwindcss/postcss": {},
|
||||||
|
},
|
||||||
|
}
|
||||||
1
public/file.svg
Normal file
@@ -0,0 +1 @@
|
|||||||
|
<svg fill="none" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M14.5 13.5V5.41a1 1 0 0 0-.3-.7L9.8.29A1 1 0 0 0 9.08 0H1.5v13.5A2.5 2.5 0 0 0 4 16h8a2.5 2.5 0 0 0 2.5-2.5m-1.5 0v-7H8v-5H3v12a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1M9.5 5V2.12L12.38 5zM5.13 5h-.62v1.25h2.12V5zm-.62 3h7.12v1.25H4.5zm.62 3h-.62v1.25h7.12V11z" clip-rule="evenodd" fill="#666" fill-rule="evenodd"/></svg>
|
||||||
|
After Width: | Height: | Size: 391 B |
1
public/globe.svg
Normal file
@@ -0,0 +1 @@
|
|||||||
|
<svg fill="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><g clip-path="url(#a)"><path fill-rule="evenodd" clip-rule="evenodd" d="M10.27 14.1a6.5 6.5 0 0 0 3.67-3.45q-1.24.21-2.7.34-.31 1.83-.97 3.1M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16m.48-1.52a7 7 0 0 1-.96 0H7.5a4 4 0 0 1-.84-1.32q-.38-.89-.63-2.08a40 40 0 0 0 3.92 0q-.25 1.2-.63 2.08a4 4 0 0 1-.84 1.31zm2.94-4.76q1.66-.15 2.95-.43a7 7 0 0 0 0-2.58q-1.3-.27-2.95-.43a18 18 0 0 1 0 3.44m-1.27-3.54a17 17 0 0 1 0 3.64 39 39 0 0 1-4.3 0 17 17 0 0 1 0-3.64 39 39 0 0 1 4.3 0m1.1-1.17q1.45.13 2.69.34a6.5 6.5 0 0 0-3.67-3.44q.65 1.26.98 3.1M8.48 1.5l.01.02q.41.37.84 1.31.38.89.63 2.08a40 40 0 0 0-3.92 0q.25-1.2.63-2.08a4 4 0 0 1 .85-1.32 7 7 0 0 1 .96 0m-2.75.4a6.5 6.5 0 0 0-3.67 3.44 29 29 0 0 1 2.7-.34q.31-1.83.97-3.1M4.58 6.28q-1.66.16-2.95.43a7 7 0 0 0 0 2.58q1.3.27 2.95.43a18 18 0 0 1 0-3.44m.17 4.71q-1.45-.12-2.69-.34a6.5 6.5 0 0 0 3.67 3.44q-.65-1.27-.98-3.1" fill="#666"/></g><defs><clipPath id="a"><path fill="#fff" d="M0 0h16v16H0z"/></clipPath></defs></svg>
|
||||||
|
After Width: | Height: | Size: 1.0 KiB |
1
public/next.svg
Normal file
@@ -0,0 +1 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 394 80"><path fill="#000" d="M262 0h68.5v12.7h-27.2v66.6h-13.6V12.7H262V0ZM149 0v12.7H94v20.4h44.3v12.6H94v21h55v12.6H80.5V0h68.7zm34.3 0h-17.8l63.8 79.4h17.9l-32-39.7 32-39.6h-17.9l-23 28.6-23-28.6zm18.3 56.7-9-11-27.1 33.7h17.8l18.3-22.7z"/><path fill="#000" d="M81 79.3 17 0H0v79.3h13.6V17l50.2 62.3H81Zm252.6-.4c-1 0-1.8-.4-2.5-1s-1.1-1.6-1.1-2.6.3-1.8 1-2.5 1.6-1 2.6-1 1.8.3 2.5 1a3.4 3.4 0 0 1 .6 4.3 3.7 3.7 0 0 1-3 1.8zm23.2-33.5h6v23.3c0 2.1-.4 4-1.3 5.5a9.1 9.1 0 0 1-3.8 3.5c-1.6.8-3.5 1.3-5.7 1.3-2 0-3.7-.4-5.3-1s-2.8-1.8-3.7-3.2c-.9-1.3-1.4-3-1.4-5h6c.1.8.3 1.6.7 2.2s1 1.2 1.6 1.5c.7.4 1.5.5 2.4.5 1 0 1.8-.2 2.4-.6a4 4 0 0 0 1.6-1.8c.3-.8.5-1.8.5-3V45.5zm30.9 9.1a4.4 4.4 0 0 0-2-3.3 7.5 7.5 0 0 0-4.3-1.1c-1.3 0-2.4.2-3.3.5-.9.4-1.6 1-2 1.6a3.5 3.5 0 0 0-.3 4c.3.5.7.9 1.3 1.2l1.8 1 2 .5 3.2.8c1.3.3 2.5.7 3.7 1.2a13 13 0 0 1 3.2 1.8 8.1 8.1 0 0 1 3 6.5c0 2-.5 3.7-1.5 5.1a10 10 0 0 1-4.4 3.5c-1.8.8-4.1 1.2-6.8 1.2-2.6 0-4.9-.4-6.8-1.2-2-.8-3.4-2-4.5-3.5a10 10 0 0 1-1.7-5.6h6a5 5 0 0 0 3.5 4.6c1 .4 2.2.6 3.4.6 1.3 0 2.5-.2 3.5-.6 1-.4 1.8-1 2.4-1.7a4 4 0 0 0 .8-2.4c0-.9-.2-1.6-.7-2.2a11 11 0 0 0-2.1-1.4l-3.2-1-3.8-1c-2.8-.7-5-1.7-6.6-3.2a7.2 7.2 0 0 1-2.4-5.7 8 8 0 0 1 1.7-5 10 10 0 0 1 4.3-3.5c2-.8 4-1.2 6.4-1.2 2.3 0 4.4.4 6.2 1.2 1.8.8 3.2 2 4.3 3.4 1 1.4 1.5 3 1.5 5h-5.8z"/></svg>
|
||||||
|
After Width: | Height: | Size: 1.3 KiB |
BIN
public/noise.png
Normal file
|
After Width: | Height: | Size: 433 KiB |
BIN
public/projects/Model.png
Normal file
|
After Width: | Height: | Size: 303 KiB |
BIN
public/projects/image_2026-02-21_112603143.png
Normal file
|
After Width: | Height: | Size: 46 KiB |
BIN
public/projects/macropad.png
Normal file
|
After Width: | Height: | Size: 1.8 MiB |
BIN
public/projects/unraid_docker.png
Normal file
|
After Width: | Height: | Size: 1.7 MiB |
1
public/vercel.svg
Normal file
@@ -0,0 +1 @@
|
|||||||
|
<svg fill="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1155 1000"><path d="m577.3 0 577.4 1000H0z" fill="#fff"/></svg>
|
||||||
|
After Width: | Height: | Size: 128 B |
1
public/window.svg
Normal file
@@ -0,0 +1 @@
|
|||||||
|
<svg fill="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill-rule="evenodd" clip-rule="evenodd" d="M1.5 2.5h13v10a1 1 0 0 1-1 1h-11a1 1 0 0 1-1-1zM0 1h16v11.5a2.5 2.5 0 0 1-2.5 2.5h-11A2.5 2.5 0 0 1 0 12.5zm3.75 4.5a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5M7 4.75a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0m1.75.75a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5" fill="#666"/></svg>
|
||||||
|
After Width: | Height: | Size: 385 B |
11
tailwind.config.js
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
/** @type {import('tailwindcss').Config} */
|
||||||
|
module.exports = {
|
||||||
|
content: [
|
||||||
|
"./app/**/*.{js,ts,jsx,tsx,mdx}",
|
||||||
|
"./components/**/*.{js,ts,jsx,tsx,mdx}",
|
||||||
|
],
|
||||||
|
theme: {
|
||||||
|
extend: {},
|
||||||
|
},
|
||||||
|
plugins: [],
|
||||||
|
};
|
||||||
35
tsconfig.json
Normal file
@@ -0,0 +1,35 @@
|
|||||||
|
{
|
||||||
|
"compilerOptions": {
|
||||||
|
"target": "ES2017",
|
||||||
|
"lib": ["dom", "dom.iterable", "esnext"],
|
||||||
|
"allowJs": true,
|
||||||
|
"skipLibCheck": true,
|
||||||
|
"strict": true,
|
||||||
|
"baseUrl": ".",
|
||||||
|
"noEmit": true,
|
||||||
|
"esModuleInterop": true,
|
||||||
|
"module": "esnext",
|
||||||
|
"moduleResolution": "bundler",
|
||||||
|
"resolveJsonModule": true,
|
||||||
|
"isolatedModules": true,
|
||||||
|
"jsx": "react-jsx",
|
||||||
|
"incremental": true,
|
||||||
|
"plugins": [
|
||||||
|
{
|
||||||
|
"name": "next"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"paths": {
|
||||||
|
"@/*": ["./*"]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"include": [
|
||||||
|
"next-env.d.ts",
|
||||||
|
"**/*.ts",
|
||||||
|
"**/*.tsx",
|
||||||
|
".next/types/**/*.ts",
|
||||||
|
".next/dev/types/**/*.ts",
|
||||||
|
"**/*.mts"
|
||||||
|
],
|
||||||
|
"exclude": ["node_modules"]
|
||||||
|
}
|
||||||