{featured?.headline ?? DEFAULT_HEADLINE}
{featured?.headlineEmphasis ?? DEFAULT_EMPHASIS}
{featured?.description && {featured.description}
} - {tags.length > 0 &&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.
{principle.detail}
{principle.detail}
{featured.description}
} - {tags.length > 0 &&Pick a path. Your first contribution can be small.
{current.detail}
-{current.detail}
+Learn openly. Make something useful.
Leave a door open for the next person.
A place to learn openly and build together at ABV-IIITM Gwalior.
-{item.summary}
-{item.summary}
+{summary}
{details &&{details}
There is nothing open right now. Follow the society for the next event, workshop, or call for writers.
Live from GitHub, refreshed every hour.
{repository.description}
} - {repository.language && {repository.language}} - {repository.stats &&{section.intro}
}The mentors supporting the society.
Mentors who guide the society.
The students making ideas happen.
The students who plan, build and run things.
There is no perfect first step. Pick something small and build alongside the community.
-{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 ( +{lede}
} +What the society is reading and talking about. Picked by members, refreshed every Tuesday.
-{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 ({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{lede}
}