From 6185f46bf45a9323c552954877a13d6e9c6e7767 Mon Sep 17 00:00:00 2001 From: Dhananjay <214598503+dhananjay-123@users.noreply.github.com> Date: Tue, 20 Oct 2026 22:15:16 +0530 Subject: [PATCH 01/18] feat: carry the hero's look through the rest of the site Sections now share the hero's pills, round marks and serif headings, with GitHub's colours as signals: green for open, purple for merged, blue for branches. - Section names match their content: Build, Learn and Gather pair with the nav's Projects, Knowledge and Events; domains are "Where you can start"; People and Join are separate sections. - Principles read as passing checks; each domain has an interactive drawing. - The featured repository is a GitHub-style repo card; joining is a first pull request that ends merged. - Photos and avatars show in colour, with a ring of contribution cells that lights up on hover. - No monospace, no uppercase labels outside the hero, no fade-up on scroll. --- src/app/error.tsx | 2 +- src/app/layout.tsx | 1 + src/app/not-found.tsx | 2 +- src/components/site/about.tsx | 38 +- src/components/site/build-panel.tsx | 56 ++- src/components/site/command-palette.tsx | 3 +- src/components/site/domain-art.tsx | 195 +++++++++++ src/components/site/domains.tsx | 62 +++- src/components/site/explorer.tsx | 6 +- src/components/site/footer-graph.tsx | 50 +++ src/components/site/footer.tsx | 16 +- src/components/site/gather-panel.tsx | 30 +- src/components/site/github-sections.tsx | 57 +-- src/components/site/instagram-posts.tsx | 4 +- src/components/site/join-path.tsx | 53 +++ src/components/site/learn-panel.tsx | 9 +- src/components/site/magnetic-link.tsx | 28 -- src/components/site/navigation.ts | 11 +- src/components/site/orbit.tsx | 18 + src/components/site/people.tsx | 42 +-- src/components/site/person-card.tsx | 4 +- src/components/site/section-head.tsx | 21 ++ src/components/site/site-shell.tsx | 12 +- src/components/site/spotlight-card.tsx | 38 -- src/components/site/tech-news.tsx | 17 +- src/components/site/videos.tsx | 2 +- src/components/status-page.tsx | 3 +- src/styles/layout.css | 33 -- src/styles/open-source.css | 443 ++++++++++++++++++++++++ tests/e2e/admin.spec.ts | 2 +- 30 files changed, 1006 insertions(+), 252 deletions(-) create mode 100644 src/components/site/domain-art.tsx create mode 100644 src/components/site/footer-graph.tsx create mode 100644 src/components/site/join-path.tsx delete mode 100644 src/components/site/magnetic-link.tsx create mode 100644 src/components/site/orbit.tsx create mode 100644 src/components/site/section-head.tsx delete mode 100644 src/components/site/spotlight-card.tsx create mode 100644 src/styles/open-source.css diff --git a/src/app/error.tsx b/src/app/error.tsx index 0959a31..d9dae02 100644 --- a/src/app/error.tsx +++ b/src/app/error.tsx @@ -5,7 +5,7 @@ import { StatusPage } from '@/components/status-page'; export default function ErrorPage({ reset }: { error: Error & { digest?: string }; reset: () => void }) { return ( - + ); } diff --git a/src/app/layout.tsx b/src/app/layout.tsx index f4898c3..357bf0b 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -11,6 +11,7 @@ import '@/styles/github.css'; import '@/styles/layout.css'; import '@/styles/join.css'; import '@/styles/hero.css'; +import '@/styles/open-source.css'; import { themeInitScript } from '@/lib/theme'; export const metadata: Metadata = { diff --git a/src/app/not-found.tsx b/src/app/not-found.tsx index 90dad31..d534ca5 100644 --- a/src/app/not-found.tsx +++ b/src/app/not-found.tsx @@ -4,7 +4,7 @@ import { StatusPage } from '@/components/status-page'; export default function NotFound() { return ( - Back to the society + Back to the society ); } diff --git a/src/components/site/about.tsx b/src/components/site/about.tsx index 00e4e7b..df365f2 100644 --- a/src/components/site/about.tsx +++ b/src/components/site/about.tsx @@ -1,24 +1,38 @@ -'use client'; - import type { Domain } from '@/lib/content/types'; import { Domains } from './domains'; -import { Eyebrow } from './eyebrow'; -import { SpotlightCard } from './spotlight-card'; +import { SectionHead } from './section-head'; +/** The society's principles, written as the checks every contribution passes. */ const principles = [ - { label: '01 / NO BIAS', title: 'Your work speaks.', detail: 'What you make and share matters more than your background.' }, - { label: '02 / TRANSPARENCY', title: 'Build out loud.', detail: 'Open discussion and direct feedback shape our direction.' }, - { label: '03 / NO PRESSURE', title: 'Move with curiosity.', detail: 'Contribute at your own pace. You don’t need a title to help.' }, + { label: 'No bias', title: 'Your work speaks.', detail: 'What you make and share matters more than your background.' }, + { label: 'Transparency', title: 'Build out loud.', detail: 'Open discussion and direct feedback shape our direction.' }, + { label: 'No pressure', title: 'Move with curiosity.', detail: 'Contribute at your own pace. You don’t need a title to help.' }, ]; export function About({ domains }: { domains: Domain[] }) { return (
-
01 / THE SOCIETY

Curiosity is the
only prerequisite.

The Enigma Society is a community-first tech space at ABV-IIITM Gwalior. We grow through open discussions, peer learning, and building together across domains.

-
- {principles.map((principle) => ( - {principle.label}

{principle.title}

{principle.detail}

- ))} + Curiosity is the
only prerequisite.} + lede="The Enigma Society is a community-first tech space at ABV-IIITM Gwalior. We grow through open discussions, peer learning, and building together across domains." + /> +
+
+ + How we work + {principles.length} principles, all passing +
+
    + {principles.map((principle) => ( +
  • + +

    {principle.title}

    {principle.detail}

    + {principle.label} +
  • + ))} +
{domains.length > 0 && }
diff --git a/src/components/site/build-panel.tsx b/src/components/site/build-panel.tsx index 8dd8265..0f0089f 100644 --- a/src/components/site/build-panel.tsx +++ b/src/components/site/build-panel.tsx @@ -1,10 +1,7 @@ -'use client'; - -import { ArrowUpRight, GitFork } from 'lucide-react'; +import type { CSSProperties } from 'react'; +import { BookMarked, Scale } from 'lucide-react'; import type { ContributorsSection, Repository, SiteLinks } from '@/lib/content/types'; -import { Eyebrow } from './eyebrow'; -import { Contributors, Projects, RepoStatsRow, repositoryUrl } from './github-sections'; -import { SpotlightCard } from './spotlight-card'; +import { Contributors, Language, Projects, RepoStatsRow, repositoryUrl } from './github-sections'; type Props = { links: SiteLinks; repositories: Repository[]; contributors: ContributorsSection | null }; @@ -12,22 +9,53 @@ type Props = { links: SiteLinks; repositories: Repository[]; contributors: Contr const DEFAULT_HEADLINE = 'Make the web'; const DEFAULT_EMPHASIS = 'a little better.'; +/** A feature branch leaving main and merging back, with commits travelling along it. */ +function BranchArt() { + return ( + + ); +} + export function BuildPanel({ links, repositories, contributors }: Props) { const featured = repositories.find((repository) => repository.isFeatured) ?? null; const projects = repositories.filter((repository) => repository !== featured); - const tags = featured ? [featured.title, featured.language, featured.license].filter(Boolean) : []; + const [owner, name] = (featured?.fullName ?? 'TESIIITM/TES-Website').split('/'); return (
-
- -
FEATURED / OPEN REPOSITORY TES / OPEN SOURCE
+
+
+
+

{featured?.headline ?? DEFAULT_HEADLINE}
{featured?.headlineEmphasis ?? DEFAULT_EMPHASIS}

{featured?.description &&

{featured.description}

} - {tags.length > 0 &&
{tags.map((tag) => {tag})}
} + {(featured?.language || featured?.license) && ( +
+ {featured.language && } + {featured.license && } +
+ )} {featured?.stats && } - - -
+
+ Explore repository + Contribution guide +
+
+ + {projects.length > 0 && } {contributors && contributors.people.length > 0 && }
diff --git a/src/components/site/command-palette.tsx b/src/components/site/command-palette.tsx index a922414..885dde3 100644 --- a/src/components/site/command-palette.tsx +++ b/src/components/site/command-palette.tsx @@ -26,7 +26,8 @@ function buildActions(links: SiteLinks, featuredEvent: string | null): Action[] ? { label: `See ${featuredEvent.replace(/\.$/, '')}`, detail: 'Current announcement and official links', group: 'DISCOVER', target: 'gather' } : { label: 'See events', detail: 'Announcements from the society', group: 'DISCOVER', target: 'gather' }, { label: 'Meet the society', detail: 'Principles and the domains we work in', group: 'DISCOVER', target: 'about' }, - { label: 'Meet the people', detail: 'Faculty, students, and the next step', group: 'DISCOVER', target: 'people' }, + { label: 'Meet the people', detail: 'Faculty coordinators and the student team', group: 'DISCOVER', target: 'people' }, + { label: 'Make your first contribution', detail: 'The way in, from first pull request to joining', group: 'DISCOVER', target: 'join' }, { label: 'Open GitHub', detail: 'TESIIITM on GitHub', group: 'ELSEWHERE', target: links.github, external: true }, { label: 'Read on Medium', detail: 'The society publication', group: 'ELSEWHERE', target: links.medium, external: true }, ]; diff --git a/src/components/site/domain-art.tsx b/src/components/site/domain-art.tsx new file mode 100644 index 0000000..6fe24f1 --- /dev/null +++ b/src/components/site/domain-art.tsx @@ -0,0 +1,195 @@ +'use client'; + +import { useRef, useState, type KeyboardEvent, type PointerEvent } from 'react'; + +/** Where a pointer sits inside an SVG, in its viewBox units. */ +function svgPoint(event: PointerEvent, width: number, height: number) { + const bounds = event.currentTarget.getBoundingClientRect(); + return { x: ((event.clientX - bounds.left) / bounds.width) * width, y: ((event.clientY - bounds.top) / bounds.height) * height }; +} + +/* Web & app development: drag the window's edge and the layout reflows. */ +function WebArt() { + const [width, setWidth] = useState(1); + const dragging = useRef(false); + const frame = 170 + width * 370; + const columns = frame > 430 ? 3 : frame > 300 ? 2 : 1; + const inner = frame - 32; + const gap = 10; + const cell = (inner - gap * (columns - 1)) / columns; + const move = (event: PointerEvent) => { + if (!dragging.current) return; + const { x } = svgPoint(event, 560, 280); + setWidth(Math.min(1, Math.max(0, (x - 10 - 170) / 370))); + }; + const keys = (event: KeyboardEvent) => { + const step = event.key === 'ArrowLeft' ? -0.1 : event.key === 'ArrowRight' ? 0.1 : 0; + if (!step) return; + event.preventDefault(); + setWidth((value) => Math.min(1, Math.max(0, value + step))); + }; + return ( + { dragging.current = false; }} onPointerLeave={() => { dragging.current = false; }}> + + + + + + {[0, 1, 2].map((i) => ( + + ))} + { dragging.current = true; event.currentTarget.ownerSVGElement?.setPointerCapture(event.pointerId); }}> + + + + 520 ? frame - 70 : frame + 38} y="34">{columns} {columns === 1 ? 'column' : 'columns'} + + ); +} + +/* CP & DSA: a binary search tree. Point at a value to see the path a search takes. */ +const tree = [50, 25, 75, 12, 37, 62, 88, 6, 18, 31, 43, 56, 68, 81, 94]; +function treePosition(index: number) { + const level = Math.floor(Math.log2(index + 1)); + const offset = index + 1 - 2 ** level; + const span = 520 / 2 ** level; + return { x: 20 + span * (offset + 0.5), y: 36 + level * 66 }; +} +function pathTo(index: number) { + const path = [index]; + while (path[0] > 0) path.unshift(Math.floor((path[0] - 1) / 2)); + return path; +} +function TreeArt() { + const [target, setTarget] = useState(10); + const path = pathTo(target); + return ( + + {tree.map((_, i) => i > 0 && (() => { + const from = treePosition(Math.floor((i - 1) / 2)); + const to = treePosition(i); + return ; + })())} + {tree.map((value, i) => { + const { x, y } = treePosition(i); + const step = path.indexOf(i); + return ( + = 0 ? 'is-on' : ''} ${i === target ? 'is-target' : ''}`} style={{ transitionDelay: `${Math.max(step, 0) * 90}ms` }} tabIndex={0} role="button" aria-label={`Search for ${value}`} onPointerEnter={() => setTarget(i)} onFocus={() => setTarget(i)} onClick={() => setTarget(i)}> + + {value} + + ); + })} + Found {tree[target]} in {path.length} {path.length === 1 ? 'step' : 'steps'}, not {tree.length} + + ); +} + +/* AI & data science: steer a decision line between two clusters. */ +const points = Array.from({ length: 34 }, (_, i) => { + const r = (n: number) => { const v = Math.sin(i * 12.9898 + n * 78.233) * 43758.5453; return v - Math.floor(v); }; + const group = i % 2; + return { group, x: (group ? 360 : 190) + (r(1) - 0.5) * 190, y: (group ? 110 : 170) + (r(2) - 0.5) * 140 }; +}); +function ClusterArt() { + const [angle, setAngle] = useState(-0.35); + const cx = 280; + const cy = 140; + const dx = Math.cos(angle); + const dy = Math.sin(angle); + // Which side of the line a point is on decides its predicted group. + const predict = (p: { x: number; y: number }) => ((p.x - cx) * dy - (p.y - cy) * dx > 0 ? 1 : 0); + const correct = points.filter((p) => predict(p) === p.group).length; + const accuracy = Math.round((Math.max(correct, points.length - correct) / points.length) * 100); + const flip = correct < points.length / 2; + const steer = (event: PointerEvent) => { + const { x, y } = svgPoint(event, 560, 280); + setAngle(Math.atan2(y - cy, x - cx)); + }; + const keys = (event: KeyboardEvent) => { + const step = event.key === 'ArrowLeft' ? -0.12 : event.key === 'ArrowRight' ? 0.12 : 0; + if (!step) return; + event.preventDefault(); + setAngle((value) => value + step); + }; + return ( + + + {points.map((p, i) => { + const predicted = flip ? 1 - predict(p) : predict(p); + return ; + })} + + Accuracy {accuracy}% + + ); +} + +/* Open source & security: patch the one vulnerable dependency. */ +const deps = [ + { x: 70, y: 140, label: 'your-app', parent: -1 }, + { x: 220, y: 70, label: 'router', parent: 0 }, + { x: 220, y: 210, label: 'auth', parent: 0 }, + { x: 380, y: 40, label: 'url-parse', parent: 1 }, + { x: 380, y: 120, label: 'mime', parent: 1 }, + { x: 380, y: 200, label: 'jwt-lite', parent: 2 }, + { x: 490, y: 250, label: 'base64', parent: 5 }, +]; +const vulnerable = 6; +function DependencyArt() { + const [patched, setPatched] = useState(false); + let chain = [vulnerable]; + while (deps[chain[0]].parent >= 0) chain = [deps[chain[0]].parent, ...chain]; + return ( + + {deps.map((dep, i) => dep.parent >= 0 && ( + + ))} + {deps.map((dep, i) => ( + + + {dep.label} + + ))} + setPatched(!patched)} onKeyDown={(event) => { if (event.key === 'Enter' || event.key === ' ') { event.preventDefault(); setPatched(!patched); } }}> + + {patched ? 'Patched' : 'Patch it'} + + {patched ? '0 vulnerabilities' : '1 vulnerability in your-app'} + + ); +} + +/* Anything else: the society's compass, turning to follow the pointer. */ +function CompassArt() { + const [turn, setTurn] = useState(0); + return ( + { const { x, y } = svgPoint(event, 560, 280); setTurn((Math.atan2(x - 280, 140 - y) * 180) / Math.PI); }}> + + + + + + + + ); +} + +const arts = [ + { test: /web|app|front|design/i, art: WebArt, hint: 'Drag the window’s edge. The layout reflows to fit.' }, + { test: /\bcp\b|dsa|algorithm|competitive/i, art: TreeArt, hint: 'Point at a value to see the path a search takes.' }, + { test: /\bai\b|data|machine|\bml\b/i, art: ClusterArt, hint: 'Move across the plot to steer the decision line.' }, + { test: /security|open source|devops/i, art: DependencyArt, hint: 'Patch the vulnerable package and watch the fix reach your app.' }, +]; + +/** An interactive drawing for a domain, chosen by its title. */ +export function DomainArt({ title }: { title: string }) { + const match = arts.find((entry) => entry.test.test(title)); + const Art = match?.art ?? CompassArt; + return ( +
+ +
{match?.hint ?? 'Move the pointer and the needle follows.'}
+
+ ); +} diff --git a/src/components/site/domains.tsx b/src/components/site/domains.tsx index 402a9fb..127f0b1 100644 --- a/src/components/site/domains.tsx +++ b/src/components/site/domains.tsx @@ -1,12 +1,41 @@ 'use client'; import { useState, type KeyboardEvent } from 'react'; -import { AnimatePresence, motion } from 'motion/react'; -import { Compass } from 'lucide-react'; -import { ordinal } from '@/lib/format'; import type { Domain } from '@/lib/content/types'; -import { Eyebrow } from './eyebrow'; +import { DomainArt } from './domain-art'; import { nextTabIndex } from './navigation'; +import { SectionHead } from './section-head'; + +const DAYS = 7; + +/** A steady pseudo-random number in [0, 1) for a domain and a cell. */ +function noise(seed: string, cell: number) { + let hash = 2166136261; + for (const char of `${seed}:${cell}`) hash = Math.imul(hash ^ char.charCodeAt(0), 16777619); + return ((hash >>> 0) % 1000) / 1000; +} + +/** + * Contribution levels (0 to 4) for a domain's graph. Activity builds from left + * to right: start small, and it grows. + */ +function levels(seed: string, weeks: number) { + return Array.from({ length: weeks * DAYS }, (_, cell) => { + const week = Math.floor(cell / DAYS); + const value = noise(seed, cell) * 0.75 + (week / weeks) * 0.6 - 0.25; + return Math.max(0, Math.min(4, Math.floor(value * 4.4))); + }); +} + +function Graph({ seed, weeks, className = '' }: { seed: string; weeks: number; className?: string }) { + return ( + + ); +} /** The areas the society works in, one shown at a time. */ export function Domains({ domains }: { domains: Domain[] }) { @@ -14,7 +43,6 @@ export function Domains({ domains }: { domains: Domain[] }) { // Content can shrink between renders; never point past the end. const index = Math.min(selected, domains.length - 1); const current = domains[index]; - const code = ordinal(index + 1); const onKeyDown = (event: KeyboardEvent, from: number) => { const next = nextTabIndex(event.key, from, domains.length, { vertical: true }); @@ -25,24 +53,26 @@ export function Domains({ domains }: { domains: Domain[] }) { }; return ( - <> -
EXPLORE THE STACK

Many directions. One community.

Pick a path. Your first contribution can be small.

+
+
-
+
{domains.map((domain, i) => ( ))}
-
- - - {code}

{current.title}

{current.detail}

-
-
+
+
+

{current.title}

+

{current.detail}

+
+ {/* Keyed by domain, so each drawing starts fresh. */} +
- +
); } diff --git a/src/components/site/explorer.tsx b/src/components/site/explorer.tsx index 8978c25..a355190 100644 --- a/src/components/site/explorer.tsx +++ b/src/components/site/explorer.tsx @@ -4,10 +4,10 @@ import type { KeyboardEvent } from 'react'; import { AnimatePresence, motion, useReducedMotion } from 'motion/react'; import type { SiteContent } from '@/lib/content/types'; import { BuildPanel } from './build-panel'; -import { Eyebrow } from './eyebrow'; import { GatherPanel } from './gather-panel'; import { LearnPanel } from './learn-panel'; import { nextTabIndex, panels, type Panel } from './navigation'; +import { SectionHead } from './section-head'; type Props = { panel: Panel; onPanel: (panel: Panel) => void; content: SiteContent }; @@ -23,11 +23,11 @@ export function Explorer({ panel, onPanel, content }: Props) { return (
-
02 / THE COLLECTIVE

The work is
better together.

Learn openly. Make something useful.
Leave a door open for the next person.

+ Build. Learn.
Gather.} lede="Three ways into the society. Open a project, read what members write, or come to the next event." />
{panels.map((item, index) => ( ))} diff --git a/src/components/site/footer-graph.tsx b/src/components/site/footer-graph.tsx new file mode 100644 index 0000000..61d4f12 --- /dev/null +++ b/src/components/site/footer-graph.tsx @@ -0,0 +1,50 @@ +'use client'; + +import { useRef, type CSSProperties, type PointerEvent } from 'react'; + +const WEEKS = 40; +const DAYS = 7; + +/** A steady base level for each cell, so the graph looks lived in before anyone touches it. */ +const base = Array.from({ length: WEEKS * DAYS }, (_, cell) => { + const value = Math.sin(cell * 12.9898) * 43758.5453; + const r = value - Math.floor(value); + return r > 0.86 ? 2 : r > 0.62 ? 1 : 0; +}); + +/** + * A contribution graph behind the footer's sign-off. A slow wave lights it up + * on its own; moving the pointer over it raises the cells nearby, as if you + * were committing as you go. + */ +export function FooterGraph() { + const ref = useRef(null); + const frame = useRef(0); + + const onMove = (event: PointerEvent) => { + const grid = ref.current; + if (!grid || event.pointerType !== 'mouse' || matchMedia('(prefers-reduced-motion: reduce)').matches) return; + const bounds = grid.getBoundingClientRect(); + const week = ((event.clientX - bounds.left) / bounds.width) * WEEKS; + const day = ((event.clientY - bounds.top) / bounds.height) * DAYS; + cancelAnimationFrame(frame.current); + frame.current = requestAnimationFrame(() => { + grid.querySelectorAll('i').forEach((cell, index) => { + const distance = Math.hypot(Math.floor(index / DAYS) + 0.5 - week, (index % DAYS) + 0.5 - day); + if (distance < 2.6) { + const lift = distance < 1 ? 4 : distance < 1.8 ? 3 : 2; + cell.dataset.level = String(Math.max(base[index], lift)); + cell.dataset.lit = ''; + } + }); + }); + }; + + return ( + + ); +} diff --git a/src/components/site/footer.tsx b/src/components/site/footer.tsx index 9f78d62..fa3918d 100644 --- a/src/components/site/footer.tsx +++ b/src/components/site/footer.tsx @@ -4,7 +4,7 @@ import { ArrowUpRight } from 'lucide-react'; import { Github, Instagram, Linkedin } from '@/components/brand-icons'; import type { SiteLinks } from '@/lib/content/types'; import { ContactDialog } from './contact-dialog'; -import { Eyebrow } from './eyebrow'; +import { FooterGraph } from './footer-graph'; function ExternalLink({ href, icon, children }: { href: string; icon?: ReactNode; children: string }) { return {icon}{children} ; @@ -19,26 +19,26 @@ export function Footer({ links }: { links: SiteLinks }) {

A place to learn openly and build together at ABV-IIITM Gwalior.

-
HAVE AN IDEA?
+
Have an idea?
-
THE ENIGMA SOCIETY / OPEN SOURCE COLLECTIVE

Open code.
Open minds.

+

Open code.
Open minds.

-
© {new Date().getFullYear()} THE ENIGMA SOCIETY · ABV-IIITM GWALIORBACK TO TOP ↑
+
© {new Date().getFullYear()} The Enigma Society, ABV-IIITM GwaliorBack to top ↑
); } diff --git a/src/components/site/gather-panel.tsx b/src/components/site/gather-panel.tsx index bc9d7f1..16764b7 100644 --- a/src/components/site/gather-panel.tsx +++ b/src/components/site/gather-panel.tsx @@ -1,7 +1,6 @@ -import { ArrowUpRight } from 'lucide-react'; +import { ArrowUpRight, CircleDot, Megaphone } from 'lucide-react'; import { announcementTitle, formatStoryDate } from '@/lib/format'; import type { Announcement, InstagramPost } from '@/lib/content/types'; -import { Eyebrow } from './eyebrow'; import { InstagramPosts } from './instagram-posts'; /** Announcements after the featured one, listed under it. */ @@ -16,13 +15,16 @@ export function GatherPanel({ announcements, instagramPosts, instagramUrl }: Pro {featured ? : } {earlier.length > 0 && (
- {earlier.slice(0, MAX_EARLIER).map((item) => ( -
- {formatStoryDate(item.publishedOn)} -

{item.primaryAction ? {announcementTitle(item)} : announcementTitle(item)}

-

{item.summary}

-
- ))} +

+
    + {earlier.slice(0, MAX_EARLIER).map((item) => ( +
  1. + {formatStoryDate(item.publishedOn)} +
    {item.primaryAction ? {announcementTitle(item)} : announcementTitle(item)}
    +

    {item.summary}

    +
  2. + ))} +
)} {instagramPosts.length > 0 && } @@ -34,14 +36,14 @@ function FeaturedAnnouncement({ announcement }: { announcement: Announcement }) const { label, title, titleEmphasis, summary, details, primaryAction, secondaryAction } = announcement; return (
- {label} +
{label}

{title}{titleEmphasis && <>
{titleEmphasis}}

{summary}

{details &&
How it works +

{details}

} {(primaryAction || secondaryAction) && (
- {primaryAction && {primaryAction.label} } - {secondaryAction && {secondaryAction.label} } + {primaryAction && {primaryAction.label} } + {secondaryAction && {secondaryAction.label} }
)}
@@ -51,11 +53,11 @@ function FeaturedAnnouncement({ announcement }: { announcement: Announcement }) function NoAnnouncements({ instagramUrl }: { instagramUrl: string }) { return (
- COMMUNITY ANNOUNCEMENT +
Nothing openAnnouncements

Stay
tuned.

There is nothing open right now. Follow the society for the next event, workshop, or call for writers.

); diff --git a/src/components/site/github-sections.tsx b/src/components/site/github-sections.tsx index 61e5551..5ca02da 100644 --- a/src/components/site/github-sections.tsx +++ b/src/components/site/github-sections.tsx @@ -1,25 +1,40 @@ import Image from 'next/image'; -import { ArrowUpRight, GitFork, Star } from 'lucide-react'; +import type { CSSProperties } from 'react'; +import { ArrowUpRight, CircleDot, GitCommitHorizontal, GitFork, Star, Users } from 'lucide-react'; import { formatCount, formatStoryDate } from '@/lib/format'; import type { ContributorsSection, RepoStats, Repository } from '@/lib/content/types'; -import { Eyebrow } from './eyebrow'; +import { Orbit } from './orbit'; +import { SectionHead } from './section-head'; export function repositoryUrl(repository: Repository) { return `https://github.com/${repository.fullName}`; } -/** Live numbers under the featured repository's tags. */ +/** GitHub's colours for the languages the society writes in. */ +const languageColors: Record = { + TypeScript: '#3178c6', JavaScript: '#f1e05a', Python: '#3572a5', Go: '#00add8', Rust: '#dea584', + Java: '#b07219', 'C++': '#f34b7d', C: '#555555', HTML: '#e34c26', CSS: '#663399', Kotlin: '#a97bff', + Dart: '#00b4ab', Shell: '#89e051', 'Jupyter Notebook': '#da5b0b', +}; + +export function Language({ name }: { name: string }) { + return {name}; +} + +/** Live numbers for the featured repository, as GitHub-style chips. */ export function RepoStatsRow({ stats }: { stats: RepoStats }) { const items = [ - ['Stars', formatCount(stats.stars)], - ['Forks', formatCount(stats.forks)], - ['Open issues', formatCount(stats.openIssues)], - ['Contributors', formatCount(stats.contributors)], - ['Last push', formatStoryDate(stats.pushedOn)], + { label: 'Stars', value: formatCount(stats.stars), icon: Star }, + { label: 'Forks', value: formatCount(stats.forks), icon: GitFork }, + { label: 'Open issues', value: formatCount(stats.openIssues), icon: CircleDot, tone: 'open' }, + { label: 'Contributors', value: formatCount(stats.contributors), icon: Users }, + { label: 'Last push', value: formatStoryDate(stats.pushedOn), icon: GitCommitHorizontal }, ]; return (
- {items.map(([label, value]) =>
{label}
{value}
)} + {items.map(({ label, value, icon: Icon, tone }) => ( +
{value}
+ ))}
); } @@ -27,8 +42,8 @@ export function RepoStatsRow({ stats }: { stats: RepoStats }) { /** The society's other repositories. */ export function Projects({ repositories }: { repositories: Repository[] }) { return ( - <> -
MORE PROJECTS

Pick a repository. Open a pull request.

Live from GitHub, refreshed every hour.

+
+
    {repositories.map((repository) => (
  • @@ -37,33 +52,33 @@ export function Projects({ repositories }: { repositories: Repository[] }) {

    {repository.title}

    {repository.description &&

    {repository.description}

    } - {repository.language && {repository.language}} - {repository.stats && {formatCount(repository.stats.stars)}} - {repository.stats && {formatCount(repository.stats.forks)}} + {repository.language && } + {repository.stats && {formatCount(repository.stats.stars)}} + {repository.stats && {formatCount(repository.stats.forks)}}
  • ))}
- +
); } /** Everyone who has contributed to the listed repositories. */ export function Contributors({ section }: { section: ContributorsSection }) { return ( - <> -
CONTRIBUTORS

{section.heading}

{section.intro &&

{section.intro}

}
+
+
    - {section.people.map((person) => ( -
  • + {section.people.map((person, index) => ( +
  • - + {person.login}
  • ))}
- +
); } diff --git a/src/components/site/instagram-posts.tsx b/src/components/site/instagram-posts.tsx index 32b5460..2d93c06 100644 --- a/src/components/site/instagram-posts.tsx +++ b/src/components/site/instagram-posts.tsx @@ -11,8 +11,8 @@ export function InstagramPosts({ posts, instagramUrl }: Props) { return (
- ON INSTAGRAM - Follow the society +

+ Follow the society
    {posts.map((post) => ( diff --git a/src/components/site/join-path.tsx b/src/components/site/join-path.tsx new file mode 100644 index 0000000..c4c6935 --- /dev/null +++ b/src/components/site/join-path.tsx @@ -0,0 +1,53 @@ +import { ArrowUpRight, BookOpen, GitCommitHorizontal, GitMerge, GitPullRequest } from 'lucide-react'; +import type { SiteLinks } from '@/lib/content/types'; +import type { Navigate } from './navigation'; +import { NeedleIcon } from './needle-icon'; +import { SectionHead } from './section-head'; + +type Props = { navigate: Navigate; links: SiteLinks }; + +/** Joining, told as a first pull request: opened, reviewed, committed, merged. */ +const steps = [ + { kind: 'open', icon: GitPullRequest, title: 'Explore the projects', detail: 'Find a repository you would like to work on.' }, + { kind: 'review', icon: BookOpen, title: 'Read the contribution guide', detail: 'How we branch, review and merge.' }, + { kind: 'commit', icon: GitCommitHorizontal, title: 'Make your first change', detail: 'A typo, a bug fix or clearer docs all count.' }, + { kind: 'merge', icon: GitMerge, title: 'Apply to join the team', detail: 'Merged. Welcome to the society.' }, +] as const; + +export function JoinPath({ navigate, links }: Props) { + return ( +
    +
    + Small contributions.
    Shared progress.} + lede="There is no perfect first step. Pick something small and build alongside the community." + /> +
    +
    + + Your first contribution + #1 +
    +
      + {steps.map(({ kind, icon: Icon, title, detail }) => ( +
    1. + +
      {title}{detail}
      +
    2. + ))} +
    + +
    +
    +
    + ); +} diff --git a/src/components/site/learn-panel.tsx b/src/components/site/learn-panel.tsx index 4eb9850..abfa052 100644 --- a/src/components/site/learn-panel.tsx +++ b/src/components/site/learn-panel.tsx @@ -6,7 +6,7 @@ import { useBrowserStore } from '@/lib/browser-store'; import { formatStoryDate } from '@/lib/format'; import { readingListStore } from '@/lib/reading-list'; import type { Story, YouTubeVideo } from '@/lib/content/types'; -import { Eyebrow } from './eyebrow'; +import { SectionHead } from './section-head'; import { Videos } from './videos'; const ALL = 'All'; @@ -49,7 +49,10 @@ export function LearnPanel({ stories, videos, mediumUrl }: Props) { return (
    -
    FROM THE COMMUNITY

    Knowledge moves
    when we share it.

    All stories on Medium
    +
    + Knowledge moves
    when we share it.} /> + All stories on Medium +
    @@ -65,7 +68,7 @@ export function LearnPanel({ stories, videos, mediumUrl }: Props) { return (
    {formatStoryDate(story.publishedOn)} -
    {story.category}

    {story.title}

    {story.summary}

    +
    {story.category}

    {story.title}

    {story.summary}

    ); diff --git a/src/components/site/magnetic-link.tsx b/src/components/site/magnetic-link.tsx deleted file mode 100644 index 826b9bf..0000000 --- a/src/components/site/magnetic-link.tsx +++ /dev/null @@ -1,28 +0,0 @@ -'use client'; - -import { useRef, type PointerEvent, type ReactNode } from 'react'; -import { motion, useMotionValue, useReducedMotion, useSpring, type HTMLMotionProps } from 'motion/react'; - -type Props = HTMLMotionProps<'a'> & { href: string; children: ReactNode }; - -/** Spring movement is pointer-only; keyboard and touch preserve a stable target. */ -export function MagneticLink({ href, children, className = '', ...rest }: Props) { - const ref = useRef(null); - const reduceMotion = useReducedMotion(); - const x = useMotionValue(0); - const y = useMotionValue(0); - const springX = useSpring(x, { stiffness: 260, damping: 22, mass: 0.55 }); - const springY = useSpring(y, { stiffness: 260, damping: 22, mass: 0.55 }); - const move = (event: PointerEvent) => { - if (reduceMotion || event.pointerType !== 'mouse' || !ref.current) return; - const rect = ref.current.getBoundingClientRect(); - x.set((event.clientX - rect.left - rect.width / 2) * 0.16); - y.set((event.clientY - rect.top - rect.height / 2) * 0.16); - }; - return ( - { x.set(0); y.set(0); }} {...rest}> - {children} - - ); -} diff --git a/src/components/site/navigation.ts b/src/components/site/navigation.ts index ccd9169..4bcca81 100644 --- a/src/components/site/navigation.ts +++ b/src/components/site/navigation.ts @@ -1,15 +1,16 @@ export type Panel = 'build' | 'learn' | 'gather'; /** Hash targets the site can scroll to. Panels live inside the `explore` section. */ -const sections = ['home', 'about', 'explore', 'news', 'people'] as const; +const sections = ['home', 'about', 'explore', 'news', 'people', 'join'] as const; export type Target = Panel | (typeof sections)[number]; export type Navigate = (target: string, scroll?: boolean) => void; -export const panels: { value: Panel; label: string; number: string }[] = [ - { value: 'build', label: 'Build', number: '01' }, - { value: 'learn', label: 'Learn', number: '02' }, - { value: 'gather', label: 'Gather', number: '03' }, +/** Each panel's verb, and the noun the main navigation uses for it. */ +export const panels: { value: Panel; label: string; noun: string }[] = [ + { value: 'build', label: 'Build', noun: 'Projects' }, + { value: 'learn', label: 'Learn', noun: 'Knowledge' }, + { value: 'gather', label: 'Gather', noun: 'Events' }, ]; export function isSection(target: string): target is (typeof sections)[number] { diff --git a/src/components/site/orbit.tsx b/src/components/site/orbit.tsx new file mode 100644 index 0000000..ed38f0e --- /dev/null +++ b/src/components/site/orbit.tsx @@ -0,0 +1,18 @@ +import type { CSSProperties } from 'react'; + +/** Contribution levels for the cells, so the lit ring reads like a real graph rather than a solid band. */ +const pattern = [3, 1, 4, 2, 0, 3, 4, 1, 2, 4, 3, 0, 2, 4, 1, 3, 2, 4, 0, 3, 1, 4, 2, 3, 4, 0, 2, 1, 4, 3, 2, 0, 4, 1, 3, 2]; + +/** + * A ring of contribution-graph cells around a portrait. Faint at rest; on hover + * the cells light up clockwise, one after another. + */ +export function Orbit({ count }: { count: number }) { + return ( + + ); +} diff --git a/src/components/site/people.tsx b/src/components/site/people.tsx index 45fb7e0..3e56e2d 100644 --- a/src/components/site/people.tsx +++ b/src/components/site/people.tsx @@ -1,55 +1,27 @@ -'use client'; - -import { ArrowUpRight, GitFork } from 'lucide-react'; -import type { Member, SiteLinks } from '@/lib/content/types'; -import { Eyebrow } from './eyebrow'; -import { MagneticLink } from './magnetic-link'; -import type { Navigate } from './navigation'; +import type { Member } from '@/lib/content/types'; import { PersonCard } from './person-card'; +import { SectionHead } from './section-head'; -type Props = { navigate: Navigate; members: Member[]; links: SiteLinks }; - -/** The faculty and students behind the society, then the way in. */ -export function People({ navigate, members, links }: Props) { +/** The faculty and students who run the society. */ +export function People({ members }: { members: Member[] }) { const faculty = members.filter((member) => member.group === 'faculty'); const students = members.filter((member) => member.group === 'student'); return (
    -
    03 / THE FACES BEHIND THE CODE

    Meet the collective.

    + The people
    behind TES.} lede="Faculty who guide the society and the students who run it day to day." /> {faculty.length > 0 && (
    -
    01 / GUIDANCE

    Faculty coordinators

    The mentors supporting the society.

    +

    Faculty coordinators

    Mentors who guide the society.

    {faculty.map((member) => )}
    )} {students.length > 0 && (
    -
    02 / THE BUILDERS

    Student members

    The students making ideas happen.

    +

    Student team

    The students who plan, build and run things.

    {students.map((member) => )}
    )} -
    -
    - YOUR NEXT CHAPTER -

    Small contributions.
    Shared progress.

    -

    There is no perfect first step. Pick something small and build alongside the community.

    -
    -
    - A WAY IN -
      -
    1. 01Explore the projects
    2. -
    3. 02Read the contribution guide
    4. -
    5. 03Make your first change
    6. -
    7. 04Apply to join the team
    8. -
    -
    - Join TES - { event.preventDefault(); navigate('build'); }}>Explore projects - Contribution guide -
    -
    -
    ); } diff --git a/src/components/site/person-card.tsx b/src/components/site/person-card.tsx index bc3d66f..3f02a8b 100644 --- a/src/components/site/person-card.tsx +++ b/src/components/site/person-card.tsx @@ -1,14 +1,16 @@ import Image from 'next/image'; import { initials } from '@/lib/format'; import type { Member } from '@/lib/content/types'; +import { Orbit } from './orbit'; export function PersonCard({ member }: { member: Member }) { const body = ( <>
    + {member.portraitUrl ? {member.name} - : } + : }

    {member.name}

    {member.role}

    diff --git a/src/components/site/section-head.tsx b/src/components/site/section-head.tsx new file mode 100644 index 0000000..09b9bb3 --- /dev/null +++ b/src/components/site/section-head.tsx @@ -0,0 +1,21 @@ +import type { ReactNode } from 'react'; +import { GitBranch } from 'lucide-react'; + +type Props = { id: string; branch: string; title: ReactNode; lede?: ReactNode; level?: 2 | 3; className?: string }; + +/** + * A section's heading: a branch chip naming the section, then a title that + * comes in like an added line in a diff. + */ +export function SectionHead({ id, branch, title, lede, level = 2, className = '' }: Props) { + const Heading = level === 2 ? 'h2' : 'h3'; + return ( +
    +
    + + {title} +
    + {lede &&

    {lede}

    } +
    + ); +} diff --git a/src/components/site/site-shell.tsx b/src/components/site/site-shell.tsx index de1d319..9c38070 100644 --- a/src/components/site/site-shell.tsx +++ b/src/components/site/site-shell.tsx @@ -11,6 +11,7 @@ import { Footer } from './footer'; import { Header } from './header'; import { Hero } from './hero'; import { isPanel, isSection, type Navigate, type Panel } from './navigation'; +import { JoinPath } from './join-path'; import { People } from './people'; import { TechNews } from './tech-news'; @@ -81,10 +82,13 @@ export function SiteShell({ content }: { content: SiteContent }) {
    - - navigate(value, false)} content={content} /> - {content.techNews && } - +
    + + navigate(value, false)} content={content} /> + {content.techNews && } + + +
    {commandOpen && } diff --git a/src/components/site/spotlight-card.tsx b/src/components/site/spotlight-card.tsx deleted file mode 100644 index 3ad57d2..0000000 --- a/src/components/site/spotlight-card.tsx +++ /dev/null @@ -1,38 +0,0 @@ -'use client'; - -import { useEffect, useRef, type CSSProperties, type PointerEvent, type ReactNode } from 'react'; -import { useReducedMotion } from 'motion/react'; - -type Props = { children: ReactNode; className?: string }; - -export function SpotlightCard({ children, className = '' }: Props) { - const ref = useRef(null); - const reduceMotion = useReducedMotion(); - const frame = useRef(0); - useEffect(() => () => cancelAnimationFrame(frame.current), []); - const onMove = (event: PointerEvent) => { - if (reduceMotion || event.pointerType !== 'mouse' || !ref.current) return; - const card = ref.current; - const rect = card.getBoundingClientRect(); - const px = event.clientX - rect.left; - const py = event.clientY - rect.top; - cancelAnimationFrame(frame.current); - frame.current = requestAnimationFrame(() => { - card.style.setProperty('--spot-x', `${px}px`); - card.style.setProperty('--spot-y', `${py}px`); - card.style.setProperty('--rotate-x', `${((py / rect.height) - 0.5) * -5}deg`); - card.style.setProperty('--rotate-y', `${((px / rect.width) - 0.5) * 5}deg`); - }); - }; - const onLeave = () => { - cancelAnimationFrame(frame.current); - ref.current?.style.setProperty('--rotate-x', '0deg'); - ref.current?.style.setProperty('--rotate-y', '0deg'); - }; - return ( -
    - {children} -
    - ); -} diff --git a/src/components/site/tech-news.tsx b/src/components/site/tech-news.tsx index 7d72dc7..cc67008 100644 --- a/src/components/site/tech-news.tsx +++ b/src/components/site/tech-news.tsx @@ -2,7 +2,7 @@ import Image from 'next/image'; import { ArrowUpRight } from 'lucide-react'; import { formatStoryDate, ordinal } from '@/lib/format'; import type { TechNewsIssue } from '@/lib/content/types'; -import { Eyebrow } from './eyebrow'; +import { SectionHead } from './section-head'; function hostname(url: string) { return new URL(url).hostname.replace(/^www\./, ''); @@ -11,13 +11,12 @@ function hostname(url: string) { export function TechNews({ issue }: { issue: TechNewsIssue }) { return (
    -
    -
    - THIS WEEK IN TECH / WEEK OF {formatStoryDate(issue.weekOf)} -

    What moved
    in tech this week.

    -
    -

    What the society is reading and talking about. Picked by members, refreshed every Tuesday.

    -
    + What moved
    in tech this week.} + lede={<>Week of {formatStoryDate(issue.weekOf)}. What the society is reading and talking about. Picked by members, refreshed every Tuesday.} + />
      {issue.items.map((item, index) => (
    1. @@ -27,7 +26,7 @@ export function TechNews({ issue }: { issue: TechNewsIssue }) { ? : }
    - {ordinal(index + 1)} / {item.source ?? hostname(item.url)} + {ordinal(index + 1)}{item.source ?? hostname(item.url)}

    {item.title}

    {item.summary &&

    {item.summary}

    } diff --git a/src/components/site/videos.tsx b/src/components/site/videos.tsx index 9d9e50e..9021c7d 100644 --- a/src/components/site/videos.tsx +++ b/src/components/site/videos.tsx @@ -16,7 +16,7 @@ export function Videos({ videos }: { videos: YouTubeVideo[] }) { return (
    - FROM THE CHANNEL +

      {videos.map((video) => (
    • diff --git a/src/components/status-page.tsx b/src/components/status-page.tsx index e8d69c5..f9a4dfe 100644 --- a/src/components/status-page.tsx +++ b/src/components/status-page.tsx @@ -1,11 +1,12 @@ import type { ReactNode } from 'react'; +import { GitBranch } from 'lucide-react'; type Props = { code: string; title: string; detail: string; children: ReactNode }; export function StatusPage({ code, title, detail, children }: Props) { return (
      - THE ENIGMA SOCIETY / {code} +

      {title}

      {detail}

      {children} diff --git a/src/styles/layout.css b/src/styles/layout.css index fddc424..4922c1b 100644 --- a/src/styles/layout.css +++ b/src/styles/layout.css @@ -28,36 +28,3 @@ /* Footer links carry their brand icon; only the arrow nudges on hover. */ .footer-link-label { display: inline-flex; align-items: center; gap: 11px; } .footer-directory a:hover .footer-link-label svg { transform: none; } - -/* The featured repository has the Build panel's top row to itself: the - heading on the left, its details on the right. */ -.feature-grid { grid-template-columns: 1fr; } -.feature-card { border-right: 0; } -@media (min-width: 851px) { - .feature-card { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); column-gap: clamp(32px, 6vw, 96px); align-content: start; padding-right: 5px; } - .feature-card > * { grid-column: 2; } - .feature-card > .feature-heading { grid-column: 1 / -1; } - .feature-card > h3 { grid-column: 1; grid-row: 2 / span 5; align-self: start; } - .feature-card > p:first-of-type { margin-top: 55px; } -} - -/* Scroll motion: sections rise into place as they enter, and large headings - drift slower than the page. Scroll-driven, so no script runs; browsers - without view timelines simply show everything in place. */ -@supports (animation-timeline: view()) { - @media (prefers-reduced-motion: no-preference) { - .section-title, .about-head, .domains-top, .domain-layout, .principle-grid article, .feature-card, - .project-grid > li, .contributor-grid > li, .news-grid > li, .people-group, .join-band, .footer-statement { - animation: rise-in linear both; - animation-timeline: view(); - animation-range: entry 5% cover 28%; - } - .section-title h2, .about-head h2, .join-band h2, .footer-statement h2 { - animation: heading-drift linear both; - animation-timeline: view(); - animation-range: cover; - } - } -} -@keyframes rise-in { from { opacity: 0; translate: 0 36px; } to { opacity: 1; translate: 0 0; } } -@keyframes heading-drift { from { translate: 0 26px; } to { translate: 0 -26px; } } diff --git a/src/styles/open-source.css b/src/styles/open-source.css new file mode 100644 index 0000000..729a932 --- /dev/null +++ b/src/styles/open-source.css @@ -0,0 +1,443 @@ +/* The site below the hero, in the hero's language (pills, round marks, serif + display type, springy motion) with GitHub's colours as signals: green for + open and added, purple for merged, blue for branches and links. Each + section heading carries a branch chip and comes in like a line added in a + diff. Earlier rules in site.css stay as they are and are overridden + here. */ + +:root { + --git-green: #3fb950; --git-green-soft: rgb(63 185 80 / .14); + --git-purple: #a371f7; --git-purple-soft: rgb(163 113 247 / .16); + --git-blue: #58a6ff; --git-blue-soft: rgb(56 139 253 / .12); + --git-amber: #d29922; + --cg-0: rgb(255 255 255 / .055); --cg-1: #0e4429; --cg-2: #006d32; --cg-3: #26a641; --cg-4: #39d353; + --spring: cubic-bezier(.3, 1.5, .5, 1); +} +:root[data-theme="light"] { + --git-green: #1a7f37; --git-green-soft: rgb(26 127 55 / .1); + --git-purple: #8250df; --git-purple-soft: rgb(130 80 223 / .12); + --git-blue: #0969da; --git-blue-soft: rgb(9 105 218 / .08); + --git-amber: #9a6700; + --cg-0: rgb(0 0 0 / .06); --cg-1: #9be9a8; --cg-2: #40c463; --cg-3: #30a14e; --cg-4: #216e39; +} + +/* Shared controls */ +.pill-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border: 1px solid var(--border); border-radius: 999px; background: transparent; color: var(--text); font-size: 14px; font-weight: 600; line-height: 1.2; white-space: nowrap; transition: background .25s, border-color .25s, box-shadow .3s, color .25s; } +.pill-button:hover { border-color: color-mix(in oklch, var(--text), transparent 45%); background: var(--accent-soft); } +.pill-button svg { transition: transform .5s var(--spring); } +.pill-button:hover svg { transform: translate(2px, -2px); } +.pill-primary { border-color: var(--text); background: var(--text); color: var(--bg); } +.pill-primary:hover { background: var(--text); color: var(--bg); box-shadow: 0 0 0 4px var(--git-green-soft), 0 10px 30px var(--git-green-soft); } +.pill-primary:has(.join-knob) { padding-right: 7px; gap: 12px; } +.pill-primary:hover .join-knob .needle-icon { transform: rotate(90deg); } +.pill-primary:hover .join-knob svg { transform: rotate(90deg); } +.inline-link { display: inline-flex; align-items: center; gap: 6px; padding-bottom: 2px; color: var(--text); font-size: 14px; font-weight: 600; background-image: linear-gradient(currentColor, currentColor); background-size: 100% 1px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .35s; } +.inline-link:hover { background-size: 0 1px; background-position: 100% 100%; } +.strip-label { display: flex; align-items: center; gap: 9px; margin: 0; color: var(--text); font: 600 15px/1.3 var(--sans); letter-spacing: -.01em; } +.strip-label svg { color: var(--muted); } +.status-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border: 1px solid var(--border); border-radius: 999px; color: var(--muted); font-size: 13px; font-weight: 600; } +.status-chip.is-open { border-color: color-mix(in srgb, var(--git-green), transparent 55%); background: var(--git-green-soft); color: var(--git-green); } + +/* Every section below the hero shares one rhythm and one background. */ +.site-sections > section { position: relative; padding: clamp(88px, 9vw, 150px) 5% 0; border: 0; background: transparent; } +.site-sections > section:last-child { padding-bottom: clamp(88px, 9vw, 150px); } + +/* Section headings: a branch chip and a diff-style title. */ +.section-head { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; max-width: 1480px; margin: 0 auto clamp(34px, 4vw, 56px); } +.section-head > div { position: relative; min-width: 0; } +.branch-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px 4px 9px; border: 1px solid color-mix(in srgb, var(--git-blue), transparent 70%); border-radius: 999px; background: var(--git-blue-soft); color: var(--git-blue); font-size: 12.5px; font-weight: 600; line-height: 1.3; } +.section-head h2, .section-head h3 { display: block; width: fit-content; margin: 18px 0 0; color: var(--text); font: 600 clamp(42px, 4.4vw, 72px)/1.02 var(--serif); letter-spacing: -.05em; } +.section-head h3 { font-size: clamp(30px, 2.8vw, 44px); line-height: 1.08; letter-spacing: -.04em; } +.section-head :is(h2, h3) em { font-weight: 400; } +.section-lede { max-width: 56ch; margin: 0; color: var(--muted); font-size: clamp(15px, 1.15vw, 17px); line-height: 1.7; } +.section-head:has(h3) { gap: 12px; } +.section-head:has(h3) .section-lede { font-size: 15px; } +.diff-in { position: relative; isolation: isolate; } +.section-head h3.diff-in::after, .section-head h3.diff-in::before { display: none; } +.diff-in::after { content: ""; position: absolute; z-index: -1; inset: -.06em -.22em -.02em -.3em; border-left: 3px solid var(--git-green); border-radius: 4px 10px 10px 4px; background: var(--git-green-soft); transform-origin: left; opacity: 0; } +.diff-in::before { content: "+"; position: absolute; top: .02em; left: -.75em; color: var(--git-green); font: 600 .5em/1.4 var(--sans); opacity: 0; } + +/* About: principles as the checks every contribution passes. */ +.checks-card { max-width: 1480px; margin: 0 auto; overflow: hidden; border: 1px solid var(--border); border-radius: 22px; background: color-mix(in oklch, var(--bg-raised), transparent 45%); } +.checks-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 16px 24px; border-bottom: 1px solid var(--border); font-size: 14px; } +.checks-head strong { font-weight: 650; } +.checks-head > span:last-child { color: var(--muted); } +.checks-ring { display: grid; width: 20px; height: 20px; } +.checks-ring circle { fill: none; stroke: var(--git-green); stroke-width: 2.4; stroke-dasharray: 51; transform: rotate(-90deg); transform-origin: center; } +.checks-list { margin: 0; padding: 0; list-style: none; } +.checks-list li { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 6px 20px; padding: 24px; border-top: 1px solid var(--border); transition: background .3s; } +.checks-list li:first-child { border-top: 0; } +.checks-list li:hover { background: color-mix(in srgb, var(--git-green-soft), transparent 40%); } +.checks-list h3 { margin: 0; font: 600 clamp(22px, 2vw, 30px)/1.15 var(--serif); letter-spacing: -.035em; } +.checks-list p { margin: 6px 0 0; color: var(--muted); font-size: 14px; line-height: 1.6; } +.check-mark { width: 28px; height: 28px; } +.check-mark circle { fill: var(--git-green-soft); stroke: var(--git-green); stroke-width: 1.6; } +.check-mark path { fill: none; stroke: var(--git-green); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 14; } +.check-label { padding: 4px 11px; border-radius: 999px; background: var(--git-green-soft); color: var(--git-green); font-size: 12.5px; font-weight: 600; white-space: nowrap; } + +/* Domains: each tab carries a small contribution graph of its own. */ +.domains { max-width: 1480px; margin: clamp(88px, 8vw, 130px) auto 0; } +.domains .domain-layout { display: grid; grid-template-columns: minmax(260px, .8fr) minmax(0, 1.2fr); gap: 18px; margin: 0; border: 0; } +.domains .domain-tabs { display: flex; flex-direction: column; gap: 8px; border: 0; } +.domain-tabs button .domain-name { flex: 1; width: auto; min-width: 0; color: inherit; font: 600 15px/1.3 var(--sans); letter-spacing: -.005em; text-transform: none; } +.domain-tabs button .contrib-mini { width: auto; margin-left: 0; } +.domain-tabs button { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 0; padding: 16px 18px; border: 1px solid var(--border); border-radius: 16px; background: transparent; color: var(--muted); font: 600 15px/1.3 var(--sans); text-align: left; transition: color .25s, border-color .25s, background .25s, transform .45s var(--spring); } +.domain-tabs button::before, .domain-tabs button::after { display: none; } +.domain-tabs button:hover { color: var(--text); transform: translateX(4px); } +.domain-tabs button[aria-selected="true"] { border-color: color-mix(in srgb, var(--git-green), transparent 50%); background: var(--git-green-soft); color: var(--text); } +.domains .domain-preview { display: flex; flex-direction: column; align-items: stretch; justify-content: space-between; align-self: stretch; gap: 26px; min-height: 0; margin: 0; padding: clamp(24px, 3vw, 40px); border: 1px solid var(--border); border-radius: 22px; background: color-mix(in oklch, var(--bg-raised), transparent 45%); } +.contrib-graph { display: grid; grid-template-rows: repeat(7, auto); grid-auto-flow: column; gap: 4px; } +.contrib-graph i { display: block; border-radius: 3px; background: var(--cg-0); } +.contrib-graph i[data-level="1"] { background: var(--cg-1); } +.contrib-graph i[data-level="2"] { background: var(--cg-2); } +.contrib-graph i[data-level="3"] { background: var(--cg-3); } +.contrib-graph i[data-level="4"] { background: var(--cg-4); } +.contrib-mini { grid-template-rows: repeat(7, 5px); grid-auto-columns: 5px; gap: 2px; flex: none; } +.contrib-mini i { border-radius: 1.5px; transition: opacity .3s, filter .3s; } +.domain-tabs button[aria-selected="false"] .contrib-mini i { opacity: .55; filter: saturate(0); } + +/* The selected domain, drawn as something to play with. */ +.domain-copy h4 { margin: 0; font: 600 clamp(28px, 2.6vw, 40px)/1.1 var(--serif); letter-spacing: -.04em; } +.domain-copy p { max-width: 560px; margin: 10px 0 0; color: var(--muted); font-size: 15px; line-height: 1.65; } +.domain-figure { margin: 0; } +.domain-figure figcaption { margin-top: 10px; color: var(--muted); font-size: 13px; } +.domain-art { display: block; width: 100%; height: auto; overflow: visible; touch-action: pan-y; user-select: none; } +.domain-art text { font-family: var(--sans); } +.domain-art :is(g, svg):focus { outline: none; } +.domain-art [tabindex]:focus-visible > :is(circle, rect):first-child { stroke: var(--git-blue); stroke-width: 3; } +.art-cluster { overflow: hidden; border-radius: 14px; } +.art-cluster:focus-visible { box-shadow: 0 0 0 3px var(--git-blue-soft), 0 0 0 1px var(--git-blue); } +.art-readout { fill: var(--text); font-size: 15px; font-weight: 650; } +/* Web */ +.web-frame { fill: color-mix(in oklch, var(--bg), transparent 20%); stroke: var(--border); stroke-width: 1.5; transition: width .45s var(--spring); } +.web-bar { stroke: var(--border); } +.web-dot { fill: var(--cg-0); } +.web-block { fill: var(--git-blue-soft); stroke: color-mix(in srgb, var(--git-blue), transparent 60%); transition: x .45s var(--spring), y .45s var(--spring), width .45s var(--spring); } +.web-block.is-nav { fill: var(--cg-0); stroke: none; } +.web-block.is-hero { fill: var(--git-green-soft); stroke: color-mix(in srgb, var(--git-green), transparent 55%); } +.web-handle { cursor: ew-resize; } +.web-handle rect { fill: var(--text); transition: x .45s var(--spring); } +.web-handle path { stroke: var(--bg); stroke-width: 2; stroke-linecap: round; } +/* Tree */ +.art-tree line { stroke: var(--border); stroke-width: 2; transition: stroke .3s; } +.art-tree line.is-on { stroke: var(--git-green); stroke-width: 3; } +.tree-node { cursor: pointer; } +.tree-node circle { fill: var(--bg-raised); stroke: var(--border); stroke-width: 1.5; transition: fill .3s, stroke .3s, r .4s var(--spring); } +.tree-node text { fill: var(--muted); font-size: 12px; font-weight: 650; text-anchor: middle; transition: fill .3s; } +.tree-node.is-on circle { fill: var(--git-green-soft); stroke: var(--git-green); } +.tree-node.is-on text { fill: var(--text); } +.tree-node.is-target circle { r: 19px; fill: var(--git-green); } +.tree-node.is-target text { fill: #fff; } +/* Clusters */ +.art-cluster { cursor: crosshair; } +.cluster-line { stroke: var(--text); stroke-width: 1.5; stroke-dasharray: 5 6; opacity: .7; } +.cluster-point { transition: fill .25s, stroke .25s, r .3s var(--spring); stroke-width: 2.5; stroke: transparent; } +.cluster-point.is-a { fill: var(--git-green); } +.cluster-point.is-b { fill: var(--git-purple); } +.cluster-point.is-wrong { stroke: #f85149; r: 8px; } +.cluster-pivot { fill: var(--bg); stroke: var(--text); stroke-width: 2; } +/* Dependencies */ +.art-deps path { fill: none; stroke: var(--border); stroke-width: 2; transition: stroke .35s; } +.art-deps path.is-chain { stroke: #f85149; stroke-dasharray: 5 5; } +.art-deps.is-patched path.is-chain { stroke: var(--git-green); stroke-dasharray: none; } +.dep-node rect { fill: var(--bg-raised); stroke: var(--border); stroke-width: 1.5; transition: fill .35s, stroke .35s; } +.dep-node text { fill: var(--text); font-size: 12px; font-weight: 600; text-anchor: middle; } +.dep-node.is-chain rect { stroke: color-mix(in srgb, #f85149, transparent 40%); } +.dep-node.is-vulnerable rect { fill: rgb(248 81 73 / .16); stroke: #f85149; animation: dep-alert 1.6s ease-in-out infinite; } +.art-deps.is-patched .dep-node.is-chain rect { fill: var(--git-green-soft); stroke: var(--git-green); animation: none; } +.dep-patch { cursor: pointer; } +.dep-patch rect { fill: var(--text); transition: fill .3s; } +.dep-patch text { fill: var(--bg); font-size: 13px; font-weight: 700; text-anchor: middle; } +.art-deps.is-patched .dep-patch rect { fill: var(--git-green); } +.art-deps.is-patched .dep-patch text { fill: #fff; } +/* Compass */ +.compass-art-ring { fill: none; stroke: var(--border); stroke-width: 1.5; } +.compass-art-ring.is-inner { stroke-dasharray: 2 6; } +.compass-art-needle { transition: transform .9s cubic-bezier(.25, 1.65, .45, 1); } +.compass-art-needle path { fill: var(--text); } +.compass-art-needle .is-south { fill: none; stroke: var(--text); stroke-width: 1.5; opacity: .55; } +.compass-art-pin { fill: var(--bg); stroke: var(--text); stroke-width: 2; } + +/* Build, Learn, Gather: a capsule like the header's, with the noun the nav uses. */ +.explorer-section { background: transparent; } +.explorer-section::before { display: none; } +.explorer-tabs { display: inline-flex; gap: 4px; max-width: 100%; margin: 0; padding: 5px; border: 1px solid var(--border); border-radius: 999px; background: color-mix(in oklch, var(--bg-raised), transparent 25%); } +.explorer-section .explorer-tabs { margin-left: max(0px, (100% - 1480px) / 2); } +.explorer-tabs button { position: relative; isolation: isolate; display: inline-flex; align-items: baseline; gap: 9px; min-width: 0; padding: 11px 24px 12px; border: 0; border-radius: 999px; background: none; color: var(--muted); font: 400 22px/1.1 var(--serif); letter-spacing: -.02em; transition: color .3s; } +.explorer-tabs button:hover { color: var(--text); } +.explorer-tabs button[aria-selected="true"] { color: var(--bg); } +.explorer-tabs .tab-noun { color: inherit; font: 500 12px/1 var(--sans); letter-spacing: 0; opacity: .7; } +.explorer-tabs button > span:first-child { color: inherit; font: inherit; } +.explorer-tabs button i { position: absolute; z-index: -1; inset: 0; width: auto; height: auto; border-radius: 999px; background: var(--text); } +.explorer-content { max-width: 1480px; margin: 0 auto; padding-top: clamp(28px, 3vw, 44px); border: 0; } + +/* Build */ +.repo-card { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) clamp(150px, 18vw, 240px); gap: clamp(20px, 4vw, 60px); overflow: hidden; padding: clamp(26px, 3.4vw, 48px); border: 1px solid var(--border); border-radius: 26px; background: color-mix(in oklch, var(--bg-raised), transparent 35%); } +.repo-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--muted); } +.repo-head a { color: var(--git-blue); font-size: 17px; } +.repo-head a:hover { text-decoration: underline; text-underline-offset: 4px; } +.repo-head strong { font-weight: 700; } +.repo-chip { padding: 2px 10px; border: 1px solid var(--border); border-radius: 999px; color: var(--muted); font-size: 12px; font-weight: 600; } +.repo-chip.is-featured { border-color: color-mix(in srgb, var(--git-amber), transparent 55%); color: var(--git-amber); } +.repo-card h3 { margin: 26px 0 0; font: 600 clamp(40px, 4.4vw, 68px)/1 var(--serif); letter-spacing: -.055em; } +.repo-card h3 em { font-weight: 400; } +.repo-card-main > p { max-width: 620px; margin: 20px 0 0; color: var(--muted); font-size: 16px; line-height: 1.65; } +.repo-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin-top: 18px; color: var(--muted); font-size: 14px; } +.repo-meta span { display: inline-flex; align-items: center; gap: 7px; } +.repo-language { display: inline-flex; align-items: center; gap: 7px; } +.repo-language i { width: 11px; height: 11px; border-radius: 50%; background: var(--lang); box-shadow: 0 0 0 1px color-mix(in srgb, var(--lang), transparent 60%); } +.repo-card .repo-stats { display: flex; flex-wrap: wrap; gap: 8px; max-width: none; margin: 22px 0 0; padding: 0; border: 0; } +.repo-card .repo-stats > div { display: inline-flex; align-items: center; gap: 8px; min-width: 0; margin: 0; padding: 7px 13px; border: 1px solid var(--border); border-radius: 999px; } +.repo-card .repo-stats > div::before, .repo-card .repo-stats > div::after { display: none; } +.repo-card .repo-stats dt { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font: 500 13px/1.2 var(--sans); letter-spacing: 0; text-transform: none; } +.repo-card .repo-stats dd { margin: 0; color: var(--text); font: 650 13px/1.2 var(--sans); } +.repo-card .repo-stats [data-tone="open"] svg { color: var(--git-green); } +.repo-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; } +.branch-art { align-self: center; width: 100%; height: auto; overflow: visible; } +.branch-art path { fill: none; stroke-linecap: round; } +.branch-main { stroke: var(--border); stroke-width: 3; } +.branch-feature { stroke: var(--git-green); stroke-width: 3; stroke-dasharray: 400; } +.branch-flow { stroke: var(--cg-4); stroke-width: 4; stroke-dasharray: 10 390; animation: branch-flow 3.4s linear infinite; } +.branch-commit { fill: var(--bg); stroke: var(--muted); stroke-width: 3; } +.branch-commit.is-feature { stroke: var(--git-green); } +.branch-merge { fill: var(--git-purple); stroke: var(--git-purple-soft); stroke-width: 0; animation: merge-pulse 2.6s ease-out infinite; } +.branch-merge-mark { stroke: #fff; stroke-width: 2.4; stroke-linejoin: round; } +.build-block { margin-top: clamp(64px, 6vw, 96px); } +.project-grid { gap: 14px; } +.project-card { border: 1px solid var(--border); border-radius: 18px; background: color-mix(in oklch, var(--bg-raised), transparent 45%); transition: border-color .3s, transform .45s var(--spring); } +.project-card:hover { border-color: color-mix(in srgb, var(--git-blue), transparent 50%); transform: translateY(-4px); } +.project-card .project-name { color: var(--git-blue); font: 600 13px/1.4 var(--sans); letter-spacing: 0; text-transform: none; } +.project-card .project-meta { display: flex; flex-wrap: wrap; gap: 14px; color: var(--muted); font: 13px var(--sans); letter-spacing: 0; text-transform: none; } +.project-card .project-meta span { display: inline-flex; align-items: center; gap: 5px; } +.contributor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 18px 12px; margin: 0; padding: 0; list-style: none; } +.contributor-grid a { display: flex; flex-direction: column; align-items: center; gap: 14px; min-width: 0; height: 100%; padding: 14px 6px; border: 0; background: none; } +.contributor-grid a:hover strong { color: var(--git-green); } +.contributor-grid img { position: relative; z-index: 1; width: 64px; height: 64px; margin: 0; border: 0; border-radius: 50%; filter: none; transition: transform .5s var(--spring); } +.contributor-grid a:hover img { filter: none; } +.contributor-grid a:hover img { transform: scale(1.05); } +.avatar-ring { position: relative; display: grid; place-items: center; border-radius: 50%; transition: transform .5s var(--spring); } +/* Photos and thumbnails show in colour across the site. */ +.instagram-image img, .news-image img, .video-frame img { filter: none; } +.instagram-card:hover .instagram-image img, .news-card:hover .news-image img, .video-frame button:hover img, .video-frame button:focus-visible img { filter: none; } +.orbit { position: absolute; inset: -11px; container-type: inline-size; border-radius: 50%; pointer-events: none; } +.orbit i { --s: 4px; position: absolute; top: 0; left: calc(50% - var(--s) / 2); width: var(--s); height: var(--s); border-radius: 1px; background: var(--cg-0); transform-origin: 50% 50cqw; transform: rotate(calc(var(--k) * 360deg / var(--count))); transition: background .25s ease; transition-delay: 0s; } +.people-section .orbit { inset: -18px; } +.people-section .orbit i { --s: 7px; border-radius: 2px; } +:is(.contributor-grid a, .people-section .person-card):is(:hover, :focus-visible) .orbit i { transition-delay: calc(var(--k) * 22ms); } +:is(.contributor-grid a, .people-section .person-card):is(:hover, :focus-visible) .orbit i[data-level="1"] { background: var(--cg-1); } +:is(.contributor-grid a, .people-section .person-card):is(:hover, :focus-visible) .orbit i[data-level="2"] { background: var(--cg-2); } +:is(.contributor-grid a, .people-section .person-card):is(:hover, :focus-visible) .orbit i[data-level="3"] { background: var(--cg-3); } +:is(.contributor-grid a, .people-section .person-card):is(:hover, :focus-visible) .orbit i[data-level="4"] { background: var(--cg-4); } +.contributor-grid strong { max-width: 100%; overflow: hidden; color: var(--text); font-size: 13px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; } + +/* Learn */ +.learn-panel .panel-heading { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 32px; margin-bottom: 28px; } +.learn-panel .panel-heading .section-head { margin: 0; } +.reading-tools { gap: 14px; } +.search-field { min-height: 46px; padding: 0 18px; border: 1px solid var(--border); border-radius: 999px; background: color-mix(in oklch, var(--bg-raised), transparent 40%); transition: border-color .25s, box-shadow .25s; } +.search-field:focus-within { border-color: var(--git-blue); box-shadow: 0 0 0 4px var(--git-blue-soft); } +.filter-set { gap: 6px; } +.filter-set button { min-height: 38px; padding: 0 15px; border: 1px solid var(--border); border-radius: 999px; background: transparent; color: var(--muted); font: 600 13px var(--sans); transition: background .25s, color .25s, border-color .25s; } +.filter-set button:hover { color: var(--text); border-color: color-mix(in oklch, var(--text), transparent 55%); } +.filter-set button[aria-pressed="true"] { border-color: var(--text); background: var(--text); color: var(--bg); } +.filter-set button span { margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: var(--accent-soft); font-size: 11px; } +.result-count { color: var(--muted); font: 600 11px/1.5 var(--sans); letter-spacing: .14em; } +.story-row { border-radius: 18px; transition: background .3s; } +.story-row:hover { background: color-mix(in oklch, var(--bg-raised), transparent 30%); } +.story-date { color: var(--muted); font: 500 13px var(--sans); letter-spacing: 0; } +.story-category { display: inline-block; margin-bottom: 8px; padding: 3px 10px; border-radius: 999px; background: var(--git-purple-soft); color: var(--git-purple); font: 600 12px/1.4 var(--sans); letter-spacing: 0; text-transform: none; } +.story-category[data-category="open-source"] { background: var(--git-green-soft); color: var(--git-green); } +.story-category[data-category="development"] { background: var(--git-blue-soft); color: var(--git-blue); } +.story-row h4 { font-family: var(--serif); font-weight: 600; letter-spacing: -.025em; } +.bookmark-button { width: 42px; height: 42px; border-radius: 50%; transition: background .25s, color .25s, transform .45s var(--spring); } +.bookmark-button[aria-pressed="true"] { border-color: var(--git-amber); background: color-mix(in srgb, var(--git-amber), transparent 85%); color: var(--git-amber); transform: rotate(-8deg); } +.story-pages button { border-radius: 999px; } +.reading-footnote { color: var(--muted); } +.empty-reading { border-radius: 22px; } +.empty-reading button { border-radius: 999px; } +.video-strip { margin-top: clamp(48px, 5vw, 72px); } +.video-strip .strip-label { margin-bottom: 18px; } +.video-frame { overflow: hidden; border-radius: 18px; } +.video-play { border-radius: 50%; } +.video-channel { font-family: var(--sans); letter-spacing: 0; text-transform: none; } + +/* Gather */ +.gather-panel { gap: 18px; border: 0; } +.event-details { padding: clamp(26px, 3.4vw, 48px); border: 1px solid var(--border); border-radius: 26px; background: color-mix(in oklch, var(--bg-raised), transparent 35%); } +.event-status { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; font-weight: 600; } +.event-details h3 { margin-top: 22px; font: 600 clamp(48px, 5.6vw, 88px)/.98 var(--serif); letter-spacing: -.055em; } +.event-details h3 em { font-weight: 400; } +.event-details details { margin-top: 26px; padding: 0 20px; border: 1px solid var(--border); border-radius: 16px; } +.event-details details summary { padding: 15px 0; } +.event-actions { gap: 12px; margin-top: 26px; } +.activity-strip { display: block; padding: clamp(24px, 3vw, 36px); border: 1px solid var(--border); border-radius: 22px; } +.activity-strip > div + div { border: 0; } +.activity-timeline { position: relative; margin: 22px 0 0; padding: 0 0 0 30px; list-style: none; } +.activity-timeline::before { content: ""; position: absolute; top: 8px; bottom: 8px; left: 7px; width: 2px; border-radius: 2px; background: var(--border); } +.activity-timeline li { position: relative; padding-bottom: 24px; } +.activity-timeline li:last-child { padding-bottom: 0; } +.activity-timeline li::before { content: ""; position: absolute; top: 6px; left: -29px; width: 14px; height: 14px; border: 2px solid var(--git-purple); border-radius: 50%; background: var(--bg); } +.activity-date { color: var(--muted); font-size: 13px; } +.activity-timeline h5 { margin: 4px 0 0; font: 600 22px/1.2 var(--serif); letter-spacing: -.03em; } +.activity-timeline a:hover { color: var(--git-blue); } +.activity-timeline p { margin: 6px 0 0; color: var(--muted); font-size: 14px; line-height: 1.6; } +.instagram-strip { margin-top: clamp(40px, 4vw, 56px); } +.instagram-strip-head { align-items: center; } +.instagram-card .instagram-image { overflow: hidden; border-radius: 16px; } +.instagram-card > span { font-family: var(--sans); letter-spacing: 0; } + +/* People */ +.people-section > .section-head { align-items: center; text-align: center; } +.people-section > .section-head .section-lede { text-align: center; } +.people-section > .section-head h2 { margin-inline: auto; } +.people-section .people-group { position: relative; isolation: isolate; margin: 0 auto; text-align: center; } +/* Contribution cells either side of each group. They are sized to the group, + so more people from the admin simply make the field taller. */ +.people-section .people-group::before, .people-section .people-group::after { content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; width: 26%; background: var(--git-green); opacity: .3; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='91' height='91'%3E%3Crect x='0' y='0' width='10' height='10' rx='2' fill-opacity='0.1'/%3E%3Crect x='13' y='0' width='10' height='10' rx='2' fill-opacity='0.1'/%3E%3Crect x='26' y='0' width='10' height='10' rx='2' fill-opacity='0.22'/%3E%3Crect x='39' y='0' width='10' height='10' rx='2' fill-opacity='0.1'/%3E%3Crect x='52' y='0' width='10' height='10' rx='2' fill-opacity='0.22'/%3E%3Crect x='65' y='0' width='10' height='10' rx='2' fill-opacity='0.1'/%3E%3Crect x='78' y='0' width='10' height='10' rx='2' fill-opacity='0.1'/%3E%3Crect x='0' y='13' width='10' height='10' rx='2' fill-opacity='0.22'/%3E%3Crect x='13' y='13' width='10' height='10' rx='2' fill-opacity='0.1'/%3E%3Crect x='26' y='13' width='10' height='10' rx='2' fill-opacity='0.22'/%3E%3Crect x='39' y='13' width='10' height='10' rx='2' fill-opacity='0.1'/%3E%3Crect x='52' y='13' width='10' height='10' rx='2' fill-opacity='0.1'/%3E%3Crect x='65' y='13' width='10' height='10' rx='2' fill-opacity='0.22'/%3E%3Crect x='78' y='13' width='10' height='10' rx='2' fill-opacity='0.68'/%3E%3Crect x='0' y='26' width='10' height='10' rx='2' fill-opacity='0.1'/%3E%3Crect x='13' y='26' width='10' height='10' rx='2' fill-opacity='0.1'/%3E%3Crect x='26' y='26' width='10' height='10' rx='2' fill-opacity='0.22'/%3E%3Crect x='39' y='26' width='10' height='10' rx='2' fill-opacity='1'/%3E%3Crect x='52' y='26' width='10' height='10' rx='2' fill-opacity='0.22'/%3E%3Crect x='65' y='26' width='10' height='10' rx='2' fill-opacity='0.1'/%3E%3Crect x='78' y='26' width='10' height='10' rx='2' fill-opacity='1'/%3E%3Crect x='0' y='39' width='10' height='10' rx='2' fill-opacity='0.1'/%3E%3Crect x='13' y='39' width='10' height='10' rx='2' fill-opacity='0.68'/%3E%3Crect x='26' y='39' width='10' height='10' rx='2' fill-opacity='0.1'/%3E%3Crect x='39' y='39' width='10' height='10' rx='2' fill-opacity='0.1'/%3E%3Crect x='52' y='39' width='10' height='10' rx='2' fill-opacity='0.1'/%3E%3Crect x='65' y='39' width='10' height='10' rx='2' fill-opacity='0.1'/%3E%3Crect x='78' y='39' width='10' height='10' rx='2' fill-opacity='0.42'/%3E%3Crect x='0' y='52' width='10' height='10' rx='2' fill-opacity='0.1'/%3E%3Crect x='13' y='52' width='10' height='10' rx='2' fill-opacity='0.22'/%3E%3Crect x='26' y='52' width='10' height='10' rx='2' fill-opacity='0.22'/%3E%3Crect x='39' y='52' width='10' height='10' rx='2' fill-opacity='0.1'/%3E%3Crect x='52' y='52' width='10' height='10' rx='2' fill-opacity='0.22'/%3E%3Crect x='65' y='52' width='10' height='10' rx='2' fill-opacity='0.1'/%3E%3Crect x='78' y='52' width='10' height='10' rx='2' fill-opacity='0.1'/%3E%3Crect x='0' y='65' width='10' height='10' rx='2' fill-opacity='0.1'/%3E%3Crect x='13' y='65' width='10' height='10' rx='2' fill-opacity='0.42'/%3E%3Crect x='26' y='65' width='10' height='10' rx='2' fill-opacity='0.22'/%3E%3Crect x='39' y='65' width='10' height='10' rx='2' fill-opacity='0.1'/%3E%3Crect x='52' y='65' width='10' height='10' rx='2' fill-opacity='0.22'/%3E%3Crect x='65' y='65' width='10' height='10' rx='2' fill-opacity='0.22'/%3E%3Crect x='78' y='65' width='10' height='10' rx='2' fill-opacity='0.1'/%3E%3Crect x='0' y='78' width='10' height='10' rx='2' fill-opacity='0.42'/%3E%3Crect x='13' y='78' width='10' height='10' rx='2' fill-opacity='0.42'/%3E%3Crect x='26' y='78' width='10' height='10' rx='2' fill-opacity='0.1'/%3E%3Crect x='39' y='78' width='10' height='10' rx='2' fill-opacity='0.22'/%3E%3Crect x='52' y='78' width='10' height='10' rx='2' fill-opacity='0.22'/%3E%3Crect x='65' y='78' width='10' height='10' rx='2' fill-opacity='0.68'/%3E%3Crect x='78' y='78' width='10' height='10' rx='2' fill-opacity='0.42'/%3E%3C/svg%3E") repeat, linear-gradient(90deg, #000, transparent 85%), linear-gradient(transparent, #000 18%, #000 82%, transparent); -webkit-mask-composite: source-in, source-in; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='91' height='91'%3E%3Crect x='0' y='0' width='10' height='10' rx='2' fill-opacity='0.1'/%3E%3Crect x='13' y='0' width='10' height='10' rx='2' fill-opacity='0.1'/%3E%3Crect x='26' y='0' width='10' height='10' rx='2' fill-opacity='0.22'/%3E%3Crect x='39' y='0' width='10' height='10' rx='2' fill-opacity='0.1'/%3E%3Crect x='52' y='0' width='10' height='10' rx='2' fill-opacity='0.22'/%3E%3Crect x='65' y='0' width='10' height='10' rx='2' fill-opacity='0.1'/%3E%3Crect x='78' y='0' width='10' height='10' rx='2' fill-opacity='0.1'/%3E%3Crect x='0' y='13' width='10' height='10' rx='2' fill-opacity='0.22'/%3E%3Crect x='13' y='13' width='10' height='10' rx='2' fill-opacity='0.1'/%3E%3Crect x='26' y='13' width='10' height='10' rx='2' fill-opacity='0.22'/%3E%3Crect x='39' y='13' width='10' height='10' rx='2' fill-opacity='0.1'/%3E%3Crect x='52' y='13' width='10' height='10' rx='2' fill-opacity='0.1'/%3E%3Crect x='65' y='13' width='10' height='10' rx='2' fill-opacity='0.22'/%3E%3Crect x='78' y='13' width='10' height='10' rx='2' fill-opacity='0.68'/%3E%3Crect x='0' y='26' width='10' height='10' rx='2' fill-opacity='0.1'/%3E%3Crect x='13' y='26' width='10' height='10' rx='2' fill-opacity='0.1'/%3E%3Crect x='26' y='26' width='10' height='10' rx='2' fill-opacity='0.22'/%3E%3Crect x='39' y='26' width='10' height='10' rx='2' fill-opacity='1'/%3E%3Crect x='52' y='26' width='10' height='10' rx='2' fill-opacity='0.22'/%3E%3Crect x='65' y='26' width='10' height='10' rx='2' fill-opacity='0.1'/%3E%3Crect x='78' y='26' width='10' height='10' rx='2' fill-opacity='1'/%3E%3Crect x='0' y='39' width='10' height='10' rx='2' fill-opacity='0.1'/%3E%3Crect x='13' y='39' width='10' height='10' rx='2' fill-opacity='0.68'/%3E%3Crect x='26' y='39' width='10' height='10' rx='2' fill-opacity='0.1'/%3E%3Crect x='39' y='39' width='10' height='10' rx='2' fill-opacity='0.1'/%3E%3Crect x='52' y='39' width='10' height='10' rx='2' fill-opacity='0.1'/%3E%3Crect x='65' y='39' width='10' height='10' rx='2' fill-opacity='0.1'/%3E%3Crect x='78' y='39' width='10' height='10' rx='2' fill-opacity='0.42'/%3E%3Crect x='0' y='52' width='10' height='10' rx='2' fill-opacity='0.1'/%3E%3Crect x='13' y='52' width='10' height='10' rx='2' fill-opacity='0.22'/%3E%3Crect x='26' y='52' width='10' height='10' rx='2' fill-opacity='0.22'/%3E%3Crect x='39' y='52' width='10' height='10' rx='2' fill-opacity='0.1'/%3E%3Crect x='52' y='52' width='10' height='10' rx='2' fill-opacity='0.22'/%3E%3Crect x='65' y='52' width='10' height='10' rx='2' fill-opacity='0.1'/%3E%3Crect x='78' y='52' width='10' height='10' rx='2' fill-opacity='0.1'/%3E%3Crect x='0' y='65' width='10' height='10' rx='2' fill-opacity='0.1'/%3E%3Crect x='13' y='65' width='10' height='10' rx='2' fill-opacity='0.42'/%3E%3Crect x='26' y='65' width='10' height='10' rx='2' fill-opacity='0.22'/%3E%3Crect x='39' y='65' width='10' height='10' rx='2' fill-opacity='0.1'/%3E%3Crect x='52' y='65' width='10' height='10' rx='2' fill-opacity='0.22'/%3E%3Crect x='65' y='65' width='10' height='10' rx='2' fill-opacity='0.22'/%3E%3Crect x='78' y='65' width='10' height='10' rx='2' fill-opacity='0.1'/%3E%3Crect x='0' y='78' width='10' height='10' rx='2' fill-opacity='0.42'/%3E%3Crect x='13' y='78' width='10' height='10' rx='2' fill-opacity='0.42'/%3E%3Crect x='26' y='78' width='10' height='10' rx='2' fill-opacity='0.1'/%3E%3Crect x='39' y='78' width='10' height='10' rx='2' fill-opacity='0.22'/%3E%3Crect x='52' y='78' width='10' height='10' rx='2' fill-opacity='0.22'/%3E%3Crect x='65' y='78' width='10' height='10' rx='2' fill-opacity='0.68'/%3E%3Crect x='78' y='78' width='10' height='10' rx='2' fill-opacity='0.42'/%3E%3C/svg%3E") repeat, linear-gradient(90deg, #000, transparent 85%), linear-gradient(transparent, #000 18%, #000 82%, transparent); mask-composite: intersect, intersect; pointer-events: none; } +.people-section .people-group::before { left: 0; } +.people-section .people-group::after { right: 0; transform: scaleX(-1); } +.people-section .students-group { margin-top: clamp(56px, 5vw, 80px); } +.people-section .people-group-heading { flex-direction: column; align-items: center; gap: 6px; padding: 0; border: 0; } +.people-section .people-group-heading::before { display: none; } +.people-section .people-group-heading h3 { margin: 0; font: 600 clamp(26px, 2.4vw, 34px)/1.15 var(--serif); letter-spacing: -.035em; } +.people-section .people-group-heading p { margin: 0; color: var(--muted); font-size: 14px; } +.people-section .people-grid { justify-content: center; gap: clamp(18px, 2.4vw, 34px); margin-top: 28px; } +.people-section .person-card { flex: 0 1 200px; padding: 0; text-align: center; transition: transform .5s var(--spring); } +.people-section .faculty-group .person-card { flex-basis: 220px; } +.people-section .person-card:hover, .people-section .person-card:focus-visible { transform: translateY(-6px); } +.people-section .person-portrait { position: relative; aspect-ratio: 1; overflow: visible; border: 0; border-radius: 50%; background: none; } +.people-section .person-portrait img, .people-section .person-initials { position: relative; z-index: 1; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; filter: none; background: var(--bg-soft); box-shadow: 0 0 0 5px var(--bg); transition: transform .6s var(--spring); } +.people-section .person-initials { display: grid; place-items: center; font: 400 clamp(36px, 4vw, 54px) var(--serif); } +.people-section .person-card:hover .person-portrait img { transform: scale(1.04); } +.people-section .person-card h4 { margin: 20px 0 3px; font: 600 20px/1.2 var(--serif); letter-spacing: -.025em; } +.people-section .person-card p { color: var(--muted); font: 500 13px/1.5 var(--sans); letter-spacing: 0; text-transform: none; } + +/* Join: the way in, as a first pull request. */ +.join-band { --join-panel: var(--bg-raised); --join-ink: var(--text); position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, .95fr); align-items: center; gap: clamp(30px, 5vw, 80px); max-width: 1480px; margin: 0 auto; padding: clamp(28px, 4.2vw, 64px); border: 1px solid var(--border); border-radius: 30px; background: color-mix(in oklch, var(--bg-raised), transparent 30%); color: var(--text); } +:root[data-theme="light"] .join-band { --join-panel: var(--bg-raised); --join-ink: var(--text); } +.join-band .section-head { flex-direction: column; align-items: flex-start; margin: 0; } +.join-band .section-head h2 { font-size: clamp(40px, 4.4vw, 68px); } +.join-band .section-head h2 em { color: var(--text); } +.pr-card { view-timeline-name: --pr; overflow: hidden; border: 1px solid var(--border); border-radius: 22px; background: var(--bg); box-shadow: 0 30px 70px oklch(.05 0 0 / .25); } +.pr-card-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: 16px 20px; border-bottom: 1px solid var(--border); } +.pr-card-head strong { font-size: 15px; font-weight: 650; } +.pr-number { color: var(--muted); font-size: 15px; } +.pr-state { position: relative; display: inline-grid; } +.pr-state > span { grid-area: 1 / 1; display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; color: #fff; font-size: 13px; font-weight: 600; } +.pr-state-open { background: #238636; } +.pr-state-merged { background: #8957e5; opacity: 0; } +.pr-timeline { position: relative; margin: 0; padding: 22px 20px 6px; list-style: none; } +.pr-timeline::before, .pr-timeline::after { content: ""; position: absolute; top: 38px; bottom: 44px; left: 35px; width: 2px; border-radius: 2px; background: var(--border); } +.pr-timeline::after { background: linear-gradient(var(--git-green), var(--git-purple)); transform-origin: top; transform: scaleY(1); } +.pr-timeline li { position: relative; z-index: 1; display: grid; grid-template-columns: 32px minmax(0, 1fr); align-items: start; gap: 14px; padding-bottom: 20px; } +.pr-badge { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--border); border-radius: 50%; background: var(--bg-raised); color: var(--muted); } +.pr-timeline [data-kind="open"] .pr-badge { color: var(--git-green); } +.pr-timeline [data-kind="review"] .pr-badge { color: var(--git-blue); } +.pr-timeline [data-kind="merge"] .pr-badge { border-color: #8957e5; background: #8957e5; color: #fff; } +.pr-timeline strong { display: block; padding-top: 5px; font-size: 15px; font-weight: 650; } +.pr-timeline li span:not(.pr-badge) { display: block; margin-top: 3px; color: var(--muted); font-size: 13.5px; line-height: 1.5; } +.join-band .join-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding: 6px 20px 22px 66px; } + +/* Footer */ +.site-footer { --cg-0: rgb(255 255 255 / .055); --cg-1: #0e4429; --cg-2: #006d32; --cg-3: #26a641; --cg-4: #39d353; --git-green: #3fb950; } +.footer-label { display: block; margin-bottom: 18px; color: var(--muted); font-size: 13px; font-weight: 600; } +.footer-top .footer-cta .footer-label { margin: 0; } +.footer-statement { justify-content: flex-end; gap: 28px; } +.footer-statement h2 { margin: 0; } +.footer-statement .footer-graph { display: grid; grid-template-rows: repeat(7, auto); grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; width: 100%; max-width: 640px; } +.footer-statement .footer-graph i { aspect-ratio: 1; border-radius: 3px; background: var(--cg-0); transition: background .5s; animation: graph-wave 7s ease-in-out infinite; animation-delay: calc(var(--week) * 110ms + var(--day) * 45ms); } +.footer-graph i[data-level="1"] { background: var(--cg-1); } +.footer-graph i[data-level="2"] { background: var(--cg-2); } +.footer-graph i[data-level="3"] { background: var(--cg-3); } +.footer-graph i[data-level="4"] { background: var(--cg-4); } +.footer-bottom { letter-spacing: .04em; } +.site-footer .footer-contact { border-bottom-color: var(--git-green); } + +/* Tech news, when there is an issue */ +.news-card { border-radius: 20px; } +.news-image { overflow: hidden; border-radius: 16px; } +.news-meta { display: inline-flex; gap: 8px; color: var(--muted); font: 500 13px var(--sans); letter-spacing: 0; text-transform: none; } +.news-week { color: var(--text); font-weight: 600; } +.news-meta b { color: var(--git-green); font-weight: 650; } + +/* Not found and error pages */ +.status-page .status-chip { color: var(--git-amber); border-color: color-mix(in srgb, var(--git-amber), transparent 55%); } +.status-page .pill-button { margin-top: 8px; } + +@media (max-width: 1080px) { + .domains .domain-layout { grid-template-columns: 1fr; } + .domains .domain-tabs { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); } + .join-band { grid-template-columns: 1fr; } +} +@media (max-width: 850px) { + .repo-card { grid-template-columns: 1fr; } + .branch-art { display: none; } + .explorer-tabs { display: flex; width: 100%; } + .explorer-tabs button { flex: 1; flex-direction: column; align-items: center; gap: 4px; padding: 10px 6px; font-size: 19px; } +} +@media (max-width: 620px) { + .section-head { gap: 16px; } + .section-head h2 { font-size: clamp(36px, 10vw, 46px); } + .section-head h3 { font-size: clamp(27px, 7.4vw, 34px); } + .section-lede { font-size: 14px; } + .diff-in::before { display: none; } + .checks-list li { grid-template-columns: 26px minmax(0, 1fr); padding: 20px 18px; } + .check-label { grid-column: 2; justify-self: start; } + .checks-head { padding: 14px 18px; } + .domains .domain-tabs { grid-template-columns: 1fr; } + .domains .domain-tabs button { min-height: 0; } + .contributor-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); } + .people-section .person-card, .people-section .faculty-group .person-card { flex: 0 1 calc((100% - 18px) / 2); } + .people-section .people-group::before, .people-section .people-group::after { display: none; } + .join-band { padding: 22px 18px; border-radius: 24px; } + .join-band .join-actions { padding: 6px 18px 20px; } + .pr-timeline { padding: 20px 18px 4px; } + .pr-timeline::before, .pr-timeline::after { left: 33px; } + .footer-graph { gap: 3px; } +} + +/* Motion. Scroll-linked where the browser supports it; everything is in its + final state otherwise, and for anyone who prefers less motion. */ +@keyframes dep-alert { 50% { stroke-width: 4; } } +@keyframes branch-flow { from { stroke-dashoffset: 400; } to { stroke-dashoffset: 0; } } +@keyframes merge-pulse { 0% { stroke-width: 0; stroke-opacity: 1; } 70%, 100% { stroke-width: 22; stroke-opacity: 0; } } +@keyframes graph-wave { 0%, 100% { opacity: .55; } 45% { opacity: 1; } } +@keyframes line-draw { to { transform: scaleY(1); } } +@keyframes diff-add { 0% { opacity: 1; transform: scaleX(0); } 45% { opacity: 1; transform: scaleX(1); } 100% { opacity: 0; transform: scaleX(1); } } +@keyframes diff-plus { 0%, 100% { opacity: 0; } 20%, 55% { opacity: 1; } } +@keyframes check-draw { from { stroke-dashoffset: 14; } to { stroke-dashoffset: 0; } } +@keyframes ring-draw { from { stroke-dashoffset: 51; } to { stroke-dashoffset: 0; } } +@keyframes check-pop { 0% { transform: scale(.4); opacity: 0; } 60% { transform: scale(1.18); opacity: 1; } 100% { transform: scale(1); } } +@keyframes draw-path { from { stroke-dashoffset: 400; } to { stroke-dashoffset: 0; } } +@keyframes badge-pop { 0% { transform: scale(.3); } 65% { transform: scale(1.2); } 100% { transform: scale(1); } } +@keyframes avatar-commit { from { transform: scale(.4) rotate(-14deg); } 70% { transform: scale(1.08) rotate(2deg); } } +@keyframes state-open { 0%, 70% { opacity: 1; transform: none; } 80%, 100% { opacity: 0; transform: translateY(-6px); } } +@keyframes state-merged { 0%, 72% { opacity: 0; transform: scale(.6); } 86% { opacity: 1; transform: scale(1.12); } 100% { opacity: 1; transform: scale(1); } } + +@supports (animation-timeline: view()) { + @media (prefers-reduced-motion: no-preference) { + .diff-in::after { animation: diff-add linear both; animation-timeline: view(); animation-range: entry 40% cover 48%; } + .diff-in::before { animation: diff-plus linear both; animation-timeline: view(); animation-range: entry 40% cover 48%; } + .checks-ring circle { animation: ring-draw linear both; animation-timeline: view(); animation-range: entry 30% cover 45%; } + .checks-list li .check-mark { animation: check-pop linear both; animation-timeline: view(); animation-range: entry 40% cover 32%; } + .checks-list li .check-mark path { animation: check-draw linear both; animation-timeline: view(); animation-range: entry 60% cover 38%; } + .branch-feature { animation: draw-path linear both; animation-timeline: view(); animation-range: entry 10% cover 45%; } + .contributor-grid li { animation: avatar-commit linear both; animation-timeline: view(); animation-range: entry 0% cover 25%; } + .pr-timeline::after { transform: scaleY(0); animation: line-draw linear both; animation-timeline: --pr; animation-range: cover 18% cover 52%; } + .pr-timeline li .pr-badge { animation: badge-pop linear both; animation-timeline: view(); animation-range: entry 70% cover 30%; } + .pr-state-open { animation: state-open linear both; animation-timeline: --pr; animation-range: cover 18% cover 58%; } + .pr-state-merged { animation: state-merged linear both; animation-timeline: --pr; animation-range: cover 18% cover 58%; } + } +} +@supports not (animation-timeline: view()) { + .pr-state-open { opacity: 0; } + .pr-state-merged { opacity: 1; } +} +@media (prefers-reduced-motion: reduce) { + .branch-flow { display: none; } + .pr-state-open { opacity: 0; } + .pr-state-merged { opacity: 1; } +} +@media (max-width: 900px) { + .people-section .people-group::before, .people-section .people-group::after { display: none; } +} diff --git a/tests/e2e/admin.spec.ts b/tests/e2e/admin.spec.ts index 193fd7e..63ea98d 100644 --- a/tests/e2e/admin.spec.ts +++ b/tests/e2e/admin.spec.ts @@ -121,7 +121,7 @@ test('a tech news link appears in the latest week on the site', async ({ page, b const site = await browser.newPage(); await site.goto('/#news'); - await expect(site.locator('#news .eyebrow')).toContainText('WEEK OF 30 DEC 2098'); + await expect(site.locator('#news .news-week')).toContainText('Week of 30 DEC 2098'); const card = site.locator('.news-card', { hasText: 'Playwright digest link' }); await expect(card).toHaveAttribute('href', 'https://example.org/story'); await expect(card).toContainText('Example Weekly'); From 29a364f78dd38f1ab4df490d9046b5884d69d116 Mon Sep 17 00:00:00 2001 From: Dhananjay <214598503+dhananjay-123@users.noreply.github.com> Date: Tue, 20 Oct 2026 22:19:49 +0530 Subject: [PATCH 02/18] fix: centre the contribution ring on people's portraits --- src/styles/open-source.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/styles/open-source.css b/src/styles/open-source.css index 729a932..2e55cfc 100644 --- a/src/styles/open-source.css +++ b/src/styles/open-source.css @@ -221,7 +221,7 @@ .instagram-card:hover .instagram-image img, .news-card:hover .news-image img, .video-frame button:hover img, .video-frame button:focus-visible img { filter: none; } .orbit { position: absolute; inset: -11px; container-type: inline-size; border-radius: 50%; pointer-events: none; } .orbit i { --s: 4px; position: absolute; top: 0; left: calc(50% - var(--s) / 2); width: var(--s); height: var(--s); border-radius: 1px; background: var(--cg-0); transform-origin: 50% 50cqw; transform: rotate(calc(var(--k) * 360deg / var(--count))); transition: background .25s ease; transition-delay: 0s; } -.people-section .orbit { inset: -18px; } +.people-section .person-portrait > .orbit { display: block; inset: -18px; width: auto; height: auto; background: none; } .people-section .orbit i { --s: 7px; border-radius: 2px; } :is(.contributor-grid a, .people-section .person-card):is(:hover, :focus-visible) .orbit i { transition-delay: calc(var(--k) * 22ms); } :is(.contributor-grid a, .people-section .person-card):is(:hover, :focus-visible) .orbit i[data-level="1"] { background: var(--cg-1); } From 1833372e1fd5b2c90b66f862748e938b05f624c2 Mon Sep 17 00:00:00 2001 From: Dhananjay <214598503+dhananjay-123@users.noreply.github.com> Date: Tue, 20 Oct 2026 22:23:17 +0530 Subject: [PATCH 03/18] feat: glow the people fields on scroll and rename the contributors section The contributors heading now says what the grid shows and how to get on it. The migration only replaces the original default wording, so copy edited in the dashboard is kept. --- .../admin/(dashboard)/github/contributors-form.tsx | 2 +- src/styles/open-source.css | 2 ++ .../migrations/20261022000000_contributors_copy.sql | 12 ++++++++++++ 3 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 supabase/migrations/20261022000000_contributors_copy.sql diff --git a/src/app/admin/(dashboard)/github/contributors-form.tsx b/src/app/admin/(dashboard)/github/contributors-form.tsx index 9db01c5..474842f 100644 --- a/src/app/admin/(dashboard)/github/contributors-form.tsx +++ b/src/app/admin/(dashboard)/github/contributors-form.tsx @@ -13,7 +13,7 @@ export function ContributorsForm({ settings }: { settings: Tables<'github_settin
      - +