diff --git a/.claude/launch.json b/.claude/launch.json index 097d843..5e5163e 100644 --- a/.claude/launch.json +++ b/.claude/launch.json @@ -5,7 +5,7 @@ "name": "dev", "runtimeExecutable": "bun", "runtimeArgs": ["run", "dev"], - "port": 5173 + "port": 4321 } ] } diff --git a/.claude/skills/commit/SKILL.md b/.claude/skills/commit/SKILL.md index 03a4315..328de57 100644 --- a/.claude/skills/commit/SKILL.md +++ b/.claude/skills/commit/SKILL.md @@ -87,12 +87,12 @@ Each commit should contain one logical change. Create separate commits for: **Stage together:** -- New component `ContractSection.vue` + its import and usage in `App.vue` +- New component `ContractSection.astro` + its import and usage in `index.astro` - A copy change in `data.ts` + the matching markup tweak in the section component that renders it **Stage separately:** -- Two new components `StackSection.vue` and `EducationSection.vue`, each with their own `App.vue` wiring +- Two new components `StackSection.astro` and `EducationSection.astro`, each with their own `index.astro` wiring - A `useTheme.ts` composable change + an unrelated style fix in `style.css` ## Instructions diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 479ff16..846f5d8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,8 +18,11 @@ jobs: - name: Install dependencies run: bun install --frozen-lockfile - - name: Lint and check formatting - run: bunx biome ci . + - name: Lint + run: bun run lint + + - name: Check formatting + run: bun run format:check - name: Type-check and build run: bun run build diff --git a/.gitignore b/.gitignore index 2f79262..405a522 100644 --- a/.gitignore +++ b/.gitignore @@ -22,3 +22,6 @@ dist-ssr *.njsproj *.sln *.sw? + +# Astro +.astro diff --git a/.oxfmtrc.json b/.oxfmtrc.json new file mode 100644 index 0000000..5a7e81d --- /dev/null +++ b/.oxfmtrc.json @@ -0,0 +1,16 @@ +{ + "$schema": "./node_modules/oxfmt/configuration_schema.json", + "useTabs": true, + "tabWidth": 4, + "printWidth": 120, + "singleQuote": false, + "jsxSingleQuote": false, + "quoteProps": "as-needed", + "trailingComma": "all", + "semi": true, + "arrowParens": "always", + "bracketSameLine": false, + "bracketSpacing": true, + "ignorePatterns": ["bun.lock"], + "astro": true +} diff --git a/.oxlintrc.json b/.oxlintrc.json new file mode 100644 index 0000000..d82a139 --- /dev/null +++ b/.oxlintrc.json @@ -0,0 +1,14 @@ +{ + "$schema": "./node_modules/oxlint/configuration_schema.json", + "plugins": ["typescript", "unicorn", "oxc", "import"], + "categories": { + "correctness": "error" + }, + "rules": { + "no-unused-vars": "error", + "prefer-const": "error", + "typescript/no-explicit-any": "error", + "typescript/no-non-null-assertion": "error" + }, + "ignorePatterns": ["dist", ".astro"] +} diff --git a/CODE_STYLE.md b/CODE_STYLE.md index 8c44339..24e1a4e 100644 --- a/CODE_STYLE.md +++ b/CODE_STYLE.md @@ -2,7 +2,7 @@ ## Formatting -Biome: tabs (width 4), double quotes, semicolons, trailing commas, 120 char width. No `any`, no unused vars/imports, no non-null assertions. Vue SFCs relax the unused/undeclared rules. `bun run lint` to check, `bun run format` to fix. +Oxfmt: tabs (width 4), double quotes, semicolons, trailing commas, 120 char width. Oxlint: no `any`, no unused vars, no non-null assertions. `bun run lint` to lint, `bun run format` to fix formatting. ### Blank Lines @@ -10,16 +10,16 @@ Blank line after multi-line block (3+ lines) when followed by another statement. ```typescript // Good -watchEffect(() => { - localStorage.setItem("theme", theme.value); - document.documentElement.classList.toggle("dark", isDark.value); +button?.addEventListener("click", () => { + const dark = !root.classList.contains("dark"); + apply(dark); }); -export function useTheme() { ... } +apply(root.classList.contains("dark")); // Good - single lines together +const root = document.documentElement; const media = window.matchMedia("(prefers-color-scheme: dark)"); -const systemDark = ref(media.matches); ``` ## Comments @@ -43,28 +43,33 @@ const toggle = () => { ... }; Prefer popular, well-maintained packages over hand-rolling functionality for anything with a standard. Avoid general-purpose utility packages like `lodash` to keep bundle size in check; import only focused, single-purpose packages. -## Vue / Frontend +## Astro / Frontend -**Component Organization:** One component per section in `src/components/`. Small, one-time-use markup can stay inline in its parent. Larger or reusable pieces get their own file. +**Component Organization:** Pages in `src/pages/`, the shared shell in `src/layouts/Layout.astro`, one component per section in `src/components/`. Small, one-time-use markup can stay inline in its parent. Larger or reusable pieces get their own file. **Content vs markup:** All copy, links, and profile data live in `src/data.ts`. Components render data, they do not embed prose. +**JavaScript:** The site ships static HTML. Keep client scripts to small inline ` - - -
- - - diff --git a/package.json b/package.json index 9d76e28..f1d0e5d 100644 --- a/package.json +++ b/package.json @@ -1,28 +1,28 @@ { "name": "gmiles.dev", - "private": true, "version": "1.0.0", + "private": true, "type": "module", "scripts": { - "dev": "vite", - "build": "vue-tsc --noEmit && vite build", - "type-check": "vue-tsc --noEmit", - "lint": "biome check .", - "format": "biome check --write .", - "preview": "vite preview" + "dev": "bun --bun astro dev", + "build": "bun --bun astro check && bun --bun astro build", + "type-check": "bun --bun astro check", + "lint": "oxlint", + "format": "oxfmt", + "format:check": "oxfmt --check", + "preview": "bun --bun astro preview" }, "dependencies": { - "vue": "^3.5.39" + "@astrojs/sitemap": "^3.7.4", + "astro": "^7.4.11" }, "devDependencies": { - "@biomejs/biome": "^2.5.3", - "@tailwindcss/vite": "^4.3.2", - "@types/node": "^26.1.1", - "@vitejs/plugin-vue": "^6.0.8", - "@vue/tsconfig": "^0.9.1", - "tailwindcss": "^4.3.2", - "typescript": "^5", - "vite": "^8.1.4", - "vue-tsc": "^3.3.7" + "@astrojs/check": "^0.9.12", + "@astrojs/compiler-rs": "^0.5.3", + "@tailwindcss/vite": "^4.3.5", + "oxfmt": "^0.78.0", + "oxlint": "^1.93.0", + "tailwindcss": "^4.3.5", + "typescript": "^6.0.3" } } diff --git a/public/apple-touch-icon.png b/public/apple-touch-icon.png index b9b73b5..b2cd21c 100644 Binary files a/public/apple-touch-icon.png and b/public/apple-touch-icon.png differ diff --git a/public/favicon.ico b/public/favicon.ico index 287659a..4458c07 100644 Binary files a/public/favicon.ico and b/public/favicon.ico differ diff --git a/public/robots.txt b/public/robots.txt index a84b748..8266b72 100644 --- a/public/robots.txt +++ b/public/robots.txt @@ -1,2 +1,4 @@ User-agent: * -Disallow: /assets/images/ +Allow: / + +Sitemap: https://gmiles.dev/sitemap-index.xml diff --git a/src/App.vue b/src/App.vue deleted file mode 100644 index 9e617aa..0000000 --- a/src/App.vue +++ /dev/null @@ -1,75 +0,0 @@ - - - diff --git a/src/assets/stats-cc.svg b/src/assets/stats-cc.svg new file mode 100644 index 0000000..f41cd66 --- /dev/null +++ b/src/assets/stats-cc.svg @@ -0,0 +1 @@ + diff --git a/src/components/ContractSection.astro b/src/components/ContractSection.astro new file mode 100644 index 0000000..dff9930 --- /dev/null +++ b/src/components/ContractSection.astro @@ -0,0 +1,53 @@ +--- +import { contracting, profile } from "@/data"; +import Section from "./Section.astro"; +--- + +
+

{contracting.title}

+

{contracting.pitch}

+ +
+ {contracting.terms.map((item) => ( +
+
{item.term}
+
{item.detail}
+
+ ))} +
+ +
+
+

{contracting.cta.title}

+

{contracting.cta.detail}

+
+ +
+
diff --git a/src/components/ContractSection.vue b/src/components/ContractSection.vue deleted file mode 100644 index 2b3e74e..0000000 --- a/src/components/ContractSection.vue +++ /dev/null @@ -1,85 +0,0 @@ - - - diff --git a/src/components/EducationSection.astro b/src/components/EducationSection.astro new file mode 100644 index 0000000..a70d741 --- /dev/null +++ b/src/components/EducationSection.astro @@ -0,0 +1,73 @@ +--- +import { schools } from "@/data"; +import Section from "./Section.astro"; +--- + +
+
+ {schools.map((school, s) => ( +
+
+

{school.name}

+

{school.qualification}

+

{school.period}

+ {school.detail &&

{school.detail}

} +
+ +

+ + {school.headline} + + {school.headlineNote} +

+ + {school.subjects && ( +
+ {school.subjects.map(({ subject, grade }) => ( +
+
{subject}
+
{grade}
+
+ ))} +
+ )} + + {school.awards && ( +
    + {school.awards.map((award, i) => ( +
  • + + + {award.name} + + + {award.about} + +
  • + ))} +
+ )} +
+ ))} +
+
diff --git a/src/components/EducationSection.vue b/src/components/EducationSection.vue deleted file mode 100644 index 05f77f6..0000000 --- a/src/components/EducationSection.vue +++ /dev/null @@ -1,69 +0,0 @@ - - - diff --git a/src/components/ExperienceSection.astro b/src/components/ExperienceSection.astro new file mode 100644 index 0000000..12d54cc --- /dev/null +++ b/src/components/ExperienceSection.astro @@ -0,0 +1,71 @@ +--- +import { type Role, roles } from "@/data"; +import Section from "./Section.astro"; + +/** + * Groups consecutive roles at the same company so promotions read as one tenure + */ +const groupByCompany = (list: Role[]) => + list.reduce<{ company: string; roles: Role[] }[]>((groups, role) => { + const last = groups.at(-1); + if (last?.company === role.company) last.roles.push(role); + else groups.push({ company: role.company, roles: [role] }); + return groups; + }, []); + +/** + * Splits a highlight into plain text and figures so the numbers can be set in heavier ink + */ +const splitFigures = (text: string) => + text + .split(/((? ({ part, figure: i % 2 === 1 })); + +const groups = groupByCompany(roles); +--- + +
+
    + {groups.map((group) => ( +
  1. +

    {group.company}

    + +
      + {group.roles.map((role) => ( +
    1. + {/* Rail segment from this dot down to the next one. Fills as the next role reaches the middle of the screen */} +
    2. + ))} +
    +
  2. + ))} +
+
diff --git a/src/components/ExperienceSection.vue b/src/components/ExperienceSection.vue deleted file mode 100644 index b7b3291..0000000 --- a/src/components/ExperienceSection.vue +++ /dev/null @@ -1,47 +0,0 @@ - - - diff --git a/src/components/HeroSection.astro b/src/components/HeroSection.astro new file mode 100644 index 0000000..260ff02 --- /dev/null +++ b/src/components/HeroSection.astro @@ -0,0 +1,194 @@ +--- +import { Image } from "astro:assets"; +import headshot from "@/assets/headshot.jpg"; +import StatsLogo from "@/assets/stats-cc.svg"; +import { contracting, profile } from "@/data"; + +const [title, org] = profile.role.split(", "); +--- + +
+
+

+ {profile.name} +

+

+ {title} + {org && ( + <> + {" "} + at{" "} + + + + )} +

+

+ {profile.summary} +

+ + + + +
+ + +
+
+
+ Portrait of George Miles + +
+
+
+
+ + diff --git a/src/components/HeroSection.vue b/src/components/HeroSection.vue deleted file mode 100644 index 9683ba2..0000000 --- a/src/components/HeroSection.vue +++ /dev/null @@ -1,86 +0,0 @@ - - - diff --git a/src/components/LegalView.vue b/src/components/LegalView.vue deleted file mode 100644 index 1e26eb7..0000000 --- a/src/components/LegalView.vue +++ /dev/null @@ -1,48 +0,0 @@ - - - diff --git a/src/components/Section.astro b/src/components/Section.astro new file mode 100644 index 0000000..aea1b8b --- /dev/null +++ b/src/components/Section.astro @@ -0,0 +1,23 @@ +--- +interface Props { + id: string; + title: string; +} + +const { id, title } = Astro.props; +--- + + +
+
+

+ {title} +

+
+ +
+
+
diff --git a/src/components/SectionLabel.vue b/src/components/SectionLabel.vue deleted file mode 100644 index ab4b418..0000000 --- a/src/components/SectionLabel.vue +++ /dev/null @@ -1,12 +0,0 @@ - - - diff --git a/src/components/SiteFooter.astro b/src/components/SiteFooter.astro new file mode 100644 index 0000000..f9c8404 --- /dev/null +++ b/src/components/SiteFooter.astro @@ -0,0 +1,56 @@ +--- +import { profile } from "@/data"; + +const legal = [ + { href: "/privacy", label: "Privacy" }, + { href: "/terms", label: "Terms" }, + { href: "/refunds", label: "Refunds" }, +]; +--- + + + + diff --git a/src/components/SiteFooter.vue b/src/components/SiteFooter.vue deleted file mode 100644 index 149ccb5..0000000 --- a/src/components/SiteFooter.vue +++ /dev/null @@ -1,43 +0,0 @@ - - - diff --git a/src/components/StackSection.astro b/src/components/StackSection.astro new file mode 100644 index 0000000..1fa4929 --- /dev/null +++ b/src/components/StackSection.astro @@ -0,0 +1,184 @@ +--- +import { stack, terminal } from "@/data"; +import Section from "./Section.astro"; + +const command = "tree ./career"; +--- + +
+ +
+
+ + + + george@gmiles: ~/stack +
+ +
+

+ $ {command} --sort started + +

+ +
+ {stack.map((layer, i) => ( +
+

+ {i === stack.length - 1 ? "└── " : "├── "} + {layer.name} + # {layer.note} +

+

+ {layer.items.map((item, j) => ( + <> + {j > 0 && · } + {item} + + ))} +

+
+ ))} +
+ +
+ +
+ + +
+
+
+
+ + diff --git a/src/components/StackSection.vue b/src/components/StackSection.vue deleted file mode 100644 index df60faa..0000000 --- a/src/components/StackSection.vue +++ /dev/null @@ -1,51 +0,0 @@ - - - diff --git a/src/components/ThemeToggle.astro b/src/components/ThemeToggle.astro new file mode 100644 index 0000000..fc5911c --- /dev/null +++ b/src/components/ThemeToggle.astro @@ -0,0 +1,64 @@ + + + diff --git a/src/components/ThemeToggle.vue b/src/components/ThemeToggle.vue deleted file mode 100644 index d6fc05e..0000000 --- a/src/components/ThemeToggle.vue +++ /dev/null @@ -1,47 +0,0 @@ - - - diff --git a/src/composables/useTheme.ts b/src/composables/useTheme.ts deleted file mode 100644 index c465472..0000000 --- a/src/composables/useTheme.ts +++ /dev/null @@ -1,31 +0,0 @@ -import { computed, ref, watchEffect } from "vue"; - -export type Theme = "light" | "dark" | "system"; - -const stored = localStorage.getItem("theme") as Theme | null; -const theme = ref(stored === "light" || stored === "dark" || stored === "system" ? stored : "system"); - -const media = window.matchMedia("(prefers-color-scheme: dark)"); -const systemDark = ref(media.matches); -media.addEventListener("change", (event) => (systemDark.value = event.matches)); - -const isDark = computed(() => theme.value === "dark" || (theme.value === "system" && systemDark.value)); - -watchEffect(() => { - localStorage.setItem("theme", theme.value); - document.documentElement.classList.toggle("dark", isDark.value); -}); - -/** - * Provides the current theme preference, the resolved dark state, and a toggle - */ -export function useTheme() { - /** - * Flips to the opposite of whatever is currently showing. System resolves to its effective theme first - */ - const toggle = () => { - theme.value = isDark.value ? "light" : "dark"; - }; - - return { theme, isDark, toggle }; -} diff --git a/src/data.ts b/src/data.ts index 6fa4cdf..d801014 100644 --- a/src/data.ts +++ b/src/data.ts @@ -9,7 +9,6 @@ export interface Role { company: string; title: string; period: string; - location: string; summary: string; highlights: string[]; } @@ -22,18 +21,29 @@ export interface School { headline: string; headlineNote: string; subjects?: { subject: string; grade: string }[]; - awards?: string[]; + awards?: { name: string; about: string }[]; } +const bookingUrl = "https://cal.com/gmiles"; + export const profile = { name: "George Miles", - role: "Senior Backend Engineer", - tagline: "Backend at the core. Full stack from the ground up.", + role: "Managing Director, stats.cc", + companyUrl: "https://stats.cc", + // Search result title and snippet for the home page + metaTitle: "George Miles · Engineer & Managing Director, stats.cc", + description: + "George Miles, Managing Director of stats.cc and a backend-first full-stack engineer. Rust, distributed systems and modern frontend. Free 30 minute consultation.", summary: - "I build high-performance distributed systems: platforms processing billions of real-time events on Kubernetes clusters that stay up. The AI wave pulled me up the stack, so now I ship the frontend too.", - location: "England · remote, worldwide", + "I start with the people using our product and work back to the code. I've built real-time pipelines that handle billions of events and the infrastructure that keeps them running, and these days I ship the product on top as well.", + photoQuip: "Hey, you're too close to my face.", + location: "England", + timeZone: "Europe/London", + remote: "Remote, worldwide", email: "hi@gmiles.dev", linkedin: "https://linkedin.com/in/gtmmiles", + resumeUrl: + "mailto:hi@gmiles.dev?subject=Resume%20request&body=Hi%20George%2C%0A%0AI%20found%20gmiles.dev%20and%20would%20like%20a%20copy%20of%20your%20resume.%0A%0AName%3A%0ACompany%3A%0ARole%20in%20mind%3A%0A%0AThanks", }; // Ordered by when each layer entered the career: backend first, frontend last @@ -64,70 +74,98 @@ export const stack: StackLayer[] = [ }, ]; +// Replies for the stack terminal easter egg. Lines that are URLs render as links +export const terminal: Record = { + help: [ + "whoami who is this", + "ls list sections", + "cd jump to a section", + "hire book a free call", + "clear clear the screen", + ], + whoami: ["George Miles, Managing Director at stats.cc"], + ls: ["experience stack education hire"], + hire: ["Free 30 minute consultation, no commitment:", bookingUrl], + "sudo hire george": ["[sudo] password for visitor: ********", "Access granted.", bookingUrl], + "rm -rf /": ["Nice try."], + exit: ["There is no escape. Try hire instead."], + coffee: ["418 I'm a teapot"], + vim: ["You are now trapped. Just kidding, this is not vim."], +}; + export const roles: Role[] = [ { company: "Stats.cc", - title: "Senior Backend Engineer & DevOps", - period: "Feb 2024 - Present", - location: "Remote, UK", + title: "Managing Director", + period: "Oct 2026 – Present", summary: - "Early member leading backend architecture and infrastructure for a gaming statistics platform on a mission to help 500 million players improve.", + "Took over the business I helped build. Now leading everything from infrastructure, backend and frontend to product direction and business strategy, on a mission to give 250 million gamers the tools to track, analyse and improve their performance.", highlights: [ - "25+ Rust microservices on production Kubernetes", + "Own product direction and business strategy end to end", + "Still hands-on across infrastructure, backend and frontend", + "Implementing user feedback in real time", + ], + }, + { + company: "Stats.cc", + title: "Founding Engineer", + period: "Feb 2024 – Present", + summary: + "Joined the founders after building a similar side project around the same time. Led backend architecture and built and ran all of the infrastructure, then moved into full stack to ship frontend features too.", + highlights: [ + "25+ microservices on production Kubernetes", "Full system rewrite in Rust: 10x faster, ~20% cheaper", - "GitOps pipelines shipping releases in under 10 minutes", + "Databases holding tens of billions of records", + "GitOps pipelines shipping releases in under 7 minutes", ], }, { - company: "LinkMe", - title: "Senior Backend Engineer", - period: "Apr - Jul 2025", - location: "Remote, UK", + company: "Linkme", + title: "Backend Engineer", + period: "Apr – Jul 2025", summary: - "Four-month contract designing and shipping a TypeScript authentication service, delivered while continuing to lead engineering at Stats.cc.", + "Architected a TypeScript authentication service and integrated it with legacy systems, delivered while continuing to lead engineering at Stats.cc.", highlights: [ "OAuth 2.0 + MFA, expanding login options from 1 to 4", "Replaced a brittle untyped flow with type-safe auth", + "Worked on a high-performance Rust service", ], }, { company: "Enthusiast Gaming", title: "Backend Engineer · Tabstats", - period: "Mar 2022 - Jan 2023", - location: "Remote, UK", + period: "Mar 2022 – Jan 2023", summary: "Engineered high-performance backend services powering real-time player statistics and analysis.", highlights: [ - "Real-time processing of 3B+ in-game events", - "Scaled the merged platform after the $11M Tabwire acquisition", + "Backend service ingesting 3B+ in-game events in real time", + "Built the app's match event processing and storage for fast local querying", ], }, { - company: "Tabwire", - title: "Operations Engineer", - period: "Nov 2020 - Mar 2022", - location: "Remote, UK", + company: "Enthusiast Gaming", + title: "Community Management · Tabwire", + period: "Nov 2020 – Mar 2022", summary: - "First production engineering: built internal moderation tooling for team workflows across social platforms and community forums.", + "Provided responsive support across Tabwire's social accounts and forums, and built tooling for the team's moderation processes.", highlights: [ + "Improved the moderation pipeline", "User pain points from support later shaped backend priorities", - "Joined pre-acquisition; Tabwire sold to Enthusiast for $11M", + "Joined before Enthusiast Gaming acquired Tabwire for $11M", ], }, ]; export const contracting = { - bookingUrl: "https://book.morgen.so/george", - pitch: "I take on a small number of contract and commission projects: MVPs, system rewrites, performance work, and full-stack builds.", - minimum: "£750", - capacity: - "I keep client slots deliberately limited. Live availability is on the booking calendar: if you can see a slot, I can take you on.", - consultation: "Consultations are £150, credited in full toward your project. If we don't go ahead, it's refunded.", + bookingUrl, + title: "Need something built?", + pitch: "I take on a small number of contract projects, so each one gets proper focus. New builds from scratch, or new features, rewrites and performance work on what you already have.", + cta: { title: "Free 30 minute consultation", detail: "Talk through what you need, no commitment." }, terms: [ { term: "Subject to contract", detail: "every engagement starts with a signed agreement" }, { term: "Fully scoped", detail: "we agree exactly what's being built before work starts" }, - { term: "Fixed quote", detail: "one price for the agreed scope, no surprises" }, - { term: "50% deposit", detail: "half up front to book the work in" }, - { term: "Balance on delivery", detail: "the rest is due when the work is signed off" }, + { term: "Fixed or hourly", detail: "one price for a defined scope, or an hourly rate for ongoing work" }, + { term: "50% deposit", detail: "half of the quote or estimate up front to book the work in" }, + { term: "Balance on delivery", detail: "the rest is invoiced when the work is signed off" }, ], }; @@ -135,23 +173,36 @@ export const schools: School[] = [ { name: "Henley Business School", qualification: "BSc Entrepreneurship · University of Reading", - period: "2023 - 2026", - detail: "Business strategy, finance, and team management, studied alongside full-time engineering work.", + period: "2023 – 2026", + detail: "Graduated top of my class, studying business strategy, finance and team management while building Stats.cc.", headline: "First", - headlineNote: "honours", + headlineNote: "Honours", awards: [ - "Best Overall Performance Business", - "Best Business and Management Student (Entrepreneurship)", - "Dean's Excellence Award Entrepreneurship", - "Greenshoots Seed Finance Award 2026", + { + name: "Best Overall Performance Business", + about: "Awarded by the Dean for the best overall academic performance across the business programme.", + }, + { + name: "Best Business and Management Student (Entrepreneurship and Innovation)", + about: "The top student on the Entrepreneurship and Innovation pathway.", + }, + { + name: "Dean's Excellence Award Entrepreneurship", + about: "The Dean's award for outstanding achievement in entrepreneurship.", + }, + { + name: "Henley Greenshoots Seed Finance Award 2026", + about: "Seed funding from Henley's Greenshoots programme, which backs promising student ventures.", + }, ], }, { name: "Bexhill College", qualification: "A-Levels", - period: "2020 - 2022", + period: "2020 – 2022", + detail: "Where it all started. I landed my first freelance dev work here, and building side projects is what sparked my interest in business.", headline: "AAB", - headlineNote: "a-levels", + headlineNote: "A-Levels", subjects: [ { subject: "Computer Science", grade: "A" }, { subject: "Business Studies", grade: "A" }, diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro new file mode 100644 index 0000000..b7ee0d4 --- /dev/null +++ b/src/layouts/Layout.astro @@ -0,0 +1,144 @@ +--- +import { Font, getImage } from "astro:assets"; +import headshot from "@/assets/headshot.jpg"; +import SiteFooter from "@/components/SiteFooter.astro"; +import ThemeToggle from "@/components/ThemeToggle.astro"; +import { profile, schools, stack } from "@/data"; +import "@/style.css"; + +interface Props { + title: string; + /** Search snippet and social description. Falls back to the profile description */ + description?: string; + /** Shows the section nav. Only the home page has sections to jump to */ + nav?: boolean; + /** Adds Person structured data. Only the home page is about George */ + person?: boolean; + /** Keeps the page out of search results */ + noindex?: boolean; +} + +const { title, description = profile.description, nav = false, person = false, noindex = false } = Astro.props; + +// Pages build as name.html, so drop the extension and index for the public URL +const canonical = new URL(Astro.url.pathname.replace(/(index)?\.html$/, ""), Astro.site).href; +const og = await getImage({ src: headshot, width: 640, height: 640, format: "jpg" }); +const ogImage = new URL(og.src, Astro.site).href; + +const [jobTitle, company] = profile.role.split(", "); +const personData = { + "@context": "https://schema.org", + "@type": "Person", + name: profile.name, + url: Astro.site?.href, + image: ogImage, + description: profile.description, + jobTitle, + worksFor: { "@type": "Organization", name: company, url: profile.companyUrl }, + address: { "@type": "PostalAddress", addressRegion: profile.location, addressCountry: "GB" }, + alumniOf: schools.map((school) => ({ "@type": "EducationalOrganization", name: school.name })), + knowsAbout: stack.flatMap((layer) => layer.items), + sameAs: [profile.linkedin], +}; + +const links = [ + { href: "#experience", label: "Experience" }, + { href: "#stack", label: "Stack" }, + { href: "#education", label: "Education" }, + { href: "#hire", label: "Hire" }, +]; +--- + + + + + + + + + {noindex && } + {!noindex && } + + + + + + + + + + + + + + + + + + + {title} + {person && + + + + Skip to content + + +
+
+ + + ~/gmiles.dev + + + + +
+ {nav && ( + + )} + + + Resume + + +
+
+
+ +
+ +
+ + + + diff --git a/src/legal.ts b/src/legal.ts index 21c1e3d..563609a 100644 --- a/src/legal.ts +++ b/src/legal.ts @@ -14,7 +14,7 @@ export const legalDocs: LegalDoc[] = [ { slug: "privacy", title: "Privacy Policy", - updated: "14 July 2026", + updated: "11 November 2026", sections: [ { heading: "Overview", @@ -33,8 +33,8 @@ export const legalDocs: LegalDoc[] = [ heading: "What you send me", paragraphs: [ "If you email me, I receive your email address and whatever you include in the message.", - "If you book a consultation, the booking is handled by Morgen and I receive the details you provide, such as your name, email address and project notes.", - "If you pay a consultation fee or invoice, payment is processed by Stripe. Your card details go to Stripe directly and never reach me. I receive confirmation of payment and basic billing details.", + "If you book a consultation, the booking is handled by Cal.com and I receive the details you provide, such as your name, email address and project notes.", + "If you pay an invoice, payment is processed by Stripe. Your card details go to Stripe directly and never reach me. I receive confirmation of payment and basic billing details.", ], }, { @@ -46,7 +46,7 @@ export const legalDocs: LegalDoc[] = [ { heading: "Third-party services", paragraphs: [ - "Cloudflare hosts the site, Morgen handles bookings and Stripe handles payments. Each processes your data under its own privacy policy.", + "Cloudflare hosts the site, Cal.com handles bookings and Stripe handles payments. Each processes your data under its own privacy policy.", ], }, { @@ -70,7 +70,7 @@ export const legalDocs: LegalDoc[] = [ { slug: "terms", title: "Terms of Service", - updated: "14 July 2026", + updated: "11 November 2026", sections: [ { heading: "About", @@ -87,14 +87,13 @@ export const legalDocs: LegalDoc[] = [ { heading: "Consultations", paragraphs: [ - "Consultations are booked through the booking calendar and carry a fee of £150, which confirms your slot. The fee is credited in full toward your project if we proceed, and refunded if we do not. Full details are in the refund policy.", - "You can reschedule free of charge with at least 24 hours notice.", + "Consultations are free 30 minute calls booked through the booking calendar. Please give at least 24 hours notice if you need to reschedule or cancel.", ], }, { heading: "Engagements", paragraphs: [ - "All project work is subject to contract. Work is fully scoped before it starts, quoted at a fixed price for the agreed scope, and booked in with a 50% deposit. The remaining balance is due when the work is signed off.", + "All project work is subject to contract. Work is fully scoped before it starts, quoted either at a fixed price for the agreed scope or at an hourly rate against an agreed estimate, and booked in with a 50% deposit of the quote or estimate. The remaining balance is due when the work is signed off.", "These are headline terms. The signed agreement for each engagement is the authoritative document and prevails over this page.", ], }, @@ -123,19 +122,16 @@ export const legalDocs: LegalDoc[] = [ { slug: "refunds", title: "Refund Policy", - updated: "14 July 2026", + updated: "11 November 2026", sections: [ { - heading: "Consultation fees", - paragraphs: [ - "The £150 consultation fee confirms your booking and is never lost to a genuine enquiry. If we go ahead with your project, the full £150 is credited against your first invoice. If either of us decides not to proceed, it is refunded in full.", - "You can reschedule free of charge with at least 24 hours notice. If you cancel with less than 24 hours notice or do not attend, the fee may be forfeited.", - ], + heading: "Consultations", + paragraphs: ["Consultations are free, so there is nothing to refund."], }, { heading: "Project deposits", paragraphs: [ - "The 50% deposit books your project in. If you cancel before work has started, the deposit is refunded in full. Once work has started, refunds are governed by the signed agreement and typically account for work already completed.", + "The 50% deposit of the quote or estimate books your project in. If you cancel before work has started, the deposit is refunded in full. Once work has started, refunds are governed by the signed agreement and typically account for work already completed.", ], }, { diff --git a/src/main.ts b/src/main.ts deleted file mode 100644 index 5a427a6..0000000 --- a/src/main.ts +++ /dev/null @@ -1,28 +0,0 @@ -import { createApp } from "vue"; -import App from "./App.vue"; - -import "./style.css"; - -const app = createApp(App); - -// v-reveal fades elements in as they scroll into view. Optional value is the stagger delay in ms -app.directive("reveal", { - mounted(el, binding) { - el.classList.add("reveal"); - if (binding.value) el.style.transitionDelay = `${binding.value}ms`; - - const observer = new IntersectionObserver( - ([entry]) => { - if (entry?.isIntersecting) { - el.classList.add("revealed"); - observer.disconnect(); - } - }, - { threshold: 0.15 }, - ); - - observer.observe(el); - }, -}); - -app.mount("#app"); diff --git a/src/pages/404.astro b/src/pages/404.astro new file mode 100644 index 0000000..0db7703 --- /dev/null +++ b/src/pages/404.astro @@ -0,0 +1,32 @@ +--- +import Layout from "@/layouts/Layout.astro"; +--- + + +
+

+ $ cd ./this-page +
+ cd: no such file or directory +

+

No such page

+ + + Back to gmiles.dev + +
+
diff --git a/src/pages/[slug].astro b/src/pages/[slug].astro new file mode 100644 index 0000000..612a45c --- /dev/null +++ b/src/pages/[slug].astro @@ -0,0 +1,58 @@ +--- +import type { GetStaticPaths } from "astro"; +import Layout from "@/layouts/Layout.astro"; +import { legalDocs } from "@/legal"; + +export const getStaticPaths = (() => + legalDocs.map((doc) => ({ params: { slug: doc.slug }, props: { doc } }))) satisfies GetStaticPaths; + +const { doc } = Astro.props; +--- + + +
+ + + Back to gmiles.dev + + +
+

{doc.title}

+

+ Last updated + + + ~/ + {doc.slug}.md + +

+
+ +
+ {doc.sections.map((section) => ( +
+

{section.heading}

+ {section.paragraphs.map((paragraph) => ( +

{paragraph}

+ ))} +
+ ))} +
+
+
diff --git a/src/pages/index.astro b/src/pages/index.astro new file mode 100644 index 0000000..ebc9f73 --- /dev/null +++ b/src/pages/index.astro @@ -0,0 +1,17 @@ +--- +import ContractSection from "@/components/ContractSection.astro"; +import EducationSection from "@/components/EducationSection.astro"; +import ExperienceSection from "@/components/ExperienceSection.astro"; +import HeroSection from "@/components/HeroSection.astro"; +import StackSection from "@/components/StackSection.astro"; +import { profile } from "@/data"; +import Layout from "@/layouts/Layout.astro"; +--- + + + + + + + + diff --git a/src/style.css b/src/style.css index 5ca1740..949d30e 100644 --- a/src/style.css +++ b/src/style.css @@ -3,29 +3,40 @@ @custom-variant dark (&:where(.dark, .dark *)); @theme { - --font-display: "Bricolage Grotesque", ui-sans-serif, sans-serif; - --font-sans: "Instrument Sans", ui-sans-serif, sans-serif; - --font-mono: "JetBrains Mono", ui-monospace, monospace; + --font-sans: var(--font-schibsted), ui-sans-serif, system-ui, sans-serif; + --font-mono: var(--font-jetbrains), ui-monospace, monospace; } :root { - --c-bg: #faf8f4; + --c-bg: #f6f6f4; --c-surface: #ffffff; - --c-ink: #1b1712; - --c-soft: #6f6a62; - --c-line: #e6e1d8; - --c-accent: #d1490f; - --c-accent-soft: #d1490f14; + --c-ink: #151514; + --c-soft: #5f5e5a; + --c-line: #e3e2de; + --c-accent: #b8430d; + --c-accent-fill: #c4460e; + --c-accent-fill-hover: #a83c0a; + --c-on-accent: #ffffff; + --c-term: #171716; + --c-term-accent: #ff8c42; + --c-logo: #1e1e1e; + color-scheme: light; } .dark { - --c-bg: #100e0c; - --c-surface: #18150f; - --c-ink: #ece7df; - --c-soft: #9a938a; - --c-line: #2b2721; - --c-accent: #ff8c42; - --c-accent-soft: #ff8c4218; + --c-bg: #121212; + --c-surface: #1a1a19; + --c-ink: #ececea; + --c-soft: #9e9d98; + --c-line: #2a2a28; + --c-accent: #ec6b2d; + --c-accent-fill: #e8662a; + --c-accent-fill-hover: #f07a43; + --c-on-accent: #121212; + --c-term: #0b0b0b; + --c-term-accent: #ff8c42; + --c-logo: #ffffff; + color-scheme: dark; } @theme inline { @@ -35,90 +46,214 @@ --color-soft: var(--c-soft); --color-line: var(--c-line); --color-accent: var(--c-accent); - --color-accent-soft: var(--c-accent-soft); + --color-accent-fill: var(--c-accent-fill); + --color-accent-fill-hover: var(--c-accent-fill-hover); + --color-on-accent: var(--c-on-accent); + --color-term: var(--c-term); + --color-term-accent: var(--c-term-accent); } html { scroll-behavior: smooth; + scrollbar-color: var(--c-line) var(--c-bg); + -webkit-text-size-adjust: 100%; } body { background-color: var(--c-bg); color: var(--c-ink); font-family: var(--font-sans); - transition: - background-color 0.3s ease, - color 0.3s ease; + font-feature-settings: "ss01"; + caret-color: var(--c-accent); + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; } ::selection { - background-color: var(--c-accent); - color: var(--c-bg); + background-color: var(--c-accent-fill); + color: var(--c-on-accent); } -/* Scroll reveal (via v-reveal directive) */ -.reveal { - opacity: 0; - translate: 0 18px; - transition: - opacity 0.65s ease, - translate 0.65s ease; +:focus-visible { + outline: 2px solid var(--c-accent); + outline-offset: 3px; } -.reveal.revealed { - opacity: 1; - translate: 0 0; +/* Layered so utilities such as text-balance still win */ +@layer base { + p, + li, + dd { + text-wrap: pretty; + } } -/* Blinking block cursor at the stack terminal's idle prompt */ -@keyframes cursor-blink { - 0%, - 100% { - opacity: 1; - } - 50% { +/* Inline text links. Accent ink with an underline that firms up on hover */ +.link { + color: var(--c-accent); + text-decoration-line: underline; + text-decoration-thickness: 1px; + text-underline-offset: 0.22em; + text-decoration-color: color-mix(in srgb, var(--c-accent) 35%, transparent); + transition: text-decoration-color 0.2s ease; +} + +.link:hover { + text-decoration-color: currentColor; +} + +/* Hero settle. Each line arrives with a short stagger set by --i, the portrait unblurs */ +@keyframes settle { + from { opacity: 0; + translate: 0 10px; + filter: blur(6px); } } -.terminal-cursor { - display: inline-block; - width: 0.55em; - height: 1em; - translate: 0 0.15em; - background-color: rgb(255 255 255 / 0.6); - animation: cursor-blink 1.1s steps(1) infinite; +.settle { + animation: settle 0.9s cubic-bezier(0.16, 1, 0.3, 1) both; + animation-delay: calc(var(--i, 0) * 70ms + 60ms); } -@media (prefers-reduced-motion: reduce) { - .terminal-cursor { - animation: none; +/* Portrait flip. A slight overshoot so the card lands rather than stops */ +.portrait { + transition: transform 0.7s cubic-bezier(0.34, 1.3, 0.64, 1); +} + +/* Stats.cc mark. On hover a ripple runs up the diagonal, the lower bar first. Each bar nudges along its axis and pulses, then settles */ +@keyframes logo-ripple { + 30% { + transform: translate(10px, -10px) scale(1.16); + } + + 60% { + transform: translate(-3px, 3px) scale(0.95); } } -/* Hero load-in stagger */ -@keyframes rise-in { - from { - opacity: 0; - translate: 0 22px; +.stats-logo { + color: var(--c-logo); + overflow: visible; +} + +.stats-logo path { + transform-box: fill-box; + transform-origin: center; +} + +.group:hover .stats-logo path { + animation: logo-ripple 0.7s cubic-bezier(0.37, 0, 0.63, 1); +} + +.group:hover .stats-logo path:first-child { + animation-delay: 120ms; +} + +/* Experience timeline. Each segment of the rail runs from one dot to the next (or to the end of the last role) and fills as the next role reaches the middle of the screen, and each dot lights as it crosses the middle. Browsers without view timelines show the plain rail */ +.role-seg { + position: absolute; + top: 0.88rem; + bottom: calc(-1 * var(--gap) - 0.88rem); + left: calc(-1.5rem - 1px); + width: 2px; + view-timeline-name: --seg; +} + +.role-seg::before { + content: ""; + position: absolute; + inset: 0 auto 0 0.5px; + width: 1px; + background-color: var(--c-line); +} + +/* The last role in a company has no next dot, so its segment runs to the end of the role */ +li:last-child > .role-seg { + bottom: 0; +} + +.role-seg-fill { + position: absolute; + inset: 0; + background-color: var(--c-accent); + transform-origin: top; + scale: 1 0; +} + +@supports (animation-timeline: view()) { + .role-seg-fill { + animation: rail-fill linear both; + animation-timeline: --seg; + animation-range: cover 50vh cover calc(100% - 50vh); + } + + .role-dot { + animation: role-dot linear both; + animation-timeline: view(); } +} + +@keyframes rail-fill { to { - opacity: 1; - translate: 0 0; + scale: 1; + } +} + +@keyframes role-dot { + 0%, + 48% { + background-color: var(--c-bg); + box-shadow: 0 0 0 0 transparent; + } + + 52%, + 100% { + background-color: var(--c-accent); + box-shadow: 0 0 0 4px color-mix(in srgb, var(--c-accent) 25%, transparent); } } -.rise { - animation: rise-in 0.7s ease both; - animation-delay: calc(var(--rise, 0) * 90ms); +/* Terminal scrollback */ +.term-screen { + scrollbar-width: thin; + scrollbar-color: rgb(255 255 255 / 0.15) transparent; +} + +/* Stack terminal. Lines held back until the command has typed out */ +[data-term-reveal] { + transition: + opacity 0.35s ease, + translate 0.35s ease, + visibility 0.35s; +} + +.term-input:focus-visible { + outline: none; +} + +.term-hidden { + opacity: 0; + translate: 0 4px; + visibility: hidden; } @media (prefers-reduced-motion: reduce) { - .reveal, - .rise { + html { + scroll-behavior: auto; + } + + .settle { animation: none; - opacity: 1; - translate: 0 0; + } + + .portrait { transition: none; } + + .group:hover .stats-logo path, + .role-seg-fill, + .role-dot { + animation: none; + } } diff --git a/tsconfig.json b/tsconfig.json index 3eb455d..a228a25 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,11 +1,10 @@ { - "extends": "@vue/tsconfig/tsconfig.dom.json", - "include": ["env.d.ts", "src/**/*", "src/**/*.vue"], + "extends": "astro/tsconfigs/strict", + "include": [".astro/types.d.ts", "**/*"], + "exclude": ["dist"], "compilerOptions": { - "baseUrl": ".", "paths": { "@/*": ["./src/*"] - }, - "noEmit": true + } } } diff --git a/vite.config.ts b/vite.config.ts deleted file mode 100644 index 132cd9d..0000000 --- a/vite.config.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { fileURLToPath, URL } from "node:url"; -import tailwindcss from "@tailwindcss/vite"; -import vue from "@vitejs/plugin-vue"; -import { defineConfig } from "vite"; - -export default defineConfig({ - plugins: [vue(), tailwindcss()], - resolve: { - alias: { - "@": fileURLToPath(new URL("./src", import.meta.url)), - }, - }, -}); diff --git a/wrangler.jsonc b/wrangler.jsonc index 6b17978..37e3ca3 100644 --- a/wrangler.jsonc +++ b/wrangler.jsonc @@ -4,6 +4,6 @@ "compatibility_date": "2026-07-14", "assets": { "directory": "./dist", - "not_found_handling": "single-page-application" - } + "not_found_handling": "404-page", + }, }