feat(site): bring services/site up to date with the latest site work (#62219)

This commit is contained in:
David Hill
2026-11-05 18:50:20 -06:00
committed by GitHub
Unverified
parent 42fceba1d1
commit fe1e3e35fe
87 changed files with 1580 additions and 792 deletions
+1
View File
@@ -93,6 +93,7 @@ To add a rule, add one line under its group. Mark a rule that is still being dec
- Make tap targets at least 44px on coarse pointers (`tap-targets.css`).
- Close menus on Escape, an outside click and a choice, and return focus to the trigger. → [Language picker](/dev/components#language-picker)
- Test platform UI with the device preview's `_device` parameter, not a narrow window. → [ProductAction](/dev/components#product-action)
- On phones the 404 arcade centres the cabinet and has no Insert coin or Back button: a tap on the coin inserts it, and the site's own GitHub mark, menu button and sheet (`phone-menu.tsx`) sit in the top bar beside the logo.
## Motion
@@ -13,7 +13,8 @@ const HEIGHT = 7 + TOP + BOTTOM
// Phase budgets in milliseconds; each phase's moves share its budget in proportion to length.
const PHASES = { metrics: 420, grids: 620, outlines: 820, fill: 760, shade: 380 }
const SETTLE = 220
// After the last move the plot settles: the pen, readout and counter fade out and the guides dim.
const SETTLE = 360
// The shade: the ink at the page's paper shade opacity.
const SHADE_ALPHA = 0.22
@@ -170,7 +171,9 @@ export function CoverTitle() {
let md = 16
let dpr = 1
let palette: Palette = { ink: "#141414", blue: "#3b5cf6", faint: "#bbb" }
let started: number | undefined
let elapsed = reduced ? END : 0
let last: number | undefined
let played = false
let frame = 0
const layout = () => {
@@ -226,14 +229,14 @@ export function CoverTitle() {
for (const [col, row] of buildOrder(WORD[letter] as Letter)) context.fillRect(X(letter * 5 + col), Y(row), md, md)
}
const ticks = (letter: number) => {
const ticks = (letter: number, label: boolean) => {
const y = Y(7) + Math.round(md * 0.55)
context.fillRect(X(letter * 5), y, X(letter * 5 + 4) - X(letter * 5), 1)
for (let col = 0; col <= 4; col++) {
const x = Math.min(X(letter * 5 + col), X(letter * 5 + 4) - 1)
context.fillRect(x, y - Math.round(md * 0.18), 1, Math.round(md * 0.36) + 1)
}
context.fillText("4 × 120u", X(letter * 5), y + Math.round(md * 0.25) + 10 * dpr)
if (label) context.fillText("4 × 120u", X(letter * 5), y + Math.round(md * 0.25) + 10 * dpr)
}
const registration = () => {
@@ -255,13 +258,17 @@ export function CoverTitle() {
}
const draw = (t: number) => {
const done = t >= END
// 0 while plotting, easing to 1 over the settle (an ease-out quint), so nothing snaps at the end.
const settle = 1 - (1 - Math.min(1, Math.max(0, (t - program.end) / SETTLE))) ** 5
const fade = (to: number) => 1 + (to - 1) * settle
context.clearRect(0, 0, canvas.width, canvas.height)
context.font = `${10 * dpr}px "OpenTUI Mono", "OpenTUI Mono Menlo", ui-monospace, monospace`
context.textBaseline = "alphabetic"
// On a narrow canvas the module label is wider than a letter, so only the first letter carries it.
const everyLabel = context.measureText("4 × 120u").width + 4 * dpr <= 5 * md
// Registration marks: always there, faint once the plot is done.
context.globalAlpha = done ? 0.5 : 1
context.globalAlpha = fade(0.5)
context.fillStyle = palette.blue
registration()
context.globalAlpha = 1
@@ -282,18 +289,18 @@ export function CoverTitle() {
]
if (move.kind === "metric" || move.kind === "grid" || move.kind === "outline") {
context.fillStyle = move.kind === "outline" ? palette.blue : palette.faint
context.globalAlpha = done && move.kind !== "outline" ? 0.55 : 1
// Outlines vanish under the ink once a letter is filled; the grid and metrics stay faint.
if (!(done && move.kind === "outline")) hairline(move.from, move.to, progress)
// Outlines fade under the ink once the plot is done; the grid and metrics stay faint.
context.globalAlpha = fade(move.kind === "outline" ? 0 : 0.55)
hairline(move.from, move.to, progress)
context.globalAlpha = 1
segments += progress === 1 ? 1 : 0
travelled += length(move) * progress
pen = { at, down: true }
}
if (move.kind === "travel") {
if (!done && move.phase === phase) {
if (move.phase === phase && settle < 1) {
context.fillStyle = palette.blue
context.globalAlpha = 0.45
context.globalAlpha = 0.45 * fade(0)
hairline(move.from, move.to, progress, true)
context.globalAlpha = 1
}
@@ -308,8 +315,8 @@ export function CoverTitle() {
if (progress === 1) {
filled.add(move.letter)
context.fillStyle = palette.blue
context.globalAlpha = done ? 0.6 : 1
ticks(move.letter)
context.globalAlpha = fade(0.6)
ticks(move.letter, everyLabel || move.letter === 0)
context.globalAlpha = 1
} else if (shown > 0) {
const [col, row] = order[shown - 1]
@@ -334,7 +341,8 @@ export function CoverTitle() {
context.fillStyle = palette.ink
for (const letter of filled) fillLetter(letter)
if (done || !pen) return
if (settle === 1 || !pen) return
context.globalAlpha = fade(0)
// The pen: a filled square when down, an open one when up; its position in font units beside it.
const px = X(pen.at[0])
const py = Y(pen.at[1])
@@ -361,32 +369,50 @@ export function CoverTitle() {
canvas.height - Math.round(md * 0.35),
)
context.textAlign = "left"
context.globalAlpha = 1
}
// The plot's own clock: it advances only while frames run, so pausing off screen resumes in place.
const tick = (now: number) => {
started ??= now
const t = now - started
draw(t)
frame = t < END ? requestAnimationFrame(tick) : 0
// A long gap (a background tab) resumes where it left off instead of skipping ahead.
elapsed += last === undefined ? 0 : Math.min(now - last, 100)
last = now
draw(elapsed)
frame = elapsed < END ? requestAnimationFrame(tick) : 0
}
const resume = () => {
if (reduced || frame || elapsed >= END) return
last = undefined
frame = requestAnimationFrame(tick)
}
const play = () => {
if (reduced) return
cancelAnimationFrame(frame)
started = undefined
frame = requestAnimationFrame(tick)
frame = 0
played = true
elapsed = 0
resume()
}
layout()
draw(reduced ? END : 0)
draw(elapsed)
// The readout and labels are canvas text: start once the mono font is in, so they don't swap faces mid-plot.
const fontReady = document.fonts.load(`${10 * dpr}px "OpenTUI Mono"`).catch(() => undefined)
// Starts once most of the title is in view, and pauses whenever it leaves the screen.
const observer = new IntersectionObserver(
([entry]) => {
if (!entry.isIntersecting) return
observer.disconnect()
if (reduced) return draw(END)
play()
if (!entry.isIntersecting) {
cancelAnimationFrame(frame)
frame = 0
return
}
if (played) return resume()
if (entry.intersectionRatio < 0.6) return
played = true
void fontReady.then(play)
},
{ threshold: 0.6 },
{ threshold: [0, 0.6] },
)
observer.observe(root)
root.addEventListener("click", play)
@@ -396,13 +422,13 @@ export function CoverTitle() {
if (root.clientWidth === width) return
width = root.clientWidth
layout()
if (!frame) draw(END)
if (!frame) draw(elapsed)
})
resize.observe(root)
const repaint = () => {
layout()
if (!frame) draw(END)
if (!frame) draw(elapsed)
}
const site = root.closest("[data-site]")
const themeObserver = new MutationObserver(repaint)
@@ -493,6 +493,17 @@ export function Typewriter() {
})
})
const claim = () => (
<>
A TYPEFACE WITH{" "}
<span data-slot="count">
{fontContent.combinations.base}
<sup>{fontContent.combinations.exponent}</sup>
</span>{" "}
POSSIBLE COMBINATIONS
</>
)
return (
<section data-component="font-hero" aria-label="Logo typewriter">
<h1 data-slot="sr-only">{fontContent.title}</h1>
@@ -514,16 +525,11 @@ export function Typewriter() {
</textarea>
{/* The server renders the starting wordmark, so the hero is never empty before hydration. */}
<div ref={output} class="letter-output" aria-hidden="true" innerHTML={initialLetters} />
{/* Phones show the claim under the wordmark instead of in the bar; CSS shows one of the two. */}
<p data-slot="phone-copy">{claim()}</p>
</div>
<div data-slot="top-bar">
<p data-slot="top-copy">
A TYPEFACE WITH{" "}
<span data-slot="count">
{fontContent.combinations.base}
<sup>{fontContent.combinations.exponent}</sup>
</span>{" "}
POSSIBLE COMBINATIONS
</p>
<p data-slot="top-copy">{claim()}</p>
<div data-slot="tools" role="group" aria-label="Canvas controls">
<div ref={gifControl} class="gif-control" aria-hidden="true" inert>
<button
@@ -657,6 +657,11 @@
}
}
/* A phone shows the logo and ARCADE only: its message follows, not the game menu. */
&[data-phone] [data-slot="start"] .arcade-press {
display: none;
}
[data-slot="menu"] {
position: absolute;
inset: 0;
@@ -26,7 +26,7 @@ import {
type Point,
type Rect,
} from "./geometry"
import { ArcadeChrome } from "./chrome"
import { ArcadeChrome, arcadeMenu } from "./chrome"
import type { CoinLayer } from "./coin3d"
import { dropOutcome, escapeAction, powerDownDuration, type ArcadeMoment } from "./flow"
import { sendKey } from "./games"
@@ -89,7 +89,7 @@ const roomClip = percent(roomOutline)
const outlinePath = (points: number[][]) => `M${points.map(([x, y]) => `${x.toFixed(3)} ${y.toFixed(3)}`).join("L")}Z`
const roomPath = outlinePath(roomOutline)
const platePath = outlinePath(plateOutline)
// Before hydration the room shot covers the stage (object-fit: cover) with an empty painted glass:
// Before hydration the room shot covers the stage (layers.css; portrait screens centre the cabinet) with an empty painted glass:
// this runs as the page is parsed and pins the server-rendered screen ("404 / INSERT COIN") onto it
// with the same mapping the live page uses, so the first paint already shows the screen, in the
// same place and size as once the page is live (no empty flash, no jump).
@@ -97,11 +97,12 @@ const firstPaintScript = `(() => {
const screen = document.currentScript.previousElementSibling
const stage = screen && screen.closest('[data-slot="stage"]')
if (!stage) return
const scene = ${JSON.stringify(scene)}
const quad = ${JSON.stringify(sceneGlass.map((point) => [point.x, point.y]))}
const width = stage.clientWidth, height = stage.clientHeight
const scale = Math.max(width / scene.w, height / scene.h)
const cx = scene.x + scene.w / 2, cy = scene.y + scene.h / 2
const phone = matchMedia("(hover: none) and (pointer: coarse)").matches && Math.min(innerWidth, innerHeight) < 600
const frame = height > width * 1.1 ? ${JSON.stringify(framing.sceneTall)} : phone ? ${JSON.stringify(framing.sceneCentred)} : ${JSON.stringify(scene)}
const scale = Math.max(width / frame.w, height / frame.h)
const cx = frame.x + frame.w / 2, cy = frame.y + frame.h / 2
const [p0, p1, p2, p3] = quad.map(([x, y]) => [(x - cx) * scale + width / 2, (y - cy) * scale + height / 2])
Object.assign(screen.style, { display: "block", position: "absolute", left: "0", top: "0", zIndex: "5", transformOrigin: "0 0", clipPath: ${JSON.stringify(roomClip)} })
const w = screen.offsetWidth, h = screen.offsetHeight
@@ -204,10 +205,18 @@ export function Arcade404(props: { mode?: "image" | "hybrid" | "layers" }) {
let last = 0
const timers: ReturnType<typeof setTimeout>[] = []
const later = (ms: number, run: () => void) => timers.push(setTimeout(run, ms))
// Short tweens of the coin's pose, advanced by the camera loop.
let tweens: { from: Coin; to: Partial<Coin>; start: number; duration: number; ease: (t: number) => number }[] = []
// Short tweens of the coin's pose, advanced by the camera loop. With `via` the coin travels on a curve through it.
let tweens: {
from: Coin
to: Partial<Coin>
start: number
duration: number
ease: (t: number) => number
via?: Point
}[] = []
// Framings for the current viewport. Portrait phones frame the cabinet. Once the screen faces the
// Framings for the current viewport. Portrait screens frame the cabinet, and phones centre it in
// landscape too (geometry.ts › sceneTall, sceneCentred). Once the screen faces the
// viewer it fills the view below the tools (select), the framing games play in too; on a touch
// screen the game moves to the top half, over the control panel.
const views = () => {
@@ -218,7 +227,11 @@ export function Arcade404(props: { mode?: "image" | "hybrid" | "layers" }) {
h: viewport.height - 96,
})
return {
floor: portrait() ? fit(framing.sceneTall, viewport, "cover") : fit(framing.sceneWide, viewport, "cover"),
floor: fit(
portrait() ? framing.sceneTall : phone() ? framing.sceneCentred : framing.sceneWide,
viewport,
"cover",
),
door: hybrid ? angledDoor() : fit(zoomed(framing.door, siteSettings.arcadeDoorZoom), viewport),
select,
play:
@@ -363,21 +376,29 @@ export function Arcade404(props: { mode?: "image" | "hybrid" | "layers" }) {
coin.lift > 1 ? 16 : 0,
)
coinElement.style.setProperty("--size", `${size}px`)
coinElement.style.transform = `translate3d(${at.x}px, ${at.y}px, 0)`
// The lean goes after the move: the `rotate` property would turn the move itself about the stage's corner.
coinElement.style.transform = `translate3d(${at.x}px, ${at.y}px, 0) rotate(${coin.roll}deg)`
coinElement.style.setProperty("--tilt", `${coin.tiltX}deg`)
coinElement.style.setProperty("--turn", `${coin.turnY}deg`)
coinElement.style.setProperty("--spin", `${coin.spin}deg`)
coinElement.style.setProperty("--dim", `${coin.dim}`)
coinElement.style.setProperty("--perspective", `${coinValues.held.perspective}`)
coinElement.style.rotate = `${coin.roll}deg`
coinElement.style.zIndex = coin.layer === "behind" ? "3" : "6"
coinElement.style.visibility = coin.visible ? "visible" : "hidden"
// Sliding in, only the part still outside the slit shows: everything on the room side of the
// slit's line (leaned like the painted slit), so the token vanishes into it, not over the door.
const clip = hybrid && sinking ? slitClip(view) : undefined
const box = Math.max(size, 44)
// In the button's own (leaned) frame: turned back by the lean about its centre.
const back = (-coin.roll * Math.PI) / 180
coinElement.style.clipPath = clip
? `polygon(${clip.map((point) => `${point.x - at.x + box / 2}px ${point.y - at.y + box / 2}px`).join(", ")})`
? `polygon(${clip
.map((point) => {
const x = point.x - at.x
const y = point.y - at.y
return `${x * Math.cos(back) - y * Math.sin(back) + box / 2}px ${x * Math.sin(back) + y * Math.cos(back) + box / 2}px`
})
.join(", ")})`
: ""
if (!coinLayer || !coinCanvas) return
coinCanvas.style.zIndex = coin.layer === "behind" ? "3" : "6"
@@ -463,8 +484,15 @@ export function Arcade404(props: { mode?: "image" | "hybrid" | "layers" }) {
const target = tween.to[name]
if (target !== undefined) coin[name] = mix(tween.from[name], target, e)
}
if (tween.to.at)
coin.at = { x: mix(tween.from.at.x, tween.to.at.x, e), y: mix(tween.from.at.y, tween.to.at.y, e) }
const to = tween.to.at
if (to) {
// A quadratic curve through `via` (a straight line without one).
const via = tween.via ?? { x: mix(tween.from.at.x, to.x, 0.5), y: mix(tween.from.at.y, to.y, 0.5) }
coin.at = {
x: mix(mix(tween.from.at.x, via.x, e), mix(via.x, to.x, e), e),
y: mix(mix(tween.from.at.y, via.y, e), mix(via.y, to.y, e), e),
}
}
return t < 1
})
if (phase() === "drag" && pointer) {
@@ -493,13 +521,13 @@ export function Arcade404(props: { mode?: "image" | "hybrid" | "layers" }) {
if (!frameRequest) frameRequest = requestAnimationFrame(tick)
}
const tween = (to: Partial<Coin>, duration: number, ease = (t: number) => 1 - Math.pow(1 - t, 3)) => {
const tween = (to: Partial<Coin>, duration: number, ease = (t: number) => 1 - Math.pow(1 - t, 3), via?: Point) => {
if (reduced()) {
Object.assign(coin, to)
render()
return
}
tweens.push({ from: { ...coin, at: { ...coin.at } }, to, start: performance.now(), duration, ease })
tweens.push({ from: { ...coin, at: { ...coin.at } }, to, start: performance.now(), duration, ease, via })
wake()
}
@@ -541,12 +569,13 @@ export function Arcade404(props: { mode?: "image" | "hybrid" | "layers" }) {
const pickUp = (event: PointerEvent) => {
if (phase() !== "floor" || coinPreview()) return
if (reduced()) return
// Recorded with reduced motion too: there a tap still puts the token in, only the drag is off.
if (phone() && !press) {
press = { id: event.pointerId, at: clientPoint(event) }
return
}
press = undefined
if (reduced()) return
event.preventDefault()
unlockAudio()
loadFront()
@@ -591,7 +620,10 @@ export function Arcade404(props: { mode?: "image" | "hybrid" | "layers" }) {
}
const drop = (event: PointerEvent) => {
// On a phone a tap on the token (it never lifted) puts it in, like a drop on the cabinet.
const tapped = !!press && phase() === "floor"
press = undefined
if (tapped && phone()) return phoneInsert()
if (phase() !== "drag") return
pointer = clientPoint(event)
const view = camera.view
@@ -600,7 +632,7 @@ export function Arcade404(props: { mode?: "image" | "hybrid" | "layers" }) {
if (slotGlow) slotGlow.style.opacity = ""
// On a phone anywhere on the cabinet takes the token: the slot is a few pixels across there.
const over = phone() ? inside(cabinetZone, coin.at) : camera.target.scale >= views().door.scale * 0.9
if (dropOutcome(over) === "insert") return insert()
if (dropOutcome(over) === "insert") return phone() ? phoneInsert() : insert()
// Let go away from the machine: it settles back where it lay.
setPhase("floor")
tween({ at: coinHome, lift: 1, tiltX: 74, spin: -18, turnY: 0, roll: 0 }, 450, bounce)
@@ -685,30 +717,89 @@ export function Arcade404(props: { mode?: "image" | "hybrid" | "layers" }) {
})
}
/**
* A phone's token goes in on the room shot, from wherever it is (on the floor after a tap, under
* the finger after a drag), in about 860 ms: it lifts off the floor, travels to the painted slit on
* a slight arc while it shrinks to its true size there, turns edge-on over the last stretch, then
* slides into the slit (clipped by it) on a short ease-in as the slot lamp answers and the screen
* flickers. Reduced motion fades the token out and goes straight to the screen.
*/
const phoneInsert = () => {
setPhase("inserting")
unlockAudio()
if (reduced()) {
coinElement?.animate([{ opacity: 1 }, { opacity: 0 }], { duration: 150, easing: "ease" })
later(150, () => {
coin.visible = false
render()
credit()
})
return
}
const timing = coinValues.slot
const lean = (timing.lean * Math.PI) / 180
const along = (distance: number) => ({
x: slot.x + Math.cos(lean) * distance,
y: slot.y + Math.sin(lean) * distance,
})
const depth = tokenSize * 0.55
// Lined up just outside the slit, then all the way through it.
const mouth = along(depth * 0.3)
const seat = 1 / phoneCoin
// From the floor it first rises off it; from the finger it is already up.
const rise = coin.lift > 1.1 ? 0 : 120
if (rise) tween({ lift: 1.18, tiltX: 40 }, rise)
later(rise, () => {
const flight = 480
const from = coin.at
// The arc bows up by a fifth of the trip, at least 24 screen px.
const bow = Math.max(Math.hypot(mouth.x - from.x, mouth.y - from.y) * 0.2, 24 / camera.view.scale)
const via = { x: (from.x + mouth.x) / 2, y: Math.min(from.y, mouth.y) - bow }
const inOut = (t: number) => (t < 0.5 ? 4 * t * t * t : 1 - Math.pow(-2 * t + 2, 3) / 2)
tween({ at: mouth, lift: seat, tiltX: timing.tilt, spin: timing.spin }, flight, inOut, via)
// Edge-on over the last 40%, as if turned to fit the slit.
later(flight * 0.6, () => tween({ turnY: timing.turn, roll: timing.lean }, flight * 0.4, inOut))
later(flight, () => {
const slide = 260
play("coin-insert")
sinking = true
slotGlow?.animate([{ opacity: 0 }, { opacity: 1, offset: 0.35 }, { opacity: 0 }], {
duration: slide + 400,
easing: "ease-out",
})
screenElement?.animate([{ opacity: 1 }, { opacity: 0.72, offset: 0.4 }, { opacity: 1 }], {
duration: 220,
delay: slide - 40,
easing: "ease-out",
})
tween({ at: along(-depth), lift: seat * 0.94, dim: 0.5 }, slide, (t) => t * t)
later(slide, () => {
coin.visible = false
sinking = false
navigator.vibrate?.([14, 50, 22])
credit()
})
})
})
}
// ——— After the credit ———
// The credit wakes the machine: the stage fades to black and comes back up on the screen, straight
// on in the select framing, reading "404" (the coin is in). The 404 tears and the cabinet boots
// (it cannot be skipped), then the start screen hands over to the game menu. A phone comes back up
// on the painted screen, powering on with its message.
// close on the painted screen and runs the same boot and logo reveal, then shows its message
// (booted); with reduced motion it goes straight to the still logo.
const credit = () => {
play("power-up", 0.25)
setAnnounce(i18n.t("site.arcade.credit"))
setPhase("climb")
const shown = fadeThrough(() => {
if (phone()) {
camera.jump(phoneScreen())
setScreenState("mobile")
setPhase("select")
play("start")
const copy = mobileCopy[siteSettings.arcadeMobileCopy]
setAnnounce(`${copy.title} ${copy.lines.join(". ")}.`)
return
}
if (phone()) return camera.jump(phoneScreen())
facing = true
camera.jump(views().select)
})
if (phone()) return
if (phone() && reduced()) return later(shown, booted)
if (reduced()) return later(shown, () => setScreenState("boot"))
later(shown + coinValues.fade.still, () => {
setScreenState("glitch")
@@ -721,6 +812,8 @@ export function Arcade404(props: { mode?: "image" | "hybrid" | "layers" }) {
setScreenState("start")
setPhase("select")
play("start")
// A phone's start screen is only the logo: the message follows on the desktop's start delay.
if (phone()) return later(reduced() ? 1500 : siteSettings.arcadeStartDelay || 3200, startMenu)
setAnnounce(i18n.t("site.arcade.pressStart"))
// The start screen waits for a press, and moves on by itself after a few seconds.
if (siteSettings.arcadeStartDelay > 0)
@@ -729,6 +822,11 @@ export function Arcade404(props: { mode?: "image" | "hybrid" | "layers" }) {
const startMenu = () => {
if (screenState() !== "start") return
if (phone()) {
setScreenState("mobile")
const copy = mobileCopy[siteSettings.arcadeMobileCopy]
return setAnnounce(`${copy.title} ${copy.lines.join(". ")}.`)
}
setScreenState("select")
setAnnounce(i18n.t("site.arcade.selectGame"))
}
@@ -857,6 +955,18 @@ export function Arcade404(props: { mode?: "image" | "hybrid" | "layers" }) {
),
)
// Under the open menu sheet the room goes quiet; a game keeps its ambience ducked after it.
createEffect(
on(
arcadeMenu,
(open) => {
duckAmbience(open || phase() === "play")
press = undefined
},
{ defer: true },
),
)
// Zoom settings apply at once to where the camera is.
createEffect(
on(
@@ -915,6 +1025,8 @@ export function Arcade404(props: { mode?: "image" | "hybrid" | "layers" }) {
loadCoin()
})
const keys = (event: KeyboardEvent) => {
// The menu sheet (chrome.tsx) has the keys while it is open: its Escape closes it.
if (arcadeMenu()) return
if (event.key === "Escape" && !event.defaultPrevented) {
const action = escapeAction(phase())
if (action) event.preventDefault()
@@ -985,7 +1097,14 @@ export function Arcade404(props: { mode?: "image" | "hybrid" | "layers" }) {
"--glitch-duration": `${siteSettings.arcadeGlitch}ms`,
}}
>
<div ref={stage} data-slot="stage" onPointerMove={dragMove} onPointerUp={drop} onPointerCancel={drop}>
<div
ref={stage}
data-slot="stage"
inert={arcadeMenu()}
onPointerMove={dragMove}
onPointerUp={drop}
onPointerCancel={drop}
>
<Show
when={props.mode === "layers"}
fallback={
@@ -1088,8 +1207,13 @@ export function Arcade404(props: { mode?: "image" | "hybrid" | "layers" }) {
ref={coinElement}
type="button"
data-slot="coin"
aria-label={i18n.t("site.arcade.token")}
// A phone has no Insert coin button: the token is that button.
aria-label={phone() ? i18n.t("site.arcade.insertCoin") : i18n.t("site.arcade.token")}
onPointerDown={pickUp}
// Screen readers activate it with a click of their own (no pointer press, detail 0).
onClick={(event) => {
if (phone() && event.detail === 0 && phase() === "floor") phoneInsert()
}}
onKeyDown={(event) => {
if ((event.key === "Enter" || event.key === " ") && phase() === "floor") {
event.preventDefault()
@@ -1115,8 +1239,9 @@ export function Arcade404(props: { mode?: "image" | "hybrid" | "layers" }) {
<div ref={fade} data-slot="fade" aria-hidden="true" />
</div>
<div data-slot="tools">
<Show when={(reduced() || touch()) && phase() === "floor"}>
<div data-slot="tools" inert={arcadeMenu()}>
{/* Phones tap the token itself, and leave the powered-up machine by the logo or the menu. */}
<Show when={(reduced() || touch()) && !phone() && phase() === "floor"}>
<button type="button" data-slot="insert" onClick={keyboardInsert}>
{i18n.t("site.arcade.insertCoin")}
</button>
@@ -1126,7 +1251,7 @@ export function Arcade404(props: { mode?: "image" | "hybrid" | "layers" }) {
{i18n.t("site.arcade.exit")} <kbd>Esc</kbd>
</button>
</Show>
<Show when={touch() && escapeAction(phase()) === "power-down"}>
<Show when={touch() && !phone() && escapeAction(phase()) === "power-down"}>
<button type="button" data-slot="power-down" onClick={powerDown}>
{i18n.t("site.arcade.back")} <kbd>Esc</kbd>
</button>
@@ -1169,21 +1294,16 @@ export function Arcade404(props: { mode?: "image" | "hybrid" | "layers" }) {
</div>
)
// Keyboard, reduced motion and the touch "Insert coin" button: the camera flies the coin in.
// Keyboard, reduced motion and the touch "Insert coin" button: the camera flies the coin in. A
// phone stays on the room shot, where the token goes in as it does from a tap.
function keyboardInsert() {
if (phone()) return phoneInsert()
unlockAudio()
loadFront()
loadCoin()
if (reduced()) return insert()
setPhase("inserting")
coin.layer = "front"
// A phone stays on the room shot: the token flies straight to the slot.
if (phone()) {
tween({ lift: 1.3, tiltX: 10, spin: 0 }, 300)
later(300, () => tween({ at: slot, lift: 1, turnY: 60 }, 600))
later(950, insert)
return
}
tween({ lift: 1.6, tiltX: 10, spin: 0 }, 300)
go(views().door, 2.6)
later(900, () => tween({ at: slot, lift: 1, turnY: 60 }, 500))
@@ -13,6 +13,8 @@
--text: light-dark(hsl(0, 0%, 32%), hsl(0, 0%, 72%));
--text-weak: light-dark(hsl(0, 0%, 40%), hsl(0, 0%, 56%));
--text-weaker: light-dark(hsl(0, 0%, 72%), hsl(0, 0%, 32%));
--text-muted: light-dark(hsl(0, 0%, 45%), hsl(0, 0%, 49%));
--fs-large: 18px;
--border: light-dark(hsl(0, 0%, 88%), hsl(0, 0%, 18%));
--link-dark: #4f8bff;
--link: light-dark(#3b5cf6, var(--link-dark));
@@ -42,9 +44,11 @@
--bracket-bearing: calc(var(--mono-size) * 0.154);
/* Nav numbers "1": the ink of "[1]", which the logo's box spans. */
--bracket-ink: calc(var(--mono-size) * 1.492);
/* Settings › Logo size 20×25 (the default): the mark is 20×25, its row starts at --edge, and the
/* Settings › Logo size 20×25 (the default): the mark is 20×25, centred in the 4:5 box that spans
"[1]"'s ink as on the site (site.css › --logo-inset), so it sits at (25, 25) on every page; the
nav follows 8px further below it than the row sits below the top. */
--top: var(--edge);
--logo-inset: round(calc((var(--bracket-ink) - 20px) / 2), 1px);
--top: calc(var(--edge) + var(--logo-inset));
--logo-height: 25px;
--logo-gap: calc(var(--edge) + 8px);
/* Where the logo mark and the nav's ink start: the sound switch sits this far from the left and
@@ -55,6 +59,8 @@
@media (max-width: 60rem) {
--arcade-inset: calc(var(--edge) + 2px);
/* The site's mobile type scale (site.css), for the menu sheet. */
--fs-large: 19px;
}
[data-slot="title"] {
@@ -136,7 +142,7 @@
display: block;
width: 20px;
height: 25px;
margin-inline-start: round(up, var(--bracket-bearing), 1px / 64);
margin-inline-start: calc(round(up, var(--bracket-bearing), 1px / 64) + var(--logo-inset));
}
path[data-slot="inner"] {
@@ -153,7 +159,7 @@
}
}
nav {
[data-slot="sidebar"] nav {
font-size: var(--mono-size);
line-height: 20px;
@@ -233,9 +239,106 @@
margin: 3px 2px 2px;
}
nav {
[data-slot="sidebar"] nav {
display: none;
}
/* Over the phone bar, which takes the page colour while its menu is open. */
[data-slot="sidebar"] {
z-index: 13;
}
}
}
/* Small screens: the site's top-bar GitHub mark and menu button (github-link.css, phone-menu.css) in
the 56px bar the logo is centred in, at the site's sizes and spacing, over the scene. The menu
sheet covers the scene below the bar, and the bar takes the page colour with it (at once on open,
with the sheet's 120ms fade on close), as on the site. `html` and the doubled scope outrank
site.css's own [data-site] rules once the Settings panel loads it. */
html [data-component="arcade-chrome"] [data-site][data-slot="phone-bar"] {
display: none;
}
@media (max-width: 60rem) {
html [data-component="arcade-chrome"] [data-site][data-slot="phone-bar"] {
position: fixed;
top: 0;
inset-inline: 0;
z-index: 12;
display: flex;
align-items: center;
justify-content: flex-end;
height: calc(var(--topbar-height) + env(safe-area-inset-top, 0px));
min-height: 0;
padding: env(safe-area-inset-top, 0px) calc(var(--edge) + env(safe-area-inset-right, 0px)) 0
calc(var(--edge) + env(safe-area-inset-left, 0px));
background: none;
pointer-events: none;
&::before {
content: "";
position: absolute;
inset: 0;
background: var(--bg);
opacity: 0;
transition: opacity 120ms var(--ease-out);
}
&:has([data-component="menu-toggle"][aria-expanded="true"])::before {
opacity: 1;
transition: none;
}
> :is([data-component="github-link"], [data-component="menu-toggle"]),
[data-component="site-menu-sheet"][data-open] {
pointer-events: auto;
}
[data-component="github-link"] {
margin-inline-end: 0.5rem;
&:focus-visible {
outline: 2px solid var(--link);
outline-offset: -2px;
}
}
[data-component="menu-toggle"] {
padding: 0;
font: inherit;
color: inherit;
background: none;
border: 0;
cursor: pointer;
&:focus-visible {
outline: 2px solid var(--link);
outline-offset: -2px;
}
}
a {
text-decoration: none;
}
ul {
margin: 0;
padding: 0;
list-style: none;
}
/* The site's touch targets (tap-targets.css): a 44px GitHub link, and the same press. */
@media (pointer: coarse) {
--github-size: 2.75rem;
> :is([data-component="github-link"], [data-component="menu-toggle"]) {
transition: transform 160ms var(--ease-out);
&:active {
transform: scale(0.94);
}
}
}
}
}
@@ -18,7 +18,10 @@ import { useViewportCover } from "~/lib/viewport"
import { LiveMeta } from "~/component/head-meta"
import { siteLinks } from "../links"
import { navCustomItems, navSavedLabel, navSequence } from "../nav-order"
import { GitHubLink } from "../github-link"
import { ExternalArrow, NewTab } from "../icons"
import { LogoIcon } from "../marks"
import { MenuSheet, MenuToggle } from "../phone-menu"
import { monoFontLatin } from "../mono-fonts"
import { SiteSearch } from "../search"
import { loadSiteSettings, siteSettings } from "../settings"
@@ -33,6 +36,9 @@ const SettingsPanel = import.meta.env.DEV ? lazy(() => import("./settings")) : u
// (and with it this overlay).
const [settings, setSettings] = createSignal(false)
let settingsLoaded = false
// Whether the small-screen menu sheet is open: the scene (arcade.tsx) ignores input and goes quiet under it.
const [arcadeMenu, setArcadeMenu] = createSignal(false)
export { arcadeMenu }
/**
* The page around an arcade 404 scene, shared by every version of it: the site's own logo mark and
@@ -55,6 +61,7 @@ export function ArcadeChrome(props: { settingsRows?: () => JSX.Element }) {
href: siteSettings.productNavDemo === "on" && item.demo ? item.demo : item.href,
label: navSavedLabel(entry(item.id), language.locale()) ?? item.label,
external: "external" in item && !!item.external,
arrow: "arrow" in item && !!item.arrow,
company: "company" in item,
})),
...navCustomItems(siteSettings.navConfig),
@@ -65,6 +72,7 @@ export function ArcadeChrome(props: { settingsRows?: () => JSX.Element }) {
})
let settingsButton: HTMLButtonElement | undefined
let menuButton: HTMLButtonElement | undefined
// The tone script set the grade on <html> before first paint; keep it in step with Settings.
createEffect(() => {
@@ -90,6 +98,22 @@ export function ArcadeChrome(props: { settingsRows?: () => JSX.Element }) {
}
document.addEventListener("keydown", shortcut)
onCleanup(() => document.removeEventListener("keydown", shortcut))
// The menu closes on Escape (focus back on its button) and once the sidebar is back, as on the site.
const escape = (event: KeyboardEvent) => {
if (event.key !== "Escape" || !arcadeMenu()) return
event.preventDefault()
setArcadeMenu(false)
menuButton?.focus()
}
const wide = matchMedia("(min-width: 60.0625rem)")
const closeMenu = () => setArcadeMenu(false)
document.addEventListener("keydown", escape)
wide.addEventListener("change", closeMenu)
onCleanup(() => {
document.removeEventListener("keydown", escape)
wide.removeEventListener("change", closeMenu)
setArcadeMenu(false)
})
})
const close = () => {
@@ -133,7 +157,39 @@ export function ArcadeChrome(props: { settingsRows?: () => JSX.Element }) {
</ul>
</nav>
</header>
<SoundToggle />
{/* Small screens: the site's top-bar GitHub mark and menu (phone-menu.tsx), on the logo's row. */}
<div data-site data-theme="dark" data-slot="phone-bar">
<GitHubLink owner="topbar" />
<MenuToggle
ref={(element) => (menuButton = element)}
open={arcadeMenu()}
onToggle={() => setArcadeMenu(!arcadeMenu())}
/>
<MenuSheet open={arcadeMenu()} onClose={() => setArcadeMenu(false)}>
<For each={nav()}>
{(item, index) => (
<li>
<a href={item.href} target={item.external ? "_blank" : undefined}>
<span data-slot="index" aria-hidden="true">
[{index() + 1}]
</span>
<span data-slot="label">{item.label}</span>
<Show when={item.arrow}>
<ExternalArrow />
</Show>
<Show when={item.external}>
<NewTab />
</Show>
</a>
</li>
)}
</For>
</MenuSheet>
</div>
{/* Under the open menu the scene's own controls leave the tab order (arcade.tsx does the stage). */}
<div inert={arcadeMenu()}>
<SoundToggle />
</div>
{/* The site's tools need the [data-site] scope; the logo and nav above stay outside it so the
site's stylesheet (loaded with the Settings panel) never restyles them. */}
<div data-site data-theme="dark" data-slot="site-tools">
@@ -78,13 +78,23 @@ export const frontGlass: Quad = [
{ x: glass.x, y: glass.y + glass.h },
]
/** The cabinet's centre line in the room shot, in its pixels (layers.css centres the first paint on it too). */
export const cabinetCentre = 1355
// Camera framings, as world rectangles to fit into the viewport.
export const framing = {
sceneWide: scene,
// Portrait phones crop the room to the cabinet and the token beside it (full height, so it covers).
// Portrait phones crop the room to the cabinet and the token beside it (full height, so it covers),
// centred on the cabinet: its body (layers.json › cabinet, 1133 to 1577 px) and its glass share x 1355.
sceneTall: (() => {
const a = fromScene(1045, 0)
const b = fromScene(1755, 1536)
const a = fromScene(cabinetCentre - 355, 0)
const b = fromScene(cabinetCentre + 355, 1536)
return { x: a.x, y: a.y, w: b.x - a.x, h: b.y - a.y }
})(),
// Landscape phones: the widest crop centred on the cabinet (the room's left edge to as far right).
sceneCentred: (() => {
const a = fromScene(0, 0)
const b = fromScene(cabinetCentre * 2, 1536)
return { x: a.x, y: a.y, w: b.x - a.x, h: b.y - a.y }
})(),
door: { x: 1110, y: 3290, w: 840, h: 900 },
@@ -61,5 +61,18 @@
height: auto;
aspect-ratio: 2752 / 1536;
translate: -50% -50%;
/* Portrait (arcade.tsx's height > 1.1 × width): the camera's sceneTall framing, the 710 px around the
cabinet's centre line (geometry.ts › cabinetCentre, 1355 px), so hydrating does not move the room. */
@media (max-aspect-ratio: 10 / 11) {
width: max(100% * 2752 / 710, var(--arcade-frame-height, 100svh) * 2752 / 1536);
translate: calc(-1355 / 2752 * 100%) -50%;
}
/* Landscape phones (phone.ts): sceneCentred, the room's left edge to as far right of the cabinet. */
@media (hover: none) and (pointer: coarse) and (max-height: 37.4375rem) and (min-aspect-ratio: 10 / 11) {
width: max(100% * 2752 / 2710, var(--arcade-frame-height, 100svh) * 2752 / 1536);
translate: calc(-1355 / 2752 * 100%) -50%;
}
}
}
@@ -109,7 +109,7 @@ export const copyVariants = {
label: "Logo row label",
lines: 1,
options: [
"Trusted by 16M+ developers",
"Trusted by 22M+ developers",
"Trusted worldwide",
"Trusted by",
"Used and trusted by developers",
@@ -0,0 +1,368 @@
/* The document list: rows of whole-row links (title, description, dates), with the hover style from
Settings › Legal row hover. Shared by the legal index and the Press page's project list, so the two
look and behave the same. */
[data-site] [data-component="legal-list"] {
display: flex;
flex-direction: column;
gap: 0.5rem;
a {
position: relative;
display: flex;
flex-direction: column;
gap: 0.25rem;
padding: 1rem;
margin-inline: -1rem;
text-decoration: none;
color: var(--text);
outline: 2px solid transparent;
outline-offset: 0;
transition:
background-color 150ms ease,
border-color 150ms ease;
&:focus-visible {
outline-color: var(--link);
}
}
/* A step under the group headings (title size), so the list reads as one level beneath them. */
[data-slot="title"] {
font-family: var(--font-mono);
font-size: var(--mono-size);
color: var(--text-strong);
}
[data-slot="description"],
[data-slot="dates"] {
font-size: var(--body-size);
line-height: 1.5;
color: var(--text);
}
/* Metadata (dates, "Pending legal review"): a step smaller than the description, and muted. */
[data-slot="dates"] {
font-size: var(--fs-meta);
color: var(--text-weak);
/* Phones: the effective date and the last change on their own lines, with no middot. */
@media (max-width: 60rem) {
> span {
display: block;
}
[data-slot="separator"] {
display: none;
}
}
}
/* Touch: no long-press link preview over the rows (title and description run together in it). */
@media (hover: none) {
a {
-webkit-touch-callout: none;
}
}
/* Rows answer hover in the style Settings › Legal row hover picks; never in the menu blue. The
arrow and the bar are hidden until a style shows them. */
&:is([data-style="rows"], [data-style="grouped"]) {
a {
padding-inline-end: 3.5rem;
}
[data-slot="title"] {
color: var(--text-strong);
text-decoration: underline;
text-decoration-thickness: 1px;
text-underline-offset: 0.2em;
text-decoration-color: transparent;
transition:
color 150ms ease,
text-decoration-color 150ms ease;
}
[data-slot="arrow"] {
position: absolute;
top: 1rem;
inset-inline-end: 1.25rem;
color: var(--text-strong);
opacity: 0;
translate: -0.375rem 0;
transition:
opacity 150ms ease,
translate 200ms var(--ease-out);
}
/* The bar and the hairline are drawn by the link itself. */
a::before {
content: "";
position: absolute;
opacity: 0;
transition: opacity 150ms ease;
}
a:focus-visible [data-slot="title"] {
color: var(--text-strong);
}
@media (hover: hover) and (pointer: fine) {
a:hover [data-slot="title"] {
color: var(--text-strong);
}
}
a:active [data-slot="title"] {
color: var(--text-strong);
}
}
&[data-hover="title"] a:focus-visible [data-slot="title"] {
text-decoration-color: currentColor;
}
@media (hover: hover) and (pointer: fine) {
&[data-hover="title"] a:hover [data-slot="title"] {
text-decoration-color: currentColor;
}
}
&[data-hover="title"] a:active [data-slot="title"] {
text-decoration-color: currentColor;
}
&[data-hover="arrow"] a:focus-visible [data-slot="arrow"] {
opacity: 1;
translate: 0 0;
}
@media (hover: hover) and (pointer: fine) {
&[data-hover="arrow"] a:hover [data-slot="arrow"] {
opacity: 1;
translate: 0 0;
}
}
&[data-hover="arrow"] a:active [data-slot="arrow"] {
opacity: 1;
translate: 0 0;
}
/* "grey": the menus' hover in neutral grey whatever Menu color is: a light tint and a mid-grey
bar on the left edge. No arrow. */
&[data-hover="grey"] a:focus-visible {
background: var(--bg-weak);
}
@media (hover: hover) and (pointer: fine) {
&[data-hover="grey"] a:hover {
background: var(--bg-weak);
}
}
&[data-hover="grey"] a:active {
background: var(--bg-weak);
}
&[data-hover="grey"] a::before {
top: 0;
bottom: 0;
inset-inline-start: 0;
width: 2px;
background: light-dark(hsl(0, 0%, 50%), hsl(0, 0%, 46%));
}
&[data-hover="grey"] a:focus-visible::before {
opacity: 1;
}
@media (hover: hover) and (pointer: fine) {
&[data-hover="grey"] a:hover::before {
opacity: 1;
}
}
&[data-hover="grey"] a:active::before {
opacity: 1;
}
&[data-hover="bar"] a::before {
top: 1rem;
bottom: 1rem;
inset-inline-start: 0;
width: 2px;
background: var(--menu-bar);
}
&[data-hover="lift"] a::before {
inset-inline-start: 1rem;
inset-inline-end: 1rem;
bottom: 0;
height: 1px;
background: var(--border-strong);
}
&:is([data-hover="bar"], [data-hover="lift"]) a:focus-visible::before {
opacity: 1;
}
@media (hover: hover) and (pointer: fine) {
&:is([data-hover="bar"], [data-hover="lift"]) a:hover::before {
opacity: 1;
}
}
&:is([data-hover="bar"], [data-hover="lift"]) a:active::before {
opacity: 1;
}
&[data-hover="lift"] a:focus-visible [data-slot="description"] {
color: var(--text);
}
@media (hover: hover) and (pointer: fine) {
&[data-hover="lift"] a:hover [data-slot="description"] {
color: var(--text);
}
}
/* Cards: two columns of tinted cards; the date sits at the bottom. */
&[data-style="cards"],
&[data-style="tiles"] {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: var(--gutter);
li {
display: flex;
}
a {
flex: 1;
margin: 0;
padding: 1.25rem;
gap: 0.5rem;
background: var(--bg-weak);
border: 1px solid transparent;
@media (hover: hover) and (pointer: fine) {
&:hover {
background: var(--bg-weaker);
}
}
&:active {
background: var(--bg-weaker);
}
}
[data-slot="dates"] {
margin-top: auto;
padding-top: 0.75rem;
}
}
/* Tiles: taller, with a document glyph above the title. */
&[data-style="tiles"] {
grid-template-columns: repeat(3, minmax(0, 1fr));
a {
min-height: 15rem;
padding: 1.5rem;
background: none;
border-color: var(--border);
@media (hover: hover) and (pointer: fine) {
&:hover {
background: var(--bg-weak);
border-color: var(--border-strong);
}
}
&:active {
background: var(--bg-weak);
border-color: var(--border-strong);
}
}
[data-slot="glyph"] {
margin-bottom: 1rem;
color: var(--text-weak);
}
}
/* Compact: title and date on one line; the description shows on hover and focus. */
&[data-style="compact list"] {
gap: 0;
a {
display: grid;
grid-template-columns: minmax(0, 1fr) auto;
column-gap: 1.5rem;
align-items: baseline;
padding-block: 0.75rem;
@media (hover: hover) and (pointer: fine) {
&:hover {
background: var(--bg-weaker);
}
}
&:active {
background: var(--bg-weaker);
}
}
[data-slot="description"] {
grid-column: 1 / -1;
grid-row: 2;
display: none;
padding-top: 0.25rem;
}
[data-slot="dates"] {
grid-column: 2;
grid-row: 1;
text-align: end;
}
a:focus-visible [data-slot="description"] {
display: block;
}
@media (hover: hover) and (pointer: fine) {
a:hover [data-slot="description"] {
display: block;
}
}
@media (hover: none), (pointer: coarse) {
[data-slot="description"] {
display: block;
}
}
}
@media (max-width: 40rem) {
&:is([data-style="cards"], [data-style="tiles"]) {
grid-template-columns: minmax(0, 1fr);
}
&[data-style="compact list"] a {
grid-template-columns: minmax(0, 1fr);
[data-slot="dates"] {
grid-column: 1;
grid-row: auto;
text-align: start;
}
}
}
}
/* A new-tab arrow after a title: the nav's 6px arrow, 6px after the text, on its line. */
[data-site] [data-component="legal-list"] [data-slot="title"]:has(> [data-slot="external"]) {
display: inline-flex;
align-items: center;
gap: 6px;
}
@@ -14,7 +14,7 @@
--github-right: calc(0.75rem + (4.5rem - var(--github-size)) / 2 + env(safe-area-inset-right, 0px));
}
/* The link is the full 40px target. No backing: over a dark or light surface it takes that
/* The link is the full 40px target round the 20px mark. No backing: over a dark or light surface it takes that
scheme's ink instead (below). */
[data-component="github-link"] {
--github-mark: 20px;
@@ -26,6 +26,17 @@
border-radius: 50%;
color: var(--text-strong);
cursor: pointer;
svg {
width: var(--github-mark);
height: var(--github-mark);
}
/* Phones and tablets: a 24px mark in the top bar and in the bare pages' corner (the font page),
still centred in its 44px target. */
@media (max-width: 60rem) {
--github-mark: 24px;
}
}
/* The fixed marks (the GitHub mark, the product pages' chevrons beside it, the /font logo) take
@@ -0,0 +1,26 @@
import "./github-link.css"
import { useI18n } from "~/context/i18n"
import { useLanguage } from "~/context/language"
import { GitHubMark } from "./icons"
import { siteLinks } from "./links"
/**
* The repo, as a GitHub mark: fixed in the top-right corner beside the sidebar (and at every width on
* bare pages), in the top bar on small screens (site.tsx), and in the 404 arcade's phone bar.
*/
export function GitHubLink(props: { owner: "corner" | "topbar" }) {
const i18n = useI18n()
const language = useLanguage()
return (
<a
href={siteLinks(i18n.t, language.route).github.href}
target="_blank"
rel="noopener"
data-component="github-link"
data-owner={props.owner}
aria-label={i18n.t("site.githubLabel")}
>
<GitHubMark />
</a>
)
}
@@ -341,7 +341,7 @@ function fitRule(id: string, label: string) {
return `@container (width < calc(${width}em + 24px)){${at}>[data-slot="long"]{display:none}${at}>[data-slot="short"]{display:inline}}`
}
/** The label's text with its number ("16M+", "16 Mio.+", "1,600万") kept on one line. */
/** The label's text with its number ("22M+", "22 Mio.+", "2,200万") kept on one line. */
function LabelText(props: { text: string }) {
const parts = () => props.text.split(/(\d[\d,.]*(?:\s?(?:Mio\.|万|萬|만|ล้าน|M))?\+?)/)
return <For each={parts()}>{(part, index) => (index() % 2 ? <span data-slot="number">{part}</span> : part)}</For>
@@ -106,6 +106,11 @@
[data-site] {
--section-gap: 72px;
--heading-gap: 24px;
/* Phones: 2px more under each title (David, 6 Nov), like the home sections (site.css). */
@media (max-width: 40rem) {
--heading-gap: 26px;
}
}
[data-site] :is(h2, h3)[data-component="section-heading"][id] {
@@ -134,13 +139,12 @@
/* "Contents" on phones: a disclosure above the first section, in place of the hidden aside. It sticks
under the top bar, or under the lowest sticky bar the page has above it (--contents-top: the legal
pages' --anchor-top, less its 1rem, is the bottom of their breadcrumb band and Document / History
tabs), in the page colour, so the sections scroll behind it. Only its top rule shows at rest (the
next section's own divider closes it); while it is stuck the top rule gives way to a hairline at
its bottom edge (the bar above has its own).
tabs), in the page colour, so the sections scroll behind it. Its row is as tall as an accordion
row (--row-height, site.css), with one edge-to-edge line above and one below.
Open, the list drops over the page instead of pushing it down, and scrolls when it is longer than
the window. Sticky positioning only, so nothing moves when it pins. */
[data-site] {
--contents-height: 2.75rem;
--contents-height: var(--row-height);
--contents-top: calc(var(--anchor-top, calc(var(--topbar-height) + env(safe-area-inset-top, 0px) + 1rem)) - 1rem);
}
@@ -163,10 +167,9 @@
display: flex;
align-items: center;
justify-content: space-between;
position: relative;
z-index: 1;
min-height: var(--contents-height);
/* A rule above and a hairline below, at rest and pinned. */
border-top: 1px solid var(--border);
box-shadow: 0 1px 0 var(--border);
font-family: var(--font-mono);
font-size: var(--fs-small);
color: var(--text-strong);
@@ -217,14 +220,39 @@
z-index: 8;
display: block;
background: var(--bg);
container-type: scroll-state;
/* Stuck, the bar above already has its own bottom edge, so the top rule gives way to one at the
bottom. */
@container scroll-state(stuck: top) {
summary {
border-top-color: transparent;
box-shadow: 0 1px 0 var(--border);
/* One line above the bar and one below, each across the whole screen. The top line sits on the
row above the bar: stuck, that row is the top bar's own bottom hairline, which paints over it,
so there's only ever one line there and nothing moves when the bar sticks. */
summary::before,
summary::after {
content: "";
position: absolute;
inset-inline: calc(-1 * var(--edge));
height: 1px;
background: var(--border);
pointer-events: none;
}
summary::before {
top: -1px;
}
summary::after {
top: 100%;
}
/* The bar follows the page's direction, even inside an English-only document on a right-to-left
page (legal), so its chevron stays on the menu button's side. */
html[dir="rtl"] & {
direction: rtl;
}
/* Phones: the chevron is centred under the menu button in the top bar (34px in from the screen
edge), like the accordions' plus. */
@media (max-width: 40rem) {
summary [data-slot="chevron"] {
margin-inline-end: calc(34px - var(--edge) - 6px);
}
}
@@ -245,8 +273,9 @@
padding-inline: var(--edge);
}
/* Each row of the open list is as tall as the bar (--row-height). */
a {
--rail-pad: 11px;
--rail-pad: calc((var(--contents-height) - 1lh) / 2);
padding-inline-start: 0;
font-size: var(--body-size);
@@ -0,0 +1,168 @@
/* The small-screen menu (phone-menu.tsx): the menu button and the sheet it opens. Shared by the
site's top bar (site.tsx) and the 404 arcade (arcade/chrome.tsx), which renders without site.css. */
[data-site] {
[data-component="site-menu-sheet"] {
display: none;
}
@media (max-width: 60rem) {
/* Two lines that turn into an X. The lines end on the page edge; the button extends past it
so the tap target is 44px square. */
[data-component="menu-toggle"] {
position: relative;
width: 2.75rem;
height: 2.75rem;
margin-inline-end: -0.75rem;
[data-slot="line"] {
position: absolute;
inset-inline-start: 0.75rem;
inset-inline-end: 0.75rem;
top: calc(50% - 0.5px);
height: 1px;
background: var(--text-strong);
transition: transform 200ms var(--ease-out);
&:first-child {
transform: translateY(-4.5px);
}
&:last-child {
transform: translateY(4.5px);
}
}
&[aria-expanded="true"] [data-slot="line"] {
&:first-child {
transform: rotate(45deg);
}
&:last-child {
transform: rotate(-45deg);
}
}
}
/* Covers the page under the header. It appears at once, as one surface with the bar, and its
rows rise in with a short stagger: each fades in and moves up 6px over 200ms on the strong
ease-out, 25ms after the one before, the delay capped at 100ms so the reveal ends by 300ms.
Closing is a quicker 120ms fade without stagger. Closed, it stays in place but hidden, and
every value is a transition, so a tap mid-reveal turns it around from where it is. */
[data-component="site-menu-sheet"] {
--menu-close: 120ms;
position: fixed;
inset: calc(var(--topbar-height) + env(safe-area-inset-top, 0px)) 0 0;
z-index: 9;
display: block;
visibility: hidden;
transition: visibility 0s linear var(--menu-close);
[data-slot="backdrop"] {
position: absolute;
inset: 0;
background: var(--bg);
opacity: 0;
transition: opacity var(--menu-close) var(--ease-out);
}
[data-slot="panel"] {
position: relative;
max-height: 100%;
overflow-y: auto;
overscroll-behavior: contain;
padding: 0.5rem calc(var(--edge) + env(safe-area-inset-right, 0px))
calc(1.5rem + env(safe-area-inset-bottom, 0px)) calc(var(--edge) + env(safe-area-inset-left, 0px));
font-family: var(--font-mono);
/* The sheet's one job is this list: a step above the body copy, like a native menu. */
font-size: var(--fs-large);
line-height: 24px;
}
[data-slot="panel"] > ul > li {
opacity: 0;
translate: 0 6px;
transition:
opacity var(--menu-close) var(--ease-out),
translate var(--menu-close) var(--ease-out);
}
a {
display: flex;
align-items: center;
gap: 0.625rem;
min-height: 3.25rem;
color: var(--text);
transition: color 150ms ease;
&[aria-current="page"] {
color: var(--text-strong);
}
&:active {
color: var(--text-strong);
}
}
/* --text-muted, not --text-faint: 4.5:1 at this size. */
[data-slot="index"] {
color: var(--text-muted);
}
a[aria-current="page"] [data-slot="index"] {
color: var(--text-strong);
}
/* Touch has no hover to reveal the arrow, so it always shows, 6px after the label. */
[data-slot="external"] {
flex-shrink: 0;
margin-inline-start: calc(6px - 0.625rem);
translate: 0 -2px;
}
&[data-open] {
visibility: visible;
transition: visibility 0s;
[data-slot="backdrop"] {
opacity: 1;
transition: none;
}
[data-slot="panel"] > ul > li {
--row: 4;
opacity: 1;
translate: none;
transition-duration: 200ms;
transition-delay: calc(var(--row) * 25ms);
&:nth-child(1) {
--row: 0;
}
&:nth-child(2) {
--row: 1;
}
&:nth-child(3) {
--row: 2;
}
&:nth-child(4) {
--row: 3;
}
}
}
/* Reduced motion: the rows appear with a short fade, all at once and without moving. */
@media (prefers-reduced-motion: reduce) {
[data-slot="panel"] > ul > li,
&[data-open] [data-slot="panel"] > ul > li {
translate: none;
transition: opacity var(--menu-close) ease;
}
}
}
}
}
@@ -0,0 +1,52 @@
import "./phone-menu.css"
import type { JSX } from "solid-js"
import { useI18n } from "~/context/i18n"
/**
* The small-screen header's menu button and the sheet it opens, shared by the site's top bar
* (site.tsx) and the 404 arcade (arcade/chrome.tsx). The caller owns the open state, Escape and
* returning focus to the button; the sheet closes itself on its backdrop and on a chosen link.
*/
export function MenuToggle(props: { open: boolean; onToggle: () => void; ref?: (element: HTMLButtonElement) => void }) {
const i18n = useI18n()
return (
<button
ref={props.ref}
type="button"
data-component="menu-toggle"
aria-expanded={props.open ? "true" : "false"}
aria-controls="site-menu"
aria-label={props.open ? i18n.t("site.closeMenu") : i18n.t("nav.openMenu")}
onClick={() => props.onToggle()}
>
<span data-slot="line" />
<span data-slot="line" />
</button>
)
}
export function MenuSheet(props: {
open: boolean
onClose: () => void
children: JSX.Element
listRef?: (element: HTMLUListElement) => void
sortable?: boolean
}) {
const i18n = useI18n()
return (
<div data-component="site-menu-sheet" id="site-menu" data-open={props.open ? "" : undefined}>
<div data-slot="backdrop" onClick={() => props.onClose()} />
<nav
data-slot="panel"
aria-label={i18n.t("site.landmark.primary")}
onClick={(event) => {
if ((event.target as Element).closest("a")) props.onClose()
}}
>
<ul ref={props.listRef} data-sortable={props.sortable ? "" : undefined}>
{props.children}
</ul>
</nav>
</div>
)
}
@@ -56,8 +56,10 @@ const preloadRules: [string, string, (s: SiteSettings, el: HTMLElement, d: SiteS
[
"",
"data-docs-variants",
// A page that fixes its docs options (/dev/docs, data-docs-fixed) keeps the server's value. The
// build's default-attributes pass (css-variants.ts) hands in a stub without getAttribute.
(s, el) =>
el.hasAttribute("data-docs-fixed")
el.hasAttribute("data-docs-fixed") && typeof el.getAttribute === "function"
? el.getAttribute("data-docs-variants")
: Object.entries(s.docsVariants)
.filter((entry) => entry[1] !== "1")
@@ -97,17 +97,67 @@
margin-inline-start: var(--gutter);
}
/* Phones: the button drops under the text. The tile keeps its size (a description that wraps
just runs on below it). */
/* The nav's corner arrow after an external item's name, as in the phone menu: 6px after the
label and nudged up, in the name's colour. */
[data-slot="name"] [data-slot="external"] {
display: inline-block;
margin-inline-start: 6px;
translate: 0 -2px;
vertical-align: middle;
}
/* Phones: no Learn more button; the whole row is the link. The row's pressed grey runs to the
screen's edges and its content keeps the page's 24px edges, like the phone menu's rows. The
link's box covers the row (its label stays its accessible name), the row's other parts let
taps through to it, and its focus ring draws around the row. */
@media (max-width: 39.9375rem) {
row-gap: calc(var(--product-list-gap) - 1.5rem);
li {
grid-template-columns: var(--product-list-tile) minmax(0, 1fr);
isolation: isolate;
margin-inline: calc(-1 * var(--edge));
padding: 0.75rem var(--edge);
> :not([data-slot="get"]) {
pointer-events: none;
}
}
[data-slot="get"] {
grid-column: 2;
justify-self: start;
margin: 0.875rem 0 0;
position: static;
width: 0;
min-width: 0;
height: 0;
min-height: 0;
margin: 0;
padding: 0;
overflow: hidden;
border: 0;
background: none;
font-size: 0;
outline: none;
/* No press scale: a transform would make the link the box its cover is placed in, and the
tap would end outside it. */
transform: none !important;
scale: none;
&::before {
content: "";
position: absolute;
inset: 0;
z-index: -1;
transition: background-color 150ms ease;
}
&:active::before {
background: var(--bg-weak);
}
&:focus-visible::before {
outline: 2px solid var(--link);
outline-offset: -2px;
}
}
}
}
@@ -2,7 +2,7 @@ import "./product-list.css"
import { For, Show, type JSX } from "solid-js"
import { useI18n } from "~/context/i18n"
import { useContent } from "~/i18n/content"
import { HexMark, NewTab, OpenTUIMark, OpenTunnelMark } from "./icons"
import { ExternalArrow, HexMark, NewTab, OpenTUIMark, OpenTunnelMark } from "./icons"
import { anomalyProducts } from "./links"
import { SectionHeading } from "./on-this-page"
@@ -53,7 +53,13 @@ export function ProductList(props: { items: readonly ProductListItem[] }) {
)}
</Show>
<span data-slot="text">
<span data-slot="name">{item.name}</span>
<span data-slot="name">
{item.name}
{/* Another site: the nav's corner arrow after the name, as after its external links. */}
<Show when={item.external}>
<ExternalArrow />
</Show>
</span>
<span data-slot="description">{item.description}</span>
</span>
<a
@@ -56,6 +56,27 @@
[data-slot="track"] {
grid-auto-columns: calc((100% + var(--edge) - var(--gaps) * var(--gutter)) / var(--visible));
}
/* The carousel's cards stop short of the small viewport's bottom (100svh, with the browser's
toolbars showing) at first load: below the home hero (24 to 28rem down, longer in German) with room under the
button. The media keeps its full width (a set width, so the cap shortens it rather than
narrowing it) and crops a little more of its height, never under 18rem,
so short phones see the whole card once it scrolls into place. */
:is([data-component="products"]:not([data-layout="grid"]), [data-component="products-skeleton"])
[data-component="product-card"]
[data-slot="media"] {
width: 100%;
max-height: max(18rem, calc(100svh - 28rem));
}
/* The carousel card's buttons sit over its dark media in both themes, so they are the light
button (the card's dark scheme already makes them white with dark text). Pressed, they and
the split's chevron step a shade darker, rather than only scaling. */
[data-component="products"]:not([data-layout="grid"])
[data-component="product-card"]
[data-component="site-button"]:not([aria-disabled="true"]):active {
background: hsl(0, 0%, 84%);
}
}
[data-component="product-card"] {
@@ -1024,14 +1024,14 @@ export function ProductAction(props: { slug: PageSlug; split?: boolean; both?: b
)
// A store's button: "Download for iPhone", the device name hidden like the OS in inline cards. The
// iPhone beta opens TestFlight in a new tab, with the TestFlight badge after the label.
// iPhone beta opens TestFlight in a new tab, but the button shows the Apple logo.
const storeButton = (item: (typeof stores)[number]) => (
<a
href={item.href}
data-component="site-button"
{...betaLink(item, i18n.t("site.newTab", { label: i18n.t("site.action.forOsBeta", { os: item.device }) }))}
>
<PlatformIcon platform={item.beta ? "TestFlight" : item.platform} />
<PlatformIcon platform={item.platform} />
<span>
<Marked text={i18n.t("site.action.forOs", { os: item.device })} slots={{ os: "for-os" }} />
</span>
+2 -2
View File
@@ -294,7 +294,7 @@ export const toolGrids = ["tiles", "outline"] as const
export const logoLayouts = ["label + 6", "label + 7", "8 logos", "label above + 8", "section"] as const
// The logo row's label, in every layout with one. Design mode copy (home.logos.label) can override it.
export const logoLabels = [
"Trusted by 16M+ developers",
"Trusted by 22M+ developers",
"Trusted by",
"Trusted worldwide",
"Trusted by users worldwide",
@@ -982,7 +982,7 @@ const schema = z.object({
// The section dividers above the logo row and below it (on whichever section follows it).
logoDividers: z.enum(toggles).catch("off"),
logoLayout: z.enum(logoLayouts).catch("label + 6"),
logoLabel: z.enum(logoLabels).catch("Trusted by 16M+ developers"),
logoLabel: z.enum(logoLabels).catch("Trusted by 22M+ developers"),
logoAnimation: z.enum(logoAnimations).catch("dither"),
// How strong the one-colour logos and their label are, in percent of the strong text colour. 60
// keeps the label at 4.7:1 on the light background (WCAG AA); 55 was 4.0:1.
+50 -126
View File
@@ -1033,10 +1033,16 @@ html:has([data-site][data-theme="dark"]) {
}
}
/* One row height for the accordion rows and the bars that sit with them on phones (the sticky
Contents bar and its open list, the docs section menu): a single-line question, 10px above and
below its 1.55 line of large text. */
--row-height: calc(1.25rem + 1.55 * var(--fs-large));
[data-component="faq"] {
[data-slot="faq-question"] {
--padding-top: 0.625rem;
position: relative;
min-height: var(--row-height);
width: 100%;
display: flex;
align-items: center;
@@ -1063,6 +1069,15 @@ html:has([data-site][data-theme="dark"]) {
transition: background-color 150ms ease;
}
/* Phones: the plus centred under the menu button in the top bar, whose 44px box sits 12px in
from the screen edge (its centre 34px in), so every plus shares the menu icon's column. */
@media (max-width: 40rem) {
&::before,
&::after {
inset-inline-end: calc(34px - var(--edge) - 6px);
}
}
/* The vertical bar shrinks into the center, leaving the minus. */
&::after {
rotate: 90deg;
@@ -1091,6 +1106,7 @@ html:has([data-site][data-theme="dark"]) {
/* Start the first question level with the section label. */
li:first-child [data-slot="faq-question"] {
--padding-top: 0px;
min-height: 0;
}
/* Padding sits on the inner wrapper so the height animation can close to zero. */
@@ -1661,8 +1677,10 @@ html:has([data-site][data-theme="dark"]) {
[data-component="language-picker"] {
/* The chevron shows only on hover, keyboard focus or while the menu is open (always on touch).
It flips instantly when the menu opens. */
It flips instantly when the menu opens. It takes the label's colour, so it follows its
hover, pressed and open states (dropdown.css's own grey is brighter than the label in dark). */
[data-slot="chevron"] {
color: inherit;
opacity: 0;
transition: opacity 150ms ease;
}
@@ -2248,10 +2266,10 @@ html:has([data-site][data-theme="dark"]) {
}
}
/* Small-screen header and menu. Hidden on wide screens, where the sidebar holds the nav. */
/* Small-screen header and menu. Hidden on wide screens, where the sidebar holds the nav. The menu
button and its sheet are in phone-menu.css. */
[data-component="topbar"],
[data-component="site-menu-sheet"],
[data-slot="section-toggle"] {
display: none;
}
@@ -2334,123 +2352,10 @@ html:has([data-site][data-theme="dark"]) {
}
}
/* Two lines that turn into an X. The lines end on the page edge; the button extends past it
so the tap target is 44px square. */
[data-component="menu-toggle"] {
position: relative;
width: 2.75rem;
height: 2.75rem;
margin-inline-end: -0.75rem;
[data-slot="line"] {
position: absolute;
inset-inline-start: 0.75rem;
inset-inline-end: 0.75rem;
top: calc(50% - 0.5px);
height: 1px;
background: var(--text-strong);
transition: transform 200ms var(--ease-out);
&:first-child {
transform: translateY(-4.5px);
}
&:last-child {
transform: translateY(4.5px);
}
}
&[aria-expanded="true"] [data-slot="line"] {
&:first-child {
transform: rotate(45deg);
}
&:last-child {
transform: rotate(-45deg);
}
}
}
/* Opens down from under the header and covers the page. Closed, it stays in place but hidden,
so the transitions can be interrupted and reversed. */
[data-component="site-menu-sheet"] {
position: fixed;
inset: calc(var(--topbar-height) + env(safe-area-inset-top, 0px)) 0 0;
z-index: 9;
display: block;
visibility: hidden;
transition: visibility 0s linear 150ms;
[data-slot="backdrop"] {
position: absolute;
inset: 0;
background: var(--bg);
opacity: 0;
transition: opacity 150ms ease-out;
}
[data-slot="panel"] {
position: relative;
max-height: 100%;
overflow-y: auto;
overscroll-behavior: contain;
padding: 0.5rem calc(var(--edge) + env(safe-area-inset-right, 0px))
calc(1.5rem + env(safe-area-inset-bottom, 0px)) calc(var(--edge) + env(safe-area-inset-left, 0px));
font-family: var(--font-mono);
/* The sheet's one job is this list: a step above the body copy, like a native menu. */
font-size: var(--fs-large);
line-height: 24px;
opacity: 0;
transform: translateY(-0.5rem);
transition:
opacity 150ms ease-out,
transform 150ms var(--ease-out);
}
a {
display: flex;
align-items: center;
gap: 0.625rem;
min-height: 3.25rem;
color: var(--text);
transition: color 150ms ease;
&[aria-current="page"] {
color: var(--text-strong);
}
&:active {
color: var(--text-strong);
}
}
/* --text-muted, not --text-faint: 4.5:1 at this size. */
[data-slot="index"] {
color: var(--text-muted);
}
a[aria-current="page"] [data-slot="index"] {
color: var(--text-strong);
}
/* Touch has no hover to reveal the arrow, so it always shows. */
[data-slot="external"] {
flex-shrink: 0;
margin-inline-start: calc(4px - 0.625rem);
translate: 0 -2px;
}
&[data-open] {
visibility: visible;
transition: visibility 0s;
[data-slot="backdrop"],
[data-slot="panel"] {
opacity: 1;
transform: none;
transition-duration: 200ms;
}
}
/* While the menu is open the bar and the menu are one surface: no hairline between them. It
goes with the toggle's state, so it is cut, never faded. */
[data-component="topbar"]:has([data-component="menu-toggle"][aria-expanded="true"])::after {
display: none;
}
[data-component="sidebar"] {
@@ -2478,7 +2383,7 @@ html:has([data-site][data-theme="dark"]) {
align-items: center;
justify-content: space-between;
width: 100%;
min-height: 3rem;
min-height: var(--row-height);
font-family: var(--font-mono);
font-size: var(--mono-size);
color: var(--text-strong);
@@ -2541,11 +2446,16 @@ html:has([data-site][data-theme="dark"]) {
--gaps: 2;
}
/* Stacked, the title sits as close to its copy as a feature title to its description. */
/* Stacked, the title sits as close to its copy as a feature title to its description; on phones
2px further (David, 6 Nov). */
[data-component="block"] {
display: flex;
flex-direction: column;
gap: 0.5rem;
@media (max-width: 40rem) {
gap: 0.625rem;
}
}
[data-component="hero"] {
@@ -3592,6 +3502,17 @@ html:has([data-site][data-theme="dark"]) {
}
}
/* Bare pages (the font page) have no top bar on small screens, but their logo row stands in for
it: the bar's 30px logo box, centred in its 56px. So the logo, and the GitHub mark and the
controls level with it, sit exactly where the bar puts them on every other page, and the logo
doesn't move between pages. */
@media (max-width: 60rem) {
&[data-bare] {
--top: calc((var(--topbar-height) - var(--phone-logo-height)) / 2);
--logo-height: var(--phone-logo-height);
}
}
/* --logo-box is only set beside the sidebar; the phone bar's box follows its own --logo-height. */
&[data-logo-size] [data-slot="logo"] [data-slot="icon"] {
--box: var(--logo-box, calc(var(--logo-height) * 4 / 5));
@@ -3606,10 +3527,13 @@ html:has([data-site][data-theme="dark"]) {
margin-bottom: calc(var(--logo-height) - var(--logo-mark-h));
}
/* The sidebar logo starts at --edge less the bracket bearing, and layout rounds both down to
1/64px, which leaves the box 1/64px short of the edge. Rounding the bearing up here puts the
mark back on a whole pixel. */
&[data-logo-size] [data-component="sidebar"] [data-slot="logo"] [data-slot="icon"] {
/* The sidebar logo (and the bare pages' logo in its place) starts at --edge less the bracket
bearing, and layout rounds both down to 1/64px, which leaves the box 1/64px short of the edge.
Rounding the bearing up here puts the mark back on a whole pixel. */
&[data-logo-size]
:is([data-component="sidebar"], [data-component="bare-chrome"])
[data-slot="logo"]
[data-slot="icon"] {
margin-inline-start: round(up, var(--bracket-bearing), 1px / 64);
}
}
+13 -39
View File
@@ -37,7 +37,9 @@ import { brandAssets } from "~/lib/brand-content"
import { status, type ServiceStatus } from "~/lib/status"
import { useViewportCover } from "~/lib/viewport"
import { LiveMeta } from "~/component/head-meta"
import { Chevron, ChevronRight, ExternalArrow, GitHubMark, NewTab, ThemeIcon, themes } from "./icons"
import { Chevron, ChevronRight, ExternalArrow, NewTab, ThemeIcon, themes } from "./icons"
import { GitHubLink } from "./github-link"
import { MenuSheet, MenuToggle } from "./phone-menu"
import { siteLinks } from "./links"
import {
navEditing,
@@ -932,18 +934,8 @@ export function Site(props: {
// The repo, as a GitHub mark: fixed in the top-right corner beside the sidebar (and at every
// width on bare pages), in the top bar on small screens.
const githubLink = (owner: "corner" | "topbar") => (
<a
href={links().github.href}
target="_blank"
rel="noopener"
data-component="github-link"
data-owner={owner}
aria-label={i18n.t("site.githubLabel")}
>
<GitHubMark />
</a>
)
const githubLink = (owner: "corner" | "topbar") => <GitHubLink owner={owner} />
const logoLink = (owner: "sidebar" | "topbar") => (
<A
href={language.route("/")}
@@ -1209,37 +1201,19 @@ export function Site(props: {
<header data-component="topbar">
{logoLink("topbar")}
{githubLink("topbar")}
<button
ref={menuToggle}
type="button"
data-component="menu-toggle"
aria-expanded={menu() ? "true" : "false"}
aria-controls="site-menu"
aria-label={menu() ? i18n.t("site.closeMenu") : i18n.t("nav.openMenu")}
onClick={() => {
<MenuToggle
ref={(element) => (menuToggle = element)}
open={menu()}
onToggle={() => {
setLogoMenu(undefined)
setMenu(!menu())
}}
>
<span data-slot="line" />
<span data-slot="line" />
</button>
/>
{logoMenuView("topbar")}
</header>
<div data-component="site-menu-sheet" id="site-menu" data-open={menu() ? "" : undefined}>
<div data-slot="backdrop" onClick={() => setMenu(false)} />
<nav
data-slot="panel"
aria-label={i18n.t("site.landmark.primary")}
onClick={(event) => {
if ((event.target as Element).closest("a")) setMenu(false)
}}
>
<ul ref={sortableNav} data-sortable={designMode() ? "" : undefined}>
<For each={navAll()}>{(item, index) => navItem(item, index)}</For>
</ul>
</nav>
</div>
<MenuSheet open={menu()} onClose={() => setMenu(false)} listRef={sortableNav} sortable={designMode()}>
<For each={navAll()}>{(item, index) => navItem(item, index)}</For>
</MenuSheet>
</Show>
<LanguageSheet />
@@ -737,17 +737,15 @@
display: none;
}
/* Hex's tile, as in the product list (product-list.css): square, black on the light page, a lifted
grey with a hairline on the dark one, and the flat white mark at the same share of the tile. */
/* Hex's tile: the brand's black square in both themes (on the dark panel and sheet, #1a1a1a, it
still reads as its own square), with the flat white mark centred. */
[data-slot="hex-tile"] {
grid-row: span 2;
display: grid;
place-items: center;
width: 28px;
height: 28px;
background: light-dark(#000, hsl(0, 0%, 15%));
outline: 1px solid light-dark(transparent, hsl(0, 0%, 26%));
outline-offset: -1px;
background: #000;
color: #fff;
svg {
@@ -767,10 +765,73 @@
}
}
/* The phone sheet holds just the section. */
/* The phone sheet holds just the section, at the phone menu's scale: the title one step under the
menu items (19px), the body at the phone body size (17px), and the site's 48px sheet buttons
side by side under both, Get Hex filled and Maybe later grey. */
[data-component="sheet"][data-sheet="hex"] [data-slot="hex-sell"] {
padding: 0.5rem 1.25rem calc(1rem + env(safe-area-inset-bottom, 0px));
font-size: var(--fs-small);
column-gap: 0.875rem;
padding: 0.5rem 1.25rem calc(1.25rem + env(safe-area-inset-bottom, 0px));
font-size: var(--fs-body);
[data-slot="hex-tile"] {
width: 2.75rem;
height: 2.75rem;
svg {
width: 1.5rem;
height: 1.5rem;
}
}
[data-slot="hex-title"] {
font-size: 1.1875rem;
line-height: 1.3;
}
[data-slot="hex-body"] {
font-size: var(--fs-body);
line-height: 1.45;
}
[data-slot="hex-actions"] {
grid-column: 1 / -1;
display: grid;
grid-template-columns: 1fr 1fr;
gap: 0.5rem;
margin-top: 1.25rem;
}
:is([data-slot="hex-get"], [data-slot="hex-later"]) {
display: flex;
align-items: center;
justify-content: center;
min-height: 3rem;
padding: 0 1rem;
font-family: var(--font-sans);
font-size: var(--fs-ui);
font-weight: 500;
line-height: 1.2;
}
[data-slot="hex-get"] {
background: var(--bg-strong);
color: var(--text-inverted) !important;
&:active {
background: var(--bg-strong);
opacity: 0.85;
}
}
[data-slot="hex-later"] {
background: var(--bg-weaker);
color: var(--text-strong);
&:active {
background: var(--border);
color: var(--text-strong);
}
}
}
@media (prefers-reduced-motion: reduce) {
+1 -1
View File
@@ -27,6 +27,6 @@ export const config = {
contributors: "1,000+",
contributorsCompact: "1K+",
commits: "20,000",
monthlyUsers: "16M",
monthlyUsers: "22M",
},
} as const
+2 -2
View File
@@ -387,7 +387,7 @@ export const dict = {
"site.theme.light": "فاتحة",
"site.theme.dark": "داكنة",
"site.moreFromAnomaly": "المزيد من Anomaly",
"home.companies.label": "يثق به أكثر من 16M مطوّر",
"home.companies.label": "يثق به أكثر من 22M مطوّر",
"home.providers.label": "يعمل مع",
"home.tools.title": "أدواتك الخاصة",
"home.tools.lead": "اربط الخدمات التي تستخدمها بالفعل عبر [خوادم MCP](mcp)، وتدخّل في OpenCode عبر [الملحقات](plugins)، وعلّم الوكلاء طرق عملك عبر [المهارات](skills).",
@@ -601,7 +601,7 @@ export const dict = {
"home.console.body": "استدلال عالي الجودة للنماذج المتقدمة ومفتوحة الأوزان، واشتراكات منخفضة التكلفة بحدود سخية، والأدوات التي يحتاجها فريقك لإدارة الإنفاق والتعاون بفعالية.",
"site.action.forOsBeta": "تنزيل لـ {{os}}، نسخة Apple TestFlight التجريبية",
"site.action.storeBeta": "{{os}}، نسخة Apple TestFlight التجريبية",
"home.companies.labelShort": "يثق به 16M+ مطوّر",
"home.companies.labelShort": "يثق به 22M+ مطوّر",
"go.referral.ended.label": "تحذير",
"go.referral.ended": "انتهى برنامج الإحالة. لم تعد روابط الإحالة تمنح رصيدًا لك أو للشخص الذي شاركها.",
"legal.status.operational": "كل الأنظمة تعمل",
+2 -2
View File
@@ -395,8 +395,8 @@ export const dict = {
"site.theme.light": "Claro",
"site.theme.dark": "Escuro",
"site.moreFromAnomaly": "Mais da Anomaly",
"home.companies.label": "A escolha de 16M+ desenvolvedores",
"home.companies.labelShort": "A escolha de 16M+ devs",
"home.companies.label": "A escolha de 22M+ desenvolvedores",
"home.companies.labelShort": "A escolha de 22M+ devs",
"home.providers.label": "Funciona com",
"home.tools.title": "Traga suas ferramentas",
"home.tools.lead": "Conecte os serviços que você já usa com [servidores MCP](mcp), estenda o OpenCode com [plugins](plugins) e ensine seus fluxos de trabalho aos agentes com [skills](skills).",
+1 -1
View File
@@ -423,7 +423,7 @@ export const content = {
about: {
title: "عن OpenCode",
boilerplate: {
long: "OpenCode وكيل برمجة مفتوح المصدر. يتوفر كتطبيق لسطح المكتب وتطبيق للهاتف وواجهة طرفية وSDK، ويعمل مع نماذج من أي مزوّد، منها Claude وGPT وGemini. OpenCode مرخّص بـ MIT ومن صنع Anomaly. لديه أكثر من 220,000 نجمة على GitHub وأكثر من 1,000 مساهم، ويستخدمه أكثر من 16 مليون مطوّر كل شهر.",
long: "OpenCode وكيل برمجة مفتوح المصدر. يتوفر كتطبيق لسطح المكتب وتطبيق للهاتف وواجهة طرفية وSDK، ويعمل مع نماذج من أي مزوّد، منها Claude وGPT وGemini. OpenCode مرخّص بـ MIT ومن صنع Anomaly. لديه أكثر من 220,000 نجمة على GitHub وأكثر من 1,000 مساهم، ويستخدمه أكثر من 22 مليون مطوّر كل شهر.",
short: "OpenCode وكيل برمجة مفتوح المصدر من Anomaly، مع تطبيقات لسطح المكتب والهاتف والطرفية، وSDK.",
},
products: {
+1 -1
View File
@@ -865,7 +865,7 @@ export const content = {
about: {
title: "Sobre o OpenCode",
boilerplate: {
long: "OpenCode é um agente de programação de código aberto. Ele vem como app desktop, app mobile, interface de terminal e SDK, e funciona com modelos de qualquer provedor, incluindo Claude, GPT e Gemini. O OpenCode tem licença MIT e é feito pela Anomaly. Tem mais de 220.000 estrelas no GitHub e mais de 1.000 colaboradores, e mais de 16 milhões de desenvolvedores o usam todo mês.",
long: "OpenCode é um agente de programação de código aberto. Ele vem como app desktop, app mobile, interface de terminal e SDK, e funciona com modelos de qualquer provedor, incluindo Claude, GPT e Gemini. O OpenCode tem licença MIT e é feito pela Anomaly. Tem mais de 220.000 estrelas no GitHub e mais de 1.000 colaboradores, e mais de 22 milhões de desenvolvedores o usam todo mês.",
short:
"OpenCode é um agente de programação de código aberto da Anomaly, com apps para desktop, mobile e terminal, e um SDK.",
},
+1 -1
View File
@@ -524,7 +524,7 @@ export const content = {
about: {
title: "Om OpenCode",
boilerplate: {
long: "OpenCode er en open source-kodningsagent. Den findes som desktopapp, mobilapp, terminal-UI og SDK og virker med modeller fra enhver udbyder, bl.a. Claude, GPT og Gemini. OpenCode er MIT-licenseret og lavet af Anomaly. Den har over 220.000 GitHub-stjerner og mere end 1.000 bidragydere, og over 16 millioner udviklere bruger den hver måned.",
long: "OpenCode er en open source-kodningsagent. Den findes som desktopapp, mobilapp, terminal-UI og SDK og virker med modeller fra enhver udbyder, bl.a. Claude, GPT og Gemini. OpenCode er MIT-licenseret og lavet af Anomaly. Den har over 220.000 GitHub-stjerner og mere end 1.000 bidragydere, og over 22 millioner udviklere bruger den hver måned.",
short:
"OpenCode er en open source-kodningsagent fra Anomaly med apps til desktop, mobil og terminal og et SDK.",
},
+1 -1
View File
@@ -572,7 +572,7 @@ export const content = {
about: {
title: "Über OpenCode",
boilerplate: {
long: "OpenCode ist ein Open-Source-Coding-Agent. Es gibt ihn als Desktop-App, Mobile-App, Terminal-UI und SDK, und er funktioniert mit Modellen jedes Anbieters, darunter Claude, GPT und Gemini. OpenCode ist MIT-lizenziert und wird von Anomaly entwickelt. Es hat über 220.000 GitHub-Sterne und mehr als 1.000 Mitwirkende, und über 16 Millionen Entwickler nutzen es jeden Monat.",
long: "OpenCode ist ein Open-Source-Coding-Agent. Es gibt ihn als Desktop-App, Mobile-App, Terminal-UI und SDK, und er funktioniert mit Modellen jedes Anbieters, darunter Claude, GPT und Gemini. OpenCode ist MIT-lizenziert und wird von Anomaly entwickelt. Es hat über 220.000 GitHub-Sterne und mehr als 1.000 Mitwirkende, und über 22 Millionen Entwickler nutzen es jeden Monat.",
short:
"OpenCode ist ein Open-Source-Coding-Agent von Anomaly, mit Apps für Desktop, Mobile und Terminal sowie einem SDK.",
},
+1 -1
View File
@@ -802,7 +802,7 @@ export const content = {
about: {
title: "Sobre OpenCode",
boilerplate: {
long: "OpenCode es un agente de programación de código abierto. Está disponible como app de escritorio, app móvil, interfaz de terminal y SDK, y funciona con modelos de cualquier proveedor, incluidos Claude, GPT y Gemini. OpenCode tiene licencia MIT y lo crea Anomaly. Tiene más de 220.000 estrellas en GitHub y más de 1.000 colaboradores, y más de 16 millones de desarrolladores lo usan cada mes.",
long: "OpenCode es un agente de programación de código abierto. Está disponible como app de escritorio, app móvil, interfaz de terminal y SDK, y funciona con modelos de cualquier proveedor, incluidos Claude, GPT y Gemini. OpenCode tiene licencia MIT y lo crea Anomaly. Tiene más de 220.000 estrellas en GitHub y más de 1.000 colaboradores, y más de 22 millones de desarrolladores lo usan cada mes.",
short:
"OpenCode es un agente de programación de código abierto de Anomaly, con apps para escritorio, móvil y terminal, y un SDK.",
},
+1 -1
View File
@@ -802,7 +802,7 @@ export const content = {
about: {
title: "À propos d'OpenCode",
boilerplate: {
long: "OpenCode est un agent de code open source. Il existe en app desktop, en app mobile, en interface terminal et en SDK, et il fonctionne avec les modèles de n'importe quel fournisseur, dont Claude, GPT et Gemini. OpenCode est sous licence MIT et développé par Anomaly. Il compte plus de 220 000 étoiles sur GitHub et plus de 1 000 contributeurs, et plus de 16 millions de développeurs l'utilisent chaque mois.",
long: "OpenCode est un agent de code open source. Il existe en app desktop, en app mobile, en interface terminal et en SDK, et il fonctionne avec les modèles de n'importe quel fournisseur, dont Claude, GPT et Gemini. OpenCode est sous licence MIT et développé par Anomaly. Il compte plus de 220 000 étoiles sur GitHub et plus de 1 000 contributeurs, et plus de 22 millions de développeurs l'utilisent chaque mois.",
short:
"OpenCode est un agent de code open source d'Anomaly, avec des apps desktop, mobile et terminal, et un SDK.",
},
+1 -1
View File
@@ -802,7 +802,7 @@ export const content = {
about: {
title: "Chi è OpenCode",
boilerplate: {
long: "OpenCode è un agente di coding open source. È disponibile come app desktop, app mobile, UI da terminale e SDK, e funziona con modelli di qualsiasi provider, tra cui Claude, GPT e Gemini. OpenCode ha licenza MIT ed è sviluppato da Anomaly. Ha oltre 220.000 stelle su GitHub e più di 1.000 contributori, e oltre 16 milioni di sviluppatori lo usano ogni mese.",
long: "OpenCode è un agente di coding open source. È disponibile come app desktop, app mobile, UI da terminale e SDK, e funziona con modelli di qualsiasi provider, tra cui Claude, GPT e Gemini. OpenCode ha licenza MIT ed è sviluppato da Anomaly. Ha oltre 220.000 stelle su GitHub e più di 1.000 contributori, e oltre 22 milioni di sviluppatori lo usano ogni mese.",
short:
"OpenCode è un agente di coding open source di Anomaly, con app per desktop, mobile e terminale, e un SDK.",
},
+1 -1
View File
@@ -540,7 +540,7 @@ export const content = {
about: {
title: "OpenCodeについて",
boilerplate: {
long: "OpenCodeはオープンソースのコーディングエージェントです。デスクトップアプリ、モバイルアプリ、ターミナルUI、SDKとして提供され、Claude、GPT、Geminiなど、あらゆるプロバイダーのモデルで動作します。OpenCodeはMITライセンスで、Anomalyが開発しています。GitHubスターは220,000以上、コントリビューターは1,000人以上で、毎月1,600万人以上の開発者が利用しています。",
long: "OpenCodeはオープンソースのコーディングエージェントです。デスクトップアプリ、モバイルアプリ、ターミナルUI、SDKとして提供され、Claude、GPT、Geminiなど、あらゆるプロバイダーのモデルで動作します。OpenCodeはMITライセンスで、Anomalyが開発しています。GitHubスターは220,000以上、コントリビューターは1,000人以上で、毎月2,200万人以上の開発者が利用しています。",
short:
"OpenCodeはAnomalyが開発するオープンソースのコーディングエージェントで、デスクトップ、モバイル、ターミナル向けのアプリとSDKがあります。",
},
+1 -1
View File
@@ -472,7 +472,7 @@ export const content = {
about: {
title: "OpenCode 소개",
boilerplate: {
long: "OpenCode는 오픈 소스 코딩 에이전트입니다. 데스크톱 앱, 모바일 앱, 터미널 UI, SDK로 제공되며, Claude, GPT, Gemini를 비롯해 모든 제공자의 모델과 함께 작동합니다. OpenCode는 MIT 라이선스이며 Anomaly가 만듭니다. GitHub 스타 220,000개 이상, 기여자 1,000명 이상을 보유하고 있으며, 매달 1,600만 명 이상의 개발자가 사용합니다.",
long: "OpenCode는 오픈 소스 코딩 에이전트입니다. 데스크톱 앱, 모바일 앱, 터미널 UI, SDK로 제공되며, Claude, GPT, Gemini를 비롯해 모든 제공자의 모델과 함께 작동합니다. OpenCode는 MIT 라이선스이며 Anomaly가 만듭니다. GitHub 스타 220,000개 이상, 기여자 1,000명 이상을 보유하고 있으며, 매달 2,200만 명 이상의 개발자가 사용합니다.",
short: "OpenCode는 Anomaly가 만든 오픈 소스 코딩 에이전트로, 데스크톱, 모바일, 터미널 앱과 SDK를 제공합니다.",
},
products: {
+1 -1
View File
@@ -524,7 +524,7 @@ export const content = {
about: {
title: "Om OpenCode",
boilerplate: {
long: "OpenCode er en kodeagent med åpen kildekode. Den finnes som skrivebordsapp, mobilapp, terminal-UI og SDK, og fungerer med modeller fra alle leverandører, blant annet Claude, GPT og Gemini. OpenCode er MIT-lisensiert og laget av Anomaly. Den har over 220 000 GitHub-stjerner og mer enn 1 000 bidragsytere, og over 16 millioner utviklere bruker den hver måned.",
long: "OpenCode er en kodeagent med åpen kildekode. Den finnes som skrivebordsapp, mobilapp, terminal-UI og SDK, og fungerer med modeller fra alle leverandører, blant annet Claude, GPT og Gemini. OpenCode er MIT-lisensiert og laget av Anomaly. Den har over 220 000 GitHub-stjerner og mer enn 1 000 bidragsytere, og over 22 millioner utviklere bruker den hver måned.",
short:
"OpenCode er en kodeagent med åpen kildekode fra Anomaly, med apper for skrivebord, mobil og terminal og et SDK.",
},
+1 -1
View File
@@ -865,7 +865,7 @@ export const content = {
about: {
title: "O OpenCode",
boilerplate: {
long: "OpenCode to open source'owy agent do programowania. Jest dostępny jako aplikacja desktopowa, aplikacja mobilna, interfejs terminalowy i SDK, i działa z modelami dowolnego dostawcy, w tym Claude, GPT i Gemini. OpenCode ma licencję MIT i jest tworzony przez Anomaly. Ma ponad 220 000 gwiazdek na GitHubie i ponad 1000 współtwórców, a co miesiąc korzysta z niego ponad 16 milionów programistów.",
long: "OpenCode to open source'owy agent do programowania. Jest dostępny jako aplikacja desktopowa, aplikacja mobilna, interfejs terminalowy i SDK, i działa z modelami dowolnego dostawcy, w tym Claude, GPT i Gemini. OpenCode ma licencję MIT i jest tworzony przez Anomaly. Ma ponad 220 000 gwiazdek na GitHubie i ponad 1000 współtwórców, a co miesiąc korzysta z niego ponad 22 miliony programistów.",
short:
"OpenCode to open source'owy agent do programowania od Anomaly, z aplikacjami na desktop, telefon i terminal oraz SDK.",
},
+1 -1
View File
@@ -519,7 +519,7 @@ export const content = {
about: {
title: "Об OpenCode",
boilerplate: {
long: "OpenCode — агент для программирования с открытым исходным кодом. Он доступен как десктопное приложение, мобильное приложение, терминальный интерфейс и SDK и работает с моделями любых провайдеров, включая Claude, GPT и Gemini. OpenCode распространяется по лицензии MIT и создан Anomaly. У него более 220 000 звёзд на GitHub и более 1 000 контрибьюторов, и им пользуются более 16 миллионов разработчиков каждый месяц.",
long: "OpenCode — агент для программирования с открытым исходным кодом. Он доступен как десктопное приложение, мобильное приложение, терминальный интерфейс и SDK и работает с моделями любых провайдеров, включая Claude, GPT и Gemini. OpenCode распространяется по лицензии MIT и создан Anomaly. У него более 220 000 звёзд на GitHub и более 1 000 контрибьюторов, и им пользуются более 22 миллионов разработчиков каждый месяц.",
short:
"OpenCode — агент для программирования с открытым кодом от Anomaly, с приложениями для десктопа, телефона и терминала и SDK.",
},
+1 -1
View File
@@ -480,7 +480,7 @@ export const content = {
about: {
title: "เกี่ยวกับ OpenCode",
boilerplate: {
long: "OpenCode คือเอเจนต์เขียนโค้ดแบบโอเพนซอร์ส มีให้ใช้ทั้งแอปเดสก์ท็อป แอปมือถือ UI เทอร์มินัล และ SDK และทำงานกับโมเดลจากผู้ให้บริการใดก็ได้ รวมถึง Claude, GPT และ Gemini OpenCode ใช้สัญญาอนุญาต MIT และพัฒนาโดย Anomaly มีดาว GitHub กว่า 220,000 ดวง ผู้ร่วมพัฒนากว่า 1,000 คน และนักพัฒนากว่า 16 ล้านคนใช้งานทุกเดือน",
long: "OpenCode คือเอเจนต์เขียนโค้ดแบบโอเพนซอร์ส มีให้ใช้ทั้งแอปเดสก์ท็อป แอปมือถือ UI เทอร์มินัล และ SDK และทำงานกับโมเดลจากผู้ให้บริการใดก็ได้ รวมถึง Claude, GPT และ Gemini OpenCode ใช้สัญญาอนุญาต MIT และพัฒนาโดย Anomaly มีดาว GitHub กว่า 220,000 ดวง ผู้ร่วมพัฒนากว่า 1,000 คน และนักพัฒนากว่า 22 ล้านคนใช้งานทุกเดือน",
short:
"OpenCode คือเอเจนต์เขียนโค้ดแบบโอเพนซอร์สโดย Anomaly มีแอปสำหรับเดสก์ท็อป มือถือ และเทอร์มินัล รวมถึง SDK",
},
+1 -1
View File
@@ -865,7 +865,7 @@ export const content = {
about: {
title: "OpenCode hakkında",
boilerplate: {
long: "OpenCode açık kaynaklı bir kodlama ajanıdır. Masaüstü uygulaması, mobil uygulama, terminal arayüzü ve SDK olarak gelir ve Claude, GPT ve Gemini dahil her sağlayıcının modelleriyle çalışır. OpenCode MIT lisanslıdır ve Anomaly tarafından geliştirilir. 220.000'den fazla GitHub yıldızı ve 1.000'den fazla katkıcısı vardır, her ay 16 milyondan fazla geliştirici onu kullanır.",
long: "OpenCode açık kaynaklı bir kodlama ajanıdır. Masaüstü uygulaması, mobil uygulama, terminal arayüzü ve SDK olarak gelir ve Claude, GPT ve Gemini dahil her sağlayıcının modelleriyle çalışır. OpenCode MIT lisanslıdır ve Anomaly tarafından geliştirilir. 220.000'den fazla GitHub yıldızı ve 1.000'den fazla katkıcısı vardır, her ay 22 milyondan fazla geliştirici onu kullanır.",
short:
"OpenCode, Anomaly'nin masaüstü, mobil ve terminal uygulamaları ile bir SDK'sı olan açık kaynaklı kodlama ajanıdır.",
},
+1 -1
View File
@@ -526,7 +526,7 @@ export const content = {
about: {
title: "Про OpenCode",
boilerplate: {
long: "OpenCode — агент для програмування з відкритим кодом. Він доступний як десктопний застосунок, мобільний застосунок, термінальний інтерфейс і SDK та працює з моделями будь-яких провайдерів, зокрема Claude, GPT і Gemini. OpenCode поширюється за ліцензією MIT і створений Anomaly. Він має понад 220 000 зірок на GitHub і понад 1 000 учасників, і ним користуються понад 16 мільйонів розробників щомісяця.",
long: "OpenCode — агент для програмування з відкритим кодом. Він доступний як десктопний застосунок, мобільний застосунок, термінальний інтерфейс і SDK та працює з моделями будь-яких провайдерів, зокрема Claude, GPT і Gemini. OpenCode поширюється за ліцензією MIT і створений Anomaly. Він має понад 220 000 зірок на GitHub і понад 1 000 учасників, і ним користуються понад 22 мільйони розробників щомісяця.",
short:
"OpenCode — агент для програмування з відкритим кодом від Anomaly, із застосунками для десктопа, телефона й терміналу та SDK.",
},
+1 -1
View File
@@ -412,7 +412,7 @@ export const content = {
about: {
title: "关于 OpenCode",
boilerplate: {
long: "OpenCode 是一个开源编程代理。它提供桌面应用、移动应用、终端界面和 SDK,并支持任意提供商的模型,包括 Claude、GPT 和 Gemini。OpenCode 采用 MIT 许可,由 Anomaly 打造。它在 GitHub 上拥有超过 220,000 个星标和 1,000 多位贡献者,每月有超过 1600 万开发者使用。",
long: "OpenCode 是一个开源编程代理。它提供桌面应用、移动应用、终端界面和 SDK,并支持任意提供商的模型,包括 Claude、GPT 和 Gemini。OpenCode 采用 MIT 许可,由 Anomaly 打造。它在 GitHub 上拥有超过 220,000 个星标和 1,000 多位贡献者,每月有超过 2200 万开发者使用。",
short: "OpenCode 是 Anomaly 推出的开源编程代理,提供桌面、移动和终端应用以及 SDK。",
},
products: {
+1 -1
View File
@@ -419,7 +419,7 @@ export const content = {
about: {
title: "關於 OpenCode",
boilerplate: {
long: "OpenCode 是一個開源編碼代理。它提供桌面應用程式、行動應用程式、終端機介面和 SDK,並支援任何供應商的模型,包括 Claude、GPT 和 Gemini。OpenCode 採用 MIT 授權,由 Anomaly 打造。它在 GitHub 上擁有超過 220,000 顆星星和 1,000 多位貢獻者,每月有超過 1600 萬名開發者使用。",
long: "OpenCode 是一個開源編碼代理。它提供桌面應用程式、行動應用程式、終端機介面和 SDK,並支援任何供應商的模型,包括 Claude、GPT 和 Gemini。OpenCode 採用 MIT 授權,由 Anomaly 打造。它在 GitHub 上擁有超過 220,000 顆星星和 1,000 多位貢獻者,每月有超過 2200 萬名開發者使用。",
short: "OpenCode 是 Anomaly 推出的開源編碼代理,提供桌面、行動和終端機應用程式以及 SDK。",
},
products: {
+2 -2
View File
@@ -399,8 +399,8 @@ export const dict = {
"site.theme.light": "Lyst",
"site.theme.dark": "Mørkt",
"site.moreFromAnomaly": "Mere fra Anomaly",
"home.companies.label": "16M+ udviklere stoler på os",
"home.companies.labelShort": "16M+ devs stoler på os",
"home.companies.label": "22M+ udviklere stoler på os",
"home.companies.labelShort": "22M+ devs stoler på os",
"home.providers.label": "Virker med",
"home.tools.title": "Tag dine egne værktøjer med",
"home.tools.lead": "Forbind de tjenester, du allerede bruger, med [MCP-servere](mcp), byg videre på OpenCode med [plugins](plugins), og lær agenter dine arbejdsgange med [skills](skills).",
+2 -2
View File
@@ -395,8 +395,8 @@ export const dict = {
"site.theme.light": "Hell",
"site.theme.dark": "Dunkel",
"site.moreFromAnomaly": "Mehr von Anomaly",
"home.companies.label": "16 Mio.+ Entwickler vertrauen uns",
"home.companies.labelShort": "Von 16 Mio.+ Devs genutzt",
"home.companies.label": "22 Mio.+ Entwickler vertrauen uns",
"home.companies.labelShort": "Von 22 Mio.+ Devs genutzt",
"home.providers.label": "Läuft mit",
"home.tools.title": "Bring deine eigenen Tools mit",
"home.tools.lead": "Verbinde die Dienste, die du schon nutzt, über [MCP-Server](mcp), erweitere OpenCode mit [Plugins](plugins) und bring Agents deine Workflows mit [Skills](skills) bei.",
+2 -2
View File
@@ -433,8 +433,8 @@ export const dict = {
"site.theme.light": "Light",
"site.theme.dark": "Dark",
"site.moreFromAnomaly": "More from Anomaly",
"home.companies.label": "Trusted by 16M+ developers",
"home.companies.labelShort": "Trusted by 16M+ devs",
"home.companies.label": "Trusted by 22M+ developers",
"home.companies.labelShort": "Trusted by 22M+ devs",
"home.providers.label": "Works with",
"home.providers.aria": "Model providers",
"home.providers.inline": "Use [list](list) or any of 200+ more models.",
+2 -2
View File
@@ -399,8 +399,8 @@ export const dict = {
"site.theme.light": "Claro",
"site.theme.dark": "Oscuro",
"site.moreFromAnomaly": "Más de Anomaly",
"home.companies.label": "Con la confianza de 16M+ devs",
"home.companies.labelShort": "Elegido por 16M+ devs",
"home.companies.label": "Con la confianza de 22M+ devs",
"home.companies.labelShort": "Elegido por 22M+ devs",
"home.providers.label": "Funciona con",
"home.tools.title": "Usa tus herramientas",
"home.tools.lead": "Conecta los servicios que ya usas con [servidores MCP](mcp), amplía OpenCode con [plugins](plugins) y enseña tus flujos de trabajo a los agentes con [skills](skills).",
+2 -2
View File
@@ -395,8 +395,8 @@ export const dict = {
"site.theme.light": "Clair",
"site.theme.dark": "Sombre",
"site.moreFromAnomaly": "Plus d'Anomaly",
"home.companies.label": "Adopté par plus de 16M de devs",
"home.companies.labelShort": "Plus de 16M de devs",
"home.companies.label": "Adopté par plus de 22M de devs",
"home.companies.labelShort": "Plus de 22M de devs",
"home.providers.label": "Compatible",
"home.tools.title": "Apportez vos outils",
"home.tools.lead": "Connectez les services que vous utilisez déjà avec des [serveurs MCP](mcp), branchez-vous sur OpenCode avec des [plugins](plugins) et apprenez vos workflows aux agents avec des [skills](skills).",
+2 -2
View File
@@ -398,8 +398,8 @@ export const dict = {
"site.theme.light": "Chiaro",
"site.theme.dark": "Scuro",
"site.moreFromAnomaly": "Altro da Anomaly",
"home.companies.label": "Scelto da oltre 16M di dev",
"home.companies.labelShort": "Oltre 16M di dev",
"home.companies.label": "Scelto da oltre 22M di dev",
"home.companies.labelShort": "Oltre 22M di dev",
"home.providers.label": "Funziona con",
"home.tools.title": "Porta i tuoi strumenti",
"home.tools.lead": "Collega i servizi che usi già con i [server MCP](mcp), estendi OpenCode con i [plugin](plugins) e insegna agli agenti i tuoi workflow con le [skill](skills).",
+2 -2
View File
@@ -395,8 +395,8 @@ export const dict = {
"site.theme.light": "ライト",
"site.theme.dark": "ダーク",
"site.moreFromAnomaly": "Anomalyの他の製品",
"home.companies.label": "1,600万人以上の開発者が信頼",
"home.companies.labelShort": "1,600万人以上が信頼",
"home.companies.label": "2,200万人以上の開発者が信頼",
"home.companies.labelShort": "2,200万人以上が信頼",
"home.providers.label": "連携先",
"home.tools.title": "使い慣れたツールをそのまま",
"home.tools.lead": "使っているサービスは[MCPサーバー](mcp)で接続し、[プラグイン](plugins)でOpenCodeに処理を組み込み、[スキル](skills)でエージェントにワークフローを教えられます。",
+2 -2
View File
@@ -400,8 +400,8 @@ export const dict = {
"site.theme.light": "라이트",
"site.theme.dark": "다크",
"site.moreFromAnomaly": "Anomaly의 다른 제품",
"home.companies.label": "1,600만 명 이상의 개발자가 신뢰",
"home.companies.labelShort": "1,600만+ 개발자가 신뢰",
"home.companies.label": "2,200만 명 이상의 개발자가 신뢰",
"home.companies.labelShort": "2,200만+ 개발자가 신뢰",
"home.providers.label": "호환 제공자",
"home.tools.title": "익숙한 도구를 그대로",
"home.tools.lead": "[MCP 서버](mcp)로 이미 쓰고 있는 서비스를 연결하고, [플러그인](plugins)으로 OpenCode에 기능을 더하고, [스킬](skills)로 에이전트에게 작업 방식을 가르치세요.",
+2 -2
View File
@@ -399,8 +399,8 @@ export const dict = {
"site.theme.light": "Lyst",
"site.theme.dark": "Mørkt",
"site.moreFromAnomaly": "Mer fra Anomaly",
"home.companies.label": "16M+ utviklere stoler på oss",
"home.companies.labelShort": "16M+ devs stoler på oss",
"home.companies.label": "22M+ utviklere stoler på oss",
"home.companies.labelShort": "22M+ devs stoler på oss",
"home.providers.label": "Virker med",
"home.tools.title": "Ta med egne verktøy",
"home.tools.lead": "Koble til tjenestene du allerede bruker med [MCP-servere](mcp), bygg videre på OpenCode med [plugins](plugins), og lær agenter arbeidsflytene dine med [skills](skills).",
+2 -2
View File
@@ -399,8 +399,8 @@ export const dict = {
"site.theme.light": "Jasny",
"site.theme.dark": "Ciemny",
"site.moreFromAnomaly": "Więcej od Anomaly",
"home.companies.label": "Ufa nam 16M+ programistów",
"home.companies.labelShort": "Ufa nam 16M+ devów",
"home.companies.label": "Ufa nam 22M+ programistów",
"home.companies.labelShort": "Ufa nam 22M+ devów",
"home.providers.label": "Działa z",
"home.tools.title": "Używaj własnych narzędzi",
"home.tools.lead": "Podłącz usługi, których już używasz, przez [serwery MCP](mcp), rozszerzaj OpenCode [pluginami](plugins) i ucz agentów swoich procesów pracy za pomocą [skilli](skills).",
+2 -2
View File
@@ -383,7 +383,7 @@ export const dict = {
"site.theme.light": "Светлая",
"site.theme.dark": "Тёмная",
"site.moreFromAnomaly": "Ещё от Anomaly",
"home.companies.label": "Нам доверяют 16M+ разработчиков",
"home.companies.label": "Нам доверяют 22M+ разработчиков",
"home.providers.label": "Работает с",
"home.tools.title": "Ваши инструменты",
"home.tools.lead": "Подключайте сервисы, которыми уже пользуетесь, через [MCP-серверы](mcp), встраивайтесь в OpenCode с помощью [плагинов](plugins) и учите агентов своим процессам с помощью [навыков](skills).",
@@ -601,7 +601,7 @@ export const dict = {
"home.console.body": "Качественный инференс передовых и открытых моделей, недорогие подписки с щедрыми лимитами и инструменты, которые помогают команде управлять расходами и эффективно работать вместе.",
"site.action.forOsBeta": "Скачать для {{os}}, бета в Apple TestFlight",
"site.action.storeBeta": "{{os}}, бета в Apple TestFlight",
"home.companies.labelShort": "16M+ разработчиков с нами",
"home.companies.labelShort": "22M+ разработчиков с нами",
"go.referral.ended.label": "Предупреждение",
"go.referral.ended": "Реферальная программа завершена. Реферальные ссылки больше не начисляют кредиты ни вам, ни тому, кто ими поделился.",
"legal.status.operational": "Все системы работают",
+3 -3
View File
@@ -288,7 +288,7 @@
"content:pair.steps.scan-the-code.body": "2lp75cpa8zx35",
"content:pair.steps.scan-the-code.title": "2i93382ygjwgo",
"content:pair.title": "nviskpzon1ri",
"content:press.about.boilerplate.long": "1b25i80eq4283",
"content:press.about.boilerplate.long": "3s1ill4w7mdjw",
"content:press.about.boilerplate.short": "290bo89o159ce",
"content:press.about.products.opencode-console.long": "2nw3cdv67wvh",
"content:press.about.products.opencode-console.name": "iwvr4179mrfp",
@@ -604,8 +604,8 @@
"footer.x": "3uj1c60iwy73m",
"home.banner.badge": "jqvjcamk7vs3",
"home.byos.providersLabel": "u1xmh49hfrqa",
"home.companies.label": "sqgmcnt99w3",
"home.companies.labelShort": "1div71zkcrhbc",
"home.companies.label": "u3a0gwq6xjcg",
"home.companies.labelShort": "1f3pdk5mkb9ha",
"home.console.body": "1mvqsygjqshmq",
"home.console.cta": "2k8wjj6s3ip6n",
"home.console.headline": "3jjf6xghgylhg",
+3 -3
View File
@@ -298,7 +298,7 @@
"content:pair.steps.scan-the-code.body": "2lp75cpa8zx35",
"content:pair.steps.scan-the-code.title": "2i93382ygjwgo",
"content:pair.title": "nviskpzon1ri",
"content:press.about.boilerplate.long": "1b25i80eq4283",
"content:press.about.boilerplate.long": "3s1ill4w7mdjw",
"content:press.about.boilerplate.short": "290bo89o159ce",
"content:press.about.products.opencode-console.long": "2nw3cdv67wvh",
"content:press.about.products.opencode-console.name": "iwvr4179mrfp",
@@ -624,8 +624,8 @@
"footer.x": "3uj1c60iwy73m",
"home.banner.badge": "jqvjcamk7vs3",
"home.byos.providersLabel": "u1xmh49hfrqa",
"home.companies.label": "sqgmcnt99w3",
"home.companies.labelShort": "1div71zkcrhbc",
"home.companies.label": "u3a0gwq6xjcg",
"home.companies.labelShort": "1f3pdk5mkb9ha",
"home.console.body": "1mvqsygjqshmq",
"home.console.cta": "2k8wjj6s3ip6n",
"home.console.headline": "3jjf6xghgylhg",
+3 -3
View File
@@ -283,7 +283,7 @@
"content:pair.steps.scan-the-code.body": "2lp75cpa8zx35",
"content:pair.steps.scan-the-code.title": "2i93382ygjwgo",
"content:pair.title": "nviskpzon1ri",
"content:press.about.boilerplate.long": "1b25i80eq4283",
"content:press.about.boilerplate.long": "3s1ill4w7mdjw",
"content:press.about.boilerplate.short": "290bo89o159ce",
"content:press.about.products.opencode-console.long": "2nw3cdv67wvh",
"content:press.about.products.opencode-console.name": "iwvr4179mrfp",
@@ -598,8 +598,8 @@
"footer.x": "3uj1c60iwy73m",
"home.banner.badge": "jqvjcamk7vs3",
"home.byos.providersLabel": "u1xmh49hfrqa",
"home.companies.label": "sqgmcnt99w3",
"home.companies.labelShort": "1div71zkcrhbc",
"home.companies.label": "u3a0gwq6xjcg",
"home.companies.labelShort": "1f3pdk5mkb9ha",
"home.console.body": "1mvqsygjqshmq",
"home.console.cta": "2k8wjj6s3ip6n",
"home.console.headline": "3jjf6xghgylhg",
+3 -3
View File
@@ -283,7 +283,7 @@
"content:pair.steps.scan-the-code.body": "2lp75cpa8zx35",
"content:pair.steps.scan-the-code.title": "2i93382ygjwgo",
"content:pair.title": "nviskpzon1ri",
"content:press.about.boilerplate.long": "1b25i80eq4283",
"content:press.about.boilerplate.long": "3s1ill4w7mdjw",
"content:press.about.boilerplate.short": "290bo89o159ce",
"content:press.about.products.opencode-console.long": "2nw3cdv67wvh",
"content:press.about.products.opencode-console.name": "iwvr4179mrfp",
@@ -598,8 +598,8 @@
"footer.x": "3uj1c60iwy73m",
"home.banner.badge": "jqvjcamk7vs3",
"home.byos.providersLabel": "u1xmh49hfrqa",
"home.companies.label": "sqgmcnt99w3",
"home.companies.labelShort": "1div71zkcrhbc",
"home.companies.label": "u3a0gwq6xjcg",
"home.companies.labelShort": "1f3pdk5mkb9ha",
"home.console.body": "1mvqsygjqshmq",
"home.console.cta": "2k8wjj6s3ip6n",
"home.console.headline": "3jjf6xghgylhg",
+3 -3
View File
@@ -284,7 +284,7 @@
"content:pair.steps.scan-the-code.body": "2lp75cpa8zx35",
"content:pair.steps.scan-the-code.title": "2i93382ygjwgo",
"content:pair.title": "nviskpzon1ri",
"content:press.about.boilerplate.long": "1b25i80eq4283",
"content:press.about.boilerplate.long": "3s1ill4w7mdjw",
"content:press.about.boilerplate.short": "290bo89o159ce",
"content:press.about.products.opencode-console.long": "2nw3cdv67wvh",
"content:press.about.products.opencode-console.name": "iwvr4179mrfp",
@@ -599,8 +599,8 @@
"footer.x": "3uj1c60iwy73m",
"home.banner.badge": "jqvjcamk7vs3",
"home.byos.providersLabel": "u1xmh49hfrqa",
"home.companies.label": "sqgmcnt99w3",
"home.companies.labelShort": "1div71zkcrhbc",
"home.companies.label": "u3a0gwq6xjcg",
"home.companies.labelShort": "1f3pdk5mkb9ha",
"home.console.body": "1mvqsygjqshmq",
"home.console.cta": "2k8wjj6s3ip6n",
"home.console.headline": "3jjf6xghgylhg",
+3 -3
View File
@@ -284,7 +284,7 @@
"content:pair.steps.scan-the-code.body": "2lp75cpa8zx35",
"content:pair.steps.scan-the-code.title": "2i93382ygjwgo",
"content:pair.title": "nviskpzon1ri",
"content:press.about.boilerplate.long": "1b25i80eq4283",
"content:press.about.boilerplate.long": "3s1ill4w7mdjw",
"content:press.about.boilerplate.short": "290bo89o159ce",
"content:press.about.products.opencode-console.long": "2nw3cdv67wvh",
"content:press.about.products.opencode-console.name": "iwvr4179mrfp",
@@ -599,8 +599,8 @@
"footer.x": "3uj1c60iwy73m",
"home.banner.badge": "jqvjcamk7vs3",
"home.byos.providersLabel": "u1xmh49hfrqa",
"home.companies.label": "sqgmcnt99w3",
"home.companies.labelShort": "1div71zkcrhbc",
"home.companies.label": "u3a0gwq6xjcg",
"home.companies.labelShort": "1f3pdk5mkb9ha",
"home.console.body": "1mvqsygjqshmq",
"home.console.cta": "2k8wjj6s3ip6n",
"home.console.headline": "3jjf6xghgylhg",
+3 -3
View File
@@ -284,7 +284,7 @@
"content:pair.steps.scan-the-code.body": "2lp75cpa8zx35",
"content:pair.steps.scan-the-code.title": "2i93382ygjwgo",
"content:pair.title": "nviskpzon1ri",
"content:press.about.boilerplate.long": "1b25i80eq4283",
"content:press.about.boilerplate.long": "3s1ill4w7mdjw",
"content:press.about.boilerplate.short": "290bo89o159ce",
"content:press.about.products.opencode-console.long": "2nw3cdv67wvh",
"content:press.about.products.opencode-console.name": "iwvr4179mrfp",
@@ -599,8 +599,8 @@
"footer.x": "3uj1c60iwy73m",
"home.banner.badge": "jqvjcamk7vs3",
"home.byos.providersLabel": "u1xmh49hfrqa",
"home.companies.label": "sqgmcnt99w3",
"home.companies.labelShort": "1div71zkcrhbc",
"home.companies.label": "u3a0gwq6xjcg",
"home.companies.labelShort": "1f3pdk5mkb9ha",
"home.console.body": "1mvqsygjqshmq",
"home.console.cta": "2k8wjj6s3ip6n",
"home.console.headline": "3jjf6xghgylhg",
+3 -3
View File
@@ -290,7 +290,7 @@
"content:pair.steps.scan-the-code.body": "2lp75cpa8zx35",
"content:pair.steps.scan-the-code.title": "2i93382ygjwgo",
"content:pair.title": "nviskpzon1ri",
"content:press.about.boilerplate.long": "1b25i80eq4283",
"content:press.about.boilerplate.long": "3s1ill4w7mdjw",
"content:press.about.boilerplate.short": "290bo89o159ce",
"content:press.about.products.opencode-console.long": "2nw3cdv67wvh",
"content:press.about.products.opencode-console.name": "iwvr4179mrfp",
@@ -616,8 +616,8 @@
"footer.x": "3uj1c60iwy73m",
"home.banner.badge": "jqvjcamk7vs3",
"home.byos.providersLabel": "u1xmh49hfrqa",
"home.companies.label": "sqgmcnt99w3",
"home.companies.labelShort": "1div71zkcrhbc",
"home.companies.label": "u3a0gwq6xjcg",
"home.companies.labelShort": "1f3pdk5mkb9ha",
"home.console.body": "1mvqsygjqshmq",
"home.console.cta": "2k8wjj6s3ip6n",
"home.console.headline": "3jjf6xghgylhg",
+3 -3
View File
@@ -288,7 +288,7 @@
"content:pair.steps.scan-the-code.body": "2lp75cpa8zx35",
"content:pair.steps.scan-the-code.title": "2i93382ygjwgo",
"content:pair.title": "nviskpzon1ri",
"content:press.about.boilerplate.long": "1b25i80eq4283",
"content:press.about.boilerplate.long": "3s1ill4w7mdjw",
"content:press.about.boilerplate.short": "290bo89o159ce",
"content:press.about.products.opencode-console.long": "2nw3cdv67wvh",
"content:press.about.products.opencode-console.name": "iwvr4179mrfp",
@@ -614,8 +614,8 @@
"footer.x": "3uj1c60iwy73m",
"home.banner.badge": "jqvjcamk7vs3",
"home.byos.providersLabel": "u1xmh49hfrqa",
"home.companies.label": "sqgmcnt99w3",
"home.companies.labelShort": "1div71zkcrhbc",
"home.companies.label": "u3a0gwq6xjcg",
"home.companies.labelShort": "1f3pdk5mkb9ha",
"home.console.body": "1mvqsygjqshmq",
"home.console.cta": "2k8wjj6s3ip6n",
"home.console.headline": "3jjf6xghgylhg",
+3 -3
View File
@@ -283,7 +283,7 @@
"content:pair.steps.scan-the-code.body": "2lp75cpa8zx35",
"content:pair.steps.scan-the-code.title": "2i93382ygjwgo",
"content:pair.title": "nviskpzon1ri",
"content:press.about.boilerplate.long": "1b25i80eq4283",
"content:press.about.boilerplate.long": "3s1ill4w7mdjw",
"content:press.about.boilerplate.short": "290bo89o159ce",
"content:press.about.products.opencode-console.long": "2nw3cdv67wvh",
"content:press.about.products.opencode-console.name": "iwvr4179mrfp",
@@ -598,8 +598,8 @@
"footer.x": "3uj1c60iwy73m",
"home.banner.badge": "jqvjcamk7vs3",
"home.byos.providersLabel": "u1xmh49hfrqa",
"home.companies.label": "sqgmcnt99w3",
"home.companies.labelShort": "1div71zkcrhbc",
"home.companies.label": "u3a0gwq6xjcg",
"home.companies.labelShort": "1f3pdk5mkb9ha",
"home.console.body": "1mvqsygjqshmq",
"home.console.cta": "2k8wjj6s3ip6n",
"home.console.headline": "3jjf6xghgylhg",
+3 -3
View File
@@ -298,7 +298,7 @@
"content:pair.steps.scan-the-code.body": "2lp75cpa8zx35",
"content:pair.steps.scan-the-code.title": "2i93382ygjwgo",
"content:pair.title": "nviskpzon1ri",
"content:press.about.boilerplate.long": "1b25i80eq4283",
"content:press.about.boilerplate.long": "3s1ill4w7mdjw",
"content:press.about.boilerplate.short": "290bo89o159ce",
"content:press.about.products.opencode-console.long": "2nw3cdv67wvh",
"content:press.about.products.opencode-console.name": "iwvr4179mrfp",
@@ -624,8 +624,8 @@
"footer.x": "3uj1c60iwy73m",
"home.banner.badge": "jqvjcamk7vs3",
"home.byos.providersLabel": "u1xmh49hfrqa",
"home.companies.label": "sqgmcnt99w3",
"home.companies.labelShort": "1div71zkcrhbc",
"home.companies.label": "u3a0gwq6xjcg",
"home.companies.labelShort": "1f3pdk5mkb9ha",
"home.console.body": "1mvqsygjqshmq",
"home.console.cta": "2k8wjj6s3ip6n",
"home.console.headline": "3jjf6xghgylhg",
+3 -3
View File
@@ -288,7 +288,7 @@
"content:pair.steps.scan-the-code.body": "2lp75cpa8zx35",
"content:pair.steps.scan-the-code.title": "2i93382ygjwgo",
"content:pair.title": "nviskpzon1ri",
"content:press.about.boilerplate.long": "1b25i80eq4283",
"content:press.about.boilerplate.long": "3s1ill4w7mdjw",
"content:press.about.boilerplate.short": "290bo89o159ce",
"content:press.about.products.opencode-console.long": "2nw3cdv67wvh",
"content:press.about.products.opencode-console.name": "iwvr4179mrfp",
@@ -604,8 +604,8 @@
"footer.x": "3uj1c60iwy73m",
"home.banner.badge": "jqvjcamk7vs3",
"home.byos.providersLabel": "u1xmh49hfrqa",
"home.companies.label": "sqgmcnt99w3",
"home.companies.labelShort": "1div71zkcrhbc",
"home.companies.label": "u3a0gwq6xjcg",
"home.companies.labelShort": "1f3pdk5mkb9ha",
"home.console.body": "1mvqsygjqshmq",
"home.console.cta": "2k8wjj6s3ip6n",
"home.console.headline": "3jjf6xghgylhg",
+3 -3
View File
@@ -290,7 +290,7 @@
"content:pair.steps.scan-the-code.body": "2lp75cpa8zx35",
"content:pair.steps.scan-the-code.title": "2i93382ygjwgo",
"content:pair.title": "nviskpzon1ri",
"content:press.about.boilerplate.long": "1b25i80eq4283",
"content:press.about.boilerplate.long": "3s1ill4w7mdjw",
"content:press.about.boilerplate.short": "290bo89o159ce",
"content:press.about.products.opencode-console.long": "2nw3cdv67wvh",
"content:press.about.products.opencode-console.name": "iwvr4179mrfp",
@@ -616,8 +616,8 @@
"footer.x": "3uj1c60iwy73m",
"home.banner.badge": "jqvjcamk7vs3",
"home.byos.providersLabel": "u1xmh49hfrqa",
"home.companies.label": "sqgmcnt99w3",
"home.companies.labelShort": "1div71zkcrhbc",
"home.companies.label": "u3a0gwq6xjcg",
"home.companies.labelShort": "1f3pdk5mkb9ha",
"home.console.body": "1mvqsygjqshmq",
"home.console.cta": "2k8wjj6s3ip6n",
"home.console.headline": "3jjf6xghgylhg",
+3 -3
View File
@@ -298,7 +298,7 @@
"content:pair.steps.scan-the-code.body": "2lp75cpa8zx35",
"content:pair.steps.scan-the-code.title": "2i93382ygjwgo",
"content:pair.title": "nviskpzon1ri",
"content:press.about.boilerplate.long": "1b25i80eq4283",
"content:press.about.boilerplate.long": "3s1ill4w7mdjw",
"content:press.about.boilerplate.short": "290bo89o159ce",
"content:press.about.products.opencode-console.long": "2nw3cdv67wvh",
"content:press.about.products.opencode-console.name": "iwvr4179mrfp",
@@ -624,8 +624,8 @@
"footer.x": "3uj1c60iwy73m",
"home.banner.badge": "jqvjcamk7vs3",
"home.byos.providersLabel": "u1xmh49hfrqa",
"home.companies.label": "sqgmcnt99w3",
"home.companies.labelShort": "1div71zkcrhbc",
"home.companies.label": "u3a0gwq6xjcg",
"home.companies.labelShort": "1f3pdk5mkb9ha",
"home.console.body": "1mvqsygjqshmq",
"home.console.cta": "2k8wjj6s3ip6n",
"home.console.headline": "3jjf6xghgylhg",
+3 -3
View File
@@ -288,7 +288,7 @@
"content:pair.steps.scan-the-code.body": "2lp75cpa8zx35",
"content:pair.steps.scan-the-code.title": "2i93382ygjwgo",
"content:pair.title": "nviskpzon1ri",
"content:press.about.boilerplate.long": "1b25i80eq4283",
"content:press.about.boilerplate.long": "3s1ill4w7mdjw",
"content:press.about.boilerplate.short": "290bo89o159ce",
"content:press.about.products.opencode-console.long": "2nw3cdv67wvh",
"content:press.about.products.opencode-console.name": "iwvr4179mrfp",
@@ -604,8 +604,8 @@
"footer.x": "3uj1c60iwy73m",
"home.banner.badge": "jqvjcamk7vs3",
"home.byos.providersLabel": "u1xmh49hfrqa",
"home.companies.label": "sqgmcnt99w3",
"home.companies.labelShort": "1div71zkcrhbc",
"home.companies.label": "u3a0gwq6xjcg",
"home.companies.labelShort": "1f3pdk5mkb9ha",
"home.console.body": "1mvqsygjqshmq",
"home.console.cta": "2k8wjj6s3ip6n",
"home.console.headline": "3jjf6xghgylhg",
+3 -3
View File
@@ -288,7 +288,7 @@
"content:pair.steps.scan-the-code.body": "2lp75cpa8zx35",
"content:pair.steps.scan-the-code.title": "2i93382ygjwgo",
"content:pair.title": "nviskpzon1ri",
"content:press.about.boilerplate.long": "1b25i80eq4283",
"content:press.about.boilerplate.long": "3s1ill4w7mdjw",
"content:press.about.boilerplate.short": "290bo89o159ce",
"content:press.about.products.opencode-console.long": "2nw3cdv67wvh",
"content:press.about.products.opencode-console.name": "iwvr4179mrfp",
@@ -614,8 +614,8 @@
"footer.x": "3uj1c60iwy73m",
"home.banner.badge": "jqvjcamk7vs3",
"home.byos.providersLabel": "u1xmh49hfrqa",
"home.companies.label": "sqgmcnt99w3",
"home.companies.labelShort": "1div71zkcrhbc",
"home.companies.label": "u3a0gwq6xjcg",
"home.companies.labelShort": "1f3pdk5mkb9ha",
"home.console.body": "1mvqsygjqshmq",
"home.console.cta": "2k8wjj6s3ip6n",
"home.console.headline": "3jjf6xghgylhg",
+3 -3
View File
@@ -288,7 +288,7 @@
"content:pair.steps.scan-the-code.body": "2lp75cpa8zx35",
"content:pair.steps.scan-the-code.title": "2i93382ygjwgo",
"content:pair.title": "nviskpzon1ri",
"content:press.about.boilerplate.long": "1b25i80eq4283",
"content:press.about.boilerplate.long": "3s1ill4w7mdjw",
"content:press.about.boilerplate.short": "290bo89o159ce",
"content:press.about.products.opencode-console.long": "2nw3cdv67wvh",
"content:press.about.products.opencode-console.name": "iwvr4179mrfp",
@@ -614,8 +614,8 @@
"footer.x": "3uj1c60iwy73m",
"home.banner.badge": "jqvjcamk7vs3",
"home.byos.providersLabel": "u1xmh49hfrqa",
"home.companies.label": "sqgmcnt99w3",
"home.companies.labelShort": "1div71zkcrhbc",
"home.companies.label": "u3a0gwq6xjcg",
"home.companies.labelShort": "1f3pdk5mkb9ha",
"home.console.body": "1mvqsygjqshmq",
"home.console.cta": "2k8wjj6s3ip6n",
"home.console.headline": "3jjf6xghgylhg",
+2 -2
View File
@@ -399,8 +399,8 @@ export const dict = {
"site.theme.light": "สว่าง",
"site.theme.dark": "มืด",
"site.moreFromAnomaly": "เพิ่มเติมจาก Anomaly",
"home.companies.label": "นักพัฒนากว่า 16 ล้านคนไว้วางใจ",
"home.companies.labelShort": "นักพัฒนากว่า 16 ล้านไว้ใจ",
"home.companies.label": "นักพัฒนากว่า 22 ล้านคนไว้วางใจ",
"home.companies.labelShort": "นักพัฒนากว่า 22 ล้านไว้ใจ",
"home.providers.label": "ใช้งานได้กับ",
"home.tools.title": "ใช้เครื่องมือของคุณเอง",
"home.tools.lead": "เชื่อมต่อบริการที่คุณใช้อยู่แล้วด้วย [เซิร์ฟเวอร์ MCP](mcp) ต่อเข้ากับ OpenCode ด้วย [ปลั๊กอิน](plugins) และสอนเวิร์กโฟลว์ของคุณให้เอเจนต์ด้วย [สกิล](skills)",
+2 -2
View File
@@ -399,8 +399,8 @@ export const dict = {
"site.theme.light": "Açık",
"site.theme.dark": "Koyu",
"site.moreFromAnomaly": "Anomaly'den diğerleri",
"home.companies.label": "16M+ geliştiricinin tercihi",
"home.companies.labelShort": "16M+ dev'in tercihi",
"home.companies.label": "22M+ geliştiricinin tercihi",
"home.companies.labelShort": "22M+ dev'in tercihi",
"home.providers.label": "Uyumlu olanlar",
"home.tools.title": "Kendi araçlarınızı getirin",
"home.tools.lead": "Zaten kullandığınız hizmetleri [MCP sunucularıyla](mcp) bağlayın, OpenCode'u [eklentilerle](plugins) genişletin ve ajanlara iş akışlarınızı [becerilerle](skills) öğretin.",
+2 -2
View File
@@ -385,7 +385,7 @@ export const dict = {
"site.theme.light": "Світла",
"site.theme.dark": "Темна",
"site.moreFromAnomaly": "Ще від Anomaly",
"home.companies.label": "Нам довіряють 16M+ розробників",
"home.companies.label": "Нам довіряють 22M+ розробників",
"home.providers.label": "Працює з",
"home.tools.title": "Ваші інструменти",
"home.tools.lead": "Підключайте сервіси, якими вже користуєтеся, через [MCP-сервери](mcp), вбудовуйтеся в OpenCode за допомогою [плагінів](plugins) і навчайте агентів своїх процесів за допомогою [навичок](skills).",
@@ -601,7 +601,7 @@ export const dict = {
"zen.faq.q3": "Чи OpenCode Models дешевше?",
"site.action.forOsBeta": "Завантажити для {{os}}, бета в Apple TestFlight",
"site.action.storeBeta": "{{os}}, бета в Apple TestFlight",
"home.companies.labelShort": "16M+ розробників з нами",
"home.companies.labelShort": "22M+ розробників з нами",
"go.referral.ended.label": "Попередження",
"go.referral.ended": "Реферальну програму завершено. Реферальні посилання більше не нараховують кредити ні вам, ні тому, хто ними поділився.",
"legal.status.operational": "Усі системи працюють",
+2 -2
View File
@@ -396,8 +396,8 @@ export const dict = {
"site.theme.light": "浅色",
"site.theme.dark": "深色",
"site.moreFromAnomaly": "Anomaly 的更多产品",
"home.companies.label": "1600 万+ 开发者的信赖之选",
"home.companies.labelShort": "1600 万+ 开发者信赖",
"home.companies.label": "2200 万+ 开发者的信赖之选",
"home.companies.labelShort": "2200 万+ 开发者信赖",
"home.providers.label": "兼容",
"home.tools.title": "带上您自己的工具",
"home.tools.lead": "通过 [MCP 服务器](mcp)连接您已在使用的服务,用[插件](plugins)接入 OpenCode,再用[技能](skills)把您的工作流教给代理。",
+2 -2
View File
@@ -400,8 +400,8 @@ export const dict = {
"site.theme.light": "淺色",
"site.theme.dark": "深色",
"site.moreFromAnomaly": "Anomaly 的更多產品",
"home.companies.label": "超過 1600 萬名開發者信賴",
"home.companies.labelShort": "1600 萬+ 開發者信賴",
"home.companies.label": "超過 2200 萬名開發者信賴",
"home.companies.labelShort": "2200 萬+ 開發者信賴",
"home.providers.label": "相容",
"home.tools.title": "帶上你自己的工具",
"home.tools.lead": "透過 [MCP 伺服器](mcp)連接你已在使用的服務,用[外掛](plugins)擴充 OpenCode,再用[技能](skills)把你的工作流程教給代理。",
+31 -13
View File
@@ -63,13 +63,16 @@
display: grid;
place-items: center;
/* Each tile keeps the background its files are made for, whatever the page's theme: fixed
colours, and "only" so a browser's automatic dark mode (Chrome's forced dark, which some device
previews turn on) can't darken the light tile or invert its artwork. */
&[data-tone="light"] {
color-scheme: light;
background: var(--bg-weak);
color-scheme: only light;
background: #f5f5f5;
}
&[data-tone="dark"] {
color-scheme: dark;
color-scheme: only dark;
background: #0a0a0a;
box-shadow: inset 0 0 0 1px var(--border);
}
@@ -440,10 +443,12 @@
min-width: 0;
}
/* The exact colour, which a browser's automatic dark mode must not alter. */
[data-slot="swatch"] {
display: block;
height: 6rem;
margin-bottom: 0.75rem;
color-scheme: only light;
}
[data-slot="title-row"] {
@@ -1191,14 +1196,14 @@
aspect-ratio: 2;
&[data-tone="light"] {
color-scheme: light;
color-scheme: only light;
background: #f4f4f4;
--size-muted: #6b6b6b;
--size-strong: #1f1f1f;
}
&[data-tone="dark"] {
color-scheme: dark;
color-scheme: only dark;
background: #0a0a0a;
box-shadow: inset 0 0 0 1px var(--border);
--size-muted: #8f8f8f;
@@ -1281,19 +1286,21 @@
opacity: 1;
}
/* Touch: always shown, set further in from the corner and lower, and each size a real 44px tall
target (the whole box, inside the tile) with 8px between neighbours. */
@media (hover: none), (pointer: coarse) {
[data-slot="sizes"] {
top: 0;
inset-inline-start: 0.75rem;
gap: 0.5rem;
opacity: 1;
/* An invisible band above and below makes each size a 44px tall target. */
button {
position: relative;
&::after {
content: "";
position: absolute;
inset: -12px 0;
}
display: inline-flex;
align-items: center;
min-width: 44px;
min-height: 44px;
padding: 0 0.625rem;
}
}
}
@@ -1564,6 +1571,17 @@
}
}
/* Brand only: a tighter gap under each section title (12px; 14px on phones, keeping their +2px), so the
title groups with its text while the 72px above it stays clearly larger. The shared 24px
(on-this-page.css) stays for Press, legal and the product pages. */
[data-site][data-page="brand"] {
--heading-gap: 12px;
@media (max-width: 40rem) {
--heading-gap: 14px;
}
}
/* Scrolling (set by the page for 150ms after each scroll): hover states wait, so rows and tiles don't
light up one by one as they pass under a resting pointer. Pointers that hover only: on touch it
would swallow a tap made just after a scroll stops. */
+61 -3
View File
@@ -136,6 +136,10 @@
z-index: 3;
display: grid;
grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
/* The first row is the logo row (--top down, --logo-height tall), so the claim and the
Download button centre on the line the fixed logo and GitHub mark share; taller items
overflow it evenly above and below. */
grid-template-rows: var(--logo-height);
align-items: center;
/* The right end clears the fixed GitHub mark in the corner (github-link.css). */
padding: var(--top) var(--github-clear) 0 var(--edge);
@@ -306,6 +310,39 @@
padding: 88px 24px;
}
}
[data-slot="phone-copy"] {
display: none;
}
/* On phones the claim sits centred under the wordmark, and the pair is centred together. It
follows the wordmark in the DOM, so it also reads after it. */
@media (pointer: coarse) and (max-width: 40rem) {
[data-slot="top-copy"] {
display: none;
}
.letter-output {
margin-block: auto 0;
}
[data-slot="phone-copy"] {
display: block;
flex-shrink: 0;
max-width: 22rem;
margin: 24px 0 auto;
font-family: var(--font-mono);
font-size: var(--fs-small);
line-height: 1.5;
text-align: center;
text-wrap: balance;
sup {
font-size: 0.72em;
line-height: 0;
}
}
}
}
.letter-output {
@@ -547,13 +584,13 @@
/* Windows wider than the layout centre it (site.css); two copies of the box, shifted out by the
room on each side, carry the plates' colour (and the blue universe bands') to the window's
edges without changing their layout. Zero below 1728px. */
:is([data-plate], [data-slot="universe-stage"], [data-slot="universe-notes"]) {
:is([data-plate], [data-slot="universe-track"], [data-slot="universe-stage"], [data-slot="universe-notes"]) {
box-shadow:
calc(-1 * var(--page-offset)) 0 0 var(--plate-bleed, var(--bg)),
var(--page-offset-end) 0 0 var(--plate-bleed, var(--bg));
}
:is([data-slot="universe-stage"], [data-slot="universe-notes"]) {
:is([data-slot="universe-track"], [data-slot="universe-stage"], [data-slot="universe-notes"]) {
--plate-bleed: var(--universe-blue);
}
@@ -728,12 +765,19 @@
a {
display: flex;
align-items: baseline;
gap: 1rem;
padding: 0.4rem 0;
border-bottom: 1px solid var(--hair);
font-size: 0.9375rem;
transition: color 150ms ease;
/* The number shares the label's baseline, then rises to centre its cap height on the label's
(Inter's cap height is 0.727 em). */
[data-anno] {
translate: 0 calc((1cap - 0.727 * 0.9375rem) / 2);
}
@media (hover: hover) and (pointer: fine) {
&:hover {
color: var(--link);
@@ -2106,8 +2150,12 @@
padding: max(1.5rem, calc(var(--m) * 1.5)) 0 max(1.5rem, calc(var(--m) * 1.5)) var(--pad);
border-bottom: 1px solid var(--hair);
/* Phones put the size and its ruler above the line, so the line gets the full width and the
large rulers are not cut off. */
@media (max-width: 40rem) {
grid-template-columns: 5.5rem minmax(0, 1fr);
grid-template-columns: minmax(0, 1fr);
gap: 12px;
padding-block: max(1.5rem, calc(var(--m) * 0.75));
}
}
}
@@ -2125,6 +2173,13 @@
color: var(--text-weak);
white-space: nowrap;
}
@media (max-width: 40rem) {
flex-direction: row;
align-items: center;
gap: 12px;
padding-right: var(--pad);
}
}
[data-slot="ruler"] {
@@ -2507,6 +2562,9 @@
[data-slot="universe-track"] {
margin-inline: calc(-1 * var(--pad));
height: 420vh;
/* The same blue under the pinned stage: on phones the stage is 100svh, so once the browser bar
hides, the strip below it would show the page colour between the stage and the notes. */
background: var(--universe-blue);
@media (max-width: 40rem) {
height: 320vh;
+4 -3
View File
@@ -1924,15 +1924,16 @@
}
}
/* Phones: the Console panel's background (the dark panel and its dots) runs edge to edge; its
content keeps its place, the page edge plus the panel's 1.5rem padding. */
/* Phones: the Console panel's background (the dark panel and its dots) runs edge to edge, to the
screen's edges; its content keeps the page's side padding, so its text lines up with the FAQ's
above on both sides. */
@media (max-width: 40rem) {
[data-page="home"][data-site]
[data-component="block"][data-console="panel"][data-console-layout="block"][data-console-layout] {
margin-inline: calc(-1 * var(--edge));
[data-slot="console"] {
padding-inline: calc(var(--edge) + 1.5rem);
padding-inline: var(--edge);
}
}
}
+1
View File
@@ -1,3 +1,4 @@
import "~/component/site/doc-list.css"
import "./legal.css"
import { LegalHub } from "~/component/site/legal"
+25 -366
View File
@@ -304,15 +304,20 @@
--tabs-top: calc(var(--top) + var(--logo-height) / 2 + 0.6 * var(--mono-size) + 0.5rem);
--anchor-top: calc(var(--content-top) + 1rem);
/* Phones: the bars stack edge to edge, top bar, breadcrumb band, tabs, Contents, with one line at
each join: the tabs pin right under the band (its bottom line), the Contents bar right under
the tabs (their divider). */
@media (max-width: 60rem) {
--tabs-top: calc(
var(--topbar-height) + env(safe-area-inset-top, 0px) + 1.375rem + 0.6 * var(--mono-size) + 0.5rem
);
--tabs-top: calc(var(--topbar-height) + env(safe-area-inset-top, 0px) + 2.75rem);
--anchor-top: calc(var(--topbar-height) + env(safe-area-inset-top, 0px) + 2.75rem + 1rem);
}
&:has([data-slot="view-tabs"]) {
--anchor-top: calc(var(--tabs-top) + 2.75rem + 1rem);
@media (max-width: 60rem) {
--anchor-top: calc(var(--tabs-top) + var(--row-height) + 1rem);
}
}
}
@@ -627,365 +632,6 @@
[data-slot="heading-link"] {
min-block-size: 24px;
}
[data-component="legal-list"] {
display: flex;
flex-direction: column;
gap: 0.5rem;
a {
position: relative;
display: flex;
flex-direction: column;
gap: 0.25rem;
padding: 1rem;
margin-inline: -1rem;
text-decoration: none;
color: var(--text);
outline: 2px solid transparent;
outline-offset: 0;
transition:
background-color 150ms ease,
border-color 150ms ease;
&:focus-visible {
outline-color: var(--link);
}
}
/* A step under the group headings (title size), so the list reads as one level beneath them. */
[data-slot="title"] {
font-family: var(--font-mono);
font-size: var(--mono-size);
color: var(--text-strong);
}
[data-slot="description"],
[data-slot="dates"] {
font-size: var(--body-size);
line-height: 1.5;
color: var(--text);
}
/* Metadata (dates, "Pending legal review"): a step smaller than the description, and muted. */
[data-slot="dates"] {
font-size: var(--fs-meta);
color: var(--text-weak);
/* Phones: the effective date and the last change on their own lines, with no middot. */
@media (max-width: 60rem) {
> span {
display: block;
}
[data-slot="separator"] {
display: none;
}
}
}
/* Touch: no long-press link preview over the rows (title and description run together in it). */
@media (hover: none) {
a {
-webkit-touch-callout: none;
}
}
/* Rows answer hover in the style Settings › Legal row hover picks; never in the menu blue. The
arrow and the bar are hidden until a style shows them. */
&:is([data-style="rows"], [data-style="grouped"]) {
a {
padding-inline-end: 3.5rem;
}
[data-slot="title"] {
color: var(--text-strong);
text-decoration: underline;
text-decoration-thickness: 1px;
text-underline-offset: 0.2em;
text-decoration-color: transparent;
transition:
color 150ms ease,
text-decoration-color 150ms ease;
}
[data-slot="arrow"] {
position: absolute;
top: 1rem;
inset-inline-end: 1.25rem;
color: var(--text-strong);
opacity: 0;
translate: -0.375rem 0;
transition:
opacity 150ms ease,
translate 200ms var(--ease-out);
}
/* The bar and the hairline are drawn by the link itself. */
a::before {
content: "";
position: absolute;
opacity: 0;
transition: opacity 150ms ease;
}
a:focus-visible [data-slot="title"] {
color: var(--text-strong);
}
@media (hover: hover) and (pointer: fine) {
a:hover [data-slot="title"] {
color: var(--text-strong);
}
}
a:active [data-slot="title"] {
color: var(--text-strong);
}
}
&[data-hover="title"] a:focus-visible [data-slot="title"] {
text-decoration-color: currentColor;
}
@media (hover: hover) and (pointer: fine) {
&[data-hover="title"] a:hover [data-slot="title"] {
text-decoration-color: currentColor;
}
}
&[data-hover="title"] a:active [data-slot="title"] {
text-decoration-color: currentColor;
}
&[data-hover="arrow"] a:focus-visible [data-slot="arrow"] {
opacity: 1;
translate: 0 0;
}
@media (hover: hover) and (pointer: fine) {
&[data-hover="arrow"] a:hover [data-slot="arrow"] {
opacity: 1;
translate: 0 0;
}
}
&[data-hover="arrow"] a:active [data-slot="arrow"] {
opacity: 1;
translate: 0 0;
}
/* "grey": the menus' hover in neutral grey whatever Menu color is: a light tint and a mid-grey
bar on the left edge. No arrow. */
&[data-hover="grey"] a:focus-visible {
background: var(--bg-weak);
}
@media (hover: hover) and (pointer: fine) {
&[data-hover="grey"] a:hover {
background: var(--bg-weak);
}
}
&[data-hover="grey"] a:active {
background: var(--bg-weak);
}
&[data-hover="grey"] a::before {
top: 0;
bottom: 0;
inset-inline-start: 0;
width: 2px;
background: light-dark(hsl(0, 0%, 50%), hsl(0, 0%, 46%));
}
&[data-hover="grey"] a:focus-visible::before {
opacity: 1;
}
@media (hover: hover) and (pointer: fine) {
&[data-hover="grey"] a:hover::before {
opacity: 1;
}
}
&[data-hover="grey"] a:active::before {
opacity: 1;
}
&[data-hover="bar"] a::before {
top: 1rem;
bottom: 1rem;
inset-inline-start: 0;
width: 2px;
background: var(--menu-bar);
}
&[data-hover="lift"] a::before {
inset-inline-start: 1rem;
inset-inline-end: 1rem;
bottom: 0;
height: 1px;
background: var(--border-strong);
}
&:is([data-hover="bar"], [data-hover="lift"]) a:focus-visible::before {
opacity: 1;
}
@media (hover: hover) and (pointer: fine) {
&:is([data-hover="bar"], [data-hover="lift"]) a:hover::before {
opacity: 1;
}
}
&:is([data-hover="bar"], [data-hover="lift"]) a:active::before {
opacity: 1;
}
&[data-hover="lift"] a:focus-visible [data-slot="description"] {
color: var(--text);
}
@media (hover: hover) and (pointer: fine) {
&[data-hover="lift"] a:hover [data-slot="description"] {
color: var(--text);
}
}
/* Cards: two columns of tinted cards; the date sits at the bottom. */
&[data-style="cards"],
&[data-style="tiles"] {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: var(--gutter);
li {
display: flex;
}
a {
flex: 1;
margin: 0;
padding: 1.25rem;
gap: 0.5rem;
background: var(--bg-weak);
border: 1px solid transparent;
@media (hover: hover) and (pointer: fine) {
&:hover {
background: var(--bg-weaker);
}
}
&:active {
background: var(--bg-weaker);
}
}
[data-slot="dates"] {
margin-top: auto;
padding-top: 0.75rem;
}
}
/* Tiles: taller, with a document glyph above the title. */
&[data-style="tiles"] {
grid-template-columns: repeat(3, minmax(0, 1fr));
a {
min-height: 15rem;
padding: 1.5rem;
background: none;
border-color: var(--border);
@media (hover: hover) and (pointer: fine) {
&:hover {
background: var(--bg-weak);
border-color: var(--border-strong);
}
}
&:active {
background: var(--bg-weak);
border-color: var(--border-strong);
}
}
[data-slot="glyph"] {
margin-bottom: 1rem;
color: var(--text-weak);
}
}
/* Compact: title and date on one line; the description shows on hover and focus. */
&[data-style="compact list"] {
gap: 0;
a {
display: grid;
grid-template-columns: minmax(0, 1fr) auto;
column-gap: 1.5rem;
align-items: baseline;
padding-block: 0.75rem;
@media (hover: hover) and (pointer: fine) {
&:hover {
background: var(--bg-weaker);
}
}
&:active {
background: var(--bg-weaker);
}
}
[data-slot="description"] {
grid-column: 1 / -1;
grid-row: 2;
display: none;
padding-top: 0.25rem;
}
[data-slot="dates"] {
grid-column: 2;
grid-row: 1;
text-align: end;
}
a:focus-visible [data-slot="description"] {
display: block;
}
@media (hover: hover) and (pointer: fine) {
a:hover [data-slot="description"] {
display: block;
}
}
@media (hover: none), (pointer: coarse) {
[data-slot="description"] {
display: block;
}
}
}
@media (max-width: 40rem) {
&:is([data-style="cards"], [data-style="tiles"]) {
grid-template-columns: minmax(0, 1fr);
}
&[data-style="compact list"] a {
grid-template-columns: minmax(0, 1fr);
[data-slot="dates"] {
grid-column: 1;
grid-row: auto;
text-align: start;
}
}
}
}
}
/* External links keep their arrow on the same line, just after the text. */
@@ -1316,9 +962,15 @@
linear-gradient(var(--border), var(--border)) 6px 100% / calc(100% - 12px) 1px no-repeat,
var(--bg);
/* Over the band's empty lower part, under the top bar. */
/* Phones: under the band, at the shared row height, the row and its divider across the whole
screen; the labels stay on the page content's edge. */
@media (max-width: 60rem) {
z-index: 9;
margin-inline: calc(-1 * var(--edge));
padding-inline: calc(var(--edge) - 6px);
background:
linear-gradient(var(--border), var(--border)) 0 100% / 100% 1px no-repeat,
var(--bg);
}
&::-webkit-scrollbar {
@@ -1329,6 +981,11 @@
position: relative;
flex: none;
min-block-size: 44px;
@media (max-width: 60rem) {
min-block-size: var(--row-height);
}
padding: 0 6px;
background: none;
border-radius: 0;
@@ -1397,17 +1054,19 @@
}
}
/* Phones: the pinned tabs' divider is the header's bottom edge, so the band drops its hairline. */
/* Phones: with tabs, a line under the breadcrumbs, always (breadcrumbs, line, tabs). The tabs pin
right under it and have no top line of their own, so the join keeps one line. */
@media (max-width: 60rem) {
&[data-site]:has([data-slot="view-tabs"]) [data-component="breadcrumb"]::after {
display: none;
opacity: 1;
animation: none;
}
}
/* Each view under the tabs is at least a screen tall below the pinned bar, so switching views
with the bar pinned can keep it pinned (legal.tsx scrolls to the new view's top). */
&[data-site]:has([data-slot="view-tabs"]) :is([data-slot="history-view"], [data-component="legal-body"]) {
min-height: calc(100dvh - var(--tabs-top) - 2.75rem - 2.5rem);
min-height: calc(100dvh - var(--tabs-top) - var(--row-height) - 2.5rem);
}
[data-slot="history-view"] [data-component="legal-history"] {
+5 -1
View File
@@ -838,11 +838,13 @@
}
}
/* The downloads under each tile at the inline end (the right, or the left in right-to-left text),
as on /brand; a line that wraps ends there too. */
[data-slot="meta"] {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: space-between;
justify-content: flex-end;
gap: 0.5rem 1rem;
}
@@ -855,6 +857,8 @@
/* The buttons' size and spacing match /brand: asset-buttons.css. */
[data-slot="actions"] {
display: flex;
flex-wrap: wrap;
justify-content: flex-end;
}
}
+15 -10
View File
@@ -1,6 +1,7 @@
import { Rich } from "~/component/site/rich-text"
import { rich } from "~/i18n/rich"
import { Marked } from "~/component/site/marked"
import "~/component/site/doc-list.css"
import "./index.css"
import { Title, Meta } from "@solidjs/meta"
import { createAsync } from "@solidjs/router"
@@ -34,6 +35,7 @@ import { brandContent, brandMarkdown } from "~/lib/brand-content"
import { pressContent, pressMarkdown, pressReleases } from "~/lib/press-content"
import { MediaGallery } from "./media-gallery"
import { PageTitle } from "~/component/site/sticky-title"
import { ExternalArrow } from "~/component/site/icons"
// One-line Anomaly projects for Settings › Press Anomaly projects "list".
const projectLines: Record<string, string> = {
@@ -446,7 +448,14 @@ export default function Press() {
<Rich value={rich(content().company.more, content().company.links)} />
</p>
</div>
<ul data-component="product-list" data-variant="cards" data-style={siteSettings.pressCompany}>
{/* The legal index's list (doc-list.css): the same rows, type, spacing and hover. */}
<ul
data-component="legal-list"
data-style="rows"
data-hover={siteSettings.legalRowHover}
data-slot="projects"
data-design="pressCompany legalRowHover"
>
<For each={content().company.projects}>
{(project) => {
// OpenCode is this site; the other projects open in a new tab.
@@ -457,21 +466,17 @@ export default function Press() {
href={project.href}
target={external ? "_blank" : undefined}
rel={external ? "noopener" : undefined}
data-slot="row-link"
aria-label={external ? i18n.t("site.newTab", { label: project.name }) : project.name}
aria-describedby={`project-${slug(project.name)}`}
>
<strong>
<span data-slot="title">
{project.name}
{/* The site's new-tab arrow, after the name. */}
{/* The nav's new-tab arrow, 6px after the name. */}
<Show when={external}>
<span data-slot="external" aria-hidden="true">
{" "}
↗
</span>
<ExternalArrow />
</Show>
</strong>
<span id={`project-${slug(project.name)}`}>
</span>
<span data-slot="description" id={`project-${slug(project.name)}`}>
{siteSettings.pressCompany === "list" ? projectLines[project.name] : project.body}
</span>
</a>
@@ -98,6 +98,7 @@
[data-slot="zip-size"] {
display: none;
align-self: end;
margin-top: -0.25rem;
font-size: var(--fs-meta);
color: var(--text-weak);
@@ -139,8 +140,9 @@
}
/* Never wider than its column; the label truncates before it overflows. */
/* Under its tile, at the inline end (the right, or the left in right-to-left text), as on /brand. */
[data-slot="product-download"] {
align-self: start;
align-self: end;
max-width: 100%;
min-width: 0;
overflow: hidden;
@@ -302,6 +304,7 @@
display: flex;
flex: none;
align-items: center;
justify-content: flex-end;
gap: 0.5rem;
}
@@ -556,6 +559,13 @@
flex-direction: column;
}
/* Stacked under the caption, the downloads keep to the inline end. */
[data-slot="tile-actions"] {
align-self: end;
flex-wrap: wrap;
justify-content: flex-end;
}
[data-slot="count"] {
display: none;
}