Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f7bd7df579 | ||
|
|
d73ea4958f | ||
|
|
e8861e0b01 | ||
|
|
89d4de8df0 |
No files matched your search
@@ -0,0 +1,9 @@
|
||||
node_modules
|
||||
server/node_modules
|
||||
dist
|
||||
secrets
|
||||
.git
|
||||
.claude
|
||||
.env*
|
||||
.gh-*.json
|
||||
*.log
|
||||
@@ -1,11 +1,13 @@
|
||||
# Copy this file to secrets/.env and fill in your own values.
|
||||
# secrets/ is gitignored, so real values never leave your machine.
|
||||
# For running WITHOUT Docker (npm run dev / npm start): copy this file to
|
||||
# secrets/.env and fill in your own values. secrets/ is gitignored.
|
||||
# Docker does NOT read this file; set the same values in docker-compose.yml.
|
||||
VITE_NAME=Your Name
|
||||
VITE_LOCATION=City, Country
|
||||
VITE_EMAIL=you@example.com
|
||||
VITE_GITHUB_USER=your-github-username
|
||||
VITE_LINKEDIN=https://www.linkedin.com/in/your-profile
|
||||
VITE_CV_URL=/CV/Bob-CV.pdf
|
||||
VITE_CV_URL=/CV/your-cv.pdf
|
||||
VITE_UNIVERSITY=Your University
|
||||
# Demo mode: leave VITE_EMAIL, VITE_LINKEDIN and VITE_CV_URL empty to hide those buttons.
|
||||
|
||||
# Server-side only (server/index.js). Deliberately not prefixed with VITE_,
|
||||
# so Vite never inlines these into the browser bundle.
|
||||
@@ -14,7 +16,7 @@ VITE_CV_URL=/CV/Bob-CV.pdf
|
||||
# only thing that ever sees it now, but keep it minimal-scope regardless.
|
||||
GITHUB_TOKEN=
|
||||
# Exact origin(s) allowed to call /api/* (your deployed domain).
|
||||
ALLOWED_ORIGIN=https://mudabbir.co.uk
|
||||
ALLOWED_ORIGIN=https://example.com
|
||||
PORT=3001
|
||||
|
||||
# Encryption in transit. Pick ONE:
|
||||
@@ -23,3 +25,4 @@ PORT=3001
|
||||
# TLS_KEY=/etc/letsencrypt/live/example.com/privkey.pem
|
||||
# b) Behind a TLS reverse proxy: redirect any plain-HTTP request to HTTPS.
|
||||
# FORCE_HTTPS=true
|
||||
|
||||
@@ -19,3 +19,12 @@ public/CV/*
|
||||
.claude/
|
||||
.gh-*.json
|
||||
scripts/diff-tracker.mjs
|
||||
|
||||
# Real values for the container (compose merges the override file in)
|
||||
docker-compose.override.yml
|
||||
/.env
|
||||
|
||||
# Screenshot capture: cloned source for git-based projects, and raw hand-taken shots
|
||||
# (the processed images in public/images/projects/ are kept)
|
||||
.capture-work/
|
||||
scripts/capture/manual/*/
|
||||
@@ -1,20 +1,30 @@
|
||||
# Deploying
|
||||
|
||||
## Where the settings live
|
||||
| Run mode | Name, email, links, GitHub token come from |
|
||||
|---|---|
|
||||
| Without Docker (`npm run dev`, `npm start`) | `secrets/.env` (copy `.env.example`) |
|
||||
| Docker | the `environment:` block in `docker-compose.yml` only |
|
||||
|
||||
Everything else (About text, experience, projects, skills...) is in `src/data/*.json`.
|
||||
|
||||
## Adding project images
|
||||
1. Copy the files into `public/images/projects/`.
|
||||
2. Add the filenames under the project's id in `src/project-images.json`.
|
||||
2. Add the filenames to that project's `images` list in `src/data/projects.json`.
|
||||
Several filenames = carousel.
|
||||
|
||||
## First-time server setup
|
||||
1. `git clone` the repo, then create `secrets/.env` from `.env.example`
|
||||
(set `VITE_*` values, `GITHUB_TOKEN` (read-only PAT), `ALLOWED_ORIGIN`, and
|
||||
either `TLS_CERT`/`TLS_KEY` or `FORCE_HTTPS=true` behind a TLS proxy).
|
||||
2. Put your CV at `public/CV/` (gitignored, so copy it over manually).
|
||||
3. `npm run deploy` — installs, builds, and starts the server (default port 3001).
|
||||
## Docker
|
||||
```
|
||||
docker compose up -d --build # or: npm run docker
|
||||
```
|
||||
The container is non-root, read-only, capability-less and resource-capped. It publishes
|
||||
port 3001 only; Nginx Proxy Manager sits in front for TLS and the public side.
|
||||
The compose defaults are the public details from the CV. Put the one secret, `GITHUB_TOKEN`,
|
||||
in a gitignored root `.env` file (compose reads it automatically), never in the compose file.
|
||||
The CV is mounted from `public/CV` at run time and is never baked into the image.
|
||||
|
||||
## Updating
|
||||
## Without Docker
|
||||
```
|
||||
git pull && npm run setup && npm run build
|
||||
npm run deploy # install, build, start on :3001
|
||||
```
|
||||
then restart the process (systemd/pm2). The token lives only in `secrets/.env`
|
||||
and is only ever used by `server/index.js`; the browser never sees it.
|
||||
Update with `git pull && npm run setup && npm run build`, then restart the process.
|
||||
@@ -0,0 +1,26 @@
|
||||
# Stage 1: build the static site. Nothing personal is baked in: name, email and
|
||||
# links are read at start-up from `docker run -e VITE_...` (see server/index.js).
|
||||
FROM node:22-alpine AS build
|
||||
WORKDIR /app
|
||||
COPY package*.json ./
|
||||
RUN npm ci
|
||||
COPY . .
|
||||
# Never ship a CV inside the image; mount it at run time (see scripts/start.mjs).
|
||||
RUN find public/CV -type f ! -name README.txt -delete
|
||||
RUN npm run build
|
||||
|
||||
# Stage 2: tiny runtime. Only the server's prod deps + built site, non-root user.
|
||||
FROM node:22-alpine
|
||||
ENV NODE_ENV=production
|
||||
WORKDIR /app
|
||||
COPY server/package*.json server/
|
||||
RUN npm ci --omit=dev --prefix server && npm cache clean --force
|
||||
COPY server server
|
||||
COPY --from=build /app/dist dist
|
||||
USER node
|
||||
EXPOSE 3001
|
||||
# Everything is supplied with `docker run -e` / --env-file, never baked in:
|
||||
# VITE_NAME, VITE_EMAIL, VITE_GITHUB_USER, VITE_LINKEDIN, VITE_CV_URL, VITE_UNIVERSITY
|
||||
# GITHUB_TOKEN, ALLOWED_ORIGIN, FORCE_HTTPS, PORT
|
||||
HEALTHCHECK --interval=30s --timeout=3s CMD wget -qO /dev/null --header "X-Forwarded-Proto: https" http://127.0.0.1:3001/ || exit 1
|
||||
CMD ["node", "server/index.js"]
|
||||
@@ -0,0 +1,39 @@
|
||||
# Container deployment: docker compose up -d --build (or: npm run docker)
|
||||
#
|
||||
# Inside the container the site reads ONLY the values below. secrets/ is never
|
||||
# copied into the image (.dockerignore), so nothing personal lives in it.
|
||||
# Running without Docker (npm run dev / npm start) reads secrets/.env instead.
|
||||
#
|
||||
# The defaults below are the public details from the CV. The one secret,
|
||||
# GITHUB_TOKEN, is never written here: put it in a gitignored root .env file
|
||||
# (compose substitutes ${VARS} from it), or in docker-compose.override.yml.
|
||||
services:
|
||||
portfolio:
|
||||
build: .
|
||||
image: portfolio
|
||||
container_name: portfolio
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
# Nginx Proxy Manager handles TLS and the public side, so this is a plain mapping.
|
||||
- "3001:3001"
|
||||
environment:
|
||||
VITE_NAME: "${VITE_NAME:-Mudabbir}"
|
||||
VITE_EMAIL: "${VITE_EMAIL:-mudabbira.uk@gmail.com}" # empty hides the email button
|
||||
VITE_GITHUB_USER: "${VITE_GITHUB_USER:-mudabbir-ahmad}"
|
||||
VITE_LINKEDIN: "${VITE_LINKEDIN:-https://www.linkedin.com/in/mudabbir-ahmad-4245a0281}" # empty hides the LinkedIn button
|
||||
VITE_UNIVERSITY: "${VITE_UNIVERSITY:-Kingston University}"
|
||||
VITE_CV_URL: "${VITE_CV_URL:-/CV/my_cv.pdf}" # e.g. /CV/your-cv.pdf; empty hides CV buttons
|
||||
GITHUB_TOKEN: "${GITHUB_TOKEN:-}" # read-only PAT, set in the gitignored root .env; empty disables the contribution graph
|
||||
ALLOWED_ORIGIN: "${ALLOWED_ORIGIN:-http://localhost:3001}"
|
||||
SITE_URL: "${SITE_URL:-http://localhost:3001}" # public address, used in link-preview tags
|
||||
FORCE_HTTPS: "${FORCE_HTTPS:-false}"
|
||||
# Only if you set VITE_CV_URL: the CV is never baked into the image.
|
||||
volumes:
|
||||
- ./public/CV:/app/dist/CV:ro
|
||||
read_only: true
|
||||
tmpfs: [/tmp]
|
||||
cap_drop: [ALL]
|
||||
security_opt: ["no-new-privileges:true"]
|
||||
pids_limit: 100
|
||||
mem_limit: 256m
|
||||
cpus: 0.5
|
||||
@@ -2,25 +2,34 @@
|
||||
<html lang="en-GB">
|
||||
<head>
|
||||
<script src="/theme-init.js"></script>
|
||||
<script src="/env.js"></script>
|
||||
<meta charset="UTF-8" />
|
||||
<link
|
||||
rel="icon"
|
||||
href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Crect width='64' height='64' rx='14' fill='%236c4fd8'/%3E%3Ctext x='32' y='45' font-family='Arial, sans-serif' font-size='38' font-weight='bold' text-anchor='middle' fill='%23ffffff'%3EM%3C/text%3E%3C/svg%3E"
|
||||
href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Crect width='64' height='64' rx='14' fill='%23d97757'/%3E%3Ctext x='32' y='45' font-family='Arial, sans-serif' font-size='38' font-weight='bold' text-anchor='middle' fill='%23ffffff'%3EM%3C/text%3E%3C/svg%3E"
|
||||
/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<meta name="referrer" content="strict-origin-when-cross-origin" />
|
||||
<meta
|
||||
name="description"
|
||||
content="Mudabbir Ahmad, graduate software engineer in London. BSc Computer Science with Honours, First Class. Projects, skills, and a homelab."
|
||||
content="__SITE_NAME__, graduate software engineer. Projects, skills, and a homelab."
|
||||
/>
|
||||
<link rel="canonical" href="__SITE_URL__/" />
|
||||
<meta property="og:type" content="website" />
|
||||
<meta property="og:title" content="Mudabbir Ahmad, Graduate Software Engineer" />
|
||||
<meta property="og:site_name" content="__SITE_NAME__" />
|
||||
<meta property="og:url" content="__SITE_URL__/" />
|
||||
<meta property="og:image" content="__SITE_URL__/og-image.jpg" />
|
||||
<meta property="og:image:width" content="1200" />
|
||||
<meta property="og:image:height" content="630" />
|
||||
<meta property="og:image:alt" content="__SITE_NAME__, graduate software engineer" />
|
||||
<meta property="og:title" content="__SITE_NAME__, Graduate Software Engineer" />
|
||||
<meta
|
||||
property="og:description"
|
||||
content="Graduate software engineer in London. BSc Computer Science with Honours, First Class. Projects, skills, and a homelab."
|
||||
content="Graduate software engineer. Projects, skills, and a homelab."
|
||||
/>
|
||||
<meta name="twitter:card" content="summary" />
|
||||
<title>Mudabbir Ahmad, Graduate Software Engineer</title>
|
||||
<meta name="twitter:card" content="summary_large_image" />
|
||||
<meta name="twitter:image" content="__SITE_URL__/og-image.jpg" />
|
||||
<title>__SITE_NAME__, Graduate Software Engineer</title>
|
||||
</head>
|
||||
<body>
|
||||
<div id="root"></div>
|
||||
|
||||
@@ -8,6 +8,9 @@
|
||||
"name": "portfolio",
|
||||
"version": "0.1.0",
|
||||
"dependencies": {
|
||||
"@fontsource-variable/inter": "^5.3.0",
|
||||
"@fontsource-variable/inter-tight": "^5.3.0",
|
||||
"@fontsource-variable/jetbrains-mono": "^5.3.0",
|
||||
"@tailwindcss/vite": "^4.3.3",
|
||||
"motion": "^13.4.0",
|
||||
"react": "^19.2.0",
|
||||
@@ -16,6 +19,9 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@vitejs/plugin-react": "^5.0.0",
|
||||
"playwright": "^1.56.1",
|
||||
"sharp": "^0.35.5",
|
||||
"simple-icons": "^16.34.0",
|
||||
"vite": "^7.0.0"
|
||||
}
|
||||
},
|
||||
@@ -301,6 +307,16 @@
|
||||
"node": ">=6.9.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@emnapi/runtime": {
|
||||
"version": "1.11.3",
|
||||
"resolved": "https://registry.npmjs.org/@emnapi/runtime/-/runtime-1.11.3.tgz",
|
||||
"integrity": "sha512-Xz4Tpyki7XyrpbUK1jR1AhdAdaXyhhY4lZ3neLodmhpuWfy2PAQN5B46sAiU4liOXGLkHypn/qU+jvfWSCYYLA==",
|
||||
"license": "MIT",
|
||||
"optional": true,
|
||||
"dependencies": {
|
||||
"tslib": "^2.4.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@esbuild/aix-ppc64": {
|
||||
"version": "0.28.2",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.28.2.tgz",
|
||||
@@ -717,6 +733,608 @@
|
||||
"node": ">=18"
|
||||
}
|
||||
},
|
||||
"node_modules/@fontsource-variable/inter": {
|
||||
"version": "5.3.0",
|
||||
"resolved": "https://registry.npmjs.org/@fontsource-variable/inter/-/inter-5.3.0.tgz",
|
||||
"integrity": "sha512-OupL48va4JNofb97w6NYeF9S7W/kHNKM0Er8Dem5nqi4jeOLrVJDoE8tZEpnMJmtkvNbB1EIPPwHcdkF6b1oUA==",
|
||||
"license": "OFL-1.1",
|
||||
"funding": {
|
||||
"url": "https://github.com/sponsors/ayuhito"
|
||||
}
|
||||
},
|
||||
"node_modules/@fontsource-variable/inter-tight": {
|
||||
"version": "5.3.0",
|
||||
"resolved": "https://registry.npmjs.org/@fontsource-variable/inter-tight/-/inter-tight-5.3.0.tgz",
|
||||
"integrity": "sha512-ZhZZ29sNZ15P1K+cUt13GeBRYON0akgmNiftshUeDLos7X7zGcRgPzt434879Xhq1QbwlW3M/apBMk7jWabwvA==",
|
||||
"license": "OFL-1.1",
|
||||
"funding": {
|
||||
"url": "https://github.com/sponsors/ayuhito"
|
||||
}
|
||||
},
|
||||
"node_modules/@fontsource-variable/jetbrains-mono": {
|
||||
"version": "5.3.0",
|
||||
"resolved": "https://registry.npmjs.org/@fontsource-variable/jetbrains-mono/-/jetbrains-mono-5.3.0.tgz",
|
||||
"integrity": "sha512-F32xpS2NsGYoQi2ADSkKTgpJj7ozajsGgDJ8woTnqjmIB+dxDIqImjl4pXZVEExu8UFZ2ndhmX18EBS/hdz3Lw==",
|
||||
"license": "OFL-1.1",
|
||||
"funding": {
|
||||
"url": "https://github.com/sponsors/ayuhito"
|
||||
}
|
||||
},
|
||||
"node_modules/@img/colour": {
|
||||
"version": "1.1.0",
|
||||
"resolved": "https://registry.npmjs.org/@img/colour/-/colour-1.1.0.tgz",
|
||||
"integrity": "sha512-Td76q7j57o/tLVdgS746cYARfSyxk8iEfRxewL9h4OMzYhbW4TAcppl0mT4eyqXddh6L/jwoM75mo7ixa/pCeQ==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": ">=18"
|
||||
}
|
||||
},
|
||||
"node_modules/@img/sharp-darwin-arm64": {
|
||||
"version": "0.35.5",
|
||||
"resolved": "https://registry.npmjs.org/@img/sharp-darwin-arm64/-/sharp-darwin-arm64-0.35.5.tgz",
|
||||
"integrity": "sha512-QRUlFQ0WxvdWyqqG/WtI3iupfD5rBzmCHXSdPsY91sAtVtTo7Q4cb6zOccZ3gqEqkr0f1As1ehLqmEpDsRf+lg==",
|
||||
"cpu": [
|
||||
"arm64"
|
||||
],
|
||||
"dev": true,
|
||||
"license": "Apache-2.0",
|
||||
"optional": true,
|
||||
"os": [
|
||||
"darwin"
|
||||
],
|
||||
"engines": {
|
||||
"node": ">=20.9.0"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://opencollective.com/libvips"
|
||||
},
|
||||
"optionalDependencies": {
|
||||
"@img/sharp-libvips-darwin-arm64": "1.3.4"
|
||||
}
|
||||
},
|
||||
"node_modules/@img/sharp-darwin-x64": {
|
||||
"version": "0.35.5",
|
||||
"resolved": "https://registry.npmjs.org/@img/sharp-darwin-x64/-/sharp-darwin-x64-0.35.5.tgz",
|
||||
"integrity": "sha512-+BR255RhDlpygUpOc/Jdt1nT6DQ3XG/ERo5wbcdOf5Q320dKtPCKPLR1LJs9VGXRaMa8l1uUa0tkCNOXiAxZUw==",
|
||||
"cpu": [
|
||||
"x64"
|
||||
],
|
||||
"dev": true,
|
||||
"license": "Apache-2.0",
|
||||
"optional": true,
|
||||
"os": [
|
||||
"darwin"
|
||||
],
|
||||
"engines": {
|
||||
"node": ">=20.9.0"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://opencollective.com/libvips"
|
||||
},
|
||||
"optionalDependencies": {
|
||||
"@img/sharp-libvips-darwin-x64": "1.3.4"
|
||||
}
|
||||
},
|
||||
"node_modules/@img/sharp-freebsd-wasm32": {
|
||||
"version": "0.35.5",
|
||||
"resolved": "https://registry.npmjs.org/@img/sharp-freebsd-wasm32/-/sharp-freebsd-wasm32-0.35.5.tgz",
|
||||
"integrity": "sha512-Y/z91nEZ4uIBX5X3nfTovjU9lHNKFYbL2lpHCLVNmXQK03VIZvXBBt0KxbPGp2SdGSF+2mQU4e+hQaWOt86iAw==",
|
||||
"dev": true,
|
||||
"license": "Apache-2.0",
|
||||
"optional": true,
|
||||
"os": [
|
||||
"freebsd"
|
||||
],
|
||||
"dependencies": {
|
||||
"@img/sharp-wasm32": "0.35.5"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=20.9.0"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://opencollective.com/libvips"
|
||||
}
|
||||
},
|
||||
"node_modules/@img/sharp-libvips-darwin-arm64": {
|
||||
"version": "1.3.4",
|
||||
"resolved": "https://registry.npmjs.org/@img/sharp-libvips-darwin-arm64/-/sharp-libvips-darwin-arm64-1.3.4.tgz",
|
||||
"integrity": "sha512-5R89nBYiRdUlSWJxPhO+GVtaXzXSxKnRu/xqMn3KTA3L9EB9Oy/P+Nn2f2vlhPuUdy/Zusb2DarbyTpGCfEDuw==",
|
||||
"cpu": [
|
||||
"arm64"
|
||||
],
|
||||
"dev": true,
|
||||
"license": "LGPL-3.0-or-later",
|
||||
"optional": true,
|
||||
"os": [
|
||||
"darwin"
|
||||
],
|
||||
"funding": {
|
||||
"url": "https://opencollective.com/libvips"
|
||||
}
|
||||
},
|
||||
"node_modules/@img/sharp-libvips-darwin-x64": {
|
||||
"version": "1.3.4",
|
||||
"resolved": "https://registry.npmjs.org/@img/sharp-libvips-darwin-x64/-/sharp-libvips-darwin-x64-1.3.4.tgz",
|
||||
"integrity": "sha512-iR2OKH80yi0U+dUplyh3/xdpFvps6YkCwsXenIJxqxR1v9o+xtKTGbS9H7cps+2Vxjc8B1j96p75NmTGjIhtpQ==",
|
||||
"cpu": [
|
||||
"x64"
|
||||
],
|
||||
"dev": true,
|
||||
"license": "LGPL-3.0-or-later",
|
||||
"optional": true,
|
||||
"os": [
|
||||
"darwin"
|
||||
],
|
||||
"funding": {
|
||||
"url": "https://opencollective.com/libvips"
|
||||
}
|
||||
},
|
||||
"node_modules/@img/sharp-libvips-linux-arm": {
|
||||
"version": "1.3.4",
|
||||
"resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-arm/-/sharp-libvips-linux-arm-1.3.4.tgz",
|
||||
"integrity": "sha512-LmRtTsOHuvM2+wlO2Db37dx5MiZhB0FvSunciw48YjdOkZz9KAiRbm8ujeMOA1INqmei5NapFxYEK1D1ZSidmw==",
|
||||
"cpu": [
|
||||
"arm"
|
||||
],
|
||||
"dev": true,
|
||||
"libc": [
|
||||
"glibc"
|
||||
],
|
||||
"license": "LGPL-3.0-or-later",
|
||||
"optional": true,
|
||||
"os": [
|
||||
"linux"
|
||||
],
|
||||
"funding": {
|
||||
"url": "https://opencollective.com/libvips"
|
||||
}
|
||||
},
|
||||
"node_modules/@img/sharp-libvips-linux-arm64": {
|
||||
"version": "1.3.4",
|
||||
"resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-arm64/-/sharp-libvips-linux-arm64-1.3.4.tgz",
|
||||
"integrity": "sha512-Y3dgX/6lE2QhQb+Gxy0WZxfg9MEm/JBjamZpS2IklP7xIQoKN4hzAm7KcMVGtaVDt3neE9OKBC7vAfonA/Lr1A==",
|
||||
"cpu": [
|
||||
"arm64"
|
||||
],
|
||||
"dev": true,
|
||||
"libc": [
|
||||
"glibc"
|
||||
],
|
||||
"license": "LGPL-3.0-or-later",
|
||||
"optional": true,
|
||||
"os": [
|
||||
"linux"
|
||||
],
|
||||
"funding": {
|
||||
"url": "https://opencollective.com/libvips"
|
||||
}
|
||||
},
|
||||
"node_modules/@img/sharp-libvips-linux-ppc64": {
|
||||
"version": "1.3.4",
|
||||
"resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-ppc64/-/sharp-libvips-linux-ppc64-1.3.4.tgz",
|
||||
"integrity": "sha512-Le6boB8Tai0Nis+gIxIpKx68UDVVIqdR8Tin5Yf1z2LJJQLDJvCDRqRu+jC2qCoD+eIomonmOwB4smBRxfVpYQ==",
|
||||
"cpu": [
|
||||
"ppc64"
|
||||
],
|
||||
"dev": true,
|
||||
"libc": [
|
||||
"glibc"
|
||||
],
|
||||
"license": "LGPL-3.0-or-later",
|
||||
"optional": true,
|
||||
"os": [
|
||||
"linux"
|
||||
],
|
||||
"funding": {
|
||||
"url": "https://opencollective.com/libvips"
|
||||
}
|
||||
},
|
||||
"node_modules/@img/sharp-libvips-linux-riscv64": {
|
||||
"version": "1.3.4",
|
||||
"resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-riscv64/-/sharp-libvips-linux-riscv64-1.3.4.tgz",
|
||||
"integrity": "sha512-aHkkIEHPRdQEegJN20MLmGtxYD9R2wQr3Cwpddnu5+YKMt6Uzax7S9h5gpZTo8wyrGuZSlfQ63OevL5mTyOC7Q==",
|
||||
"cpu": [
|
||||
"riscv64"
|
||||
],
|
||||
"dev": true,
|
||||
"libc": [
|
||||
"glibc"
|
||||
],
|
||||
"license": "LGPL-3.0-or-later",
|
||||
"optional": true,
|
||||
"os": [
|
||||
"linux"
|
||||
],
|
||||
"funding": {
|
||||
"url": "https://opencollective.com/libvips"
|
||||
}
|
||||
},
|
||||
"node_modules/@img/sharp-libvips-linux-s390x": {
|
||||
"version": "1.3.4",
|
||||
"resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-s390x/-/sharp-libvips-linux-s390x-1.3.4.tgz",
|
||||
"integrity": "sha512-ra/mB6MikESDUO7Yg+Mi95bFBb9GsObURuhnOv3OqknjGe9sZrG8tCe9q0xSIGrtLgvgw0gKnFWcK4blSgQOuQ==",
|
||||
"cpu": [
|
||||
"s390x"
|
||||
],
|
||||
"dev": true,
|
||||
"libc": [
|
||||
"glibc"
|
||||
],
|
||||
"license": "LGPL-3.0-or-later",
|
||||
"optional": true,
|
||||
"os": [
|
||||
"linux"
|
||||
],
|
||||
"funding": {
|
||||
"url": "https://opencollective.com/libvips"
|
||||
}
|
||||
},
|
||||
"node_modules/@img/sharp-libvips-linux-x64": {
|
||||
"version": "1.3.4",
|
||||
"resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-x64/-/sharp-libvips-linux-x64-1.3.4.tgz",
|
||||
"integrity": "sha512-GJ//SSXbnwSDes02umB3nDJLFcQzw8a18V8fyhqr6tV515tOEMdImjjxj1AoafMRz56F3PHgftnj1QEKSU1zkw==",
|
||||
"cpu": [
|
||||
"x64"
|
||||
],
|
||||
"dev": true,
|
||||
"libc": [
|
||||
"glibc"
|
||||
],
|
||||
"license": "LGPL-3.0-or-later",
|
||||
"optional": true,
|
||||
"os": [
|
||||
"linux"
|
||||
],
|
||||
"funding": {
|
||||
"url": "https://opencollective.com/libvips"
|
||||
}
|
||||
},
|
||||
"node_modules/@img/sharp-libvips-linuxmusl-arm64": {
|
||||
"version": "1.3.4",
|
||||
"resolved": "https://registry.npmjs.org/@img/sharp-libvips-linuxmusl-arm64/-/sharp-libvips-linuxmusl-arm64-1.3.4.tgz",
|
||||
"integrity": "sha512-hvulFwtjUcagsis6BBxHwGFwWoNZjgYmULGVrZcyfNbjA8hKILbRxGg15/7w5HDyXHXUos/j6baAWqnCyQ2DWA==",
|
||||
"cpu": [
|
||||
"arm64"
|
||||
],
|
||||
"dev": true,
|
||||
"libc": [
|
||||
"musl"
|
||||
],
|
||||
"license": "LGPL-3.0-or-later",
|
||||
"optional": true,
|
||||
"os": [
|
||||
"linux"
|
||||
],
|
||||
"funding": {
|
||||
"url": "https://opencollective.com/libvips"
|
||||
}
|
||||
},
|
||||
"node_modules/@img/sharp-libvips-linuxmusl-x64": {
|
||||
"version": "1.3.4",
|
||||
"resolved": "https://registry.npmjs.org/@img/sharp-libvips-linuxmusl-x64/-/sharp-libvips-linuxmusl-x64-1.3.4.tgz",
|
||||
"integrity": "sha512-6zXKeE/p39I1AmA3cJG35eyBGNqNddLnUXjhwBnsGjFPWqf5VKkDBEqaEkPDoTEtkxwi2vv8Tcr2mDyP4So7Fg==",
|
||||
"cpu": [
|
||||
"x64"
|
||||
],
|
||||
"dev": true,
|
||||
"libc": [
|
||||
"musl"
|
||||
],
|
||||
"license": "LGPL-3.0-or-later",
|
||||
"optional": true,
|
||||
"os": [
|
||||
"linux"
|
||||
],
|
||||
"funding": {
|
||||
"url": "https://opencollective.com/libvips"
|
||||
}
|
||||
},
|
||||
"node_modules/@img/sharp-linux-arm": {
|
||||
"version": "0.35.5",
|
||||
"resolved": "https://registry.npmjs.org/@img/sharp-linux-arm/-/sharp-linux-arm-0.35.5.tgz",
|
||||
"integrity": "sha512-LEaXK2WdXVK5ykcw0buWyPMsmLLL2vpHLD6yrNSW+JGEL3BZPA4tpKN6iaMc4AxTTAoaX/sU1rOL51lcIz48ZQ==",
|
||||
"cpu": [
|
||||
"arm"
|
||||
],
|
||||
"dev": true,
|
||||
"libc": [
|
||||
"glibc"
|
||||
],
|
||||
"license": "Apache-2.0",
|
||||
"optional": true,
|
||||
"os": [
|
||||
"linux"
|
||||
],
|
||||
"engines": {
|
||||
"node": ">=20.9.0"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://opencollective.com/libvips"
|
||||
},
|
||||
"optionalDependencies": {
|
||||
"@img/sharp-libvips-linux-arm": "1.3.4"
|
||||
}
|
||||
},
|
||||
"node_modules/@img/sharp-linux-arm64": {
|
||||
"version": "0.35.5",
|
||||
"resolved": "https://registry.npmjs.org/@img/sharp-linux-arm64/-/sharp-linux-arm64-0.35.5.tgz",
|
||||
"integrity": "sha512-LYVx5JTsOM2CBzmxreh+nl64/3H6Xb09iSLknqH47z2T2DFFxDeFLP5y4dJwe6H7uGQlHPyEEtIqyo3DYsRwdQ==",
|
||||
"cpu": [
|
||||
"arm64"
|
||||
],
|
||||
"dev": true,
|
||||
"libc": [
|
||||
"glibc"
|
||||
],
|
||||
"license": "Apache-2.0",
|
||||
"optional": true,
|
||||
"os": [
|
||||
"linux"
|
||||
],
|
||||
"engines": {
|
||||
"node": ">=20.9.0"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://opencollective.com/libvips"
|
||||
},
|
||||
"optionalDependencies": {
|
||||
"@img/sharp-libvips-linux-arm64": "1.3.4"
|
||||
}
|
||||
},
|
||||
"node_modules/@img/sharp-linux-ppc64": {
|
||||
"version": "0.35.5",
|
||||
"resolved": "https://registry.npmjs.org/@img/sharp-linux-ppc64/-/sharp-linux-ppc64-0.35.5.tgz",
|
||||
"integrity": "sha512-QVxAAq8evVRI9ia2vqgwrmWucn5Dfv+JdWzj75pD8omHLPSP7f8p20O8jxzjCcuCEQEOtYOZUmX1hkiZ0kdevA==",
|
||||
"cpu": [
|
||||
"ppc64"
|
||||
],
|
||||
"dev": true,
|
||||
"libc": [
|
||||
"glibc"
|
||||
],
|
||||
"license": "Apache-2.0",
|
||||
"optional": true,
|
||||
"os": [
|
||||
"linux"
|
||||
],
|
||||
"engines": {
|
||||
"node": ">=20.9.0"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://opencollective.com/libvips"
|
||||
},
|
||||
"optionalDependencies": {
|
||||
"@img/sharp-libvips-linux-ppc64": "1.3.4"
|
||||
}
|
||||
},
|
||||
"node_modules/@img/sharp-linux-riscv64": {
|
||||
"version": "0.35.5",
|
||||
"resolved": "https://registry.npmjs.org/@img/sharp-linux-riscv64/-/sharp-linux-riscv64-0.35.5.tgz",
|
||||
"integrity": "sha512-LtdreXguaavKODPIfzJ4kffx7UNt1omwtK0rch4EBbbSTXPnxWmYSayXdLJw0fJzQ97kHt1gL/yh4tvU+nCyRQ==",
|
||||
"cpu": [
|
||||
"riscv64"
|
||||
],
|
||||
"dev": true,
|
||||
"libc": [
|
||||
"glibc"
|
||||
],
|
||||
"license": "Apache-2.0",
|
||||
"optional": true,
|
||||
"os": [
|
||||
"linux"
|
||||
],
|
||||
"engines": {
|
||||
"node": ">=20.9.0"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://opencollective.com/libvips"
|
||||
},
|
||||
"optionalDependencies": {
|
||||
"@img/sharp-libvips-linux-riscv64": "1.3.4"
|
||||
}
|
||||
},
|
||||
"node_modules/@img/sharp-linux-s390x": {
|
||||
"version": "0.35.5",
|
||||
"resolved": "https://registry.npmjs.org/@img/sharp-linux-s390x/-/sharp-linux-s390x-0.35.5.tgz",
|
||||
"integrity": "sha512-UZasTOFiYzotTsGOCu42BfUzP6Tu6Do/947iRm1RsLKvlllxwGcn4RN27LibGWceix4Y+Pmw3jsnTcCQIgWjqA==",
|
||||
"cpu": [
|
||||
"s390x"
|
||||
],
|
||||
"dev": true,
|
||||
"libc": [
|
||||
"glibc"
|
||||
],
|
||||
"license": "Apache-2.0",
|
||||
"optional": true,
|
||||
"os": [
|
||||
"linux"
|
||||
],
|
||||
"engines": {
|
||||
"node": ">=20.9.0"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://opencollective.com/libvips"
|
||||
},
|
||||
"optionalDependencies": {
|
||||
"@img/sharp-libvips-linux-s390x": "1.3.4"
|
||||
}
|
||||
},
|
||||
"node_modules/@img/sharp-linux-x64": {
|
||||
"version": "0.35.5",
|
||||
"resolved": "https://registry.npmjs.org/@img/sharp-linux-x64/-/sharp-linux-x64-0.35.5.tgz",
|
||||
"integrity": "sha512-SxFtLTeJInhAA9Q836kux2vZNeOBQEx658qvbboZScr0wIARym3IcGmW7KpVD5sbVg0Ojy+udFQdayYIZyoNog==",
|
||||
"cpu": [
|
||||
"x64"
|
||||
],
|
||||
"dev": true,
|
||||
"libc": [
|
||||
"glibc"
|
||||
],
|
||||
"license": "Apache-2.0",
|
||||
"optional": true,
|
||||
"os": [
|
||||
"linux"
|
||||
],
|
||||
"engines": {
|
||||
"node": ">=20.9.0"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://opencollective.com/libvips"
|
||||
},
|
||||
"optionalDependencies": {
|
||||
"@img/sharp-libvips-linux-x64": "1.3.4"
|
||||
}
|
||||
},
|
||||
"node_modules/@img/sharp-linuxmusl-arm64": {
|
||||
"version": "0.35.5",
|
||||
"resolved": "https://registry.npmjs.org/@img/sharp-linuxmusl-arm64/-/sharp-linuxmusl-arm64-0.35.5.tgz",
|
||||
"integrity": "sha512-9HbMclmI1zlNkFRs3z9/eBtDjfD0sGlrX1z6b1qwmiFY5ElDLh4BC0LPBdVp7z1DXFiKlIcznf+ZlsuZzLxQqg==",
|
||||
"cpu": [
|
||||
"arm64"
|
||||
],
|
||||
"dev": true,
|
||||
"libc": [
|
||||
"musl"
|
||||
],
|
||||
"license": "Apache-2.0",
|
||||
"optional": true,
|
||||
"os": [
|
||||
"linux"
|
||||
],
|
||||
"engines": {
|
||||
"node": ">=20.9.0"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://opencollective.com/libvips"
|
||||
},
|
||||
"optionalDependencies": {
|
||||
"@img/sharp-libvips-linuxmusl-arm64": "1.3.4"
|
||||
}
|
||||
},
|
||||
"node_modules/@img/sharp-linuxmusl-x64": {
|
||||
"version": "0.35.5",
|
||||
"resolved": "https://registry.npmjs.org/@img/sharp-linuxmusl-x64/-/sharp-linuxmusl-x64-0.35.5.tgz",
|
||||
"integrity": "sha512-4KOphqB035HrVdqLZfCgMzzERrQkkzOwRhl4OAkRO1YCldbaFjySXMaK534Mo0V+LndnlJk+sbUyLeU0ULyD1A==",
|
||||
"cpu": [
|
||||
"x64"
|
||||
],
|
||||
"dev": true,
|
||||
"libc": [
|
||||
"musl"
|
||||
],
|
||||
"license": "Apache-2.0",
|
||||
"optional": true,
|
||||
"os": [
|
||||
"linux"
|
||||
],
|
||||
"engines": {
|
||||
"node": ">=20.9.0"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://opencollective.com/libvips"
|
||||
},
|
||||
"optionalDependencies": {
|
||||
"@img/sharp-libvips-linuxmusl-x64": "1.3.4"
|
||||
}
|
||||
},
|
||||
"node_modules/@img/sharp-wasm32": {
|
||||
"version": "0.35.5",
|
||||
"resolved": "https://registry.npmjs.org/@img/sharp-wasm32/-/sharp-wasm32-0.35.5.tgz",
|
||||
"integrity": "sha512-Ptsga1su4tQx+LLF1ECS9U6nz5kmrXKo6XVbtR48Ke3ZRxxgaWBu7IDtEe1quo8hiupwm6WFqxVlXaSf7IINGQ==",
|
||||
"dev": true,
|
||||
"license": "Apache-2.0 AND LGPL-3.0-or-later AND MIT",
|
||||
"optional": true,
|
||||
"dependencies": {
|
||||
"@emnapi/runtime": "^1.11.3"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=20.9.0"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://opencollective.com/libvips"
|
||||
}
|
||||
},
|
||||
"node_modules/@img/sharp-webcontainers-wasm32": {
|
||||
"version": "0.35.5",
|
||||
"resolved": "https://registry.npmjs.org/@img/sharp-webcontainers-wasm32/-/sharp-webcontainers-wasm32-0.35.5.tgz",
|
||||
"integrity": "sha512-hfhF/FmoQyTUkA0bIKFOtw536BQSeBMe6BF6QyWlrPxT754+TFLaZ7sKKTfvvM0yJgKgaYTwnFCIZ/GuDw5SUA==",
|
||||
"cpu": [
|
||||
"wasm32"
|
||||
],
|
||||
"dev": true,
|
||||
"license": "Apache-2.0",
|
||||
"optional": true,
|
||||
"dependencies": {
|
||||
"@img/sharp-wasm32": "0.35.5"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=20.9.0"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://opencollective.com/libvips"
|
||||
}
|
||||
},
|
||||
"node_modules/@img/sharp-win32-arm64": {
|
||||
"version": "0.35.5",
|
||||
"resolved": "https://registry.npmjs.org/@img/sharp-win32-arm64/-/sharp-win32-arm64-0.35.5.tgz",
|
||||
"integrity": "sha512-X4t7g+7ZA5DKblCBEXGjUqqemj4vczING/5viFwAL8h4N3qYeyjwdCvRLHi4EdOUI+2Z7UFlp1VM+p/AuEtm6Q==",
|
||||
"cpu": [
|
||||
"arm64"
|
||||
],
|
||||
"dev": true,
|
||||
"license": "Apache-2.0 AND LGPL-3.0-or-later",
|
||||
"optional": true,
|
||||
"os": [
|
||||
"win32"
|
||||
],
|
||||
"engines": {
|
||||
"node": ">=20.9.0"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://opencollective.com/libvips"
|
||||
}
|
||||
},
|
||||
"node_modules/@img/sharp-win32-ia32": {
|
||||
"version": "0.35.5",
|
||||
"resolved": "https://registry.npmjs.org/@img/sharp-win32-ia32/-/sharp-win32-ia32-0.35.5.tgz",
|
||||
"integrity": "sha512-5Zm82LoBc43nhwNybZlG7Y1KO//Zhsn306fQl29ZOuStHLGTo3BWL83q3cznX0poxSAMuYL1On/BHBxkBeKr6A==",
|
||||
"cpu": [
|
||||
"ia32"
|
||||
],
|
||||
"dev": true,
|
||||
"license": "Apache-2.0 AND LGPL-3.0-or-later",
|
||||
"optional": true,
|
||||
"os": [
|
||||
"win32"
|
||||
],
|
||||
"engines": {
|
||||
"node": "^20.9.0"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://opencollective.com/libvips"
|
||||
}
|
||||
},
|
||||
"node_modules/@img/sharp-win32-x64": {
|
||||
"version": "0.35.5",
|
||||
"resolved": "https://registry.npmjs.org/@img/sharp-win32-x64/-/sharp-win32-x64-0.35.5.tgz",
|
||||
"integrity": "sha512-x76eH0vEiHlcMQu8Y8IenntaACtddpT6W0wmXtWrnKcnKI7ME5DdgqhAD6SEWOEl1v2zDvkZDhFA9KnURwpfqg==",
|
||||
"cpu": [
|
||||
"x64"
|
||||
],
|
||||
"dev": true,
|
||||
"license": "Apache-2.0 AND LGPL-3.0-or-later",
|
||||
"optional": true,
|
||||
"os": [
|
||||
"win32"
|
||||
],
|
||||
"engines": {
|
||||
"node": ">=20.9.0"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://opencollective.com/libvips"
|
||||
}
|
||||
},
|
||||
"node_modules/@jridgewell/gen-mapping": {
|
||||
"version": "0.3.13",
|
||||
"resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz",
|
||||
@@ -2148,6 +2766,35 @@
|
||||
"url": "https://github.com/sponsors/jonschlinkert"
|
||||
}
|
||||
},
|
||||
"node_modules/playwright": {
|
||||
"version": "1.64.0",
|
||||
"resolved": "https://registry.npmjs.org/playwright/-/playwright-1.64.0.tgz",
|
||||
"integrity": "sha512-kVzTnYFYEyQ9RGzBjNCd2+yEqWmVbxl3AHPynv3qQ6JTjv4a+kwRcnqQwIpuP3NnrnIrE/Q6wWAIAvMfIE2/Yg==",
|
||||
"dev": true,
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"playwright-core": "1.64.0"
|
||||
},
|
||||
"bin": {
|
||||
"playwright": "cli.js"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=20"
|
||||
}
|
||||
},
|
||||
"node_modules/playwright-core": {
|
||||
"version": "1.64.0",
|
||||
"resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.64.0.tgz",
|
||||
"integrity": "sha512-T9r+MZkTECl2+oUcZ26YgZzTrYidTsIhYYkJix+6iDOymOb1FB2RLLSOxRGnZGv5DStt+aduIVbt+E8WygXYpg==",
|
||||
"dev": true,
|
||||
"license": "Apache-2.0",
|
||||
"bin": {
|
||||
"playwright-core": "cli.js"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=20"
|
||||
}
|
||||
},
|
||||
"node_modules/postcss": {
|
||||
"version": "8.5.28",
|
||||
"resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.28.tgz",
|
||||
@@ -2268,6 +2915,89 @@
|
||||
"semver": "bin/semver.js"
|
||||
}
|
||||
},
|
||||
"node_modules/sharp": {
|
||||
"version": "0.35.5",
|
||||
"resolved": "https://registry.npmjs.org/sharp/-/sharp-0.35.5.tgz",
|
||||
"integrity": "sha512-Ywn4OnzGukp7CDMrp08RQ50YKmuwG47brZgIVPTvBaaAfQlRlygrRqSrxdCiL9M+LlzLBiJ68IR1QqvzHyjC7g==",
|
||||
"dev": true,
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@img/colour": "^1.1.0",
|
||||
"detect-libc": "^2.1.2",
|
||||
"semver": "^7.8.5"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=20.9.0"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://opencollective.com/libvips"
|
||||
},
|
||||
"optionalDependencies": {
|
||||
"@img/sharp-darwin-arm64": "0.35.5",
|
||||
"@img/sharp-darwin-x64": "0.35.5",
|
||||
"@img/sharp-freebsd-wasm32": "0.35.5",
|
||||
"@img/sharp-libvips-darwin-arm64": "1.3.4",
|
||||
"@img/sharp-libvips-darwin-x64": "1.3.4",
|
||||
"@img/sharp-libvips-linux-arm": "1.3.4",
|
||||
"@img/sharp-libvips-linux-arm64": "1.3.4",
|
||||
"@img/sharp-libvips-linux-ppc64": "1.3.4",
|
||||
"@img/sharp-libvips-linux-riscv64": "1.3.4",
|
||||
"@img/sharp-libvips-linux-s390x": "1.3.4",
|
||||
"@img/sharp-libvips-linux-x64": "1.3.4",
|
||||
"@img/sharp-libvips-linuxmusl-arm64": "1.3.4",
|
||||
"@img/sharp-libvips-linuxmusl-x64": "1.3.4",
|
||||
"@img/sharp-linux-arm": "0.35.5",
|
||||
"@img/sharp-linux-arm64": "0.35.5",
|
||||
"@img/sharp-linux-ppc64": "0.35.5",
|
||||
"@img/sharp-linux-riscv64": "0.35.5",
|
||||
"@img/sharp-linux-s390x": "0.35.5",
|
||||
"@img/sharp-linux-x64": "0.35.5",
|
||||
"@img/sharp-linuxmusl-arm64": "0.35.5",
|
||||
"@img/sharp-linuxmusl-x64": "0.35.5",
|
||||
"@img/sharp-webcontainers-wasm32": "0.35.5",
|
||||
"@img/sharp-win32-arm64": "0.35.5",
|
||||
"@img/sharp-win32-ia32": "0.35.5",
|
||||
"@img/sharp-win32-x64": "0.35.5"
|
||||
},
|
||||
"peerDependenciesMeta": {
|
||||
"@types/node": {
|
||||
"optional": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"node_modules/sharp/node_modules/semver": {
|
||||
"version": "7.8.5",
|
||||
"resolved": "https://registry.npmjs.org/semver/-/semver-7.8.5.tgz",
|
||||
"integrity": "sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA==",
|
||||
"dev": true,
|
||||
"license": "ISC",
|
||||
"bin": {
|
||||
"semver": "bin/semver.js"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=10"
|
||||
}
|
||||
},
|
||||
"node_modules/simple-icons": {
|
||||
"version": "16.34.0",
|
||||
"resolved": "https://registry.npmjs.org/simple-icons/-/simple-icons-16.34.0.tgz",
|
||||
"integrity": "sha512-UTxKn0PVspk84B2hHF3Dqiqht1yDjJmDc/t4cO7PyCQxCMk6OjEu95pnpGjhLaGeQ4qBrGASbefTIe/+czrX7g==",
|
||||
"dev": true,
|
||||
"funding": [
|
||||
{
|
||||
"type": "opencollective",
|
||||
"url": "https://opencollective.com/simple-icons"
|
||||
},
|
||||
{
|
||||
"type": "github",
|
||||
"url": "https://github.com/sponsors/simple-icons"
|
||||
}
|
||||
],
|
||||
"license": "CC0-1.0",
|
||||
"engines": {
|
||||
"node": ">=0.12.18"
|
||||
}
|
||||
},
|
||||
"node_modules/source-map-js": {
|
||||
"version": "1.2.1",
|
||||
"resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz",
|
||||
|
||||
@@ -9,9 +9,14 @@
|
||||
"preview": "vite preview",
|
||||
"setup": "npm ci && npm ci --prefix server",
|
||||
"start": "node server/index.js",
|
||||
"deploy": "npm run setup && npm run build && npm start"
|
||||
"deploy": "npm run setup && npm run build && npm start",
|
||||
"docker": "docker compose up -d --build",
|
||||
"capture": "node scripts/capture/capture.mjs"
|
||||
},
|
||||
"dependencies": {
|
||||
"@fontsource-variable/inter": "^5.3.0",
|
||||
"@fontsource-variable/inter-tight": "^5.3.0",
|
||||
"@fontsource-variable/jetbrains-mono": "^5.3.0",
|
||||
"@tailwindcss/vite": "^4.3.3",
|
||||
"motion": "^13.4.0",
|
||||
"react": "^19.2.0",
|
||||
@@ -20,6 +25,9 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@vitejs/plugin-react": "^5.0.0",
|
||||
"playwright": "^1.56.1",
|
||||
"sharp": "^0.35.5",
|
||||
"simple-icons": "^16.34.0",
|
||||
"vite": "^7.0.0"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
window.__ENV__ = {};
|
||||
@@ -1,6 +1,13 @@
|
||||
Drop project screenshots here, then list the filenames in src/project-images.json:
|
||||
Project screenshots, written here by `npm run capture` (see scripts/capture/README.md).
|
||||
|
||||
"mass": ["mass-1.png", "mass-2.png", "mass-3.png"]
|
||||
Each project's "images" list in src/data/projects.json names files from this folder:
|
||||
|
||||
One filename = a single picture. Two or more = a carousel (arrows, dots, keyboard
|
||||
left/right). Leave the list empty to keep the default artwork.
|
||||
"images": ["mass-1.webp", "mass-2.webp", "mass-3.webp"],
|
||||
"orientation": "portrait"
|
||||
|
||||
One filename = a single picture. Two or more = a carousel (arrows, dots, swipe,
|
||||
keyboard left/right). "orientation" is "portrait" for phone screenshots and
|
||||
"landscape" for everything else. Leave the list empty to fall back to "image".
|
||||
|
||||
radar-1, ai-bot-1 and homelab-1 are stock photos from Unsplash (Unsplash licence,
|
||||
free to use), standing in until there are real photos of those projects.
|
||||
|
After Width: | Height: | Size: 95 KiB |
|
After Width: | Height: | Size: 51 KiB |
|
After Width: | Height: | Size: 83 KiB |
|
After Width: | Height: | Size: 25 KiB |
|
After Width: | Height: | Size: 30 KiB |
|
After Width: | Height: | Size: 20 KiB |
|
After Width: | Height: | Size: 10 KiB |
|
After Width: | Height: | Size: 49 KiB |
|
After Width: | Height: | Size: 79 KiB |
|
After Width: | Height: | Size: 25 KiB |
|
After Width: | Height: | Size: 20 KiB |
|
After Width: | Height: | Size: 27 KiB |
|
After Width: | Height: | Size: 15 KiB |
|
After Width: | Height: | Size: 42 KiB |
|
After Width: | Height: | Size: 200 KiB |
@@ -0,0 +1,9 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 750">
|
||||
<defs><linearGradient id="g" x1="0" y1="0" x2="1" y2="1"><stop offset="0" stop-color="#1f2a24"/><stop offset="1" stop-color="#0f1412"/></linearGradient></defs>
|
||||
<rect width="1200" height="750" fill="url(#g)"/>
|
||||
<g fill="none" stroke="#6fbf8f" stroke-opacity="0.35" stroke-width="2">
|
||||
<rect x="180" y="150" width="840" height="110" rx="10"/><rect x="180" y="300" width="840" height="110" rx="10"/><rect x="180" y="450" width="840" height="110" rx="10"/>
|
||||
</g>
|
||||
<g fill="#6fbf8f" fill-opacity="0.6"><circle cx="230" cy="205" r="9"/><circle cx="230" cy="355" r="9"/><circle cx="230" cy="505" r="9"/></g>
|
||||
<text x="600" y="640" text-anchor="middle" font-family="sans-serif" font-size="34" fill="#cfe9da">Homelab · Proxmox</text>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 807 B |
|
After Width: | Height: | Size: 103 KiB |
|
After Width: | Height: | Size: 96 KiB |
|
After Width: | Height: | Size: 77 KiB |
|
After Width: | Height: | Size: 15 KiB |
|
After Width: | Height: | Size: 25 KiB |
|
After Width: | Height: | Size: 19 KiB |
|
After Width: | Height: | Size: 18 KiB |
|
After Width: | Height: | Size: 409 KiB |
|
After Width: | Height: | Size: 132 KiB |
|
After Width: | Height: | Size: 128 KiB |
|
After Width: | Height: | Size: 394 KiB |
|
After Width: | Height: | Size: 14 KiB |
|
After Width: | Height: | Size: 31 KiB |
|
After Width: | Height: | Size: 31 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 18 KiB |
|
After Width: | Height: | Size: 47 KiB |
|
After Width: | Height: | Size: 20 KiB |
|
After Width: | Height: | Size: 19 KiB |
|
After Width: | Height: | Size: 19 KiB |
|
After Width: | Height: | Size: 23 KiB |
|
After Width: | Height: | Size: 28 KiB |
|
After Width: | Height: | Size: 17 KiB |
|
After Width: | Height: | Size: 50 KiB |
@@ -0,0 +1,103 @@
|
||||
# Project screenshots
|
||||
|
||||
`npm run capture` builds the screenshots shown in the project pop-ups.
|
||||
Each project in `capture.config.json` comes from one of two routes:
|
||||
|
||||
| Route | For | How |
|
||||
|---|---|---|
|
||||
| **Automated** (`serve` + `steps`) | Web apps, this portfolio | Clones or reads the source, runs its server, and Playwright clicks through it and takes the screenshots. |
|
||||
| **Manual drop** (`manual: true`) | Android, Java Swing, hardware, phone apps, stock photos | You drop images in `scripts/capture/manual/<id>/`, and the runner downscales them to WebP (720px wide for phone shots, 1440px otherwise). |
|
||||
|
||||
Output goes to `public/images/projects/<id>-<name>`, and the list is written
|
||||
into that project's `images` in `src/data/projects.json`, along with an
|
||||
`orientation` (`portrait` or `landscape`) that sizes the pop-up's media pane. The site shows a carousel
|
||||
when there are two or more images.
|
||||
|
||||
## One-time setup (Windows)
|
||||
|
||||
```powershell
|
||||
cd F:\Portfolio
|
||||
npm install # adds the playwright dev dependency
|
||||
npx playwright install chromium # downloads the browser Playwright drives
|
||||
# or skip the download and use the Edge that ships with Windows:
|
||||
# $env:CAPTURE_CHANNEL = "msedge"
|
||||
```
|
||||
|
||||
## Running it
|
||||
|
||||
```powershell
|
||||
npm run capture # every enabled project
|
||||
npm run capture -- --only=portfolio # one project
|
||||
npm run capture -- --only=mass,routines
|
||||
```
|
||||
|
||||
It keeps going if one project fails, prints a summary, and exits non-zero if anything failed.
|
||||
Nothing is committed. Look at the new images, then commit them yourself.
|
||||
|
||||
## Adding or changing a web project
|
||||
|
||||
Edit its entry in `capture.config.json`:
|
||||
|
||||
```json
|
||||
{
|
||||
"id": "qr-hunt",
|
||||
"enabled": true,
|
||||
"source": { "git": "https://github.com/you/repo.git", "branch": "main" },
|
||||
"setup": ["npm ci"],
|
||||
"serve": { "command": "npm run dev -- --port 5180 --strictPort", "url": "http://localhost:5180" },
|
||||
"steps": [
|
||||
{ "goto": "/" },
|
||||
{ "wait": 800 },
|
||||
{ "screenshot": "home" },
|
||||
{ "click": "text=Start game" },
|
||||
{ "fill": "input[name=team]", "value": "Demo team" },
|
||||
{ "press": "Enter" },
|
||||
{ "waitFor": ".leaderboard" },
|
||||
{ "screenshot": "leaderboard" }
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
- `source.git` is cloned into `.capture-work/<id>/` and refreshed on each run. Private
|
||||
Gitea or GitLab repos use whatever git credentials your machine already has (the same
|
||||
ones VS Code uses).
|
||||
- `source.local` uses a folder you already have, e.g. `"local": "F:\\Projects\\qr-hunt"`.
|
||||
- `serve` starts the server and waits for `url`. Leave it out to capture a deployed site
|
||||
by setting `url` instead.
|
||||
- `steps` actions: `goto`, `click`, `fill` (+`value`), `press`, `hover`, `scrollTo`,
|
||||
`scrollBy`, `waitFor`, `wait` (ms), `screenshot` (+`selector`, `fullPage`).
|
||||
A `screenshot` name becomes part of the filename, so `"screenshot": "detail"` on
|
||||
`mass` gives `mass-detail.png`.
|
||||
- Use demo data in steps. Don't type real passwords or tokens into the config.
|
||||
|
||||
## Manual screenshots
|
||||
|
||||
- **Android:** run the app in the Android Studio emulator and use the camera button
|
||||
in the emulator toolbar. Save into `scripts/capture/manual/routines/`.
|
||||
- **Java Swing (CV Builder):** `Win + Shift + S` on the window. Save into `scripts/capture/manual/<id>/`.
|
||||
- **Radar:** screenshot the live dashboard in a browser.
|
||||
- **Phone apps:** a phone screenshot or the emulator, saved in filename order.
|
||||
|
||||
Then run `npm run capture -- --only=<id>` to promote them.
|
||||
|
||||
## Scheduling
|
||||
|
||||
To refresh every Sunday at 10:00 with Task Scheduler:
|
||||
|
||||
```powershell
|
||||
schtasks /Create /SC WEEKLY /D SUN /ST 10:00 /TN "PortfolioCapture" /TR "cmd /c cd /d F:\Portfolio && npm run capture >> capture.log 2>&1"
|
||||
```
|
||||
|
||||
Scheduled runs can only capture what they can reach. Projects that need a running
|
||||
emulator, device or hardware stay on the manual route.
|
||||
|
||||
## Before you publish
|
||||
|
||||
Screenshots are public once committed. Check each one for:
|
||||
|
||||
- email addresses, phone numbers, real names of other people
|
||||
- hostnames, IP addresses, NAS or router names, Tailscale or Gitea URLs
|
||||
- API keys, tokens and Discord server or channel names
|
||||
- patient, customer or other third-party data
|
||||
|
||||
Crop or blur if needed. Use demo content where possible.
|
||||
@@ -0,0 +1,126 @@
|
||||
{
|
||||
"outputDir": "public/images/projects",
|
||||
"projectsFile": "src/data/projects.json",
|
||||
"workDir": ".capture-work",
|
||||
"viewport": {
|
||||
"width": 1440,
|
||||
"height": 900
|
||||
},
|
||||
"deviceScaleFactor": 1,
|
||||
"colorScheme": "light",
|
||||
"settleMs": 400,
|
||||
"projects": [
|
||||
{
|
||||
"id": "portfolio",
|
||||
"_note": "This site. Builds and runs the real server, so the GitHub tracker has data.",
|
||||
"enabled": true,
|
||||
"source": {
|
||||
"local": "."
|
||||
},
|
||||
"serve": {
|
||||
"command": "npm run build && npm start",
|
||||
"url": "http://localhost:3001",
|
||||
"readyTimeoutSec": 180
|
||||
},
|
||||
"steps": [
|
||||
{
|
||||
"goto": "/"
|
||||
},
|
||||
{
|
||||
"wait": 1200
|
||||
},
|
||||
{
|
||||
"screenshot": "home"
|
||||
},
|
||||
{
|
||||
"scrollTo": ".project-grid"
|
||||
},
|
||||
{
|
||||
"wait": 900
|
||||
},
|
||||
{
|
||||
"screenshot": "projects"
|
||||
},
|
||||
{
|
||||
"click": ".project-card"
|
||||
},
|
||||
{
|
||||
"wait": 900
|
||||
},
|
||||
{
|
||||
"screenshot": "detail"
|
||||
},
|
||||
{
|
||||
"press": "Escape"
|
||||
},
|
||||
{
|
||||
"scrollTo": ".homelab-grid"
|
||||
},
|
||||
{
|
||||
"wait": 900
|
||||
},
|
||||
{
|
||||
"screenshot": "homelab"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "mass",
|
||||
"_note": "Phone app. Drop emulator or device screenshots in scripts/capture/manual/mass/.",
|
||||
"manual": true,
|
||||
"enabled": true
|
||||
},
|
||||
{
|
||||
"id": "geo-hunt",
|
||||
"_note": "React Native app. Emulator screenshots.",
|
||||
"manual": true,
|
||||
"enabled": true
|
||||
},
|
||||
{
|
||||
"id": "routines",
|
||||
"_note": "Android. Use the emulator screenshot button in Android Studio.",
|
||||
"manual": true,
|
||||
"enabled": true
|
||||
},
|
||||
{
|
||||
"id": "crudl",
|
||||
"_note": "React Native app. Emulator screenshots.",
|
||||
"manual": true,
|
||||
"enabled": true
|
||||
},
|
||||
{
|
||||
"id": "qr-hunt",
|
||||
"_note": "Web app, screenshots taken by hand at 1440x900.",
|
||||
"manual": true,
|
||||
"enabled": true
|
||||
},
|
||||
{
|
||||
"id": "cv-builder",
|
||||
"_note": "Java Swing desktop app. Window screenshots.",
|
||||
"manual": true,
|
||||
"enabled": true
|
||||
},
|
||||
{
|
||||
"id": "radar",
|
||||
"_note": "Hardware. Stock photo of an ESP32 board until I photograph the build.",
|
||||
"manual": true,
|
||||
"enabled": true
|
||||
},
|
||||
{
|
||||
"id": "ai-bot",
|
||||
"_note": "Discord bot. Stock photo of Python code; chat screenshots would leak other users.",
|
||||
"manual": true,
|
||||
"enabled": true
|
||||
},
|
||||
{
|
||||
"id": "homelab",
|
||||
"_note": "Stock photo of network cabling.",
|
||||
"manual": true,
|
||||
"enabled": true
|
||||
}
|
||||
],
|
||||
"manualMaxWidth": {
|
||||
"portrait": 720,
|
||||
"landscape": 1440
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,293 @@
|
||||
// Automated project screenshots for the portfolio.
|
||||
//
|
||||
// npm run capture capture every enabled project
|
||||
// npm run capture -- --only=portfolio,mass
|
||||
//
|
||||
// For each project in capture.config.json the runner can:
|
||||
// 1. get the source (a local folder, or a git clone/pull into .capture-work/),
|
||||
// 2. run its setup commands (e.g. npm ci),
|
||||
// 3. start its dev/preview server and wait until it answers,
|
||||
// 4. drive it with Playwright (click, type, scroll, screenshot), or
|
||||
// 5. for native apps (Android, Swing, hardware) promote screenshots you dropped
|
||||
// into scripts/capture/manual/<id>/,
|
||||
// then write the PNGs to public/images/projects/<id>-<name>.png and list them in
|
||||
// that project's "images" array in src/data/projects.json.
|
||||
//
|
||||
// Nothing is published or committed. Review the new images before you commit.
|
||||
|
||||
import { spawn } from "node:child_process";
|
||||
import { promises as fs } from "node:fs";
|
||||
import path from "node:path";
|
||||
import { fileURLToPath } from "node:url";
|
||||
|
||||
const ROOT = path.resolve(path.dirname(fileURLToPath(import.meta.url)), "../..");
|
||||
const onlyArg = process.argv.find((a) => a.startsWith("--only="));
|
||||
const ONLY = onlyArg ? new Set(onlyArg.slice("--only=".length).split(",").map((s) => s.trim())) : null;
|
||||
|
||||
const config = JSON.parse(
|
||||
await fs.readFile(path.join(ROOT, "scripts/capture/capture.config.json"), "utf8")
|
||||
);
|
||||
const OUT_DIR = path.join(ROOT, config.outputDir ?? "public/images/projects");
|
||||
const WORK_DIR = path.join(ROOT, config.workDir ?? ".capture-work");
|
||||
const DATA_FILE = path.join(ROOT, config.projectsFile ?? "src/data/projects.json");
|
||||
const MANUAL_DIR = path.join(ROOT, "scripts/capture/manual");
|
||||
const IMAGE_RE = /\.(png|jpe?g|webp)$/i;
|
||||
const sleep = (ms) => new Promise((r) => setTimeout(r, ms));
|
||||
const log = (msg) => console.log(`[capture] ${msg}`);
|
||||
|
||||
// Run a command and resolve when it exits 0. Output streams to this terminal.
|
||||
function run(cmd, argv = [], { cwd = ROOT, shell = false } = {}) {
|
||||
return new Promise((resolve, reject) => {
|
||||
const child = spawn(cmd, argv, { cwd, shell, stdio: "inherit" });
|
||||
child.on("error", reject);
|
||||
child.on("exit", (code) =>
|
||||
code === 0 ? resolve() : reject(new Error(`"${[cmd, ...argv].join(" ")}" exited with ${code}`))
|
||||
);
|
||||
});
|
||||
}
|
||||
|
||||
// Start a long-running server. Detached on POSIX so the whole group can be stopped.
|
||||
function startServer(command, cwd) {
|
||||
return spawn(command, { cwd, shell: true, stdio: "inherit", detached: process.platform !== "win32" });
|
||||
}
|
||||
|
||||
// Stop a server and everything it spawned (npm -> node -> vite is a tree).
|
||||
async function stopServer(child) {
|
||||
if (!child || child.exitCode !== null) return;
|
||||
if (process.platform === "win32") {
|
||||
await run("taskkill", ["/pid", String(child.pid), "/T", "/F"]).catch(() => {});
|
||||
} else {
|
||||
try { process.kill(-child.pid, "SIGTERM"); } catch {}
|
||||
}
|
||||
await sleep(500);
|
||||
}
|
||||
|
||||
async function waitForUrl(url, timeoutSec) {
|
||||
const deadline = Date.now() + timeoutSec * 1000;
|
||||
while (Date.now() < deadline) {
|
||||
try {
|
||||
const res = await fetch(url, { redirect: "manual" });
|
||||
if (res.status < 500) return;
|
||||
} catch {
|
||||
// not listening yet
|
||||
}
|
||||
await sleep(1000);
|
||||
}
|
||||
throw new Error(`timed out after ${timeoutSec}s waiting for ${url}`);
|
||||
}
|
||||
|
||||
// Returns the directory to work in. Git sources are cloned once, then refreshed.
|
||||
async function prepareSource(project) {
|
||||
const src = project.source ?? {};
|
||||
if (src.local) return path.resolve(ROOT, src.local);
|
||||
if (!src.git) throw new Error("source needs either \"local\" or \"git\"");
|
||||
|
||||
const dir = path.join(WORK_DIR, project.id);
|
||||
const branch = src.branch ?? "main";
|
||||
await fs.mkdir(WORK_DIR, { recursive: true });
|
||||
const exists = await fs.stat(path.join(dir, ".git")).then(() => true, () => false);
|
||||
if (!exists) {
|
||||
log(`cloning ${project.id} from ${src.git}`);
|
||||
await run("git", ["clone", "--depth", "1", "--branch", branch, src.git, dir]);
|
||||
} else {
|
||||
log(`updating ${project.id} (${branch})`);
|
||||
await run("git", ["-C", dir, "fetch", "--depth", "1", "origin", branch]);
|
||||
await run("git", ["-C", dir, "reset", "--hard", "FETCH_HEAD"]);
|
||||
}
|
||||
return dir;
|
||||
}
|
||||
|
||||
function slug(s) {
|
||||
return String(s).toLowerCase().replace(/[^a-z0-9-]+/g, "-").replace(/^-|-$/g, "");
|
||||
}
|
||||
|
||||
// Playwright actions. Each step is one key (the action) plus optional sibling keys.
|
||||
async function runSteps(page, project, baseUrl, produced) {
|
||||
const steps = project.steps ?? [{ goto: "/" }, { wait: 800 }, { screenshot: "home" }];
|
||||
const settle = config.settleMs ?? 400;
|
||||
|
||||
for (const step of steps) {
|
||||
if ("goto" in step) {
|
||||
const target = new URL(step.goto, baseUrl).toString();
|
||||
await page.goto(target, { waitUntil: "load", timeout: 60000 });
|
||||
await sleep(settle);
|
||||
} else if ("click" in step) {
|
||||
await page.locator(step.click).first().click({ timeout: 15000 });
|
||||
} else if ("fill" in step) {
|
||||
await page.locator(step.fill).first().fill(String(step.value ?? ""));
|
||||
} else if ("press" in step) {
|
||||
await page.keyboard.press(step.press);
|
||||
} else if ("hover" in step) {
|
||||
await page.locator(step.hover).first().hover({ timeout: 15000 });
|
||||
} else if ("scrollTo" in step) {
|
||||
await page.locator(step.scrollTo).first().scrollIntoViewIfNeeded({ timeout: 15000 });
|
||||
} else if ("scrollBy" in step) {
|
||||
await page.evaluate((y) => window.scrollBy(0, y), step.scrollBy);
|
||||
} else if ("waitFor" in step) {
|
||||
await page.locator(step.waitFor).first().waitFor({ state: "visible", timeout: 30000 });
|
||||
} else if ("wait" in step) {
|
||||
await sleep(step.wait);
|
||||
} else if ("screenshot" in step) {
|
||||
const name = slug(step.screenshot);
|
||||
const file = `${project.id}-${name}.png`;
|
||||
await sleep(settle);
|
||||
if (step.selector) {
|
||||
await page.locator(step.selector).first().screenshot({
|
||||
path: path.join(OUT_DIR, file),
|
||||
animations: "disabled",
|
||||
});
|
||||
} else {
|
||||
await page.screenshot({ path: path.join(OUT_DIR, file), fullPage: !!step.fullPage, animations: "disabled" });
|
||||
}
|
||||
produced.push(file);
|
||||
log(` saved ${file}`);
|
||||
} else {
|
||||
throw new Error(`unknown step: ${JSON.stringify(step)}`);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
async function captureWithBrowser(project, baseUrl) {
|
||||
let chromium;
|
||||
try {
|
||||
({ chromium } = await import("playwright"));
|
||||
} catch {
|
||||
throw new Error("Playwright is not installed. Run: npm install && npx playwright install chromium");
|
||||
}
|
||||
// CAPTURE_CHANNEL=msedge (or chrome) drives a browser that is already installed,
|
||||
// instead of the Chromium build from `npx playwright install`.
|
||||
const browser = await chromium.launch({ headless: true, channel: process.env.CAPTURE_CHANNEL || undefined });
|
||||
const produced = [];
|
||||
try {
|
||||
const context = await browser.newContext({
|
||||
viewport: project.viewport ?? config.viewport ?? { width: 1440, height: 900 },
|
||||
deviceScaleFactor: project.deviceScaleFactor ?? config.deviceScaleFactor ?? 1,
|
||||
colorScheme: project.colorScheme ?? config.colorScheme ?? "light",
|
||||
reducedMotion: "reduce",
|
||||
});
|
||||
const page = await context.newPage();
|
||||
await runSteps(page, project, baseUrl, produced);
|
||||
await context.close();
|
||||
} finally {
|
||||
await browser.close();
|
||||
}
|
||||
return produced;
|
||||
}
|
||||
|
||||
// Convert hand-taken screenshots (Android emulator, Swing app, hardware, stock photo)
|
||||
// from scripts/capture/manual/<id>/ into the output folder, numbered in filename order.
|
||||
// Each one is downscaled and saved as WebP so a 1080x2400 phone shot ships at ~60 KB.
|
||||
async function promoteManual(project) {
|
||||
const dir = path.join(MANUAL_DIR, project.id);
|
||||
const entries = await fs.readdir(dir).catch(() => []);
|
||||
const files = entries.filter((f) => IMAGE_RE.test(f)).sort((a, b) =>
|
||||
a.localeCompare(b, undefined, { numeric: true })
|
||||
);
|
||||
if (files.length === 0) return null;
|
||||
let sharp;
|
||||
try {
|
||||
sharp = (await import("sharp")).default;
|
||||
} catch {
|
||||
throw new Error("sharp is not installed. Run: npm install");
|
||||
}
|
||||
const max = config.manualMaxWidth ?? { portrait: 720, landscape: 1440 };
|
||||
const produced = [];
|
||||
for (let i = 0; i < files.length; i++) {
|
||||
const input = sharp(path.join(dir, files[i]));
|
||||
const { width, height } = await input.metadata();
|
||||
const file = `${project.id}-${i + 1}.webp`;
|
||||
await input
|
||||
.resize({ width: height > width ? max.portrait : max.landscape, withoutEnlargement: true })
|
||||
.webp({ quality: 82 })
|
||||
.toFile(path.join(OUT_DIR, file));
|
||||
produced.push(file);
|
||||
log(` converted ${files[i]} -> ${file}`);
|
||||
}
|
||||
return produced;
|
||||
}
|
||||
|
||||
// "portrait" for phone screenshots, "landscape" otherwise. The site uses this to
|
||||
// size the media pane in the project pop-up.
|
||||
async function orientationOf(file) {
|
||||
const sharp = (await import("sharp")).default;
|
||||
const { width, height } = await sharp(path.join(OUT_DIR, file)).metadata();
|
||||
return height > width ? "portrait" : "landscape";
|
||||
}
|
||||
|
||||
async function captureProject(project) {
|
||||
if (project.manual) return promoteManual(project);
|
||||
|
||||
const cwd = await prepareSource(project);
|
||||
for (const cmd of project.setup ?? []) {
|
||||
log(` ${project.id}: ${cmd}`);
|
||||
await run(cmd, [], { cwd, shell: true });
|
||||
}
|
||||
|
||||
let baseUrl = project.url;
|
||||
let server = null;
|
||||
try {
|
||||
if (project.serve) {
|
||||
log(` ${project.id}: starting "${project.serve.command}"`);
|
||||
server = startServer(project.serve.command, path.join(cwd, project.serve.cwd ?? ""));
|
||||
baseUrl = project.serve.url;
|
||||
await waitForUrl(baseUrl, project.serve.readyTimeoutSec ?? 120);
|
||||
}
|
||||
if (!baseUrl) throw new Error("set \"serve\" or \"url\" for this project");
|
||||
return await captureWithBrowser(project, baseUrl);
|
||||
} finally {
|
||||
await stopServer(server);
|
||||
}
|
||||
}
|
||||
|
||||
// Remove screenshots from an earlier run that this run did not replace.
|
||||
async function pruneOld(id, keep) {
|
||||
const entries = await fs.readdir(OUT_DIR).catch(() => []);
|
||||
for (const f of entries) {
|
||||
if (f.startsWith(`${id}-`) && IMAGE_RE.test(f) && !keep.includes(f)) {
|
||||
await fs.unlink(path.join(OUT_DIR, f));
|
||||
log(` removed old ${f}`);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
async function main() {
|
||||
await fs.mkdir(OUT_DIR, { recursive: true });
|
||||
const data = JSON.parse(await fs.readFile(DATA_FILE, "utf8"));
|
||||
const results = { ok: [], skipped: [], failed: [] };
|
||||
|
||||
for (const project of config.projects) {
|
||||
const id = project.id;
|
||||
if (ONLY ? !ONLY.has(id) : project.enabled === false) {
|
||||
continue;
|
||||
}
|
||||
log(`== ${id}`);
|
||||
try {
|
||||
const files = await captureProject(project);
|
||||
if (!files || files.length === 0) {
|
||||
log(` nothing to capture for ${id} (manual folder empty or missing), skipped`);
|
||||
results.skipped.push(id);
|
||||
continue;
|
||||
}
|
||||
await pruneOld(id, files);
|
||||
const entry = data.find((p) => p.id === id);
|
||||
if (entry) {
|
||||
entry.images = files;
|
||||
entry.orientation = await orientationOf(files[0]);
|
||||
}
|
||||
else log(` warning: no project with id "${id}" in ${path.relative(ROOT, DATA_FILE)}`);
|
||||
results.ok.push(`${id} (${files.length})`);
|
||||
} catch (err) {
|
||||
console.error(`[capture] FAILED ${id}: ${err.message}`);
|
||||
results.failed.push(id);
|
||||
}
|
||||
}
|
||||
|
||||
if (results.ok.length) {
|
||||
await fs.writeFile(DATA_FILE, JSON.stringify(data, null, 2) + "\n");
|
||||
log(`updated ${path.relative(ROOT, DATA_FILE)}`);
|
||||
}
|
||||
log(`done. captured: ${results.ok.join(", ") || "none"}; skipped: ${results.skipped.join(", ") || "none"}; failed: ${results.failed.join(", ") || "none"}`);
|
||||
process.exitCode = results.failed.length ? 1 : 0;
|
||||
}
|
||||
|
||||
await main();
|
||||
@@ -0,0 +1,12 @@
|
||||
# Hand-taken screenshots
|
||||
|
||||
For projects that can't be driven by a browser (Android, Java Swing, hardware),
|
||||
drop images into a folder named after the project id, then run `npm run capture`:
|
||||
|
||||
scripts/capture/manual/routines/ -> Routines App
|
||||
scripts/capture/manual/mass/ -> MASS (phone screenshots)
|
||||
scripts/capture/manual/radar/ -> 240 GHz Doppler Radar
|
||||
scripts/capture/manual/ai-bot/ -> AI Discord Bot
|
||||
|
||||
Files are copied in filename order (1.png, 2.png, ...). Use PNG, JPG or WebP.
|
||||
Folder contents are gitignored, so only the processed copies in public/images/projects/ get committed.
|
||||
@@ -178,8 +178,38 @@ app.get(
|
||||
);
|
||||
|
||||
const distPath = path.resolve(__dirname, "../dist");
|
||||
app.use(express.static(distPath));
|
||||
app.get(/^(?!\/api).*/, (req, res) => res.sendFile(path.join(distPath, "index.html")));
|
||||
|
||||
// Runtime site config. `docker run -e VITE_NAME=...` (or secrets/.env when run
|
||||
// directly) fills these in at start-up, so one built image serves any identity.
|
||||
// Only these identity/contact keys are exposed; the GitHub token never is.
|
||||
const PUBLIC_KEYS = ["VITE_NAME", "VITE_EMAIL", "VITE_GITHUB_USER", "VITE_LINKEDIN", "VITE_CV_URL", "VITE_UNIVERSITY"];
|
||||
const publicEnv = Object.fromEntries(
|
||||
PUBLIC_KEYS.filter((k) => process.env[k]).map((k) => [k, process.env[k]])
|
||||
);
|
||||
const escapeHtml = (s) =>
|
||||
s.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """);
|
||||
|
||||
app.get("/env.js", (req, res) => {
|
||||
res.set("Cache-Control", "no-store").type("application/javascript");
|
||||
res.send(`window.__ENV__=${JSON.stringify(publicEnv)};`);
|
||||
});
|
||||
|
||||
// index.html with the site name filled into the <title>/meta tags.
|
||||
let indexHtml = "";
|
||||
try {
|
||||
indexHtml = fs
|
||||
.readFileSync(path.join(distPath, "index.html"), "utf8")
|
||||
.replaceAll("__SITE_NAME__", escapeHtml(publicEnv.VITE_NAME || "Your Name"))
|
||||
// Absolute URLs for link previews (og:image needs one). Set SITE_URL to the public address.
|
||||
.replaceAll("__SITE_URL__", escapeHtml((process.env.SITE_URL || ALLOWED_ORIGIN).replace(/\/$/, "")));
|
||||
} catch {
|
||||
console.warn("dist/index.html not found, run `npm run build` first");
|
||||
}
|
||||
const sendIndex = (req, res) => res.type("html").send(indexHtml);
|
||||
|
||||
app.get("/", sendIndex);
|
||||
app.use(express.static(distPath, { index: false }));
|
||||
app.get(/^(?!\/api).*/, sendIndex);
|
||||
|
||||
const server =
|
||||
TLS_CERT && TLS_KEY
|
||||
|
||||
@@ -13,40 +13,33 @@ import Contact from "./components/Contact.jsx";
|
||||
import Cursor from "./components/Cursor.jsx";
|
||||
import Reveal from "./components/Reveal.jsx";
|
||||
|
||||
// Hero animates itself on load. Sections whose cards stagger in on their own
|
||||
// (experience, projects, repos, interests, homelab) are not wrapped in Reveal,
|
||||
// so the two effects don't stack.
|
||||
export default function App() {
|
||||
return (
|
||||
<>
|
||||
<Cursor />
|
||||
<Nav />
|
||||
<main>
|
||||
<Reveal>
|
||||
<Hero />
|
||||
</Reveal>
|
||||
<Reveal delay={0.05}>
|
||||
<Stats />
|
||||
</Reveal>
|
||||
<Reveal>
|
||||
<About />
|
||||
</Reveal>
|
||||
<Reveal>
|
||||
<Experience />
|
||||
</Reveal>
|
||||
<Projects />
|
||||
<Reveal>
|
||||
<PushTracker />
|
||||
</Reveal>
|
||||
<Reveal>
|
||||
<GitHubGrid />
|
||||
</Reveal>
|
||||
<Reveal>
|
||||
<SkillsCarousel />
|
||||
</Reveal>
|
||||
<Reveal>
|
||||
<Interests />
|
||||
</Reveal>
|
||||
<Reveal>
|
||||
<Homelab />
|
||||
</Reveal>
|
||||
</main>
|
||||
<Reveal>
|
||||
<Contact />
|
||||
|
||||
@@ -1,22 +1,73 @@
|
||||
import { useRef } from "react";
|
||||
import { useInView } from "motion/react";
|
||||
import { profile } from "../content.js";
|
||||
import { Icon } from "./icons.jsx";
|
||||
|
||||
function Education() {
|
||||
const edu = profile.education;
|
||||
const ref = useRef(null);
|
||||
const inView = useInView(ref, { once: true, margin: "-80px" });
|
||||
|
||||
return (
|
||||
<aside className="edu" ref={ref} aria-label="Education">
|
||||
<div className="edu-top">
|
||||
<span className="edu-icon">
|
||||
<Icon name="cap" />
|
||||
</span>
|
||||
<span className="badge">
|
||||
{edu.classification}
|
||||
<span className="badge-grade">{edu.grade}</span>
|
||||
</span>
|
||||
</div>
|
||||
<h3 className="edu-degree">{edu.degree}</h3>
|
||||
<p className="edu-school">{edu.institution}</p>
|
||||
<p className="edu-meta">
|
||||
<span>{edu.period}</span>
|
||||
<span>{edu.accreditation}</span>
|
||||
<span>{edu.awarded}</span>
|
||||
</p>
|
||||
|
||||
<h4 className="edu-label">Strongest modules</h4>
|
||||
<ul className="edu-modules">
|
||||
{edu.modules.map((m, i) => (
|
||||
<li key={m.name}>
|
||||
<span className="edu-module-name">{m.name}</span>
|
||||
<span className="edu-module-mark">{m.mark}%</span>
|
||||
<span className="edu-bar">
|
||||
<span
|
||||
className="edu-bar-fill"
|
||||
style={{ width: `${inView ? m.mark : 0}%`, transitionDelay: `${i * 80}ms` }}
|
||||
/>
|
||||
</span>
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
|
||||
<h4 className="edu-label">Also studied</h4>
|
||||
<ul className="edu-also">
|
||||
{edu.alsoStudied.map((m) => (
|
||||
<li key={m}>{m}</li>
|
||||
))}
|
||||
</ul>
|
||||
<p className="edu-note">{edu.note}</p>
|
||||
</aside>
|
||||
);
|
||||
}
|
||||
|
||||
export default function About() {
|
||||
return (
|
||||
<section className="about section" id="about">
|
||||
<div className="container about-grid">
|
||||
<h2 className="section-title">About</h2>
|
||||
<div className="about-body">
|
||||
<p className="eyebrow">About</p>
|
||||
<h2 className="section-title">A bit about me</h2>
|
||||
{profile.about.map((p) => (
|
||||
<p key={p.slice(0, 24)}>{p}</p>
|
||||
<p className="about-p" key={p.slice(0, 24)}>
|
||||
{p}
|
||||
</p>
|
||||
))}
|
||||
<div className="edu-card">
|
||||
<div className="edu-main">
|
||||
<h3>{profile.education.degree}</h3>
|
||||
<p>{profile.education.institution}</p>
|
||||
</div>
|
||||
<span className="badge">{profile.education.classification}</span>
|
||||
</div>
|
||||
</div>
|
||||
<Education />
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
|
||||
@@ -16,7 +16,7 @@ const contactIcons = {
|
||||
linkedin: {
|
||||
vb: "0 0 24 24",
|
||||
inner:
|
||||
'<path d="M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.048c.477-.9 1.637-1.85 3.378-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.04 9.429C3.89 9.429 2.967 8.511 2.967 7.365c0-1.154.926-2.074 2.073-2.074 1.146 0 2.074.92 2.074 2.074 0 1.146-.922 2.068-2.075 2.073zm.004 11.02h-3.44V9h3.44v11.45z"/>',
|
||||
'<path d="M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433a2.062 2.062 0 0 1-2.063-2.065 2.064 2.064 0 1 1 2.063 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z"/>',
|
||||
},
|
||||
};
|
||||
|
||||
@@ -48,14 +48,16 @@ function PrivacyNote() {
|
||||
{open && (
|
||||
<div id="privacy-panel" className="privacy-panel">
|
||||
<p>
|
||||
<strong>{profile.name}</strong> ({profile.email}) is the data controller for this
|
||||
site. No cookies, analytics, or third-party trackers are used, and nothing you do here
|
||||
is logged or stored on a server. Your light/dark theme choice is saved in your
|
||||
browser's local storage only and is never transmitted anywhere. The Contributions
|
||||
graph above is fetched by this site's own server, not your browser, so GitHub never
|
||||
sees you as a visitor. If you email me, I'll only use your details to reply. Under UK
|
||||
GDPR you can request access to or deletion of any data held about you by emailing{" "}
|
||||
{profile.email}.
|
||||
<strong>{profile.name}</strong>{profile.email && ` (${profile.email})`} is the data controller for this
|
||||
site. It sits behind Cloudflare, which handles traffic to it and applies bot, AI-crawler
|
||||
and scraping protection. In doing so Cloudflare may process your IP address and
|
||||
set its own security cookies; I don't receive or manage any of that, only the
|
||||
aggregate statistics Cloudflare provides. I run no analytics, advertising or
|
||||
tracking of my own, and nothing you do here is stored by the site itself. Your light/dark
|
||||
theme choice is saved in your browser's local storage only and is never transmitted.
|
||||
The Contributions graph is fetched by this site's own server, not your browser, so GitHub
|
||||
never sees you as a visitor. If you email me, I'll only use your details to reply.
|
||||
{profile.email && ` Under UK GDPR you can request access to or deletion of any data held about you by emailing ${profile.email}.`}
|
||||
</p>
|
||||
</div>
|
||||
)}
|
||||
@@ -68,24 +70,28 @@ export default function Contact() {
|
||||
return (
|
||||
<footer className="contact" id="contact">
|
||||
<div className="container">
|
||||
<p className="eyebrow eyebrow--light">Get in touch</p>
|
||||
<p className="eyebrow eyebrow--plain eyebrow--light">Get in touch</p>
|
||||
<h2 className="contact-title">Let's talk.</h2>
|
||||
<p className="contact-lede">
|
||||
I'm open to graduate and junior software engineering roles, or just a good conversation about self-hosting.
|
||||
</p>
|
||||
<div className="contact-actions">
|
||||
{profile.email && (
|
||||
<a className="btn btn-primary" href={`mailto:${profile.email}`}>
|
||||
<ContactGlyph name="email" />
|
||||
{profile.email}
|
||||
</a>
|
||||
)}
|
||||
<a className="btn btn-outline-light" href={profile.github} target="_blank" rel="noreferrer">
|
||||
<ContactGlyph name="github" />
|
||||
GitHub
|
||||
</a>
|
||||
{profile.linkedin && (
|
||||
<a className="btn btn-outline-light" href={profile.linkedin} target="_blank" rel="noreferrer">
|
||||
<ContactGlyph name="linkedin" />
|
||||
LinkedIn
|
||||
</a>
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
<div className="container footer-bar">
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
import { useEffect, useRef, useState } from "react";
|
||||
import { useReducedMotion } from "motion/react";
|
||||
|
||||
// Custom pointer for mouse users: a small dot that stretches in the direction of
|
||||
// travel and swells slightly over links and buttons.
|
||||
export default function Cursor() {
|
||||
const reduced = useReducedMotion();
|
||||
const [active, setActive] = useState(false);
|
||||
@@ -92,8 +94,8 @@ export default function Cursor() {
|
||||
if (!active) return null;
|
||||
|
||||
return (
|
||||
<div className="cursor-dot" aria-hidden="true">
|
||||
<span ref={dotRef} />
|
||||
<div className="cursor" aria-hidden="true">
|
||||
<span className="cursor-dot" ref={dotRef} />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
@@ -1,23 +1,31 @@
|
||||
import { experience } from "../content.js";
|
||||
import { Stagger, StaggerItem } from "./Stagger.jsx";
|
||||
|
||||
export default function Experience() {
|
||||
return (
|
||||
<section className="experience section" id="experience">
|
||||
<div className="container">
|
||||
<p className="eyebrow">Background</p>
|
||||
<h2 className="section-title">Experience & education</h2>
|
||||
<ol className="timeline">
|
||||
<h2 className="section-title">Experience</h2>
|
||||
<Stagger as="ol" className="timeline" gap={0.14}>
|
||||
{experience.map((e) => (
|
||||
<li key={e.title} className="timeline-item">
|
||||
<StaggerItem as="li" key={e.title} className="timeline-item">
|
||||
<div className="timeline-period">{e.period}</div>
|
||||
<div className="timeline-body">
|
||||
<h3>{e.title}</h3>
|
||||
<p className="timeline-org">{e.org}</p>
|
||||
<p className="timeline-detail">{e.detail}</p>
|
||||
</div>
|
||||
</li>
|
||||
{e.summary && <p className="timeline-detail">{e.summary}</p>}
|
||||
{e.points && (
|
||||
<ul className="timeline-points">
|
||||
{e.points.map((pt) => (
|
||||
<li key={pt}>{pt}</li>
|
||||
))}
|
||||
</ol>
|
||||
</ul>
|
||||
)}
|
||||
</div>
|
||||
</StaggerItem>
|
||||
))}
|
||||
</Stagger>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
import { profile, githubRepos } from "../content.js";
|
||||
import { skillIcons } from "./skill-icons.js";
|
||||
import { Stagger, StaggerItem } from "./Stagger.jsx";
|
||||
import { Icon } from "./icons.jsx";
|
||||
|
||||
const langColors = {
|
||||
JavaScript: "#f1e05a",
|
||||
@@ -40,20 +42,19 @@ export default function GitHubGrid() {
|
||||
return (
|
||||
<section className="github section" id="github">
|
||||
<div className="container">
|
||||
<p className="eyebrow">Code</p>
|
||||
<h2 className="section-title">On GitHub</h2>
|
||||
<p className="section-lede">
|
||||
A curated selection from my 38 repositories: 27 self-made and 11
|
||||
fully agentic projects built with AI agents, to develop a feel for
|
||||
system design and AI-assisted software development. The full list
|
||||
lives on{" "}
|
||||
A few repositories worth opening first. The full list lives on{" "}
|
||||
<a href={profile.github} target="_blank" rel="noreferrer">
|
||||
github.com/{profile.githubUser}
|
||||
</a>
|
||||
.
|
||||
</p>
|
||||
<div className="repo-grid">
|
||||
<Stagger className="repo-grid" gap={0.07}>
|
||||
{githubRepos.map((r) => (
|
||||
<a
|
||||
<StaggerItem
|
||||
as="a"
|
||||
key={r.name}
|
||||
className="repo-card"
|
||||
href={r.url}
|
||||
@@ -67,13 +68,11 @@ export default function GitHubGrid() {
|
||||
<LangMark language={r.language} />
|
||||
{r.language}
|
||||
</span>
|
||||
<span className="repo-stars">
|
||||
{r.stars > 0 ? `${r.stars} star${r.stars === 1 ? "" : "s"}` : null}
|
||||
</span>
|
||||
<Icon name="external" className="link-icon" />
|
||||
</div>
|
||||
</a>
|
||||
</StaggerItem>
|
||||
))}
|
||||
</div>
|
||||
</Stagger>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
|
||||
@@ -1,34 +1,76 @@
|
||||
import { motion, useReducedMotion } from "motion/react";
|
||||
import { profile } from "../content.js";
|
||||
import { Icon } from "./icons.jsx";
|
||||
|
||||
const EASE = [0.22, 1, 0.36, 1];
|
||||
const group = { hidden: {}, show: { transition: { staggerChildren: 0.09, delayChildren: 0.05 } } };
|
||||
const rise = {
|
||||
hidden: { opacity: 0, y: 20 },
|
||||
show: { opacity: 1, y: 0, transition: { duration: 0.65, ease: EASE } },
|
||||
};
|
||||
|
||||
export default function Hero() {
|
||||
const reduced = useReducedMotion();
|
||||
// With reduced motion everything is simply rendered in place.
|
||||
const anim = reduced ? {} : { variants: rise };
|
||||
|
||||
return (
|
||||
<section className="hero" id="top">
|
||||
<div className="container">
|
||||
<p className="eyebrow">
|
||||
<div className="hero-backdrop" aria-hidden="true" />
|
||||
<motion.div
|
||||
className="container hero-grid"
|
||||
variants={reduced ? undefined : group}
|
||||
initial={reduced ? false : "hidden"}
|
||||
animate={reduced ? undefined : "show"}
|
||||
>
|
||||
<div className="hero-copy">
|
||||
<motion.p className="eyebrow eyebrow--plain" {...anim}>
|
||||
{profile.role} · {profile.location}
|
||||
</p>
|
||||
<h1 className="hero-name">
|
||||
</motion.p>
|
||||
<motion.h1 className="hero-name" {...anim}>
|
||||
{profile.name}
|
||||
<span className="accent">.</span>
|
||||
</h1>
|
||||
<p className="hero-tagline">{profile.heroTagline}</p>
|
||||
<div className="hero-availability">
|
||||
</motion.h1>
|
||||
<motion.p className="hero-tagline" {...anim}>
|
||||
{profile.heroTagline}
|
||||
</motion.p>
|
||||
<motion.div className="hero-actions" {...anim}>
|
||||
<a className="btn btn-primary" href="#projects">
|
||||
View projects
|
||||
<Icon name="arrow" className="btn-icon" />
|
||||
</a>
|
||||
{profile.cvUrl && (
|
||||
<a className="btn btn-outline" href={profile.cvUrl} download>
|
||||
<Icon name="download" className="btn-icon" />
|
||||
Download CV
|
||||
</a>
|
||||
)}
|
||||
</motion.div>
|
||||
</div>
|
||||
|
||||
<motion.aside className="glance" aria-label={`About ${profile.name}`} {...anim}>
|
||||
<div className="glance-head">
|
||||
<span className="glance-title">{profile.name}</span>
|
||||
<span className="glance-lights" aria-hidden="true">
|
||||
<i />
|
||||
<i />
|
||||
<i />
|
||||
</span>
|
||||
</div>
|
||||
<dl className="glance-rows">
|
||||
{profile.glance.map((row) => (
|
||||
<div className="glance-row" key={row.label}>
|
||||
<dt>{row.label}</dt>
|
||||
<dd>{row.value}</dd>
|
||||
</div>
|
||||
))}
|
||||
</dl>
|
||||
<div className="glance-status">
|
||||
<span className="availability-dot" aria-hidden="true" />
|
||||
{profile.availability}
|
||||
</div>
|
||||
<p className="hero-education">
|
||||
{profile.education.degree} · {profile.education.classification} ·{" "}
|
||||
{profile.education.institution}
|
||||
</p>
|
||||
<div className="hero-actions">
|
||||
<a className="btn btn-primary" href="#projects">
|
||||
View projects
|
||||
</a>
|
||||
<a className="btn btn-outline" href={profile.cvUrl} download>
|
||||
Download CV
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</motion.aside>
|
||||
</motion.div>
|
||||
</section>
|
||||
);
|
||||
}
|
||||
@@ -1,25 +1,40 @@
|
||||
import { homelab, localAI } from "../content.js";
|
||||
import { homelab, homelabMore, localAI } from "../content.js";
|
||||
import { Stagger, StaggerItem } from "./Stagger.jsx";
|
||||
import { Icon } from "./icons.jsx";
|
||||
|
||||
export default function Homelab() {
|
||||
return (
|
||||
<section className="homelab section" id="homelab">
|
||||
<div className="container">
|
||||
<p className="eyebrow">Infrastructure</p>
|
||||
<h2 className="section-title">Homelab & side endeavours</h2>
|
||||
<p className="section-lede">
|
||||
Everything below runs on hardware I own: a single Proxmox node at home,
|
||||
three cloud VPS instances, and the services that live on top of them.
|
||||
</p>
|
||||
<ul className="homelab-grid">
|
||||
<Stagger as="ul" className="homelab-grid" gap={0.04}>
|
||||
{homelab.map((h) => (
|
||||
<li key={h.name} className="homelab-item">
|
||||
<h3>{h.name}</h3>
|
||||
<StaggerItem as="li" key={h.name} className="homelab-item">
|
||||
<span className="homelab-icon">
|
||||
<Icon name={h.name} />
|
||||
</span>
|
||||
<div>
|
||||
<h3>
|
||||
{h.name}
|
||||
{h.wip && <span className="homelab-wip">In progress</span>}
|
||||
</h3>
|
||||
<p>{h.detail}</p>
|
||||
</li>
|
||||
</div>
|
||||
</StaggerItem>
|
||||
))}
|
||||
</ul>
|
||||
</Stagger>
|
||||
<p className="homelab-more">{homelabMore}</p>
|
||||
|
||||
<div className="local-ai">
|
||||
<h2 className="section-title">{localAI.heading}</h2>
|
||||
<span className="local-ai-icon">
|
||||
<Icon name="cpu" />
|
||||
</span>
|
||||
<h3 className="section-title">{localAI.heading}</h3>
|
||||
{localAI.body.map((p) => (
|
||||
<p key={p.slice(0, 24)}>{p}</p>
|
||||
))}
|
||||
|
||||
@@ -1,28 +1,51 @@
|
||||
import { useState } from "react";
|
||||
import { useRef, useState } from "react";
|
||||
|
||||
// Single image renders as a plain picture; several render as a carousel with
|
||||
// arrows, dots, and scroll-snap swiping.
|
||||
export default function ImageCarousel({ images }) {
|
||||
// Fills its parent (the media pane of the project pop-up). Images are shown
|
||||
// whole (object-fit: contain) so phone screenshots are never cropped. One image
|
||||
// renders on its own; several get arrows, dots, keyboard and swipe.
|
||||
export default function ImageCarousel({ images, title = "" }) {
|
||||
const [i, setI] = useState(0);
|
||||
if (images.length === 1) return <img className="pm-image" src={images[0]} alt="" />;
|
||||
const startX = useRef(null);
|
||||
const many = images.length > 1;
|
||||
const go = (n) => setI((n + images.length) % images.length);
|
||||
|
||||
return (
|
||||
<div
|
||||
className="pm-carousel"
|
||||
role="group"
|
||||
aria-roledescription="carousel"
|
||||
aria-roledescription={many ? "carousel" : undefined}
|
||||
aria-label={`${title} screenshots`}
|
||||
tabIndex={many ? 0 : undefined}
|
||||
onKeyDown={(e) => {
|
||||
if (!many) return;
|
||||
if (e.key === "ArrowLeft") go(i - 1);
|
||||
if (e.key === "ArrowRight") go(i + 1);
|
||||
}}
|
||||
onPointerDown={(e) => {
|
||||
startX.current = e.clientX;
|
||||
}}
|
||||
onPointerUp={(e) => {
|
||||
if (!many || startX.current === null) return;
|
||||
const dx = e.clientX - startX.current;
|
||||
startX.current = null;
|
||||
if (Math.abs(dx) > 40) go(dx < 0 ? i + 1 : i - 1);
|
||||
}}
|
||||
>
|
||||
<div className="pm-carousel-track" style={{ transform: `translateX(-${i * 100}%)` }}>
|
||||
{images.map((src, n) => (
|
||||
<img key={src} className="pm-image" src={src} alt="" aria-hidden={n !== i} />
|
||||
<div className="pm-slide" key={src} aria-hidden={n !== i}>
|
||||
<img className="pm-image" src={src} alt="" draggable={false} />
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
<button className="pm-arrow pm-arrow--prev" onClick={() => go(i - 1)} aria-label="Previous image">‹</button>
|
||||
<button className="pm-arrow pm-arrow--next" onClick={() => go(i + 1)} aria-label="Next image">›</button>
|
||||
{many && (
|
||||
<>
|
||||
<button className="pm-arrow pm-arrow--prev" onClick={() => go(i - 1)} aria-label="Previous image">
|
||||
‹
|
||||
</button>
|
||||
<button className="pm-arrow pm-arrow--next" onClick={() => go(i + 1)} aria-label="Next image">
|
||||
›
|
||||
</button>
|
||||
<div className="pm-dots">
|
||||
{images.map((src, n) => (
|
||||
<button
|
||||
@@ -34,6 +57,8 @@ export default function ImageCarousel({ images }) {
|
||||
/>
|
||||
))}
|
||||
</div>
|
||||
</>
|
||||
)}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
@@ -1,4 +1,6 @@
|
||||
import { interests } from "../content.js";
|
||||
import { Stagger, StaggerItem } from "./Stagger.jsx";
|
||||
import { Icon } from "./icons.jsx";
|
||||
|
||||
export default function Interests() {
|
||||
return (
|
||||
@@ -6,14 +8,17 @@ export default function Interests() {
|
||||
<div className="container">
|
||||
<p className="eyebrow">Beyond the terminal</p>
|
||||
<h2 className="section-title">Interests</h2>
|
||||
<div className="interest-grid">
|
||||
<Stagger className="interest-grid">
|
||||
{interests.map((i) => (
|
||||
<article key={i.name} className="interest-card">
|
||||
<StaggerItem as="article" key={i.name} className="interest-card">
|
||||
<span className="interest-icon">
|
||||
<Icon name={i.icon} />
|
||||
</span>
|
||||
<h3>{i.name}</h3>
|
||||
<p>{i.detail}</p>
|
||||
</article>
|
||||
</StaggerItem>
|
||||
))}
|
||||
</div>
|
||||
</Stagger>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
|
||||
@@ -1,9 +1,13 @@
|
||||
import { useState } from "react";
|
||||
import { useEffect, useState } from "react";
|
||||
import { AnimatePresence, motion, useReducedMotion, useScroll, useSpring } from "motion/react";
|
||||
import { profile } from "../content.js";
|
||||
import { Icon } from "./icons.jsx";
|
||||
|
||||
const links = [
|
||||
{ label: "About", href: "#about" },
|
||||
{ label: "Experience", href: "#experience" },
|
||||
{ label: "Projects", href: "#projects" },
|
||||
{ label: "GitHub", href: "#github" },
|
||||
{ label: "Activity", href: "#activity" },
|
||||
{ label: "Skills", href: "#skills" },
|
||||
{ label: "Homelab", href: "#homelab" },
|
||||
{ label: "Contact", href: "#contact" },
|
||||
@@ -53,9 +57,63 @@ function SunIcon() {
|
||||
);
|
||||
}
|
||||
|
||||
// Which section is under the middle of the viewport, for the active nav link.
|
||||
function useActiveSection() {
|
||||
const [active, setActive] = useState("");
|
||||
useEffect(() => {
|
||||
// Only sections with a nav link are watched, so the pill holds the last
|
||||
// linked section while scrolling through ones without (GitHub, interests).
|
||||
const sections = links.map((l) => document.querySelector(l.href)).filter(Boolean);
|
||||
const io = new IntersectionObserver(
|
||||
(entries) => {
|
||||
for (const e of entries) {
|
||||
if (e.isIntersecting) setActive(`#${e.target.id}`);
|
||||
}
|
||||
},
|
||||
{ rootMargin: "-45% 0px -50% 0px" }
|
||||
);
|
||||
sections.forEach((s) => io.observe(s));
|
||||
const onScroll = () => {
|
||||
if (window.scrollY < 200) setActive("");
|
||||
};
|
||||
window.addEventListener("scroll", onScroll, { passive: true });
|
||||
return () => {
|
||||
io.disconnect();
|
||||
window.removeEventListener("scroll", onScroll);
|
||||
};
|
||||
}, []);
|
||||
return active;
|
||||
}
|
||||
|
||||
export default function Nav() {
|
||||
const reduced = useReducedMotion();
|
||||
const [open, setOpen] = useState(false);
|
||||
const [theme, setTheme] = useState(initialTheme);
|
||||
const [scrolled, setScrolled] = useState(false);
|
||||
const active = useActiveSection();
|
||||
const { scrollYProgress } = useScroll();
|
||||
const progress = useSpring(scrollYProgress, { stiffness: 140, damping: 28, mass: 0.4 });
|
||||
|
||||
useEffect(() => {
|
||||
const onScroll = () => setScrolled(window.scrollY > 12);
|
||||
onScroll();
|
||||
window.addEventListener("scroll", onScroll, { passive: true });
|
||||
return () => window.removeEventListener("scroll", onScroll);
|
||||
}, []);
|
||||
|
||||
// Mobile menu: Esc closes it, and it closes itself if the window grows.
|
||||
useEffect(() => {
|
||||
if (!open) return;
|
||||
const onKey = (e) => e.key === "Escape" && setOpen(false);
|
||||
const mq = window.matchMedia("(min-width: 941px)");
|
||||
const onWide = () => mq.matches && setOpen(false);
|
||||
window.addEventListener("keydown", onKey);
|
||||
mq.addEventListener("change", onWide);
|
||||
return () => {
|
||||
window.removeEventListener("keydown", onKey);
|
||||
mq.removeEventListener("change", onWide);
|
||||
};
|
||||
}, [open]);
|
||||
|
||||
function toggleTheme() {
|
||||
const next = theme === "dark" ? "light" : "dark";
|
||||
@@ -64,17 +122,54 @@ export default function Nav() {
|
||||
localStorage.setItem("theme", next);
|
||||
}
|
||||
|
||||
return (
|
||||
<header className="nav">
|
||||
<div className="container nav-inner">
|
||||
<a
|
||||
className="nav-wordmark"
|
||||
href="#top"
|
||||
onClick={() => setOpen(false)}
|
||||
const themeToggle = (
|
||||
<button
|
||||
type="button"
|
||||
className="theme-toggle"
|
||||
aria-label={theme === "dark" ? "Switch to light mode" : "Switch to dark mode"}
|
||||
title={theme === "dark" ? "Light mode" : "Dark mode"}
|
||||
onClick={toggleTheme}
|
||||
>
|
||||
{theme === "dark" ? <SunIcon /> : <MoonIcon />}
|
||||
</button>
|
||||
);
|
||||
|
||||
return (
|
||||
<header className={`nav${scrolled ? " nav--scrolled" : ""}${open ? " nav--open" : ""}`}>
|
||||
<div className="container nav-inner">
|
||||
<a className="nav-wordmark" href="#top" onClick={() => setOpen(false)}>
|
||||
{profile.name}
|
||||
<span className="nav-dot">.</span>
|
||||
</a>
|
||||
|
||||
<nav className="nav-links" aria-label="Primary">
|
||||
{links.map((l) => (
|
||||
<a
|
||||
key={l.href}
|
||||
className={`nav-link${active === l.href ? " nav-link--active" : ""}`}
|
||||
href={l.href}
|
||||
aria-current={active === l.href ? "true" : undefined}
|
||||
>
|
||||
{active === l.href && (
|
||||
<motion.span
|
||||
className="nav-link-pill"
|
||||
layoutId="nav-pill"
|
||||
transition={reduced ? { duration: 0 } : { type: "spring", stiffness: 420, damping: 34 }}
|
||||
/>
|
||||
)}
|
||||
<span className="nav-link-label">{l.label}</span>
|
||||
</a>
|
||||
))}
|
||||
</nav>
|
||||
|
||||
<div className="nav-actions">
|
||||
{themeToggle}
|
||||
{profile.cvUrl && (
|
||||
<a className="btn btn-primary btn-sm nav-cv" href={profile.cvUrl} download>
|
||||
<Icon name="download" className="btn-icon" />
|
||||
CV
|
||||
</a>
|
||||
)}
|
||||
<button
|
||||
type="button"
|
||||
className={`nav-toggle${open ? " nav-toggle--open" : ""}`}
|
||||
@@ -86,40 +181,49 @@ export default function Nav() {
|
||||
<span className="nav-toggle-bar" />
|
||||
<span className="nav-toggle-bar" />
|
||||
</button>
|
||||
<nav
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<motion.div className="nav-progress" style={{ scaleX: progress }} aria-hidden="true" />
|
||||
|
||||
<AnimatePresence>
|
||||
{open && (
|
||||
<motion.nav
|
||||
id="nav-menu"
|
||||
className={`nav-links${open ? " nav-links--open" : ""}`}
|
||||
className="nav-sheet"
|
||||
aria-label="Primary"
|
||||
initial={reduced ? false : { opacity: 0, y: -8 }}
|
||||
animate={{ opacity: 1, y: 0 }}
|
||||
exit={reduced ? undefined : { opacity: 0, y: -8 }}
|
||||
transition={{ duration: 0.22, ease: [0.22, 1, 0.36, 1] }}
|
||||
>
|
||||
{links.map((l) => (
|
||||
<div className="container">
|
||||
{links.map((l, i) => (
|
||||
<a
|
||||
key={l.href}
|
||||
className="nav-link"
|
||||
className={`nav-sheet-link${active === l.href ? " nav-sheet-link--active" : ""}`}
|
||||
href={l.href}
|
||||
onClick={() => setOpen(false)}
|
||||
>
|
||||
<span className="nav-sheet-num">{String(i + 1).padStart(2, "0")}</span>
|
||||
{l.label}
|
||||
</a>
|
||||
))}
|
||||
</nav>
|
||||
<button
|
||||
type="button"
|
||||
className="theme-toggle"
|
||||
aria-label={theme === "dark" ? "Switch to light mode" : "Switch to dark mode"}
|
||||
title={theme === "dark" ? "Light mode" : "Dark mode"}
|
||||
onClick={toggleTheme}
|
||||
>
|
||||
{theme === "dark" ? <SunIcon /> : <MoonIcon />}
|
||||
</button>
|
||||
{profile.cvUrl && (
|
||||
<a
|
||||
className="btn btn-primary btn-sm nav-cv"
|
||||
className="btn btn-primary nav-sheet-cv"
|
||||
href={profile.cvUrl}
|
||||
download
|
||||
onClick={() => setOpen(false)}
|
||||
>
|
||||
<Icon name="download" className="btn-icon" />
|
||||
Download CV
|
||||
</a>
|
||||
)}
|
||||
</div>
|
||||
</motion.nav>
|
||||
)}
|
||||
</AnimatePresence>
|
||||
</header>
|
||||
);
|
||||
}
|
||||
@@ -2,17 +2,75 @@ import { useEffect, useRef, useState } from "react";
|
||||
import { AnimatePresence, motion, useReducedMotion } from "motion/react";
|
||||
import { projects } from "../content.js";
|
||||
import ImageCarousel from "./ImageCarousel.jsx";
|
||||
import projectImages from "../project-images.json";
|
||||
import { Stagger, StaggerItem } from "./Stagger.jsx";
|
||||
import Tag from "./Tag.jsx";
|
||||
import { Icon } from "./icons.jsx";
|
||||
|
||||
// Images listed in src/project-images.json (files live in public/images/projects/);
|
||||
// `images` in src/data/projects.json (files live in public/images/projects/);
|
||||
// falls back to the project's default artwork.
|
||||
function imagesFor(p) {
|
||||
const list = (projectImages[p.id] || []).map((f) => `/images/projects/${f}`);
|
||||
const list = (p.images || []).map((f) => `/images/projects/${f}`);
|
||||
return list.length ? list : [p.image];
|
||||
}
|
||||
|
||||
function Tag({ children, variant }) {
|
||||
return <span className={`tag${variant ? ` tag--${variant}` : ""}`}>{children}</span>;
|
||||
// Card thumbnail: phone screenshots fan out as three small screens, anything
|
||||
// wider is a single cropped cover.
|
||||
function CardMedia({ project }) {
|
||||
const images = imagesFor(project);
|
||||
if (project.orientation === "portrait") {
|
||||
return (
|
||||
<div className="project-media project-media--phones" aria-hidden="true">
|
||||
{images.slice(0, 3).map((src) => (
|
||||
<img key={src} src={src} alt="" loading="lazy" />
|
||||
))}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
return (
|
||||
<div className="project-media" aria-hidden="true">
|
||||
<img src={images[0]} alt="" loading="lazy" />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
function Tags({ project }) {
|
||||
return (
|
||||
<div className="project-tags">
|
||||
{(project.tags || []).map((t) => (
|
||||
<Tag key={t} variant="private">
|
||||
{t}
|
||||
</Tag>
|
||||
))}
|
||||
{project.stack.map((t) => (
|
||||
<Tag key={t}>{t}</Tag>
|
||||
))}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
function RepoLink({ project, stop }) {
|
||||
if (!project.repo) return null;
|
||||
return (
|
||||
<a
|
||||
className="project-link"
|
||||
href={project.repo}
|
||||
target="_blank"
|
||||
rel="noreferrer"
|
||||
onClick={stop ? (e) => e.stopPropagation() : undefined}
|
||||
>
|
||||
GitHub
|
||||
<Icon name="external" className="link-icon" />
|
||||
</a>
|
||||
);
|
||||
}
|
||||
|
||||
function FypBadge() {
|
||||
return (
|
||||
<span className="fyp-badge">
|
||||
<Icon name="award" className="tag-icon" />
|
||||
Final Year Project
|
||||
</span>
|
||||
);
|
||||
}
|
||||
|
||||
export default function Projects() {
|
||||
@@ -47,15 +105,15 @@ export default function Projects() {
|
||||
<p className="eyebrow">Selected work</p>
|
||||
<h2 className="section-title">Projects, in detail</h2>
|
||||
<p className="section-lede">
|
||||
A selection of projects that show how I work, from final-year
|
||||
systems to self-hosted experiments. Click any card for the full
|
||||
breakdown.
|
||||
Every project on my CV, with the detail behind each one. Open any card for the full
|
||||
breakdown, the stack and the screenshots.
|
||||
</p>
|
||||
<div className="project-grid">
|
||||
{projects.map((p, i) => (
|
||||
<motion.article
|
||||
key={p.title}
|
||||
className={`project-card${p.highlight ? " project-card--highlight" : ""}`}
|
||||
<Stagger className="project-grid" gap={0.09}>
|
||||
{projects.map((p) => (
|
||||
<StaggerItem
|
||||
as="article"
|
||||
key={p.id}
|
||||
className={`project-card${p.fyp ? " project-card--fyp" : ""}`}
|
||||
role="button"
|
||||
tabIndex={0}
|
||||
aria-haspopup="dialog"
|
||||
@@ -66,61 +124,42 @@ export default function Projects() {
|
||||
open(p);
|
||||
}
|
||||
}}
|
||||
initial={reduced ? false : { opacity: 0, y: 20 }}
|
||||
whileInView={reduced ? undefined : { opacity: 1, y: 0 }}
|
||||
viewport={{ once: true, margin: "-60px" }}
|
||||
transition={{ duration: 0.55, delay: (i % 3) * 0.08, ease: [0.22, 1, 0.36, 1] }}
|
||||
>
|
||||
<CardMedia project={p} />
|
||||
<div className="project-body">
|
||||
{p.fyp && <FypBadge />}
|
||||
<div className="project-head">
|
||||
<h3>{p.title}</h3>
|
||||
<span className="project-year">{p.year}</span>
|
||||
<span className="project-year">{p.period || p.year}</span>
|
||||
</div>
|
||||
<p className="project-role">{p.role}</p>
|
||||
<p className="project-desc">{p.description}</p>
|
||||
<ul className="project-features">
|
||||
{p.features.map((f) => (
|
||||
<li key={f}>{f}</li>
|
||||
))}
|
||||
</ul>
|
||||
<Tags project={p} />
|
||||
<div className="project-foot">
|
||||
<div className="project-tags">
|
||||
{(p.tags || []).map((t) => (
|
||||
<Tag key={t} variant="private">
|
||||
{t}
|
||||
</Tag>
|
||||
))}
|
||||
{p.stack.map((t) => (
|
||||
<Tag key={t}>{t}</Tag>
|
||||
))}
|
||||
</div>
|
||||
{p.repo && (
|
||||
<a
|
||||
className="project-link"
|
||||
href={p.repo}
|
||||
target="_blank"
|
||||
rel="noreferrer"
|
||||
onClick={(e) => e.stopPropagation()}
|
||||
>
|
||||
GitHub ↗
|
||||
</a>
|
||||
)}
|
||||
</div>
|
||||
<span className="project-hint" aria-hidden="true">
|
||||
Full breakdown →
|
||||
<span className="project-hint">
|
||||
Full breakdown
|
||||
<Icon name="arrow" className="link-icon" />
|
||||
</span>
|
||||
</motion.article>
|
||||
))}
|
||||
<RepoLink project={p} stop />
|
||||
</div>
|
||||
</div>
|
||||
</StaggerItem>
|
||||
))}
|
||||
</Stagger>
|
||||
</div>
|
||||
|
||||
<AnimatePresence>
|
||||
{selected && (
|
||||
<div
|
||||
<motion.div
|
||||
className="pm-backdrop"
|
||||
onClick={close}
|
||||
initial={reduced ? false : { opacity: 0 }}
|
||||
animate={{ opacity: 1 }}
|
||||
exit={reduced ? undefined : { opacity: 0 }}
|
||||
transition={{ duration: 0.2 }}
|
||||
>
|
||||
<motion.div
|
||||
className="pm-panel"
|
||||
className={`pm-panel pm-panel--${selected.orientation || "landscape"}`}
|
||||
role="dialog"
|
||||
aria-modal="true"
|
||||
aria-labelledby="pm-title"
|
||||
@@ -130,49 +169,38 @@ export default function Projects() {
|
||||
exit={reduced ? undefined : { opacity: 0, y: 12, scale: 0.98 }}
|
||||
transition={{ duration: 0.3, ease: [0.22, 1, 0.36, 1] }}
|
||||
>
|
||||
<button className="pm-close" ref={closeRef} onClick={close}>
|
||||
<button className="pm-close" ref={closeRef} onClick={close} aria-label="Close">
|
||||
Close ×
|
||||
</button>
|
||||
<ImageCarousel key={selected.id} images={imagesFor(selected)} />
|
||||
<div className="pm-body">
|
||||
<div className="pm-head">
|
||||
<h3 id="pm-title">{selected.title}</h3>
|
||||
{selected.year && (
|
||||
<span className="project-year">{selected.year}</span>
|
||||
)}
|
||||
<div className="pm-media">
|
||||
<ImageCarousel key={selected.id} images={imagesFor(selected)} title={selected.title} />
|
||||
</div>
|
||||
<p className="project-role">{selected.role}</p>
|
||||
<div className="pm-body">
|
||||
{selected.fyp && <FypBadge />}
|
||||
<h3 id="pm-title" className="pm-title">
|
||||
{selected.title}
|
||||
</h3>
|
||||
<p className="pm-meta">
|
||||
<span>{selected.role}</span>
|
||||
{(selected.period || selected.year) && (
|
||||
<span className="project-year">{selected.period || selected.year}</span>
|
||||
)}
|
||||
</p>
|
||||
<p className="pm-detail">{selected.detail}</p>
|
||||
<ul className="project-features">
|
||||
{selected.features.map((f) => (
|
||||
<li key={f}>{f}</li>
|
||||
))}
|
||||
</ul>
|
||||
<div className="pm-foot">
|
||||
<div className="project-tags">
|
||||
{(selected.tags || []).map((t) => (
|
||||
<Tag key={t} variant="private">
|
||||
{t}
|
||||
</Tag>
|
||||
))}
|
||||
{selected.stack.map((t) => (
|
||||
<Tag key={t}>{t}</Tag>
|
||||
))}
|
||||
</div>
|
||||
<Tags project={selected} />
|
||||
{selected.repo && (
|
||||
<a
|
||||
className="project-link"
|
||||
href={selected.repo}
|
||||
target="_blank"
|
||||
rel="noreferrer"
|
||||
>
|
||||
GitHub ↗
|
||||
</a>
|
||||
<div className="pm-foot">
|
||||
<RepoLink project={selected} />
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
</motion.div>
|
||||
</div>
|
||||
</motion.div>
|
||||
)}
|
||||
</AnimatePresence>
|
||||
</section>
|
||||
|
||||
@@ -53,6 +53,7 @@ export default function SkillsCarousel() {
|
||||
return (
|
||||
<section className="skills section" id="skills">
|
||||
<div className="container">
|
||||
<p className="eyebrow">Toolbox</p>
|
||||
<h2 className="section-title">Skills & tools</h2>
|
||||
<Marquee label="Languages & frameworks" items={skills.languages} />
|
||||
<Marquee label="Tools & platforms" items={skills.tools} />
|
||||
|
||||
@@ -0,0 +1,49 @@
|
||||
import { motion, useReducedMotion } from "motion/react";
|
||||
|
||||
const EASE = [0.22, 1, 0.36, 1];
|
||||
|
||||
const group = (gap) => ({
|
||||
hidden: {},
|
||||
show: { transition: { staggerChildren: gap } },
|
||||
});
|
||||
|
||||
const item = {
|
||||
hidden: { opacity: 0, y: 22 },
|
||||
show: { opacity: 1, y: 0, transition: { duration: 0.55, ease: EASE } },
|
||||
};
|
||||
|
||||
// Wrap a grid or list in <Stagger> and each child in <StaggerItem>: the children
|
||||
// fade up one after another the first time the group scrolls into view.
|
||||
export function Stagger({ as = "div", gap = 0.08, children, ...rest }) {
|
||||
const reduced = useReducedMotion();
|
||||
if (reduced) {
|
||||
const Plain = as;
|
||||
return <Plain {...rest}>{children}</Plain>;
|
||||
}
|
||||
const Moving = motion[as];
|
||||
return (
|
||||
<Moving
|
||||
variants={group(gap)}
|
||||
initial="hidden"
|
||||
whileInView="show"
|
||||
viewport={{ once: true, margin: "-60px" }}
|
||||
{...rest}
|
||||
>
|
||||
{children}
|
||||
</Moving>
|
||||
);
|
||||
}
|
||||
|
||||
export function StaggerItem({ as = "div", children, ...rest }) {
|
||||
const reduced = useReducedMotion();
|
||||
if (reduced) {
|
||||
const Plain = as;
|
||||
return <Plain {...rest}>{children}</Plain>;
|
||||
}
|
||||
const Moving = motion[as];
|
||||
return (
|
||||
<Moving variants={item} {...rest}>
|
||||
{children}
|
||||
</Moving>
|
||||
);
|
||||
}
|
||||
@@ -1,12 +1,41 @@
|
||||
import { useEffect, useRef, useState } from "react";
|
||||
import { animate, useInView, useReducedMotion } from "motion/react";
|
||||
import { stats } from "../content.js";
|
||||
|
||||
// Counts the leading number up from zero the first time it scrolls into view.
|
||||
// Anything after the digits ("+", "k+") is kept as a suffix.
|
||||
function CountUp({ value }) {
|
||||
const reduced = useReducedMotion();
|
||||
const ref = useRef(null);
|
||||
const inView = useInView(ref, { once: true, margin: "-40px" });
|
||||
const match = /^(\d+)(.*)$/.exec(value);
|
||||
const target = match ? Number(match[1]) : null;
|
||||
const [n, setN] = useState(reduced || target === null ? target : 0);
|
||||
|
||||
useEffect(() => {
|
||||
if (reduced || target === null || !inView) return;
|
||||
const controls = animate(0, target, {
|
||||
duration: 1.1,
|
||||
ease: [0.22, 1, 0.36, 1],
|
||||
onUpdate: (v) => setN(Math.round(v)),
|
||||
});
|
||||
return () => controls.stop();
|
||||
}, [inView, reduced, target]);
|
||||
|
||||
return (
|
||||
<span className="stat-value" ref={ref}>
|
||||
{target === null ? value : `${n}${match[2]}`}
|
||||
</span>
|
||||
);
|
||||
}
|
||||
|
||||
export default function Stats() {
|
||||
return (
|
||||
<section className="stats" aria-label="Portfolio statistics">
|
||||
<div className="container stats-grid">
|
||||
{stats.map((s) => (
|
||||
<div key={s.label} className="stat">
|
||||
<span className="stat-value">{s.value}</span>
|
||||
<CountUp value={s.value} />
|
||||
<span className="stat-label">{s.label}</span>
|
||||
</div>
|
||||
))}
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
import { Icon } from "./icons.jsx";
|
||||
|
||||
// Pill used for tech stacks and labels. Picks up a glyph when icons.jsx has one
|
||||
// for the label; plain text otherwise.
|
||||
export default function Tag({ children, variant }) {
|
||||
return (
|
||||
<span className={`tag${variant ? ` tag--${variant}` : ""}`}>
|
||||
<Icon name={children} className="tag-icon" />
|
||||
{children}
|
||||
</span>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,105 @@
|
||||
// Small glyphs for tags, homelab tiles and interest cards. Brand marks come from
|
||||
// simple-icons (CC0) or the existing skill-icons.js; the generic ones are
|
||||
// lucide-style strokes (ISC).
|
||||
import {
|
||||
siTailwindcss, siProxmox, siNginx, siTailscale, siEspressif, siArduino, siDiscord,
|
||||
siGitlab, siPihole, siVaultwarden, siImmich, siSearxng, siWireguard, siGitea,
|
||||
siHomeassistant, siReact, siGnubash,
|
||||
} from "simple-icons";
|
||||
import { skillIcons } from "./skill-icons.js";
|
||||
|
||||
const si = (icon) => ({ vb: "0 0 24 24", inner: `<path d="${icon.path}"/>` });
|
||||
const stroke = (inner) => ({
|
||||
vb: "0 0 24 24",
|
||||
inner: `<g fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">${inner}</g>`,
|
||||
});
|
||||
|
||||
const generic = {
|
||||
pin: stroke('<path d="M20 10c0 6-8 12-8 12S4 16 4 10a8 8 0 0 1 16 0z"/><circle cx="12" cy="10" r="3"/>'),
|
||||
activity: stroke('<path d="M22 12h-4l-3 9L9 3l-3 9H2"/>'),
|
||||
layers: stroke('<path d="m12 2 10 5-10 5L2 7z"/><path d="m2 12 10 5 10-5"/><path d="m2 17 10 5 10-5"/>'),
|
||||
database: stroke('<ellipse cx="12" cy="5" rx="9" ry="3"/><path d="M3 5v14c0 1.7 4 3 9 3s9-1.3 9-3V5"/><path d="M3 12c0 1.7 4 3 9 3s9-1.3 9-3"/>'),
|
||||
sparkles: stroke('<path d="m12 3 1.9 5.1L19 10l-5.1 1.9L12 17l-1.9-5.1L5 10l5.1-1.9z"/><path d="M19 15v4M17 17h4"/>'),
|
||||
mic: stroke('<rect x="9" y="2" width="6" height="12" rx="3"/><path d="M5 10a7 7 0 0 0 14 0M12 17v5"/>'),
|
||||
window: stroke('<rect x="3" y="4" width="18" height="16" rx="2"/><path d="M3 9h18"/>'),
|
||||
lock: stroke('<rect x="4" y="11" width="16" height="10" rx="2"/><path d="M8 11V7a4 4 0 0 1 8 0v4"/>'),
|
||||
award: stroke('<circle cx="12" cy="8" r="6"/><path d="M8.2 13 7 22l5-3 5 3-1.2-9"/>'),
|
||||
network: stroke('<rect x="9" y="2" width="6" height="6" rx="1"/><rect x="2" y="16" width="6" height="6" rx="1"/><rect x="16" y="16" width="6" height="6" rx="1"/><path d="M12 8v4M5 16v-2a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v2"/>'),
|
||||
server: stroke('<rect x="2" y="3" width="20" height="8" rx="2"/><rect x="2" y="13" width="20" height="8" rx="2"/><path d="M6 7h.01M6 17h.01"/>'),
|
||||
cpu: stroke('<rect x="5" y="5" width="14" height="14" rx="2"/><rect x="9" y="9" width="6" height="6"/><path d="M9 2v3M15 2v3M9 19v3M15 19v3M2 9h3M2 15h3M19 9h3M19 15h3"/>'),
|
||||
chip: stroke('<circle cx="12" cy="12" r="9"/><path d="M12 12h.01M12 3v4M12 17v4M3 12h4M17 12h4"/>'),
|
||||
phone: stroke('<rect x="6" y="2" width="12" height="20" rx="2.5"/><path d="M11 18h2"/>'),
|
||||
cloud: stroke('<path d="M17.5 19a4.5 4.5 0 0 0 .5-9 6 6 0 0 0-11.7 1.5A4 4 0 0 0 7 19z"/>'),
|
||||
terminal: stroke('<path d="m4 17 6-6-6-6M12 19h8"/>'),
|
||||
chat: stroke('<path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"/>'),
|
||||
play: stroke('<rect x="2" y="4" width="20" height="16" rx="2"/><path d="m10 9 5 3-5 3z"/>'),
|
||||
boxes: stroke('<path d="M21 8 12 3 3 8v8l9 5 9-5z"/><path d="m3 8 9 5 9-5M12 13v8"/>'),
|
||||
arrow: stroke('<path d="M5 12h14M13 6l6 6-6 6"/>'),
|
||||
external: stroke('<path d="M7 17 17 7M8 7h9v9"/>'),
|
||||
download: stroke('<path d="M12 3v12M7 10l5 5 5-5M5 21h14"/>'),
|
||||
cap: stroke('<path d="M22 10 12 5 2 10l10 5z"/><path d="M6 12v5c3 2 9 2 12 0v-5"/>'),
|
||||
};
|
||||
|
||||
// Keys match the strings used in src/data/*.json.
|
||||
export const icons = {
|
||||
...generic,
|
||||
// tech stack tags
|
||||
"React": si(siReact),
|
||||
"React.js": si(siReact),
|
||||
"React Native": si(siReact),
|
||||
"Expo": skillIcons["Expo"],
|
||||
"Node.js": skillIcons["Node.js"],
|
||||
"Express.js": skillIcons["Express.js"],
|
||||
"Tailwind CSS": si(siTailwindcss),
|
||||
"Docker": skillIcons["Docker"],
|
||||
"Linux": skillIcons["Linux"],
|
||||
"Bash": si(siGnubash),
|
||||
"JavaScript": skillIcons["JavaScript"],
|
||||
"Python": skillIcons["Python"],
|
||||
"Java": skillIcons["Java"],
|
||||
"Kotlin": skillIcons["Kotlin"],
|
||||
"Android Studio": skillIcons["Android Studio"],
|
||||
"ESP32": si(siEspressif),
|
||||
"Arduino": si(siArduino),
|
||||
"Proxmox": si(siProxmox),
|
||||
"Nginx": si(siNginx),
|
||||
"Tailscale": si(siTailscale),
|
||||
"Discord API": si(siDiscord),
|
||||
"GitLab": si(siGitlab),
|
||||
"GPS": generic.pin,
|
||||
"Sensor APIs": generic.activity,
|
||||
"MVVM": generic.layers,
|
||||
"Room": generic.database,
|
||||
"LLM": generic.sparkles,
|
||||
"Voice": generic.mic,
|
||||
"Swing": generic.window,
|
||||
"Networking": generic.network,
|
||||
"Private repo": generic.lock,
|
||||
// homelab tiles
|
||||
"Own Media Server": generic.play,
|
||||
"SearXNG": si(siSearxng),
|
||||
"Dockhand": generic.boxes,
|
||||
"Pi-hole + AdGuard Home": si(siPihole),
|
||||
"3 cloud VPS instances": generic.cloud,
|
||||
"OpenVPN + WireGuard": si(siWireguard),
|
||||
"OpenWebUI": generic.chat,
|
||||
"Gitea": si(siGitea),
|
||||
"Vaultwarden": si(siVaultwarden),
|
||||
"Immich": si(siImmich),
|
||||
"Home Assistant": si(siHomeassistant),
|
||||
"Termix": generic.terminal,
|
||||
};
|
||||
|
||||
export function Icon({ name, className = "icon" }) {
|
||||
const icon = icons[name];
|
||||
if (!icon) return null;
|
||||
return (
|
||||
<svg
|
||||
viewBox={icon.vb}
|
||||
fill="currentColor"
|
||||
className={className}
|
||||
aria-hidden="true"
|
||||
dangerouslySetInnerHTML={{ __html: icon.inner }}
|
||||
/>
|
||||
);
|
||||
}
|
||||
@@ -1,402 +1,74 @@
|
||||
// ---------------------------------------------------------------------------
|
||||
// Single source of truth for all personal content.
|
||||
// Swap the name, links, or any section by editing this file only.
|
||||
// Content assembly. The words themselves live in src/data/*.json, one file per
|
||||
// section (profile, stats, experience, projects, repos, skills, homelab,
|
||||
// languages, interests). Edit those to change what the site says.
|
||||
//
|
||||
// Only identity and contact details come from env (secrets/.env in dev,
|
||||
// `docker run -e` in a container), so a demo can swap them without touching
|
||||
// any content:
|
||||
// VITE_NAME, VITE_EMAIL, VITE_GITHUB_USER, VITE_LINKEDIN,
|
||||
// VITE_CV_URL, VITE_UNIVERSITY (fills {{university}} in the JSON files). Empty email / LinkedIn / CV hides that button.
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
// Personal details live in secrets/.env (VITE_* vars) so the repo itself
|
||||
// never carries private data. The fallbacks below keep a fresh clone buildable.
|
||||
const NAME = import.meta.env.VITE_NAME || "Bob";
|
||||
const LOCATION = import.meta.env.VITE_LOCATION || "London, UK";
|
||||
const EMAIL = import.meta.env.VITE_EMAIL || "";
|
||||
const GITHUB_USER = import.meta.env.VITE_GITHUB_USER || "your-github-username";
|
||||
const LINKEDIN = import.meta.env.VITE_LINKEDIN || "";
|
||||
const CV_URL = import.meta.env.VITE_CV_URL || "/CV/my_cv.pdf";
|
||||
import profileData from "./data/profile.json";
|
||||
import statsData from "./data/stats.json";
|
||||
import experienceData from "./data/experience.json";
|
||||
import interestsData from "./data/interests.json";
|
||||
import projectsData from "./data/projects.json";
|
||||
import reposData from "./data/repos.json";
|
||||
import skillsData from "./data/skills.json";
|
||||
import homelabData from "./data/homelab.json";
|
||||
import languagesData from "./data/languages.json";
|
||||
|
||||
// Runtime values (served by server/index.js at /env.js, filled from `docker run -e`)
|
||||
// win over build-time ones (secrets/.env, used by `npm run dev`).
|
||||
const env = { ...import.meta.env, ...(typeof window !== "undefined" ? window.__ENV__ : {}) };
|
||||
const GITHUB_USER = env.VITE_GITHUB_USER || "your-github-username";
|
||||
// Replaces {{university}} anywhere in a JSON section with VITE_UNIVERSITY.
|
||||
const UNIVERSITY = env.VITE_UNIVERSITY || "Your University";
|
||||
const fill = (v) =>
|
||||
typeof v === "string"
|
||||
? v.replaceAll("{{university}}", UNIVERSITY)
|
||||
: Array.isArray(v)
|
||||
? v.map(fill)
|
||||
: v && typeof v === "object"
|
||||
? Object.fromEntries(Object.entries(v).map(([k, x]) => [k, fill(x)]))
|
||||
: v;
|
||||
const repoUrl = (name) => `https://github.com/${GITHUB_USER}/${name}`;
|
||||
|
||||
export const profile = {
|
||||
name: NAME,
|
||||
role: "Recent graduate software engineer",
|
||||
location: LOCATION,
|
||||
email: EMAIL,
|
||||
...fill(profileData),
|
||||
name: env.VITE_NAME || "Your Name",
|
||||
email: env.VITE_EMAIL || "",
|
||||
github: `https://github.com/${GITHUB_USER}`,
|
||||
githubUser: GITHUB_USER,
|
||||
linkedin: LINKEDIN,
|
||||
cvUrl: CV_URL,
|
||||
|
||||
heroTagline:
|
||||
"I build software end to end, from React front ends and mobile apps to the servers, networks, and self-hosted infrastructure that run them.",
|
||||
|
||||
availability: "Open to graduate software engineering roles",
|
||||
|
||||
education: {
|
||||
degree: "BSc Computer Science (Hons)",
|
||||
classification: "First Class (1:1)",
|
||||
institution: "Kingston University",
|
||||
},
|
||||
|
||||
about: [
|
||||
"I'm a recent graduate software engineer based in London. I studied Computer Science at first-class level, and spent my degree building real systems: a media aggregation & sorting system for my final-year project, mobile apps with React Native, and coursework that pushed me to think like an engineer, not just a coder.",
|
||||
"Outside of my studies, I run a home lab: a Proxmox host carrying a stack of self-hosted services, three cloud VPS instances, and a growing interest in running local AI models on my own hardware. If it can be self-hosted, I've probably tried to.",
|
||||
],
|
||||
linkedin: env.VITE_LINKEDIN || "",
|
||||
cvUrl: env.VITE_CV_URL || "",
|
||||
};
|
||||
|
||||
// Numbers shown in the stats strip under the hero.
|
||||
export const stats = [
|
||||
{ value: "7+", label: "Projects built end to end" },
|
||||
{ value: "19", label: "Languages & frameworks" },
|
||||
{ value: "15", label: "Self-hosted services running" },
|
||||
{ value: "1:1", label: "First-class BSc Computer Science" },
|
||||
];
|
||||
export const experience = fill(experienceData);
|
||||
export const interests = fill(interestsData);
|
||||
|
||||
// Experience & education timeline, newest first.
|
||||
export const experience = [
|
||||
{
|
||||
period: "2025 - Present",
|
||||
title: "Graduate Software Engineer",
|
||||
org: "Open to roles · London / Remote",
|
||||
detail:
|
||||
"Seeking graduate and early-career software engineering roles. Open to full-time starts only.",
|
||||
},
|
||||
{
|
||||
period: "Summers 2020 - 2026",
|
||||
title: "Network Infrastructure Engineer (Volunteer)",
|
||||
org: "Jalsa Salana UK · Ahmadiyya Muslim Association",
|
||||
detail:
|
||||
"Engineered a high-availability network for 20,000+ concurrent users with 99.9% uptime, automating hardware monitoring via custom Linux scripts; configured hardware and structured cabling across multi-site event environments, troubleshooting in real time under time-critical conditions.",
|
||||
},
|
||||
{
|
||||
period: "Nov 2025 - Feb 2026",
|
||||
title: "Optical Assistant",
|
||||
org: "Specsavers · London",
|
||||
detail:
|
||||
"Managed sensitive patient data systems with 100% accuracy in a high-volume clinical environment; advised customers on eyewear options and completed sales; fitted and adjusted spectacle frames with precision.",
|
||||
},
|
||||
{
|
||||
period: "2025 - 2026",
|
||||
title: "Final-Year Project: MASS",
|
||||
org: "Kingston University",
|
||||
detail:
|
||||
"Built MASS (Media Aggregation & Sorting System), a cross-platform React Native app that aggregates media from device storage, Google Photos, and a home NAS into one timeline view, backed by a RESTful Express.js backend; cut data retrieval latency 30% via API caching.",
|
||||
},
|
||||
{
|
||||
period: "2023 - 2026",
|
||||
title: "BSc Computer Science (Hons)",
|
||||
org: "Kingston University · First Class (1:1)",
|
||||
detail:
|
||||
"Coursework spanning web and mobile development, databases, networking, and systems programming, capped by the MASS final-year project.",
|
||||
},
|
||||
];
|
||||
// `repo` in projects.json / repos.json is just the repository name; the full
|
||||
// GitHub URL is built from VITE_GITHUB_USER. `images` lists filenames from
|
||||
// public/images/projects/ (several = carousel); empty falls back to `image`.
|
||||
export const projects = fill(projectsData).map((p) => ({
|
||||
...p,
|
||||
repo: p.repo ? repoUrl(p.repo) : undefined,
|
||||
}));
|
||||
export const githubRepos = reposData.map((r) => ({ ...r, url: repoUrl(r.name) }));
|
||||
|
||||
// Compact cards in the "Beyond the terminal" section.
|
||||
export const interests = [
|
||||
{
|
||||
name: "Self-hosting",
|
||||
detail:
|
||||
"If it can run on my own hardware, it probably does, on a Proxmox host carrying a dozen services.",
|
||||
},
|
||||
{
|
||||
name: "Local LLMs",
|
||||
detail:
|
||||
"Running local LLMs at home to learn how inference actually works under the hood.",
|
||||
},
|
||||
{
|
||||
name: "Hardware tinkering",
|
||||
detail:
|
||||
"Arduino projects and sensor experiments; the gyroscope treasure hunt started as one of those.",
|
||||
},
|
||||
{
|
||||
name: "Browser mods",
|
||||
detail:
|
||||
"Customising Floorp with a sidebar styled after Opera GX. Small UI details matter to me.",
|
||||
},
|
||||
];
|
||||
export const skills = skillsData;
|
||||
|
||||
// Case-study project cards. `role` is a short context line; `features` are
|
||||
// the highlight bullets; `stack` replaces the old tag list. `detail` holds
|
||||
// the long-form write-up for the expanded view; `image` is its art.
|
||||
export const projects = [
|
||||
{
|
||||
id: "mass",
|
||||
title: "MASS: Media Aggregation & Sorting System",
|
||||
year: "2026",
|
||||
role: "Final-year project · Solo",
|
||||
description:
|
||||
"A cross-platform React Native app that aggregates media from device storage, Google Photos, and a home NAS into one timeline view, backed by a RESTful Express.js backend.",
|
||||
image: "/images/projects/mass.svg",
|
||||
detail:
|
||||
"Built as my final-year project, MASS pulls media from three sources: device storage, Google Photos, and a Synology NAS on the home network, and merges them into one chronological timeline. The Express backend sits between the app and each source, normalising metadata so sorting by date, type, or location stays consistent regardless of where the file lives. Most of my engineering time went into the caching layer: repeated timeline fetches hit the cache instead of re-querying all three sources, which is where the 30% latency reduction came from.",
|
||||
features: [
|
||||
"Reduced data retrieval latency 30% through optimized API caching",
|
||||
"Metadata-driven sorting across diverse media types",
|
||||
"RESTful Express.js backend cutting server response time 15% via middleware design",
|
||||
"CI/CD pipelines reducing manual testing and integration time 20%",
|
||||
],
|
||||
stack: ["React Native", "Expo", "Node.js", "Express.js"],
|
||||
repo: `https://github.com/${GITHUB_USER}/Abstracted-MASS-PublicVer`,
|
||||
highlight: true,
|
||||
},
|
||||
{
|
||||
id: "radar",
|
||||
title: "Hardware Tinkering: 240 GHz Doppler Radar",
|
||||
role: "Hardware project · ESP32",
|
||||
description:
|
||||
"A 240 GHz radio-frequency setup that uses the Doppler effect to track three moving targets, with an Arduino ESP32 board processing the sensor data and serving live results as a website.",
|
||||
image: "/images/projects/radar.svg",
|
||||
detail:
|
||||
"A hardware build around a 240 GHz Doppler radar module and an ESP32. The board samples the RF signal, extracts velocity from the Doppler shift, and keeps track of up to three targets at once. Results stream over Wi-Fi to a small web dashboard I wrote so I could watch the tracking live. Half project, half excuse to get comfortable with raw sensor data.",
|
||||
features: [
|
||||
"240 GHz RF sensing exploiting the Doppler shift for motion tracking",
|
||||
"Tracks three moving targets simultaneously",
|
||||
"ESP32 board processes the raw sensor signal in real time",
|
||||
"Live results served through a web interface",
|
||||
],
|
||||
stack: ["ESP32", "Arduino"],
|
||||
},
|
||||
{
|
||||
id: "qr-hunt",
|
||||
title: "QR Code Treasure Hunt",
|
||||
year: "2024",
|
||||
role: "Group project · Year 2 final coursework",
|
||||
description:
|
||||
"A web-based scavenger hunt where participants scan physical QR codes to claim items and accumulate points, with a real-time leaderboard for competitive gameplay.",
|
||||
image: "/images/projects/qr-hunt.svg",
|
||||
detail:
|
||||
"A scavenger hunt for real spaces: each item is hidden behind a physical QR code that participants scan with their phone to claim points. The server validates every scan so codes can't be replayed from the leaderboard page, and the board updates in real time as teams race around the venue. We shipped it as a group within a fixed coursework window, which mostly taught me how to split work cleanly across people.",
|
||||
features: [
|
||||
"QR generation with server-side validation logic",
|
||||
"Real-time leaderboard driving competitive play",
|
||||
"Shipped as a team within a fixed coursework window",
|
||||
],
|
||||
stack: ["React.js", "JavaScript"],
|
||||
repo: `https://github.com/${GITHUB_USER}/Treasure-Hunt-App`,
|
||||
},
|
||||
{
|
||||
id: "crudl",
|
||||
title: "CRUDL: React Native Demo",
|
||||
year: "2024",
|
||||
role: "University project",
|
||||
description:
|
||||
"A full CRUD(L) application built to learn React Native properly: create, read, update, delete, and list flows across screens.",
|
||||
image: "/images/projects/crudl.svg",
|
||||
detail:
|
||||
"A deliberately small React Native app that exists because I wanted to actually understand the framework before building anything big on it. It walks through the full create-read-update-delete-list cycle with separate screens for list, detail, and edit. The navigation between them is where most of my learning happened.",
|
||||
features: [
|
||||
"Complete CRUD(L) flows across multiple screens",
|
||||
"Navigation between list, detail, and edit views",
|
||||
"First serious pass at mobile state management",
|
||||
],
|
||||
stack: ["React Native", "JavaScript"],
|
||||
repo: `https://github.com/${GITHUB_USER}/Project-MAD-crudler`,
|
||||
},
|
||||
{
|
||||
id: "routines",
|
||||
title: "Routines App",
|
||||
year: "2024",
|
||||
role: "Personal project · Android",
|
||||
description:
|
||||
"A native Android habit tracker built in Kotlin with MVVM architecture and Room Database for offline-first persistence, plus notification-driven reminders and progress visualization.",
|
||||
image: "/images/projects/routines.svg",
|
||||
detail:
|
||||
"A habit tracker I built for myself in native Android. Kotlin with MVVM, Room for offline-first persistence, and system notifications that nudge at set times. The progress view plots completion trends so a broken streak is obvious at a glance. It's the project where I got serious about architecture rather than just making screens work.",
|
||||
features: [
|
||||
"MVVM architecture with a dedicated ViewModel layer",
|
||||
"Room database for offline-first local persistence",
|
||||
"Notification-driven reminders and habit completion trends",
|
||||
],
|
||||
stack: ["Kotlin", "Android Studio", "MVVM", "Room"],
|
||||
repo: `https://github.com/${GITHUB_USER}/Kotlin-TB2P1`,
|
||||
},
|
||||
{
|
||||
id: "geo-hunt",
|
||||
title: "Location-Based Treasure Hunt App",
|
||||
year: "2024",
|
||||
role: "University project · Mobile Development",
|
||||
description:
|
||||
"A GPS and proximity-driven React Native game where players claim hidden caches based on physical location and device orientation, backed by a RESTful API.",
|
||||
image: "/images/projects/geo-hunt.svg",
|
||||
detail:
|
||||
"The mobile-development coursework project: a game where hidden caches are claimed by being physically near them, with the device's compass giving bearing and distance to guide you in. The UI re-renders as you move so the map feels live rather than polled. The backend was the graded piece, and I pushed it to 90% unit-test coverage before submission.",
|
||||
features: [
|
||||
"Geolocation and compass APIs for real-time bearing and distance",
|
||||
"Responsive UI that updates dynamically as the player moves",
|
||||
"RESTful API backend at 90% code coverage via automated unit testing",
|
||||
],
|
||||
stack: ["React Native", "GPS", "Sensor APIs"],
|
||||
repo: `https://github.com/${GITHUB_USER}/MAD-Treasure-Hunt`,
|
||||
},
|
||||
{
|
||||
id: "ai-bot",
|
||||
title: "AI Discord Bot",
|
||||
year: "2025",
|
||||
role: "Personal project · Self-hosted",
|
||||
description:
|
||||
"A Python Discord bot with text chat and voice, powered by a Cloud Gemma 4 31B-IT model with a local fallback to a quantised Gemma 4 E4B.",
|
||||
image: "/images/projects/ai-bot.svg",
|
||||
detail:
|
||||
"A self-hosted Discord bot that answers in text channels and joins voice channels, powered by a Cloud Gemma 4 31B-IT model with a local quantised Gemma 4 E4B as fallback when the cloud is down or slow. It runs on my home hardware around the clock, which doubles as a testbed for prompting behaviour before I wire anything similar into other projects.",
|
||||
features: [
|
||||
"Text and voice channels backed by an LLM",
|
||||
"Cloud Gemma 4 31B-IT primary, with a local Gemma 4 E4B QAT fallback",
|
||||
"Runs continuously on home hardware via Discord API",
|
||||
],
|
||||
stack: ["Python", "LLM", "Voice", "Discord API"],
|
||||
tags: ["Private-Repo"],
|
||||
},
|
||||
{
|
||||
id: "cv-builder",
|
||||
title: "CV Builder",
|
||||
year: "2024/2025",
|
||||
role: "Personal project · Desktop",
|
||||
description:
|
||||
"A desktop CV builder written in Java with a Swing interface: form-driven editing that generates a clean, printable CV.",
|
||||
image: "/images/projects/cv-builder.svg",
|
||||
detail:
|
||||
"An early desktop project in Java and Swing: form-driven editing of CV sections with a live preview and printable output. Built long before I had any web experience, and still the reason I understand why most people prefer not building UIs in Swing.",
|
||||
features: [
|
||||
"Form-driven editing of CV sections",
|
||||
"Live preview before export",
|
||||
"Clean, printable output from the desktop app",
|
||||
],
|
||||
stack: ["Java", "Swing"],
|
||||
tags: ["GitLab"],
|
||||
},
|
||||
];
|
||||
// A stat either carries its own `value` or is counted `from` another section,
|
||||
// so the numbers can't drift from what the page actually lists.
|
||||
const counts = { projects: projects.length, skills: skillsData.languages.length };
|
||||
export const stats = fill(statsData).map((s) => ({
|
||||
label: s.label,
|
||||
value: s.from ? String(counts[s.from]) : s.value,
|
||||
}));
|
||||
|
||||
export const githubRepos = [
|
||||
{
|
||||
name: "Abstracted-MASS-PublicVer",
|
||||
description:
|
||||
"Public version of my final-year project: a media aggregation & sorting app across device storage, Google Photos, and a home NAS.",
|
||||
language: "JavaScript",
|
||||
stars: 1,
|
||||
url: `https://github.com/${GITHUB_USER}/Abstracted-MASS-PublicVer`,
|
||||
},
|
||||
{
|
||||
name: "Treasure-Hunt-App",
|
||||
description:
|
||||
"QR-code treasure hunt built for my Professional Environments year 2 final coursework.",
|
||||
language: "JavaScript",
|
||||
stars: 3,
|
||||
url: `https://github.com/${GITHUB_USER}/Treasure-Hunt-App`,
|
||||
},
|
||||
{
|
||||
name: "MAD-Treasure-Hunt",
|
||||
description:
|
||||
"GPS and proximity-driven React Native treasure hunt built for my mobile development coursework; players claim hidden caches from physical location.",
|
||||
language: "JavaScript",
|
||||
stars: 0,
|
||||
url: `https://github.com/${GITHUB_USER}/MAD-Treasure-Hunt`,
|
||||
},
|
||||
{
|
||||
name: "Kotlin-TB2P1",
|
||||
description:
|
||||
"Native Android habit tracker in Kotlin: MVVM architecture, Room persistence, and reminder notifications.",
|
||||
language: "Kotlin",
|
||||
stars: 0,
|
||||
url: `https://github.com/${GITHUB_USER}/Kotlin-TB2P1`,
|
||||
},
|
||||
{
|
||||
name: "Project-MAD-crudler",
|
||||
description: "University project for learning React Native: a CRUD(L) demo app.",
|
||||
language: "JavaScript",
|
||||
stars: 0,
|
||||
url: `https://github.com/${GITHUB_USER}/Project-MAD-crudler`,
|
||||
},
|
||||
{
|
||||
name: "LearningGo",
|
||||
description: "Small programs and notes from my self-taught Go journey.",
|
||||
language: "Go",
|
||||
stars: 0,
|
||||
url: `https://github.com/${GITHUB_USER}/LearningGo`,
|
||||
},
|
||||
{
|
||||
name: "Opera-GX-Styled-Floorp-Sidebar",
|
||||
description: "Sidebar mod for the Floorp browser, styled after Opera GX.",
|
||||
language: "CSS",
|
||||
stars: 0,
|
||||
url: `https://github.com/${GITHUB_USER}/Opera-GX-Styled-Floorp-Sidebar`,
|
||||
},
|
||||
];
|
||||
|
||||
export const skills = {
|
||||
languages: [
|
||||
"React Native",
|
||||
"Kotlin",
|
||||
"Java",
|
||||
"C++",
|
||||
"Go",
|
||||
"HTML",
|
||||
"CSS",
|
||||
"JavaScript",
|
||||
"TypeScript",
|
||||
"Python",
|
||||
"Bash",
|
||||
"PHP",
|
||||
"SQL",
|
||||
"JSON",
|
||||
"LaTeX",
|
||||
"React.js",
|
||||
"Node.js",
|
||||
"Express.js",
|
||||
"Oracle Apex",
|
||||
],
|
||||
tools: [
|
||||
"IntelliJ IDEA",
|
||||
"WebStorm",
|
||||
"PyCharm",
|
||||
"Jupyter",
|
||||
"Arduino IDE",
|
||||
"Docker",
|
||||
"Git",
|
||||
"RESTful APIs",
|
||||
"VS Code",
|
||||
"NeoVim",
|
||||
"Android Studio",
|
||||
"Expo",
|
||||
"Linux",
|
||||
"Agile/Scrum",
|
||||
"CI/CD",
|
||||
"NetBeans",
|
||||
"Debian",
|
||||
],
|
||||
};
|
||||
|
||||
export const homelab = [
|
||||
{ name: "Proxmox", detail: "Single-node hypervisor running the whole stack" },
|
||||
{ name: "Own Media Server", detail: "Self-hosted streaming (WIP)" },
|
||||
{ name: "SearXNG", detail: "Private metasearch engine" },
|
||||
{ name: "Dockhand", detail: "Container management UI" },
|
||||
{ name: "Nginx", detail: "Reverse proxy for the house network" },
|
||||
{ name: "Pi-hole + AdGuard Home", detail: "Network-wide ad and tracker blocking" },
|
||||
{ name: "Tailscale", detail: "Mesh networking between home and VPS" },
|
||||
{ name: "3 cloud VPS instances", detail: "Off-site services and failover" },
|
||||
{ name: "OpenVPN + WireGuard", detail: "Self-hosted VPN for devices on the move" },
|
||||
{ name: "OpenWebUI", detail: "Chat front end for local models" },
|
||||
{ name: "Gitea", detail: "Self-hosted Git server" },
|
||||
{ name: "Vaultwarden", detail: "Self-hosted password manager" },
|
||||
{ name: "Immich", detail: "Private photo and video library" },
|
||||
{ name: "Home Assistant", detail: "Home automation hub" },
|
||||
{ name: "Termix", detail: "Self-built containerised SSH manager for hopping between device sessions via a central web UI" },
|
||||
];
|
||||
|
||||
export const localAI = {
|
||||
heading: "Local AI, on my own hardware",
|
||||
body: [
|
||||
"I run my own self-hosted language models on my own hardware. Currently running a custom flavour of a quantised Qwen 3.8 27B Model served through BeeLLama over to my OpenWebUI instance running on my HomeLab, as a way to learn on how to deploy and utilise LLMs in the modern day world and also help me study how they work in a more fundamental sense, when it comes down to their inference, context management and serving it.",
|
||||
"It's not just Local Models I utilise, I make use of a mix of both Local and Cloud hosted models in my own applications such as an AI Model Powered Discord Chat Bot, a discord bot capable of interacting with users both in Text format and also in Voice Calls, with the goal of acting like a regular human user. This pushes me towards building and writing code that works with both small and larger models which would react to certain prompts differently.",
|
||||
],
|
||||
};
|
||||
|
||||
// Self-assessed working proficiency, not a byte share: weighted by how many
|
||||
// projects were built in each language and current fluency, not raw lines.
|
||||
// Java leads; C++ ahead of Python; Go mid-band;
|
||||
// JS/CSS raised on project count; TypeScript low, known via JavaScript only.
|
||||
export const languageStats = [
|
||||
{ name: "Java", pct: 56 },
|
||||
{ name: "JavaScript", pct: 48 },
|
||||
{ name: "C++", pct: 28 },
|
||||
{ name: "Python", pct: 22 },
|
||||
{ name: "Go", pct: 18 },
|
||||
{ name: "CSS", pct: 16 },
|
||||
{ name: "TypeScript", pct: 14 },
|
||||
{ name: "Kotlin", pct: 12 },
|
||||
];
|
||||
export const homelab = homelabData.items;
|
||||
export const homelabMore = homelabData.more;
|
||||
export const localAI = homelabData.localAI;
|
||||
export const languageStats = languagesData;
|
||||
@@ -0,0 +1,25 @@
|
||||
[
|
||||
{
|
||||
"period": "Summers 2020 - 2026",
|
||||
"title": "Network Infrastructure Engineer",
|
||||
"org": "Jalsa Salana UK · Ahmadiyya Muslim Association UK · Volunteer",
|
||||
"summary": "Each summer I join the volunteer engineering team that builds and runs the network for a large multi-site event. It has to be ready by a fixed date, and it has to hold up for more than 2,000 people at once.",
|
||||
"points": [
|
||||
"Wrote Linux scripts that monitor the hardware for us, so faults get flagged early instead of being found by attendees.",
|
||||
"Helped keep the network at 99.9% uptime each year with 2,000+ concurrent users on it.",
|
||||
"Configured hardware and ran structured cabling across the site, against a deadline that doesn't move.",
|
||||
"Tracked down and fixed faults live, under time pressure, while people were relying on the connection.",
|
||||
"Worked as part of a cross-functional engineering team on Docker and Linux-based systems."
|
||||
]
|
||||
},
|
||||
{
|
||||
"period": "Nov 2025 - Feb 2026",
|
||||
"title": "Optical Assistant",
|
||||
"org": "Specsavers · London · Part-time",
|
||||
"summary": "A customer-facing job alongside my final year. Not a tech role, but it made me careful with data and clear with people.",
|
||||
"points": [
|
||||
"Handled sensitive patient records in a busy clinical setting and kept them 100% accurate.",
|
||||
"Talked customers through their eyewear options and completed sales, matching the recommendation to what each person actually needed."
|
||||
]
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,73 @@
|
||||
{
|
||||
"items": [
|
||||
{
|
||||
"name": "Proxmox",
|
||||
"detail": "Single-node hypervisor running the whole stack"
|
||||
},
|
||||
{
|
||||
"name": "Own Media Server",
|
||||
"detail": "A self-hosted streaming server I'm building from scratch",
|
||||
"wip": true
|
||||
},
|
||||
{
|
||||
"name": "SearXNG",
|
||||
"detail": "Private metasearch engine"
|
||||
},
|
||||
{
|
||||
"name": "Dockhand",
|
||||
"detail": "Container management UI"
|
||||
},
|
||||
{
|
||||
"name": "Nginx",
|
||||
"detail": "Reverse proxy for the house network"
|
||||
},
|
||||
{
|
||||
"name": "Pi-hole + AdGuard Home",
|
||||
"detail": "Network-wide ad and tracker blocking"
|
||||
},
|
||||
{
|
||||
"name": "Tailscale",
|
||||
"detail": "Mesh networking between home and VPS"
|
||||
},
|
||||
{
|
||||
"name": "3 cloud VPS instances",
|
||||
"detail": "Off-site services and failover"
|
||||
},
|
||||
{
|
||||
"name": "OpenVPN + WireGuard",
|
||||
"detail": "Self-hosted VPN for devices on the move"
|
||||
},
|
||||
{
|
||||
"name": "OpenWebUI",
|
||||
"detail": "Chat front end for local models"
|
||||
},
|
||||
{
|
||||
"name": "Gitea",
|
||||
"detail": "Self-hosted Git server"
|
||||
},
|
||||
{
|
||||
"name": "Vaultwarden",
|
||||
"detail": "Self-hosted password manager"
|
||||
},
|
||||
{
|
||||
"name": "Immich",
|
||||
"detail": "Private photo and video library"
|
||||
},
|
||||
{
|
||||
"name": "Home Assistant",
|
||||
"detail": "Home automation hub"
|
||||
},
|
||||
{
|
||||
"name": "Termix",
|
||||
"detail": "Self-built containerised SSH manager for hopping between device sessions via a central web UI"
|
||||
}
|
||||
],
|
||||
"localAI": {
|
||||
"heading": "Local AI, on my own hardware",
|
||||
"body": [
|
||||
"I run language models on my own hardware. Right now that's a quantised Qwen 3.8 27B build, served through BeeLLama to the OpenWebUI instance on my homelab. It's how I'm learning to deploy LLMs properly and to understand what's going on underneath: inference, context management and serving.",
|
||||
"I mix local and cloud-hosted models in my own projects too. The main one is a Discord bot that chats in text channels and joins voice calls, with the aim of feeling like a regular member of the server. Building it means writing code that copes with both small and large models, which can react to the same prompt very differently."
|
||||
]
|
||||
},
|
||||
"more": "...and plenty more across the homelab and VPS instances. These are just the ones I'd miss first."
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
[
|
||||
{
|
||||
"name": "Self-hosting",
|
||||
"icon": "server",
|
||||
"detail": "If it can run on my own hardware, it probably does. One Proxmox host, around 15 services, and a list of things I still want to try."
|
||||
},
|
||||
{
|
||||
"name": "Local LLMs",
|
||||
"icon": "cpu",
|
||||
"detail": "Running language models at home to learn how inference actually works under the hood."
|
||||
},
|
||||
{
|
||||
"name": "Hardware tinkering",
|
||||
"icon": "chip",
|
||||
"detail": "Arduino and ESP32 builds and sensor experiments. The Doppler radar started as one of those."
|
||||
},
|
||||
{
|
||||
"name": "Web & mobile development",
|
||||
"icon": "phone",
|
||||
"detail": "Most of what I build ends up as a React site or a React Native app. I like the point where a rough idea becomes something you can actually tap on."
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,30 @@
|
||||
[
|
||||
{
|
||||
"name": "Java",
|
||||
"pct": 56
|
||||
},
|
||||
{
|
||||
"name": "JavaScript",
|
||||
"pct": 48
|
||||
},
|
||||
{
|
||||
"name": "C++",
|
||||
"pct": 28
|
||||
},
|
||||
{
|
||||
"name": "Python",
|
||||
"pct": 22
|
||||
},
|
||||
{
|
||||
"name": "Go",
|
||||
"pct": 18
|
||||
},
|
||||
{
|
||||
"name": "CSS",
|
||||
"pct": 16
|
||||
},
|
||||
{
|
||||
"name": "Kotlin",
|
||||
"pct": 12
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,67 @@
|
||||
{
|
||||
"headline": "Graduate Software Engineer",
|
||||
"role": "Graduate software engineer",
|
||||
"location": "London, UK",
|
||||
"heroTagline": "I build software end to end, from React and mobile front ends to the Express APIs, networks and self-hosted infrastructure that run them.",
|
||||
"availability": "Open to graduate software engineering roles",
|
||||
"glance": [
|
||||
{
|
||||
"label": "Degree",
|
||||
"value": "BSc Computer Science, First Class (1:1)"
|
||||
},
|
||||
{
|
||||
"label": "Based in",
|
||||
"value": "London, UK"
|
||||
},
|
||||
{
|
||||
"label": "Day to day",
|
||||
"value": "React, React Native, Node.js"
|
||||
},
|
||||
{
|
||||
"label": "Also into",
|
||||
"value": "Linux, networks, self-hosting"
|
||||
}
|
||||
],
|
||||
"education": {
|
||||
"degree": "BSc (Hons) Computer Science",
|
||||
"classification": "First Class Honours",
|
||||
"institution": "{{university}}",
|
||||
"period": "Sep 2023 - Jun 2026",
|
||||
"awarded": "Awarded July 2026",
|
||||
"accreditation": "BCS accredited",
|
||||
"modules": [
|
||||
{
|
||||
"name": "Programming I",
|
||||
"mark": 98
|
||||
},
|
||||
{
|
||||
"name": "Mobile Application Development",
|
||||
"mark": 90
|
||||
},
|
||||
{
|
||||
"name": "Programming II: Software Development",
|
||||
"mark": 80
|
||||
},
|
||||
{
|
||||
"name": "Computing Systems",
|
||||
"mark": 79
|
||||
},
|
||||
{
|
||||
"name": "Individual Project",
|
||||
"mark": 73
|
||||
}
|
||||
],
|
||||
"alsoStudied": [
|
||||
"Requirements Analysis and Design",
|
||||
"Programming III: Patterns and Algorithms",
|
||||
"Database-Driven Application Development"
|
||||
],
|
||||
"note": "I also wrote the technical design specifications for my final-year projects, turning open-ended requirements into plans I could actually build from.",
|
||||
"grade": "1:1"
|
||||
},
|
||||
"about": [
|
||||
"I'm a software engineer based in London. I graduated from {{university}} in July 2026 with a First in Computer Science, and I'm now looking for my first full-time engineering role.",
|
||||
"What I enjoy most is owning a problem from the first sketch to the thing actually running somewhere. For my final-year project that was MASS, a React Native app that pulls photos and video from a phone, Google Photos and a home NAS into one timeline, along with the Express API and CI/CD pipeline behind it. I've also built a GPS treasure hunt game, a native Android habit tracker in Kotlin and a 240 GHz Doppler radar on an ESP32.",
|
||||
"Infrastructure is the other half of it. Since 2020 I've spent my summers volunteering as a network engineer at a large multi-site event, helping keep 2,000+ people online at 99.9% uptime. At home that turned into a Proxmox homelab running around 15 self-hosted services. If something can be self-hosted, I've probably tried it."
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,290 @@
|
||||
[
|
||||
{
|
||||
"id": "mass",
|
||||
"title": "MASS: Media Aggregation & Sorting System",
|
||||
"year": "2026",
|
||||
"role": "Final-year project · Solo",
|
||||
"description": "A cross-platform React Native app that aggregates media from device storage, Google Photos, and a home NAS into one timeline view, backed by a RESTful Express.js backend.",
|
||||
"image": "/images/projects/mass.svg",
|
||||
"detail": "Built as my final-year project, MASS pulls media from three sources: device storage, Google Photos, and a Synology NAS on the home network, and merges them into one chronological timeline. The Express backend sits between the app and each source, normalising metadata so sorting by date, type, or location stays consistent regardless of where the file lives. Most of my engineering time went into the caching layer: repeated timeline fetches hit the cache instead of re-querying all three sources, which is where the 30% latency reduction came from.",
|
||||
"features": [
|
||||
"Cut data retrieval latency by around 30% through API response caching",
|
||||
"Metadata-driven sorting across video, audio and image sources",
|
||||
"RESTful Express.js backend for concurrent requests, cutting average response time by roughly 15%",
|
||||
"CI/CD pipeline that automated testing and deployment, cutting manual testing and integration time by about 20%"
|
||||
],
|
||||
"stack": [
|
||||
"React Native",
|
||||
"Expo",
|
||||
"Node.js",
|
||||
"Express.js"
|
||||
],
|
||||
"repo": "Abstracted-MASS-PublicVer",
|
||||
"images": [
|
||||
"mass-7.webp",
|
||||
"mass-5.webp",
|
||||
"mass-6.webp",
|
||||
"mass-1.webp",
|
||||
"mass-2.webp",
|
||||
"mass-4.webp",
|
||||
"mass-3.webp"
|
||||
],
|
||||
"period": "Sep 2025 - Apr 2026",
|
||||
"orientation": "portrait",
|
||||
"fyp": true
|
||||
},
|
||||
{
|
||||
"id": "portfolio",
|
||||
"title": "Portfolio Website",
|
||||
"year": "2026",
|
||||
"role": "Personal project · Web",
|
||||
"description": "A React and Tailwind CSS portfolio driven by JSON content files, with a live GitHub activity tracker and a containerised deployment.",
|
||||
"image": "/images/projects/homelab.svg",
|
||||
"detail": "The site you're on now. Content lives in JSON data files, so the words can change without touching components. An Express endpoint queries the GitHub GraphQL API for the live activity tracker, caches results for 10 minutes, and keeps the access token server-side. The app is containerised with a multi-stage Docker build that runs as a non-root user and takes its configuration at run time, so no secrets are baked into the image.",
|
||||
"features": [
|
||||
"React and Tailwind CSS front end, with project detail modals, an image carousel and scroll animations",
|
||||
"Light and dark theming",
|
||||
"Express endpoint for the GitHub GraphQL API with 10-minute caching and the token kept server-side",
|
||||
"Multi-stage Docker build running as a non-root user, with no secrets baked into the image"
|
||||
],
|
||||
"stack": [
|
||||
"React",
|
||||
"Tailwind CSS",
|
||||
"Node.js",
|
||||
"Express.js",
|
||||
"Docker"
|
||||
],
|
||||
"repo": "Portfolio_V1",
|
||||
"images": [
|
||||
"portfolio-home.png",
|
||||
"portfolio-projects.png",
|
||||
"portfolio-detail.png",
|
||||
"portfolio-homelab.png"
|
||||
],
|
||||
"period": "2026",
|
||||
"orientation": "landscape"
|
||||
},
|
||||
{
|
||||
"id": "radar",
|
||||
"title": "240 GHz Doppler Radar",
|
||||
"year": "2026",
|
||||
"role": "Hardware project · ESP32",
|
||||
"description": "A 240 GHz Doppler radar where an ESP32 processes raw sensor data in real time to track three moving targets, with results served live over Wi-Fi.",
|
||||
"image": "/images/projects/radar.svg",
|
||||
"detail": "A hardware build around a 240 GHz Doppler radar module and an ESP32. The board samples the RF signal, extracts velocity from the Doppler shift, and keeps track of up to three targets at once. Results stream over Wi-Fi to a small web dashboard I wrote so I could watch the tracking live. Half project, half excuse to get comfortable with raw sensor data.",
|
||||
"features": [
|
||||
"240 GHz RF sensing exploiting the Doppler shift for motion tracking",
|
||||
"Tracks three moving targets simultaneously",
|
||||
"ESP32 board processes the raw sensor signal in real time",
|
||||
"Live results served over Wi-Fi to a web dashboard"
|
||||
],
|
||||
"stack": [
|
||||
"ESP32",
|
||||
"Arduino"
|
||||
],
|
||||
"images": [
|
||||
"radar-1.webp"
|
||||
],
|
||||
"period": "2026",
|
||||
"orientation": "landscape"
|
||||
},
|
||||
{
|
||||
"id": "geo-hunt",
|
||||
"title": "Location-Based Treasure Hunt App",
|
||||
"year": "2026",
|
||||
"role": "University project · Mobile Development",
|
||||
"description": "A GPS and proximity-driven React Native game where players claim hidden caches by physical location, backed by a REST API with robust session state management.",
|
||||
"image": "/images/projects/geo-hunt.svg",
|
||||
"detail": "The mobile-development coursework project: a game where hidden caches are claimed by being physically near them, with the device's compass giving bearing and distance to guide you in. The UI re-renders as you move so the map feels live rather than polled. The backend was the graded piece, and I pushed it to 90% unit-test coverage before submission.",
|
||||
"features": [
|
||||
"Geolocation and compass APIs for live bearing and distance to each cache",
|
||||
"Responsive UI that updates as the player moves",
|
||||
"REST API backend with robust session state management",
|
||||
"90% automated unit-test coverage"
|
||||
],
|
||||
"stack": [
|
||||
"React Native",
|
||||
"GPS",
|
||||
"Sensor APIs"
|
||||
],
|
||||
"repo": "MAD-Treasure-Hunt",
|
||||
"images": [
|
||||
"geo-hunt-3.webp",
|
||||
"geo-hunt-1.webp",
|
||||
"geo-hunt-4.webp",
|
||||
"geo-hunt-5.webp",
|
||||
"geo-hunt-2.webp",
|
||||
"geo-hunt-6.webp",
|
||||
"geo-hunt-7.webp"
|
||||
],
|
||||
"period": "Jan 2026 - Apr 2026",
|
||||
"orientation": "portrait"
|
||||
},
|
||||
{
|
||||
"id": "routines",
|
||||
"title": "Routines App",
|
||||
"year": "2026",
|
||||
"role": "Personal project · Android",
|
||||
"description": "A native Android habit tracker built in Kotlin with MVVM architecture and Room Database for offline-first persistence, plus notification-driven reminders.",
|
||||
"image": "/images/projects/routines.svg",
|
||||
"detail": "A habit tracker I built for myself in native Android. Kotlin with MVVM, Room for offline-first persistence, and system notifications that nudge at set times. The progress view plots completion trends so a broken streak is obvious at a glance. It's the project where I got serious about architecture rather than just making screens work.",
|
||||
"features": [
|
||||
"MVVM architecture with a dedicated ViewModel layer",
|
||||
"Room database for offline-first local persistence",
|
||||
"Notification-driven reminders and habit completion trends"
|
||||
],
|
||||
"stack": [
|
||||
"Kotlin",
|
||||
"Android Studio",
|
||||
"MVVM",
|
||||
"Room"
|
||||
],
|
||||
"repo": "Kotlin-TB2P1",
|
||||
"images": [
|
||||
"routines-1.webp",
|
||||
"routines-6.webp",
|
||||
"routines-2.webp",
|
||||
"routines-3.webp",
|
||||
"routines-4.webp",
|
||||
"routines-5.webp"
|
||||
],
|
||||
"period": "Jan 2026 - Apr 2026",
|
||||
"orientation": "portrait"
|
||||
},
|
||||
{
|
||||
"id": "homelab",
|
||||
"title": "Self-Hosted Homelab",
|
||||
"period": "Ongoing",
|
||||
"role": "Personal project · Proxmox",
|
||||
"description": "A Proxmox homelab running about 15 self-hosted services behind an Nginx reverse proxy, with Tailscale, WireGuard and OpenVPN for secure remote access.",
|
||||
"image": "/images/projects/homelab.svg",
|
||||
"detail": "Everything runs on a Proxmox host behind an Nginx reverse proxy. Services include Gitea, Vaultwarden, Immich, Home Assistant and Pi-hole, about 15 in total. Remote access goes through Tailscale, WireGuard and OpenVPN. The same setup hosts a Python Discord bot that uses a cloud LLM with a local-model fallback. The full service list is in the Homelab section below.",
|
||||
"features": [
|
||||
"15+ self-hosted services on a Proxmox host",
|
||||
"Nginx reverse proxy for the house network",
|
||||
"Tailscale, WireGuard and OpenVPN for secure remote access",
|
||||
"Hosts a Python Discord bot with a cloud LLM and local-model fallback"
|
||||
],
|
||||
"stack": [
|
||||
"Proxmox",
|
||||
"Docker",
|
||||
"Linux",
|
||||
"Nginx",
|
||||
"Tailscale"
|
||||
],
|
||||
"images": [
|
||||
"homelab-1.webp"
|
||||
],
|
||||
"orientation": "landscape"
|
||||
},
|
||||
{
|
||||
"id": "qr-hunt",
|
||||
"title": "QR Code Treasure Hunt",
|
||||
"year": "2025",
|
||||
"role": "Group project · Year 2 final coursework",
|
||||
"description": "A web-based scavenger hunt where participants scan physical QR codes to claim items and accumulate points, with a real-time leaderboard for competitive gameplay.",
|
||||
"image": "/images/projects/qr-hunt.svg",
|
||||
"detail": "A scavenger hunt for real spaces: each item is hidden behind a physical QR code that participants scan with their phone to claim points. The server validates every scan so codes can't be replayed from the leaderboard page, and the board updates in real time as teams race around the venue. We shipped it as a group within a fixed coursework window, which mostly taught me how to split work cleanly across people.",
|
||||
"features": [
|
||||
"QR code generation with server-side scan validation",
|
||||
"Real-time leaderboard driving competitive play",
|
||||
"Shipped as a team within a fixed coursework window"
|
||||
],
|
||||
"stack": [
|
||||
"React.js",
|
||||
"JavaScript"
|
||||
],
|
||||
"repo": "Treasure-Hunt-App",
|
||||
"images": [
|
||||
"qr-hunt-5.webp",
|
||||
"qr-hunt-1.webp",
|
||||
"qr-hunt-2.webp",
|
||||
"qr-hunt-3.webp",
|
||||
"qr-hunt-4.webp"
|
||||
],
|
||||
"period": "Jan 2025 - Apr 2025",
|
||||
"orientation": "landscape"
|
||||
},
|
||||
{
|
||||
"id": "ai-bot",
|
||||
"title": "AI Discord Bot",
|
||||
"year": "2025",
|
||||
"role": "Personal project · Self-hosted",
|
||||
"description": "A Python Discord bot with text chat and voice, using a cloud LLM with a local-model fallback, running continuously on my homelab.",
|
||||
"image": "/images/projects/ai-bot.svg",
|
||||
"detail": "A self-hosted Discord bot that answers in text channels and joins voice channels, powered by a cloud-hosted model with a local quantised model as fallback when the cloud is down or slow. It runs on my home hardware around the clock, which doubles as a testbed for prompting behaviour before I wire anything similar into other projects.",
|
||||
"features": [
|
||||
"Text and voice channels backed by an LLM",
|
||||
"Cloud model primary, with a local quantised model as fallback",
|
||||
"Runs continuously on home hardware via the Discord API"
|
||||
],
|
||||
"stack": [
|
||||
"Python",
|
||||
"LLM",
|
||||
"Voice",
|
||||
"Discord API"
|
||||
],
|
||||
"tags": [
|
||||
"Private repo"
|
||||
],
|
||||
"images": [
|
||||
"ai-bot-1.webp"
|
||||
],
|
||||
"period": "2025",
|
||||
"orientation": "landscape"
|
||||
},
|
||||
{
|
||||
"id": "crudl",
|
||||
"title": "CRUDL: React Native Demo",
|
||||
"year": "2025",
|
||||
"role": "University project",
|
||||
"description": "A full CRUD(L) application built to learn React Native properly: create, read, update, delete, and list flows across screens.",
|
||||
"image": "/images/projects/crudl.svg",
|
||||
"detail": "A deliberately small React Native app that exists because I wanted to actually understand the framework before building anything big on it. It walks through the full create-read-update-delete-list cycle with separate screens for list, detail, and edit. The navigation between them is where most of my learning happened.",
|
||||
"features": [
|
||||
"Complete CRUD(L) flows across multiple screens",
|
||||
"Navigation between list, detail, and edit views",
|
||||
"First serious pass at mobile state management"
|
||||
],
|
||||
"stack": [
|
||||
"React Native",
|
||||
"JavaScript"
|
||||
],
|
||||
"repo": "Project-MAD-crudler",
|
||||
"images": [
|
||||
"crudl-1.webp",
|
||||
"crudl-3.webp",
|
||||
"crudl-4.webp",
|
||||
"crudl-2.webp",
|
||||
"crudl-5.webp"
|
||||
],
|
||||
"period": "2025",
|
||||
"orientation": "portrait"
|
||||
},
|
||||
{
|
||||
"id": "cv-builder",
|
||||
"title": "CV Builder",
|
||||
"year": "2024/2025",
|
||||
"role": "Personal project · Desktop",
|
||||
"description": "A desktop CV builder written in Java with a Swing interface: form-driven editing that generates a clean, printable CV.",
|
||||
"image": "/images/projects/cv-builder.svg",
|
||||
"detail": "An early desktop project in Java and Swing: form-driven editing of CV sections with a live preview and printable output. Built long before I had any web experience, and still the reason I understand why most people prefer not building UIs in Swing.",
|
||||
"features": [
|
||||
"Form-driven editing of CV sections",
|
||||
"Live preview before export",
|
||||
"Clean, printable output from the desktop app"
|
||||
],
|
||||
"stack": [
|
||||
"Java",
|
||||
"Swing"
|
||||
],
|
||||
"tags": [
|
||||
"GitLab"
|
||||
],
|
||||
"images": [
|
||||
"cv-builder-1.webp"
|
||||
],
|
||||
"period": "2024 - 2025",
|
||||
"orientation": "landscape"
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,32 @@
|
||||
[
|
||||
{
|
||||
"name": "Abstracted-MASS-PublicVer",
|
||||
"description": "Public version of my final-year project: a media aggregation & sorting app across device storage, Google Photos, and a home NAS.",
|
||||
"language": "JavaScript"
|
||||
},
|
||||
{
|
||||
"name": "Treasure-Hunt-App",
|
||||
"description": "QR-code treasure hunt built for my Professional Environments year 2 final coursework.",
|
||||
"language": "JavaScript"
|
||||
},
|
||||
{
|
||||
"name": "MAD-Treasure-Hunt",
|
||||
"description": "GPS and proximity-driven React Native treasure hunt built for my mobile development coursework; players claim hidden caches from physical location.",
|
||||
"language": "JavaScript"
|
||||
},
|
||||
{
|
||||
"name": "Kotlin-TB2P1",
|
||||
"description": "Native Android habit tracker in Kotlin: MVVM architecture, Room persistence, and reminder notifications.",
|
||||
"language": "Kotlin"
|
||||
},
|
||||
{
|
||||
"name": "Project-MAD-crudler",
|
||||
"description": "University project for learning React Native: a CRUD(L) demo app.",
|
||||
"language": "JavaScript"
|
||||
},
|
||||
{
|
||||
"name": "LearningGo",
|
||||
"description": "Small programs and notes from my self-taught Go journey.",
|
||||
"language": "Go"
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,35 @@
|
||||
{
|
||||
"languages": [
|
||||
"Java",
|
||||
"C++",
|
||||
"JavaScript",
|
||||
"Python",
|
||||
"Kotlin",
|
||||
"Go",
|
||||
"SQL",
|
||||
"Bash",
|
||||
"PHP",
|
||||
"HTML/CSS",
|
||||
"React.js",
|
||||
"React Native",
|
||||
"Node.js",
|
||||
"Express.js",
|
||||
"Tailwind CSS",
|
||||
"Expo",
|
||||
"Oracle APEX"
|
||||
],
|
||||
"tools": [
|
||||
"Git",
|
||||
"Docker",
|
||||
"Linux",
|
||||
"Debian",
|
||||
"Nginx",
|
||||
"Proxmox",
|
||||
"CI/CD",
|
||||
"IntelliJ IDEA",
|
||||
"VS Code",
|
||||
"Android Studio",
|
||||
"RESTful APIs",
|
||||
"Agile/Scrum"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
[
|
||||
{
|
||||
"from": "projects",
|
||||
"label": "Projects built and written up"
|
||||
},
|
||||
{
|
||||
"from": "skills",
|
||||
"label": "Languages & frameworks"
|
||||
},
|
||||
{
|
||||
"value": "15+",
|
||||
"label": "Self-hosted services running"
|
||||
},
|
||||
{
|
||||
"value": "2k+",
|
||||
"label": "Users kept online at 99.9% uptime"
|
||||
}
|
||||
]
|
||||
@@ -1,7 +1,13 @@
|
||||
import React from "react";
|
||||
import { createRoot } from "react-dom/client";
|
||||
import App from "./App.jsx";
|
||||
import "@fontsource-variable/inter";
|
||||
import "@fontsource-variable/inter-tight";
|
||||
import "@fontsource-variable/jetbrains-mono";
|
||||
import "./index.css";
|
||||
import { profile } from "./content.js";
|
||||
|
||||
document.title = `${profile.name}, ${profile.headline}`;
|
||||
|
||||
createRoot(document.getElementById("root")).render(
|
||||
<React.StrictMode>
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
{
|
||||
"_help": "Drop image files into public/images/projects/ then list their filenames under the project id. One image = static picture; several = a swipeable carousel. Projects not listed (or with an empty list) fall back to their default artwork.",
|
||||
"mass": [],
|
||||
"radar": [],
|
||||
"qr-hunt": [],
|
||||
"crudl": [],
|
||||
"routines": [],
|
||||
"geo-hunt": [],
|
||||
"ai-bot": [],
|
||||
"cv-builder": []
|
||||
}
|
||||