diff --git a/CLAUDE.md b/CLAUDE.md index 9cc2b2e..e0a87cf 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -47,7 +47,8 @@ pnpm astro [command] # Run any Astro CLI command - `src/pages/` - Page routes (currently minimal) - `src/layouts/` - Reusable layout components (Base, Legal) -- `src/components/` - UI components (Card, CompanyLogo, Footer) +- `src/components/` - UI components (CircleLink, CompanyLogo, Footer, LatticeBackground) +- `src/data/projects.ts` - Project circles shown on the home page - `src/consts.ts` - Site-wide constants (title, description, author info) - `public/locales/` - i18n translation files - `astro.config.mjs` - Astro configuration diff --git a/public/combolab.png b/public/combolab.png deleted file mode 100644 index f5d0391..0000000 Binary files a/public/combolab.png and /dev/null differ diff --git a/public/fonts/unbounded-latin-wght-normal.woff2 b/public/fonts/unbounded-latin-wght-normal.woff2 new file mode 100644 index 0000000..67338ed Binary files /dev/null and b/public/fonts/unbounded-latin-wght-normal.woff2 differ diff --git a/public/projects/circle.png b/public/projects/circle.png new file mode 100644 index 0000000..1e4cf39 Binary files /dev/null and b/public/projects/circle.png differ diff --git a/public/projects/combolab.png b/public/projects/combolab.png new file mode 100644 index 0000000..2ef3c5e Binary files /dev/null and b/public/projects/combolab.png differ diff --git a/src/components/Card.astro b/src/components/Card.astro deleted file mode 100644 index d6bc47a..0000000 --- a/src/components/Card.astro +++ /dev/null @@ -1,92 +0,0 @@ ---- -interface Props { - title: string; - body: string; - href: string; - image?: string; -} - -const {href, title, body, image} = Astro.props; ---- - - - diff --git a/src/components/CircleLink.astro b/src/components/CircleLink.astro new file mode 100644 index 0000000..d33e326 --- /dev/null +++ b/src/components/CircleLink.astro @@ -0,0 +1,197 @@ +--- +/** + * A circular link. The disc content comes from the default slot. + * Hover / focus: the ring traces itself in and the image comes to full colour. + */ +interface Props { + /** Leave out to render a non-interactive circle (for example, an unreleased project). */ + href?: string; + name: string; + tagline?: string; + variant?: "project" | "contact"; +} + +const {href, name, tagline, variant = "project"} = Astro.props; +const Tag = href ? "a" : "div"; +--- + +
  • + + + + + + + + + {name} + {tagline && {tagline}} + + +
  • + + diff --git a/src/components/CompanyLogo.astro b/src/components/CompanyLogo.astro index d1cca4d..4a0baaa 100644 --- a/src/components/CompanyLogo.astro +++ b/src/components/CompanyLogo.astro @@ -38,13 +38,73 @@ diff --git a/src/components/LatticeBackground.astro b/src/components/LatticeBackground.astro new file mode 100644 index 0000000..304e471 --- /dev/null +++ b/src/components/LatticeBackground.astro @@ -0,0 +1,545 @@ +--- +/** + * Full-page triangular lattice — the grid the Four Rays mark is drawn on. + * + * - A faint base grid always shows. + * - A sparse set of edges trace in and out on staggered timers, like the logo. + * - The pointer leaves a fading accent trail that draws edges in from its side. + * - On load, a wave radiates out from the logo. + * - After a few idle seconds (or on touch devices), a slow ghost path keeps it alive. + * + * Listens for `rays:burst` (detail: { x, y } in client coords) for extra energy. + */ +--- + + + + + + diff --git a/src/data/projects.ts b/src/data/projects.ts new file mode 100644 index 0000000..4787f24 --- /dev/null +++ b/src/data/projects.ts @@ -0,0 +1,38 @@ +import type {Translations} from "@/i18n/constants"; + +export type ProjectId = keyof Translations["home"]["projects"]; + +export interface Project { + /** Key for the project's copy in the translations (`home.projects.`). */ + id: ProjectId; + name: string; + /** Leave out for projects that are not public yet; the circle is then not a link. */ + href?: string; + /** Square image in /public, shown inside the circle. */ + image?: string; + /** Text inside the circle when there is no image. Defaults to the name's initials. */ + mark?: string; + /** Language of `mark`, for correct glyphs and pronunciation. */ + markLang?: string; +} + +export const PROJECTS: Project[] = [ + { + id: "circle", + name: "Circle", + href: "https://circle.so", + image: "/projects/circle.png" + }, + { + id: "combolab", + name: "Combolab", + href: "https://combolab.app", + image: "/projects/combolab.png" + }, + { + id: "tba", + name: "TBA", + mark: "極秘", + markLang: "ja" + } +]; diff --git a/src/layouts/Base.astro b/src/layouts/Base.astro index 14790e0..c260b7c 100644 --- a/src/layouts/Base.astro +++ b/src/layouts/Base.astro @@ -90,34 +90,81 @@ const previewImageURL = previewImage diff --git a/src/pages/[...lang]/index.astro b/src/pages/[...lang]/index.astro index 0418397..8c1b474 100644 --- a/src/pages/[...lang]/index.astro +++ b/src/pages/[...lang]/index.astro @@ -1,8 +1,11 @@ --- import Base from "@/layouts/Base.astro"; -import Card from "@/components/Card.astro"; import Footer from "@/components/Footer.astro"; import CompanyLogo from "@/components/CompanyLogo.astro"; +import CircleLink from "@/components/CircleLink.astro"; +import LatticeBackground from "@/components/LatticeBackground.astro"; +import {SITE_EMAIL} from "@/consts"; +import {PROJECTS} from "@/data/projects"; import { getLocaleFromParams, getLocaleStaticPaths, @@ -15,114 +18,285 @@ export function getStaticPaths() { const locale = getLocaleFromParams(Astro.params); const t = useTranslations(locale); + +const monogram = (name: string) => + name + .split(/\s+/) + .map((word) => word[0]) + .join("") + .slice(0, 2) + .toUpperCase(); --- +
    - -

    - FOUR RAYS -

    -

    - {t.home.intro.lead} - {t.home.intro.emphasis} - {t.home.intro.trail} -

    - +
    + +

    {t.site.title}

    +

    + {t.home.intro.lead} + {t.home.intro.emphasis} + {t.home.intro.trail} +

    +
    + +
    +

    {t.home.work.heading}

    +
      + {PROJECTS.map((project) => ( + + {project.image ? ( + + ) : ( + + {project.mark ?? monogram(project.name)} + + )} + + ))} + + + + +
    +
    - diff --git a/src/translations/en.json b/src/translations/en.json index 7ba7085..aaf3d5b 100644 --- a/src/translations/en.json +++ b/src/translations/en.json @@ -10,13 +10,23 @@ "emphasis": "digital products", "trail": "." }, - "services": { - "title": "Services", - "body": "App development, agentic programming, AI strategy consulting." + "work": { + "heading": "What we're working on" + }, + "projects": { + "circle": { + "tagline": "iOS Contractor" + }, + "combolab": { + "tagline": "Creator" + }, + "tba": { + "tagline": "Coming soon" + } }, "contact": { - "title": "📮 Get in touch", - "body": "Have any questions or inquiries? I would love to hear from you." + "title": "Get in touch", + "orbit": "Say hello · Start a project ·" } }, "footer": {