Add portfolio site with Docker and Coolify setup

Next.js one-page portfolio presented as a versioned changelog, with
placeholder content in src/data/profile.ts. Includes a standalone
Docker image with a healthcheck and a compose file for Coolify.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
X4LoandClaude Opus 5.5 committed 2026-11-08 17:46:17 +00:00
commit 99015eb73b
19 files changed
+2497

No files matched your search

+6
View File
@@ -0,0 +1,6 @@
node_modules
.next
.git
Dockerfile
docker-compose*.yml
*.md
+7
View File
@@ -0,0 +1,7 @@
node_modules
.next
out
next-env.d.ts
*.tsbuildinfo
.env*.local
.claude
+77
View File
@@ -0,0 +1,77 @@
# Design plan
**Subject.** Ahmed, a software developer who graduated in 2025 and has about a year of
industry work. **Audience:** recruiters and engineering leads skimming for 60 seconds.
**Primary job:** show that he ships real things, and make it easy to contact him.
## Concept: Ahmed as a versioned release
A developer's career told in the vernacular developers already read every day: semantic
versions and a changelog. Graduation is `1.0.0`, the first stable release. Today is
`1.2.0`. What he's doing now lives under **Unreleased**, exactly as in
[keepachangelog.com](https://keepachangelog.com). Notes are grouped as Added / Changed /
Fixed, so the structure carries meaning instead of decorating it. Version numbers are a
real sequence, so numbering the timeline is honest.
## Tokens
| Name | Hex | Role |
|-------------|-----------|-------------------------------------------------------|
| Ultramarine | `#1F2BD1` | Hero field, links, active states |
| Signal | `#FFD43B` | The current version only: one marker of "now" |
| Paper | `#F3F4F9` | Page background below the hero (cool, not cream) |
| Ink | `#121640` | Body text, a deep blue instead of a tinted black |
| Haze | `#C9CDEA` | Rules and inactive text |
| Slate | `#585E8C` | Secondary text |
**Type.** *Big Shoulders Display* (condensed, signage-like) for version numbers and
headings: numerals are the visual material of the page. *Schibsted Grotesk* for
everything else. Two clearly different families, no monospace.
Scale (1.25 ratio for body, then jumps for display): 16 / 20 / 25 / 31 / 49 / clamp(8rem, 30vw, 26rem).
## Layout
```
┌──────────────────────────── ultramarine ───────────────────────────┐
│ Ahmed Salem Email GitHub │
│ Software developer in Alexandria │
│ │
│ 1.2.0 ◀ huge, counts up from 0.1.0 once on load │
│ Current: backend work on Tabaq's courier dispatch │
└────────────────────────────────────────────────────────────────────┘
Unreleased what I'm on now / looking for
───────────────────────────────────────────────────────────────────
Changelog 1.2.0 Apr 2026 Took over notifications [+]
1.1.0 Sep 2025 Joined Tabaq [+]
1.0.0 Jul 2025 Graduated (stable) [+]
───────────────────────────────────────────────────────────────────
Dependencies skills list ── click one ──▶ filters Projects
Projects featured project large, others as rows
───────────────────────────────────────────────────────────────────
Contact one sentence + email
```
Everything left-aligned on a two-column grid: section names in the left gutter,
content on the right. Collapses to one column on phones.
## Principles
1. Boldness is spent on the version numerals. Everything else is quiet.
2. One orchestrated motion: the hero version counts through each release on load.
All other motion answers a click (expanding a release, filtering projects).
3. Skills are shown as *dependencies* with "since" years and the projects that use
them, never as progress bars or percentages.
4. Plain copy, sentence case, no selling.
## Review against the brief
- *First idea was a terminal / `git log` look.* That is the default for any developer
portfolio (dark background, green monospace). Kept the versioning idea, dropped the
terminal costume: the changelog is set like printed signage on a light page.
- *Skills grid with logos* would look like every portfolio. Replaced with a dependency
list that filters projects, so the skill claims are backed by work.
- *Project cards with identical radius and shadow* replaced by one featured project and
a list of rows, sized by importance.
All data lives in `src/data/profile.ts` and is invented. Edit it to make it real.
+30
View File
@@ -0,0 +1,30 @@
# syntax=docker/dockerfile:1
FROM node:22-alpine AS deps
WORKDIR /app
COPY package.json package-lock.json ./
RUN npm ci
FROM node:22-alpine AS build
WORKDIR /app
ENV NEXT_TELEMETRY_DISABLED=1
COPY --from=deps /app/node_modules ./node_modules
COPY . .
RUN npm run build
FROM node:22-alpine AS run
WORKDIR /app
ENV NODE_ENV=production \
NEXT_TELEMETRY_DISABLED=1 \
PORT=3000 \
HOSTNAME=0.0.0.0
RUN addgroup -S app && adduser -S app -G app
COPY --from=build --chown=app:app /app/public ./public
COPY --from=build --chown=app:app /app/.next/standalone ./
COPY --from=build --chown=app:app /app/.next/static ./.next/static
USER app
EXPOSE 3000
# Coolify (and plain Docker) use this to decide when the new container is ready.
HEALTHCHECK --interval=15s --timeout=5s --start-period=10s --retries=3 \
CMD wget -qO- http://127.0.0.1:3000/ >/dev/null || exit 1
CMD ["node", "server.js"]
+37
View File
@@ -0,0 +1,37 @@
# Ahmed Salem: portfolio
A one-page Next.js portfolio that tells a career as a software changelog: graduation is
version `1.0.0`, the current job is `1.2.0`, and what's in progress sits under
"Unreleased". See `DESIGN.md` for the design reasoning.
## Edit the content
Everything shown on the page comes from `src/data/profile.ts`. All of it is placeholder
data: replace names, dates, projects and links with real ones.
## Run with Docker
```bash
docker compose up -d --build
```
Then open http://localhost:8080. (Port 3000 inside the container is mapped to 8080 on
the host. Change it in `docker-compose.yml`.)
## Deploy on Coolify
1. In Coolify, add a new resource from this Git repository, branch `master`.
2. Pick either build pack:
- **Dockerfile**: set *Ports Exposes* to `3000`.
- **Docker Compose**: leave the compose file as `docker-compose.yml`.
3. Set your domain and deploy. The image has a healthcheck, so Coolify waits until
the site answers before switching traffic.
`docker-compose.override.yml` only adds the local `8080` port and is ignored by Coolify.
## Run locally
```bash
npm install
npm run dev
```
+6
View File
@@ -0,0 +1,6 @@
# Local only: `docker compose up` merges this file and serves the site on :8080.
# Coolify passes an explicit -f flag, so it never loads this file.
services:
portfolio:
ports:
- "8080:3000"
+11
View File
@@ -0,0 +1,11 @@
# Used as-is by Coolify's "Docker Compose" build pack. Coolify's proxy routes the
# domain you set to port 3000, so no host port is published here.
services:
portfolio:
build: .
image: ahmed-portfolio
expose:
- "3000"
environment:
- SERVICE_FQDN_PORTFOLIO_3000
restart: unless-stopped
+7
View File
@@ -0,0 +1,7 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
// Emits a self-contained server in .next/standalone for the Docker image.
output: "standalone",
};
export default nextConfig;
+1003
View File
File diff suppressed because it is too large. Load diff
+21
View File
@@ -0,0 +1,21 @@
{
"name": "ahmed-portfolio",
"version": "1.2.0",
"private": true,
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start"
},
"dependencies": {
"next": "^15.5.29",
"react": "^19.3.1",
"react-dom": "^19.3.1"
},
"devDependencies": {
"@types/node": "^26.6.6",
"@types/react": "^19.3.0",
"@types/react-dom": "^19.3.0",
"typescript": "^5.9.3"
}
}
View File
Whitespace-only changes.
+676
View File
@@ -0,0 +1,676 @@
:root {
--ultramarine: #1f2bd1;
--ultramarine-deep: #1620a8;
--signal: #ffd43b;
--paper: #f3f4f9;
--ink: #121640;
--haze: #c9cdea;
--slate: #585e8c;
--on-blue: #eef0ff;
--on-blue-soft: #b8bdf5;
--display: var(--font-display), "Arial Narrow", sans-serif;
--text: var(--font-text), system-ui, sans-serif;
/* 1.25 scale for running text, then the display sizes */
--s-0: 1rem;
--s-1: 1.25rem;
--s-2: 1.5625rem;
--s-3: 1.953rem;
--s-4: 3.052rem;
--gutter: clamp(1rem, 4vw, 3.5rem);
--rail: 13rem;
}
*,
*::before,
*::after {
box-sizing: border-box;
}
html {
scroll-behavior: smooth;
-webkit-text-size-adjust: 100%;
}
body {
margin: 0;
background: var(--paper);
color: var(--ink);
font-family: var(--text);
font-size: var(--s-0);
line-height: 1.55;
-webkit-font-smoothing: antialiased;
}
h1,
h2,
h3,
p,
ul,
ol {
margin: 0;
}
ul,
ol {
padding: 0;
list-style: none;
}
a {
color: var(--ultramarine);
text-decoration-thickness: 1px;
text-underline-offset: 0.2em;
}
a:hover {
text-decoration-thickness: 2px;
}
button {
font: inherit;
color: inherit;
}
:focus-visible {
outline: 3px solid var(--signal);
outline-offset: 3px;
border-radius: 2px;
}
.skip {
position: absolute;
left: var(--gutter);
top: -4rem;
z-index: 10;
padding: 0.5rem 1rem;
background: var(--signal);
color: var(--ink);
font-weight: 700;
}
.skip:focus {
top: 1rem;
}
/* ───── Hero ───── */
.hero {
min-height: 100svh;
display: flex;
flex-direction: column;
justify-content: space-between;
gap: 3rem;
padding: var(--gutter);
padding-bottom: clamp(2rem, 6vw, 4rem);
background: var(--ultramarine);
color: var(--on-blue);
overflow: hidden;
}
.hero a {
color: var(--on-blue);
}
.hero-top {
display: flex;
justify-content: space-between;
align-items: flex-start;
gap: 1.5rem;
flex-wrap: wrap;
}
.hero-name {
font-weight: 700;
font-size: var(--s-1);
line-height: 1.2;
}
.hero-role {
color: var(--on-blue-soft);
}
.hero-nav {
display: flex;
gap: 1.5rem;
}
.hero-version {
font-family: var(--display);
font-weight: 900;
font-size: clamp(9rem, 38vw, 34rem);
line-height: 0.78;
letter-spacing: -0.02em;
margin-left: -0.04em;
font-variant-numeric: tabular-nums;
}
.hero-version span {
display: block;
color: var(--on-blue-soft);
transition: color 0.4s ease;
}
.hero-version .is-done {
color: var(--on-blue);
}
.hero-title {
display: flex;
align-items: center;
gap: 0.75rem;
margin-top: clamp(1.25rem, 3vw, 2rem);
font-size: var(--s-2);
line-height: 1.3;
max-width: 34ch;
min-height: 2.6em;
}
.hero-marker {
flex: none;
width: 0.7rem;
height: 0.7rem;
border-radius: 50%;
background: var(--on-blue-soft);
transition: background 0.3s ease, box-shadow 0.3s ease;
}
.hero-marker[data-on="true"] {
background: var(--signal);
box-shadow: 0 0 0 6px rgb(255 212 59 / 0.22);
}
.hero-cta {
display: inline-block;
margin-top: 2rem;
padding: 0.85rem 1.4rem;
background: var(--on-blue);
color: var(--ultramarine) !important;
font-weight: 700;
text-decoration: none;
border-radius: 999px;
}
.hero-cta:hover {
background: var(--signal);
color: var(--ink) !important;
}
/* ───── Sections ───── */
.section {
display: grid;
grid-template-columns: var(--rail) minmax(0, 1fr);
gap: 1rem 2.5rem;
padding: clamp(3.5rem, 8vw, 6.5rem) var(--gutter);
border-top: 1px solid var(--haze);
}
main > .section:first-child {
border-top: 0;
}
.section-name {
font-family: var(--display);
font-weight: 800;
font-size: var(--s-3);
line-height: 1;
color: var(--ultramarine);
position: sticky;
top: 1.5rem;
align-self: start;
}
.section-body {
max-width: 52rem;
}
.lede {
font-size: var(--s-2);
line-height: 1.35;
max-width: 30ch;
}
.now {
margin-top: 2rem;
display: grid;
gap: 0.9rem;
max-width: 60ch;
}
.now li {
padding-left: 1.5rem;
position: relative;
}
.now li::before {
content: "";
position: absolute;
left: 0;
top: 0.62em;
width: 0.7rem;
height: 2px;
background: var(--ultramarine);
}
/* ───── Changelog ───── */
.log-item {
border-top: 1px solid var(--haze);
}
.log-item:last-child {
border-bottom: 1px solid var(--haze);
}
.log-head {
width: 100%;
display: grid;
grid-template-columns: 7.5rem minmax(0, 1fr) 2rem;
align-items: center;
gap: 1.5rem;
padding: 1.25rem 0;
background: none;
border: 0;
text-align: left;
cursor: pointer;
}
.log-version {
font-family: var(--display);
font-weight: 800;
font-size: var(--s-4);
line-height: 0.9;
font-variant-numeric: tabular-nums;
color: var(--haze);
transition: color 0.2s ease;
}
.log-head:hover .log-version,
.log-head[aria-expanded="true"] .log-version {
color: var(--ultramarine);
}
.log-item[data-current="true"] .log-version {
color: var(--ultramarine);
}
.log-meta {
display: grid;
gap: 0.15rem;
}
.log-date {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 0.6rem;
color: var(--slate);
font-size: 0.9375rem;
}
.log-tag {
padding: 0.05rem 0.55rem;
border: 1px solid var(--ultramarine);
border-radius: 999px;
color: var(--ultramarine);
font-size: 0.8125rem;
font-weight: 500;
}
.log-tag-now {
background: var(--signal);
border-color: var(--signal);
color: var(--ink);
}
.log-title {
font-size: var(--s-1);
font-weight: 500;
line-height: 1.3;
}
.log-toggle {
position: relative;
width: 1.1rem;
height: 1.1rem;
justify-self: end;
}
.log-toggle::before,
.log-toggle::after {
content: "";
position: absolute;
inset: 50% 0 auto;
height: 2px;
margin-top: -1px;
background: var(--ink);
transition: transform 0.25s ease;
}
.log-toggle::after {
transform: rotate(90deg);
}
.log-head[aria-expanded="true"] .log-toggle::after {
transform: rotate(0deg);
}
.log-panel {
display: grid;
grid-template-rows: 0fr;
transition: grid-template-rows 0.3s ease;
}
.log-panel[data-open="true"] {
grid-template-rows: 1fr;
}
.log-notes {
overflow: hidden;
padding-left: 9rem;
}
.log-panel[data-open="true"] .log-notes {
padding-bottom: 1.5rem;
}
.log-group + .log-group {
margin-top: 1rem;
}
.log-group h3 {
font-size: 0.9375rem;
font-weight: 700;
color: var(--slate);
}
.log-group li {
max-width: 62ch;
margin-top: 0.3rem;
}
/* ───── Dependencies ───── */
.hint,
.filter-status {
color: var(--slate);
margin-bottom: 1.75rem;
}
.deps {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
gap: 2rem 2.5rem;
}
.dep-group h3 {
font-size: 0.9375rem;
font-weight: 700;
margin-bottom: 0.6rem;
}
.dep-group ul {
display: grid;
gap: 0.15rem;
}
.dep {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
align-items: baseline;
gap: 0 0.75rem;
padding: 0.5rem 0.75rem;
margin-left: -0.75rem;
width: calc(100% + 0.75rem);
background: none;
border: 0;
border-radius: 6px;
text-align: left;
cursor: pointer;
}
.dep:hover:not(:disabled) {
background: #e3e5f4;
}
.dep[aria-pressed="true"] {
background: var(--ultramarine);
color: var(--on-blue);
}
.dep[aria-pressed="true"] .dep-meta {
color: var(--on-blue-soft);
}
.dep:disabled {
cursor: default;
}
.dep-name {
font-weight: 500;
}
.dep-meta {
color: var(--slate);
font-size: 0.875rem;
white-space: nowrap;
}
/* ───── Projects ───── */
.link-button {
padding: 0;
background: none;
border: 0;
color: var(--ultramarine);
text-decoration: underline;
text-underline-offset: 0.2em;
cursor: pointer;
}
.feature {
padding: clamp(1.5rem, 4vw, 2.75rem);
margin-bottom: 1rem;
background: var(--ultramarine);
color: var(--on-blue);
border-radius: 4px 28px 4px 4px;
}
.feature a {
color: var(--on-blue);
}
.feature-year {
color: var(--on-blue-soft);
}
.feature-name {
font-family: var(--display);
font-weight: 900;
font-size: clamp(3.5rem, 10vw, 6.5rem);
line-height: 0.9;
margin: 0.25rem 0 0.75rem;
}
.feature-summary {
font-size: var(--s-2);
line-height: 1.3;
max-width: 28ch;
}
.feature-body {
display: grid;
gap: 0.75rem;
margin-top: 1.5rem;
max-width: 60ch;
}
.feature .outcome {
color: var(--signal);
}
.feature .role {
color: var(--on-blue-soft);
}
.rows {
border-top: 1px solid var(--haze);
}
.row {
display: grid;
grid-template-columns: 12rem minmax(0, 1fr);
gap: 0.5rem 2rem;
padding: 1.75rem 0;
border-bottom: 1px solid var(--haze);
}
.row-name {
font-family: var(--display);
font-weight: 800;
font-size: var(--s-3);
line-height: 1;
}
.row-year {
display: block;
margin-top: 0.35rem;
color: var(--slate);
font-size: 0.9375rem;
}
.row-body {
display: grid;
gap: 0.5rem;
max-width: 60ch;
}
.row-summary {
font-size: var(--s-1);
font-weight: 500;
line-height: 1.35;
}
.outcome {
font-weight: 700;
}
.role {
color: var(--slate);
font-size: 0.9375rem;
}
.stack {
display: flex;
flex-wrap: wrap;
gap: 0.4rem;
margin-top: 0.75rem;
}
.stack li {
padding: 0.1rem 0.6rem;
border: 1px solid var(--haze);
border-radius: 999px;
font-size: 0.875rem;
}
.stack li[data-active="true"] {
background: var(--signal);
border-color: var(--signal);
color: var(--ink);
}
.feature .stack li {
border-color: rgb(238 240 255 / 0.35);
}
.links {
display: flex;
gap: 1.25rem;
margin-top: 0.5rem;
font-weight: 500;
}
.links-none {
margin-top: 0.5rem;
color: var(--slate);
font-size: 0.9375rem;
}
/* ───── Contact & footer ───── */
.contact-mail {
display: inline-block;
margin-top: 1.5rem;
font-family: var(--display);
font-weight: 800;
font-size: clamp(1.9rem, 5.5vw, 3.6rem);
line-height: 1;
overflow-wrap: anywhere;
}
.contact-links {
display: flex;
gap: 1.5rem;
margin-top: 1.5rem;
}
.footer {
padding: 1.5rem var(--gutter);
border-top: 1px solid var(--haze);
color: var(--slate);
font-size: 0.875rem;
}
/* ───── Small screens ───── */
@media (max-width: 860px) {
.section {
grid-template-columns: minmax(0, 1fr);
}
.section-name {
position: static;
margin-bottom: 1rem;
}
}
@media (max-width: 600px) {
.log-head {
grid-template-columns: 4.75rem minmax(0, 1fr) 1.25rem;
gap: 1rem;
}
.log-version {
font-size: var(--s-3);
}
.log-notes {
padding-left: 0;
}
.row {
grid-template-columns: minmax(0, 1fr);
}
.hero-nav {
gap: 1rem;
}
}
@media (prefers-reduced-motion: reduce) {
html {
scroll-behavior: auto;
}
*,
*::before,
*::after {
transition-duration: 0.01ms !important;
}
}
+33
View File
@@ -0,0 +1,33 @@
import type { Metadata, Viewport } from "next";
import { Big_Shoulders, Schibsted_Grotesk } from "next/font/google";
import { profile } from "@/data/profile";
import "./globals.css";
const display = Big_Shoulders({
subsets: ["latin"],
weight: ["600", "800", "900"],
variable: "--font-display",
});
const text = Schibsted_Grotesk({
subsets: ["latin"],
weight: ["400", "500", "700"],
variable: "--font-text",
});
export const metadata: Metadata = {
title: `${profile.name}, ${profile.role.toLowerCase()}`,
description: `${profile.name} is a ${profile.role.toLowerCase()} in ${profile.location}. Projects, skills and a changelog of everything so far.`,
};
export const viewport: Viewport = {
themeColor: "#1F2BD1",
};
export default function RootLayout({ children }: { children: React.ReactNode }) {
return (
<html lang="en" className={`${display.variable} ${text.variable}`}>
<body>{children}</body>
</html>
);
}
+68
View File
@@ -0,0 +1,68 @@
import Hero from "@/components/Hero";
import Changelog from "@/components/Changelog";
import Work from "@/components/Work";
import { profile, releases } from "@/data/profile";
export default function Home() {
const history = [...releases].reverse().map(({ version, title }) => ({ version, title }));
return (
<>
<a className="skip" href="#main">
Skip to content
</a>
<Hero history={history} />
<main id="main">
<section className="section" aria-labelledby="unreleased">
<h2 id="unreleased" className="section-name">
Unreleased
</h2>
<div className="section-body">
<p className="lede">{profile.unreleased.intro}</p>
<ul className="now">
{profile.unreleased.now.map((item) => (
<li key={item}>{item}</li>
))}
</ul>
</div>
</section>
<section className="section" aria-labelledby="changelog">
<h2 id="changelog" className="section-name">
Changelog
</h2>
<div className="section-body">
<Changelog releases={releases} />
</div>
</section>
<Work />
<section className="section contact" aria-labelledby="contact">
<h2 id="contact" className="section-name">
Contact
</h2>
<div className="section-body">
<p className="lede">
Hiring for a backend or full-stack role? Email me and I’ll reply within a day.
</p>
<a className="contact-mail" href={`mailto:${profile.email}`}>
{profile.email}
</a>
<p className="contact-links">
<a href={profile.github}>GitHub</a>
<a href={profile.linkedin}>LinkedIn</a>
</p>
</div>
</section>
</main>
<footer className="footer">
<p>
{profile.name}, {profile.location}. This site is version {releases[0].version}.
</p>
</footer>
</>
);
}
+69
View File
@@ -0,0 +1,69 @@
"use client";
import { useState } from "react";
import type { Release } from "@/data/profile";
const kinds = [
["added", "Added"],
["changed", "Changed"],
["fixed", "Fixed"],
] as const;
export default function Changelog({ releases }: { releases: Release[] }) {
const [open, setOpen] = useState<Set<string>>(() => new Set([releases[0].version]));
const toggle = (version: string) =>
setOpen((prev) => {
const next = new Set(prev);
if (next.has(version)) next.delete(version);
else next.add(version);
return next;
});
return (
<ol className="log">
{releases.map((r, i) => {
const isOpen = open.has(r.version);
const panelId = `notes-${r.version}`;
return (
<li key={r.version} className="log-item" data-current={i === 0} data-stable={r.stable}>
<button
type="button"
className="log-head"
aria-expanded={isOpen}
aria-controls={panelId}
onClick={() => toggle(r.version)}
>
<span className="log-version">{r.version}</span>
<span className="log-meta">
<span className="log-date">
{r.date}
{i === 0 && <span className="log-tag log-tag-now">Latest</span>}
{r.stable && <span className="log-tag">First stable release</span>}
</span>
<span className="log-title">{r.title}</span>
</span>
<span className="log-toggle" aria-hidden="true" />
</button>
<div id={panelId} className="log-panel" data-open={isOpen} inert={!isOpen}>
<div className="log-notes">
{kinds.map(([key, label]) =>
r[key]?.length ? (
<div key={key} className="log-group">
<h3>{label}</h3>
<ul>
{r[key]!.map((note) => (
<li key={note}>{note}</li>
))}
</ul>
</div>
) : null,
)}
</div>
</div>
</li>
);
})}
</ol>
);
}
+60
View File
@@ -0,0 +1,60 @@
"use client";
import { useEffect, useState } from "react";
import { profile } from "@/data/profile";
type Step = { version: string; title: string };
// The page's one unprompted motion: the version ticks through every release once.
export default function Hero({ history }: { history: Step[] }) {
const last = history.length - 1;
const [index, setIndex] = useState(last);
useEffect(() => {
if (window.matchMedia("(prefers-reduced-motion: reduce)").matches) return;
setIndex(0);
let i = 0;
const timer = window.setInterval(() => {
i += 1;
setIndex(i);
if (i >= last) window.clearInterval(timer);
}, 210);
return () => window.clearInterval(timer);
}, [last]);
const step = history[index];
const done = index === last;
return (
<header className="hero">
<div className="hero-top">
<div>
<p className="hero-name">{profile.name}</p>
<p className="hero-role">
{profile.role} in {profile.location}
</p>
</div>
<nav className="hero-nav" aria-label="Contact">
<a href={`mailto:${profile.email}`}>Email</a>
<a href={profile.github}>GitHub</a>
<a href={profile.linkedin}>LinkedIn</a>
</nav>
</div>
<div className="hero-release">
<h1 className="hero-version" aria-label={`${profile.name}, version ${history[last].version}`}>
<span aria-hidden="true" className={done ? "is-done" : undefined}>
{step.version}
</span>
</h1>
<p className="hero-title" aria-live="off">
<span className="hero-marker" data-on={done} aria-hidden="true" />
{done ? profile.current : step.title}
</p>
<a className="hero-cta" href="#changelog">
Read the changelog
</a>
</div>
</header>
);
}
+148
View File
@@ -0,0 +1,148 @@
"use client";
import { useState } from "react";
import { projects, skills, type Skill } from "@/data/profile";
const groups: Skill["group"][] = ["Daily", "Comfortable", "Learning"];
const groupNames: Record<Skill["group"], string> = {
Daily: "Use every day",
Comfortable: "Comfortable with",
Learning: "Learning now",
};
const usage = (skill: string) => projects.filter((p) => p.stack.includes(skill)).length;
export default function Work() {
const [skill, setSkill] = useState<string | null>(null);
const shown = skill ? projects.filter((p) => p.stack.includes(skill)) : projects;
const featured = shown.find((p) => p.featured);
const rest = shown.filter((p) => !p.featured);
return (
<>
<section className="section" aria-labelledby="dependencies">
<h2 id="dependencies" className="section-name">
Dependencies
</h2>
<div className="section-body">
<p className="hint">Pick a skill to see the projects that use it.</p>
<div className="deps">
{groups.map((g) => (
<div key={g} className="dep-group">
<h3>{groupNames[g]}</h3>
<ul>
{skills
.filter((s) => s.group === g)
.map((s) => {
const count = usage(s.name);
return (
<li key={s.name}>
<button
type="button"
className="dep"
aria-pressed={skill === s.name}
disabled={count === 0}
onClick={() => setSkill(skill === s.name ? null : s.name)}
>
<span className="dep-name">{s.name}</span>
<span className="dep-meta">
since {s.since}
{count > 0 ? `, ${count} project${count > 1 ? "s" : ""}` : ""}
</span>
</button>
</li>
);
})}
</ul>
</div>
))}
</div>
</div>
</section>
<section className="section" aria-labelledby="projects">
<h2 id="projects" className="section-name">
Projects
</h2>
<div className="section-body">
<p className="filter-status" aria-live="polite">
{skill ? (
<>
{shown.length} of {projects.length} projects use {skill}.{" "}
<button type="button" className="link-button" onClick={() => setSkill(null)}>
Show all projects
</button>
</>
) : (
`${projects.length} projects, from coursework to production.`
)}
</p>
{featured && (
<article className="feature">
<p className="feature-year">{featured.year}</p>
<h3 className="feature-name">{featured.name}</h3>
<p className="feature-summary">{featured.summary}</p>
<div className="feature-body">
<p>{featured.detail}</p>
<p className="outcome">{featured.outcome}</p>
<p className="role">{featured.role}</p>
</div>
<Stack items={featured.stack} active={skill} />
<Links repo={featured.repo} live={featured.live} name={featured.name} />
</article>
)}
<ul className="rows">
{rest.map((p) => (
<li key={p.id} className="row">
<div className="row-head">
<h3 className="row-name">{p.name}</h3>
<span className="row-year">{p.year}</span>
</div>
<div className="row-body">
<p className="row-summary">{p.summary}</p>
<p>{p.detail}</p>
<p className="outcome">{p.outcome}</p>
<p className="role">{p.role}</p>
<Stack items={p.stack} active={skill} />
<Links repo={p.repo} live={p.live} name={p.name} />
</div>
</li>
))}
</ul>
</div>
</section>
</>
);
}
function Stack({ items, active }: { items: string[]; active: string | null }) {
return (
<ul className="stack" aria-label="Built with">
{items.map((s) => (
<li key={s} data-active={s === active}>
{s}
</li>
))}
</ul>
);
}
function Links({ repo, live, name }: { repo?: string; live?: string; name: string }) {
if (!repo && !live) return <p className="links-none">Private code, happy to walk through it.</p>;
return (
<p className="links">
{repo && (
<a href={repo} aria-label={`${name} source code on GitHub`}>
Source code
</a>
)}
{live && (
<a href={live} aria-label={`Open the ${name} demo`}>
Live demo
</a>
)}
</p>
);
}
+217
View File
@@ -0,0 +1,217 @@
// Every fact on the site lives here. All of it is placeholder data: replace it with your own.
export type Release = {
version: string;
date: string; // shown as written
title: string;
stable?: boolean;
added?: string[];
changed?: string[];
fixed?: string[];
};
export type Skill = {
name: string;
since: number;
group: "Daily" | "Comfortable" | "Learning";
};
export type Project = {
id: string;
name: string;
year: string;
role: string;
summary: string;
detail: string;
outcome: string;
stack: string[];
repo?: string;
live?: string;
featured?: boolean;
};
export const profile = {
name: "Ahmed Salem",
role: "Software developer",
location: "Alexandria, Egypt",
email: "ahmed.salem.dev@gmail.com",
github: "https://github.com/ahmedsalem-dev",
linkedin: "https://www.linkedin.com/in/ahmedsalem-dev",
current: "Building courier dispatch and notifications at Tabaq",
unreleased: {
intro:
"Full-stack developer, strongest on the backend. I like small services that are boring to operate and easy to delete.",
now: [
"Moving Tabaq's SMS and push notifications onto a single queue with retries and delivery receipts.",
"Learning Rust by rewriting kv-lite's storage engine.",
"Open to backend or full-stack roles from early 2027, in Alexandria, Cairo or remote.",
],
},
};
// Newest first, as in a changelog.
export const releases: Release[] = [
{
version: "1.2.0",
date: "April 2026",
title: "Took ownership of notifications at Tabaq",
added: [
"Owner of the notifications service: about 40,000 SMS and push messages a day.",
"On-call rotation, one week in five.",
],
changed: [
"Moved message sending from cron scripts to a BullMQ queue on Redis.",
],
fixed: [
"Failed courier SMS dropped from 3.1% to 0.4% after adding retries and a fallback provider.",
],
},
{
version: "1.1.0",
date: "September 2025",
title: "Joined Tabaq as a junior full-stack developer",
added: [
"Shipped the restaurant-side order screen in Next.js within my first six weeks.",
"Wrote the team's first integration tests against a real Postgres in CI.",
],
changed: ["From student projects to code that handles real money and real deliveries."],
},
{
version: "1.0.0",
date: "July 2025",
title: "Graduated, BSc Computer Science, Alexandria University",
stable: true,
added: [
"GPA 3.58 / 4.0.",
"Graduation project Rafeeq graded A and demoed to two local clinics.",
],
},
{
version: "0.8.0",
date: "February 2024",
title: "Teaching assistant for Data Structures",
added: [
"Ran weekly lab sessions for about 60 second-year students.",
"Wrote an autograder for linked-list and heap assignments in Python.",
],
},
{
version: "0.6.0",
date: "November 2023",
title: "Second place at the AlexU 48-hour hackathon",
added: ["Built Ledgerly, an offline-first expense tracker, with two classmates."],
},
{
version: "0.4.0",
date: "July 2023",
title: "Backend intern at Nilework Labs",
added: [
"Built CSV import for a logistics client's shipment data in Node.js.",
"First code review I ever received. It had 31 comments.",
],
fixed: ["Learned to write commit messages someone else can read."],
},
{
version: "0.2.0",
date: "March 2022",
title: "First thing other people used",
added: ["Mawqif, a Telegram bot for campus bus times. 1,200 students signed up in a term."],
},
{
version: "0.1.0",
date: "September 2021",
title: "Started a CS degree",
added: ["Wrote my first C++ program, and my first segfault."],
},
];
export const skills: Skill[] = [
{ name: "TypeScript", since: 2022, group: "Daily" },
{ name: "Node.js", since: 2022, group: "Daily" },
{ name: "Next.js", since: 2023, group: "Daily" },
{ name: "PostgreSQL", since: 2023, group: "Daily" },
{ name: "Redis", since: 2025, group: "Daily" },
{ name: "Docker", since: 2024, group: "Daily" },
{ name: "Python", since: 2021, group: "Comfortable" },
{ name: "React", since: 2022, group: "Comfortable" },
{ name: "NestJS", since: 2024, group: "Comfortable" },
{ name: "Go", since: 2024, group: "Comfortable" },
{ name: "GitHub Actions", since: 2024, group: "Comfortable" },
{ name: "Rust", since: 2026, group: "Learning" },
{ name: "Kubernetes", since: 2026, group: "Learning" },
];
export const projects: Project[] = [
{
id: "rafeeq",
name: "Rafeeq",
year: "2024–2025",
role: "Graduation project, team of four. I led the backend.",
summary: "Book a clinic appointment by sending a WhatsApp message.",
detail:
"Small clinics in Alexandria book patients by phone and paper. Rafeeq lets patients message the clinic's WhatsApp number in Arabic or English, pick a slot, and get a reminder the day before. Staff see the day's schedule on a tablet.",
outcome: "Piloted for three weeks at two clinics. No-shows fell from about 1 in 5 to 1 in 12.",
stack: ["TypeScript", "NestJS", "PostgreSQL", "Next.js", "Docker"],
repo: "https://github.com/ahmedsalem-dev/rafeeq",
featured: true,
},
{
id: "tabaq-notify",
name: "Tabaq notifications",
year: "2026",
role: "Work project. Sole owner.",
summary: "One queue for every SMS and push message the company sends.",
detail:
"Replaced four cron scripts with a single service that queues, retries and falls back to a second SMS provider, and records delivery receipts so support can answer “did the courier get it?”.",
outcome: "Failed courier SMS down from 3.1% to 0.4%.",
stack: ["TypeScript", "Node.js", "Redis", "PostgreSQL", "Docker"],
},
{
id: "ledgerly",
name: "Ledgerly",
year: "2023",
role: "Hackathon, team of three. I built sync.",
summary: "An expense tracker that works with no signal and syncs later.",
detail:
"A PWA that stores entries in IndexedDB and syncs to a server when online, resolving conflicts by last edit per field.",
outcome: "Second place out of 34 teams.",
stack: ["React", "TypeScript", "Node.js", "PostgreSQL"],
repo: "https://github.com/ahmedsalem-dev/ledgerly",
live: "https://ledgerly-demo.vercel.app",
},
{
id: "kv-lite",
name: "kv-lite",
year: "2024–now",
role: "Personal project.",
summary: "A tiny key-value store, written to understand how databases survive crashes.",
detail:
"Append-only log, an in-memory index and compaction. Being rewritten in Rust to learn the language on a problem I already understand.",
outcome: "Survives kill -9 mid-write in a 10,000-run fuzz test.",
stack: ["Go", "Rust"],
repo: "https://github.com/ahmedsalem-dev/kv-lite",
},
{
id: "mawqif",
name: "Mawqif",
year: "2022",
role: "Personal project.",
summary: "A Telegram bot that tells you when the next campus bus leaves.",
detail:
"Scraped the faculty's timetable PDF each week and answered “next bus from Moharram Bek?” in plain Arabic.",
outcome: "1,200 students in its first term.",
stack: ["Python"],
repo: "https://github.com/ahmedsalem-dev/mawqif",
},
{
id: "autograder",
name: "DS autograder",
year: "2024",
role: "Built while working as a TA.",
summary: "Grades data-structure assignments and explains what broke.",
detail:
"Runs student C++ in a Docker sandbox with time and memory limits, then prints which invariant failed instead of just “wrong answer”.",
outcome: "Used for two terms, around 120 students each.",
stack: ["Python", "Docker", "GitHub Actions"],
},
];
+21
View File
@@ -0,0 +1,21 @@
{
"compilerOptions": {
"target": "ES2017",
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": false,
"skipLibCheck": true,
"strict": true,
"noEmit": true,
"esModuleInterop": true,
"module": "esnext",
"moduleResolution": "bundler",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "preserve",
"incremental": true,
"plugins": [{ "name": "next" }],
"paths": { "@/*": ["./src/*"] }
},
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
"exclude": ["node_modules"]
}