Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .eslintrc.json

This file was deleted.

47 changes: 47 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: CI

on:
pull_request:
push:
branches: [master]

concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true

jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
# Full history so commitlint can walk the PR's commits.
fetch-depth: 0

- uses: oven-sh/setup-bun@v2
with:
bun-version-file: package.json

- run: bun install --frozen-lockfile

- name: Lint commits (commitlint)
if: github.event_name == 'pull_request'
run: >-
bunx commitlint --verbose
--from ${{ github.event.pull_request.base.sha }}
--to ${{ github.event.pull_request.head.sha }}

- name: Lint PR title (commitlint)
if: github.event_name == 'pull_request'
env:
PR_TITLE: ${{ github.event.pull_request.title }}
run: echo "$PR_TITLE" | bunx commitlint --verbose

- name: Lint (oxlint)
run: bun run lint

- name: Format check (oxfmt)
run: bun run format:check

- name: Typecheck
run: bun run typecheck
47 changes: 0 additions & 47 deletions .github/workflows/validate.yml

This file was deleted.

3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@
npm-debug.log*
yarn-debug.log*
yarn-error.log*
.pnpm-debug.log*

# env files (can opt-in for commiting if needed)
# env files (can opt-in for committing if needed)
.env*

# vercel
Expand Down
1 change: 1 addition & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
bunx --no -- commitlint --edit "$1"
6 changes: 6 additions & 0 deletions .oxfmtrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"$schema": "./node_modules/oxfmt/configuration_schema.json",
"printWidth": 100,
"sortPackageJson": false,
"ignorePatterns": [".next", "node_modules", "bun.lock", "next-env.d.ts"]
}
30 changes: 30 additions & 0 deletions .oxlintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"plugins": ["typescript", "unicorn", "oxc", "react", "nextjs", "jsx-a11y", "import"],
"categories": {
"correctness": "error"
},
"rules": {
"react/rules-of-hooks": "error",
"react/exhaustive-deps": "warn",
"react/react-in-jsx-scope": "off",
"nextjs/no-html-link-for-pages": "error",
"nextjs/no-sync-scripts": "error",
"typescript/no-explicit-any": "error",
// The command palette (combobox + aria-activedescendant), the process tabs (roving tabindex)
// and the native <dialog> backdrop are deliberate ARIA widgets these rules misread.
"jsx-a11y/prefer-tag-over-role": "off",
"jsx-a11y/interactive-supports-focus": "off",
"jsx-a11y/click-events-have-key-events": "off",
"jsx-a11y/no-noninteractive-element-interactions": "off"
},
"overrides": [
{
// React Three Fiber mutates Three.js objects inside useFrame by design;
// the React Compiler immutability rule does not apply to the 3D layer.
"files": ["src/features/three/**/*.tsx"],
"rules": { "react/immutability": "off" }
}
],
"ignorePatterns": [".next/**", "out/**", "build/**", "next-env.d.ts"]
}
3 changes: 0 additions & 3 deletions .prettierignore

This file was deleted.

6 changes: 0 additions & 6 deletions .prettierrc.mjs

This file was deleted.

31 changes: 31 additions & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<!-- BEGIN:nextjs-agent-rules -->

# This is NOT the Next.js you know

This version has breaking changes — APIs, conventions, and file structure may all differ from your training data. Read the relevant guide in `node_modules/next/dist/docs/` (resolved from this file's directory; in monorepos the `next` package may not be visible from the repo root) before writing any code. Heed deprecation notices.

This block is written and re-added by `next dev` — verify at `node_modules/next/dist/server/lib/generate-agent-files.js`. Removing it from a diff only re-creates the uncommitted change; committing it with your work keeps the tree clean.

<!-- END:nextjs-agent-rules -->

# Project: thibaultfriedrich.io

Personal portfolio. Next.js 16 App Router, TypeScript strict, Tailwind CSS v4, React Three Fiber,
GSAP, Lenis. Deployed on Vercel.

- **Bun** only: `bun install`, `bun run dev`, `bun run check` (lint + format check + typecheck +
build). Run `bun run check` before calling work done.
- **Lint/format**: oxlint (`.oxlintrc.json`) and oxfmt (`.oxfmtrc.json`, print width 100). Run
`bun run format` before pushing.
- **Commits**: Conventional Commits (`type(scope): subject`), enforced by commitlint
(`commitlint.config.ts`) via husky `commit-msg` hook and CI. PR titles too (squash merges).
- **Source lives in `src/`**; `@/*` maps to `src/*`. Layout: `src/app` routes, `src/content` typed
content, `src/features/<feature>`, `src/ui` shared primitives, `src/lib` helpers. See README.
- **Content** is data in `src/content/*.ts`; edit it there, never hard-code copy in components.
Mark missing content with `TODO`.
- **Design**: read `DESIGN.md` before UI work. Tokens live in `src/app/globals.css` (`@theme`) and
`src/lib/motion.ts`. One accent color, no italic, no serif, everything honors
`prefers-reduced-motion`, no horizontal scroll down to 320 px.
- **3D**: one persistent canvas; keep the GPU budget in `DESIGN.md` (no transmission materials,
pixel ratio ≤ 1.5).
- Feature-based structure, small composable components, no `any`, semantic HTML, WCAG 2.2 AA.
1 change: 1 addition & 0 deletions CLAUDE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
@AGENTS.md
131 changes: 131 additions & 0 deletions DESIGN.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,131 @@
# Design — thibaultfriedrich.io

Luxurious, modern and dark. The site is its own case study: it has to prove expert web building
through its construction, so visuals, performance and accessibility carry equal weight.

Source of truth for values: `src/app/globals.css` (`@theme`, CSS) and `src/lib/motion.ts` (GSAP).
This file explains the intent; change the tokens there, not here.

## References

| Area | Reference | What we borrow |
| --------------- | ---------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Hero and chrome | [gravity-design.de](https://gravity-design.de/) | Full-bleed B&W portrait on charcoal, floating objects to play with, a few lines of small text, a one-line accent tagline beside the head, thin footer line. No nav bar. |
| Sections | [raycast.com](https://raycast.com), linear.app, vercel.com | Centered section headings, macOS app windows with traffic lights, launcher rows with keycaps, white pill buttons, glowing diagonal stripes, faint grids. |
| 3D objects | [lusion.co](https://lusion.co/) | Sculpted, physically lit objects in a few sections only. |
| Transitions | [igloo.inc](https://www.igloo.inc/) | One continuous 3D world the camera flies through as you scroll. |

## Tokens

### Color

One accent, everything else is neutral. The accent is a token so it can be swapped in one place.

| Token | Value | Use |
| ------------- | ---------------------- | ----------------------------------------------------- |
| `bg` | `#08090A` | Page |
| `surface` | `#0F1011` | Cards, windows |
| `surface-2` | `#16171A` | Raised surfaces |
| `line` | `rgb(255 255 255/.08)` | Borders, grid lines |
| `line-strong` | `rgb(255 255 255/.16)` | Hovered borders |
| `fg` | `#F7F8F8` | Primary text |
| `muted` | `#8A8F98` | Secondary text |
| `faint` | `#80858E` | Lowest text tone; still passes WCAG AA on bg/surfaces |
| `accent` | `#7C5CFF` (violet) | Wordmark, active state, labels, focus ring, selection |
| `accent-soft` | `rgb(124 92 255/.16)` | Accent tints |

### Type

- **Geist** for everything, **Geist Mono** for labels, metadata and keycaps.
- **No italic and no serif anywhere** — `em`, `i`, `cite`… are reset to normal in `globals.css`.
- Tight tracking on large sizes (`--tracking-display: -0.04em`), wide uppercase mono labels
(`--tracking-label: 0.2em`).
- Section heading pattern: small uppercase accent label → bold white title → gray subtitle
(`src/ui/SectionHeading.tsx`).

### Shape

`--radius-key: 6px` (keycaps) · `--radius-control: 10px` (buttons, inputs) ·
`--radius-window: 18px` (app windows, cards).

### Motion

- One easing: `cubic-bezier(0.16, 1, 0.3, 1)` (`--ease-out-expo`, GSAP `expo.out`).
- Durations: fast 160 ms, base 400 ms, slow 900 ms; stagger 80 ms.
- Scroll reveals are CSS scroll-driven animations (`[data-reveal]`), no JS.
- Everything honors `prefers-reduced-motion`: reveals show immediately, physics keys start at
rest, the grain and scroll cue stop.

## Surfaces and effects

- **Film grain** over the whole page (`.grain`) so the black never looks flat.
- **Glow cards** (`.glow-card`, `src/ui/GlowCard.tsx`): a glow follows the cursor.
- **App windows** (`.rc-window`, `src/ui/AppWindow.tsx`): gradient body, inner top highlight,
deep shadow, traffic-light dots that color on hover.
- **Launcher rows** (`.rc-row`) and **keycaps** (`.keycap`, `src/ui/Keycap.tsx`).
- **Buttons**: white pill (`.rc-button`) and ghost (`.rc-button-ghost`).
- **Stripes** (`.stripes`) and **grid** (`.grid-bg`) as quiet background texture.
- **No flat black page.** Each landing section has its own atmosphere (`.backdrop-*`,
`src/ui/Backdrop.tsx`) that fades into its neighbors:

| Section | Atmosphere |
| ---------- | ------------------------------------------- |
| impact | violet / blue |
| projects | one tint per project (violet → gold → blue) |
| experience | blue with faint lines |
| services | green / violet |
| skills | night sky with stars |
| speaking | stage spotlight |
| writing | warm amber |
| follow | pink / violet |
| contact | violet glow rising from the bottom |

## Chrome

- **Header**: lowercase violet wordmark `thibault.` left, a few quiet text links right
(Projects, Skills, Writing & Talks, Contact). Transparent; a soft backdrop appears once the page
scrolls.
- **Bottom bar** on every page: thin line, copyright left, current section name centered
(`drag to throw · scroll to fly` in the hero), socials right.
- **⌘K command palette**, Raycast-style: navigate, switch audience, copy email, download CV,
open socials.

## Hero

- B&W cut-out portrait centered at the bottom, name huge and faint behind it.
- Small name block on the left: name, one-line pitch, accent text link for the main action.
- Audience switch as one line of text, `hire · freelance · learn` (lowercase, active word in the
accent, others dimmed, "what brings you here?" above). Beside the head from `lg`; bottom-left
below that so it never widens the page.
- Throwable 3D keycaps (`T F ⌘ K {} </> Enter ⇧ UX Esc =>`, a React atom, a TypeScript cube, a
pen) with Rapier physics, colliding with the silhouette and resting away from the text.
- First scroll: the camera flies through the keys while the name blurs away.

## Three audiences

`hire`, `freelance` (`build`) and `learn` (`follow`) share one site. The choice lives in the URL
(`?for=…`) and changes the hero pitch, the main CTA and the order of sections. Copy and order live
in `src/content/audiences.ts`.

## 3D concept: "code becomes product"

Keycaps are the recurring motif. In each 3D section a swarm of instanced keycaps flies in, lands
on the surface of a real object (points from `MeshSurfaceSampler`), then a scanline turns the
wireframe blueprint into the solid model, all driven by scroll. Between sections a floor of
keycaps ripples with scroll speed.

### Budget (keep Safari alive)

- One persistent canvas fixed behind the DOM; HTML stays the source of content and 3D objects
follow empty slots (`id="obj-…"`).
- Mount after hydration, only with WebGL; `requestIdleCallback` needs a fallback on Safari.
- Low-poly instanced keys, pixel ratio capped at 1.5, **no transmission/refraction materials**,
small procedural environment lighting.
- Without WebGL or with reduced motion: static and readable.

## Quality bar

- Lighthouse 90+ mobile, 95+ desktop. LCP < 2.5 s, CLS < 0.05, INP < 200 ms.
- WCAG 2.2 AA: keyboard everywhere, visible focus ring (accent, 2 px, 3 px offset), alt text,
checked contrast.
- Responsive down to 320 px with no horizontal scroll.
Loading
Loading