diff --git a/services/site/DESIGN.md b/services/site/DESIGN.md index 59ad9f95e25..4b40e922431 100644 --- a/services/site/DESIGN.md +++ b/services/site/DESIGN.md @@ -72,12 +72,14 @@ To add a rule, add one line under its group. Mark a rule that is still being dec - Use `component/faq.tsx` for every accordion. → [Accordion](/dev/components#faq) - Every dropdown uses the shared Dropdown component; no one-off menus. On the site that is `SiteMenu` (`component/site/site-menu.tsx`), which brings the shared menu look, keyboard support and the phone sheet. - Open every dropdown with `placeMenu` (`component/site/place-menu.ts`; SiteMenu already does). It opens below the trigger, above only when below has no room, and in the top layer, so a scrolling box such as the carousel never cuts it off. +- A dropdown that opens from a button with an icon starts at the button's inline-start edge, and its row icons and labels sit exactly under the button's icon and label (within 0.5px; mirrored in RTL). Set the rows' inset and gap from the button's own tokens (`--icon-inset`, `--icon-gap` in `site.css`), never per menu. Phone bottom sheets are not anchored to the button, so they don't follow this. → [Split button](/dev/components#split-button) - Turn dropdowns into the shared bottom sheet (`sheet.tsx`) on touch phones. → [Bottom sheet](/dev/components#sheet) - Give long pages the Contents rail (`OnThisPage`) and its phone bar (`ContentsMenu`). → [Contents](/dev/components#contents) - Draw breadcrumbs with muted ancestors, `|` separators and the current page in ink. → [Breadcrumbs](/dev/components#breadcrumb) - Confirm copy actions in place ("Copied") through a live region; the site has no toasts. → [Copy buttons](/dev/components#copy-buttons) - On docs pages, the left nav's first item, the content's first item and the right rail's first item share one top line (text tops for the nav and the title, the box top for the search box). - A sidebar that scrolls under fixed chrome (the docs nav under the logo and lockup) fades out at its edges with a mask, only while items are under that edge; phones keep hard cuts on sticky bars. +- Beside the sidebar, the OpenCode logo and the lockup beside it (DOCS) never move: fixed in the top-left corner at the same place on every page, at rest and scrolled. Whatever passes under them (a sidebar leaving with the article at the page's end) fades out under a strip of the page colour, shown only while something is under it. Phones keep their top bar. - No flat greys inside callouts or other tinted surfaces; grey layers blend with the surface (mix-blend-mode), except code and table bodies, which stay solid. → [Code inside callouts](/dev/docs-components#blend) - Code blocks and tables inside a tinted surface blend their header and borders with mix-blend-mode, so they take the surface's hue; code and table bodies stay solid, on the code body colour. → [Code inside callouts](/dev/docs-components#blend) - Docs code blocks copy with a text-only button in the header: "Copy" turns to "Copied" (or "Failed"), right-aligned in the width of the longest label so nothing moves. → [Code blocks](/dev/docs-components#code-blocks) diff --git a/services/site/script/check-client-bundle.ts b/services/site/script/check-client-bundle.ts index 38b0e8b5557..9c154584575 100644 --- a/services/site/script/check-client-bundle.ts +++ b/services/site/script/check-client-bundle.ts @@ -68,21 +68,21 @@ const budgets: Record = { "brand/index.tsx": 107, "changelog/[tag].tsx": 113, "changelog/index.tsx": 112, - "desktop.tsx": 126.3, + "desktop.tsx": 127.6, "devices.tsx": 51, "product/browse.tsx": 106, "font/index.tsx": 121, - "ide.tsx": 126.3, + "ide.tsx": 127.6, "index.tsx": 118, "legal/index.tsx": 148, "legal/privacy-policy/index.tsx": 137, "legal/terms-of-service/index.tsx": 135, - "mini.tsx": 126.3, - "mobile.tsx": 126.3, + "mini.tsx": 127.6, + "mobile.tsx": 127.6, "press/index.tsx": 112, "product/index.tsx": 114.7, - "sdk.tsx": 126.3, - "terminal.tsx": 126.3, + "sdk.tsx": 127.6, + "terminal.tsx": 127.6, "video-editor/index.tsx": 49, } type Chunk = { file: string; imports?: string[] } diff --git a/services/site/src/component/site/doc-list.css b/services/site/src/component/site/doc-list.css index 13950051df2..f5535a1039c 100644 --- a/services/site/src/component/site/doc-list.css +++ b/services/site/src/component/site/doc-list.css @@ -11,8 +11,8 @@ display: flex; flex-direction: column; gap: 0.25rem; - padding: 1rem; - margin-inline: -1rem; + padding: var(--doc-row-pad); + margin-inline: calc(-1 * var(--doc-row-pad)); text-decoration: none; color: var(--text); outline: 2px solid transparent; @@ -151,17 +151,17 @@ /* "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); + background: var(--doc-row-fill); } @media (hover: hover) and (pointer: fine) { &[data-hover="grey"] a:hover { - background: var(--bg-weak); + background: var(--doc-row-fill); } } &[data-hover="grey"] a:active { - background: var(--bg-weak); + background: var(--doc-row-fill); } &[data-hover="grey"] a::before { @@ -169,7 +169,7 @@ bottom: 0; inset-inline-start: 0; width: 2px; - background: light-dark(hsl(0, 0%, 50%), hsl(0, 0%, 46%)); + background: var(--doc-row-bar); } &[data-hover="grey"] a:focus-visible::before { diff --git a/services/site/src/component/site/docs-lockup.css b/services/site/src/component/site/docs-lockup.css index 7b8ddf38f82..7b50787b96f 100644 --- a/services/site/src/component/site/docs-lockup.css +++ b/services/site/src/component/site/docs-lockup.css @@ -384,18 +384,15 @@ /* Every interactive segment of the lockup (the section word, its chevron, the combined trigger and the version) shares one set of states, as the Data and Console product names do - (public/nav-demo/switcher.css): hover fills with the logo's inner square beside it (--logo-inner, - site.css) with the text at full strength, pressed and open one step further from the page, and a - 2px ring for the keyboard. Neutral grey whatever Settings › Menu color. The visible fill is the + (public/nav-demo/switcher.css): hover fills with half the logo's inner square beside it + (--logo-inner, site.css) over the page, with the text at full strength; pressed and open take the + full inner-square colour, the next step from the page; and a 2px ring for the keyboard. Neutral grey whatever Settings › Menu color. The visible fill is the logo mark's height (the lockup row is the mark's height and top); a transparent ::before keeps each hit area 32px tall beside the sidebar and 44px for touch. The separator isn't interactive. */ [data-site] [data-component="docs-lockup"] { --segment-height: 32px; - --lockup-hover: var(--logo-inner); - --lockup-press: light-dark( - color-mix(in srgb, var(--logo-inner) 94%, black), - color-mix(in srgb, var(--logo-inner) 94%, white) - ); + --lockup-hover: color-mix(in srgb, var(--logo-inner) 50%, transparent); + --lockup-press: var(--logo-inner); @media (max-width: 60rem), (pointer: coarse) { --segment-height: 44px; diff --git a/services/site/src/component/site/github-link.css b/services/site/src/component/site/github-link.css index 39817ea5767..f9eec395eed 100644 --- a/services/site/src/component/site/github-link.css +++ b/services/site/src/component/site/github-link.css @@ -1,5 +1,5 @@ /* The GitHub mark (site.tsx): the mark in the primary ink, the 40px circle round it the link. Beside the sidebar it is fixed in the top-right corner, centred on the logo row - and on the same vertical axis as the voice orb in the bottom-right corner; on small screens it + and as far from the right edge as from the top; on small screens it sits in the top bar, left of the menu button. Bare pages (the font page) have no top bar, so there it stays in the corner at every width. */ [data-site] { @@ -14,6 +14,17 @@ --github-right: calc(0.75rem + (4.5rem - var(--github-size)) / 2 + env(safe-area-inset-right, 0px)); } + /* Beside the sidebar the mark mirrors the logo across the top: it sits as far from the right edge + (of the window, or of the capped layout) as from the top. Its link is centred on the logo row, so + the link's right inset equals its top inset, --top + --logo-height / 2 - --github-size / 2 + (the 20px mark then 27.5px from both edges at the default logo size). The controls that sit + beside it or clear it follow --github-right. */ + @media (min-width: 60.0625rem) { + --github-right: calc( + var(--top) + var(--logo-height) / 2 - var(--github-size) / 2 + env(safe-area-inset-right, 0px) + ); + } + /* 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"] { diff --git a/services/site/src/component/site/product-list.css b/services/site/src/component/site/product-list.css index bef79111576..636b5d9d6c4 100644 --- a/services/site/src/component/site/product-list.css +++ b/services/site/src/component/site/product-list.css @@ -97,6 +97,62 @@ margin-inline-start: var(--gutter); } + /* From 40rem: the Press list's row model (doc-list.css). The row's content stays on the + column's edge with its padding outside it, and the whole row is the link (the button's cover + spans it): hover, press or keyboard focus fills it in the rows' grey and shows the bar at its + start edge, both bleeding past the edge. The gap keeps the items the same distance apart. */ + @media (min-width: 40rem) { + row-gap: calc(var(--product-list-gap) - 2 * var(--doc-row-pad)); + + li { + padding: var(--doc-row-pad); + margin-inline: calc(-1 * var(--doc-row-pad)); + transition: background-color 150ms ease; + + &::after { + content: ""; + position: absolute; + top: 0; + bottom: 0; + inset-inline-start: 0; + width: 2px; + background: var(--doc-row-bar); + opacity: 0; + transition: opacity 150ms ease; + } + + &:has([data-slot="get"]:is(:active, :focus-visible)) { + background: var(--doc-row-fill); + + &::after { + opacity: 1; + } + } + + @media (hover: hover) and (pointer: fine) { + &:hover { + background: var(--doc-row-fill); + + &::after { + opacity: 1; + } + } + } + } + + /* No press scale: a transform would make the button the box its cover is placed in, and a + click on the row would end outside it. */ + [data-slot="get"] { + transform: none !important; + } + + [data-slot="get"]::before { + content: ""; + position: absolute; + inset: 0; + } + } + /* 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"] { diff --git a/services/site/src/component/site/products.css b/services/site/src/component/site/products.css index ed2a52aa956..d8fd25d30c7 100644 --- a/services/site/src/component/site/products.css +++ b/services/site/src/component/site/products.css @@ -528,13 +528,15 @@ justify-content: center; } - /* Exactly as wide as the button and its chevron together, from the button's left edge (the - split is the menu's positioning box); a label that doesn't fit ends in an ellipsis. */ + /* From the button's inline-start edge (the split is the menu's positioning box), at least as wide + as the button and its chevron together and wider when a row needs it (a shorter translated + button, as in Arabic), so every label shows in full; placeMenu caps it 16px from the window's + edges, and only then does a label end in an ellipsis. */ [data-slot="menu"][data-slot="menu"] { inset-inline-start: 0; inset-inline-end: auto; - width: 100%; - min-width: 0; + width: max-content; + min-width: 100%; transform-origin: bottom var(--x-start, left); [data-slot="store"] { diff --git a/services/site/src/component/site/products.tsx b/services/site/src/component/site/products.tsx index e9ff012a76b..2378e5ddab7 100644 --- a/services/site/src/component/site/products.tsx +++ b/services/site/src/component/site/products.tsx @@ -1070,7 +1070,7 @@ export function ProductAction(props: { slug: PageSlug; split?: boolean; both?: b const storeRow = (item: (typeof stores)[number]) => ( <> - + {item.label} @@ -1102,7 +1102,9 @@ export function ProductAction(props: { slug: PageSlug; split?: boolean; both?: b {(item) => ( - {i18n.t(item.label)} + + {i18n.t(item.label)} + )} @@ -1268,7 +1270,9 @@ export function ProductAction(props: { slug: PageSlug; split?: boolean; both?: b aria-label={i18n.t("site.action.comingSoonFor", { os: item.device })} > - {item.device} + + {item.device} + {i18n.t("site.action.comingSoon")} @@ -1378,13 +1382,11 @@ export function ProductAction(props: { slug: PageSlug; split?: boolean; both?: b {(item) => (
  • - sheetControl?.close()} - > + sheetControl?.close()}> - {i18n.t(item.label)} + + {i18n.t(item.label)} +
  • )} @@ -1443,7 +1445,9 @@ export function ProductAction(props: { slug: PageSlug; split?: boolean; both?: b aria-label={i18n.t("site.action.comingSoonFor", { os: item.device })} > - {item.device} + + {item.device} + {i18n.t("site.action.comingSoon")} diff --git a/services/site/src/component/site/rtl.css b/services/site/src/component/site/rtl.css index 11318d6f790..f3105858ad0 100644 --- a/services/site/src/component/site/rtl.css +++ b/services/site/src/component/site/rtl.css @@ -34,14 +34,15 @@ unicode-bidi: isolate; } -/* Menu rows that end in an ellipsis: the cut goes at the end of the label's own text (Latin platform - names and commands end on the right), while the row stays against the menu's start edge. */ -[dir="rtl"] [data-slot="menu"] [data-slot="label"] { +/* Menu and phone sheet rows that end in an ellipsis: the cut goes at the end of the label's own text + (Latin platform names and commands end on the right), while the row stays against the menu's + start edge. */ +[dir="rtl"] :is([data-slot="menu"], [data-component="sheet"]) [data-slot="label"] { unicode-bidi: plaintext; text-align: right; } -[dir="rtl"] [data-slot="menu"] [data-slot="command"] { +[dir="rtl"] :is([data-slot="menu"], [data-component="sheet"]) [data-slot="command"] { direction: ltr; unicode-bidi: isolate; text-align: right; diff --git a/services/site/src/component/site/site.css b/services/site/src/component/site/site.css index 40714cfebb0..a3b03ccc0ae 100644 --- a/services/site/src/component/site/site.css +++ b/services/site/src/component/site/site.css @@ -56,6 +56,12 @@ html:has([data-site][data-theme="dark"]) { /* The product cards' media backdrop (products.css), which their covers and reels are graded to in both themes. */ --card-media-bg: #161616; + /* The document rows' model (doc-list.css, and the product lists in product-list.css): a row's text + on the content edge with this padding outside it, so the hover fill and the bar at its start + edge bleed past the edge. */ + --doc-row-pad: 1rem; + --doc-row-fill: var(--bg-weak); + --doc-row-bar: light-dark(hsl(0, 0%, 50%), hsl(0, 0%, 46%)); /* The home Console band (routes/index.css), dark in both themes: the panel grey in light, and in dark #121212, a muted step above the #0c0c0c page so it reads as a band, not a slab. A registered colour, so light-dark() resolves in the page's scheme here and not in the band's own forced-dark @@ -647,10 +653,15 @@ html:has([data-site][data-theme="dark"]) { /* A leading icon carries visual weight, so trim the left padding to keep the button optically centered. The gap to the label matches the space left of the icon (the artwork sits about - 1.3px inside its box), so both read as about 13px. */ + 1.3px inside its box), so both read as about 13px. The menus such a button opens set their row + icons with the same inset and gap (--icon-inset, --icon-gap; the store rows below), so each row's + icon and label start line up with the button's. */ + --icon-inset: 0.75rem; + --icon-gap: 0.75rem; + [data-component="site-button"]:has(> [data-slot="platform-icon"]:first-child) { - padding-inline-start: 0.75rem; - gap: 0.75rem; + padding-inline-start: var(--icon-inset); + gap: var(--icon-gap); } /* A trailing chevron sits midway between the label and the button's right edge: the gap and the @@ -851,9 +862,12 @@ html:has([data-site][data-theme="dark"]) { } } + /* Rows with a platform icon: the menu starts at the button's edge, so the button's icon inset + and gap (above) put each row's icon and label exactly under the button's. */ [data-slot="menu"] [data-slot="store"] { grid-template-columns: 14px auto auto; - column-gap: 0.625rem; + column-gap: var(--icon-gap); + padding-inline-start: var(--icon-inset); color: var(--text-strong); [data-slot="platform-icon"] { @@ -3353,9 +3367,12 @@ html:has([data-site][data-theme="dark"]) { grid-template-rows: 0fr; transition: grid-template-rows 300ms var(--ease-out); + /* The opening itself is the bar's blue, so the bar reads as one blue surface rising from the + bottom edge, which takes the blue at once (site.tsx), with no page colour between them. */ [data-slot="clip"] { min-height: 0; overflow: hidden; + background: var(--bar-blue); } /* The link slides up into the bar as it opens, and back down as it closes. */ @@ -3409,6 +3426,15 @@ html:has([data-site][data-theme="dark"]) { } } +/* Development only (site.tsx, ?letters-bar=instant): the bar appears at once, pushing the page up, + with the bottom's blue. */ +[data-site][data-letters-motion="instant"] [data-component="letters-bar"] { + &, + [data-slot="slide"] { + transition: none; + } +} + /* Settings › Footer › columns: the sidebar column stays empty. Under the link columns, a bar across the content: the copyright on the left, the status, language and theme on the right. */ [data-site] [data-component="site-footer"][data-layout="columns"] { @@ -4157,3 +4183,53 @@ html [data-site][data-nav-numbers="1"][data-status-bars="6"] { :where([data-site]) :is(h2, h3) { text-wrap: pretty; } + +/* The logo, and the docs lockup beside it, stay fixed in the top-left corner on every page. On most + pages the whole sidebar is fixed; in the docs layout (the docs, Press and Brand) it sticks while + you read and leaves with the article at the page's end, but the logo and lockup stay. Out of the + flow, the sidebar's top padding keeps their place for the nav (the content line, --content-top). + While the sidebar is on its way out (Site sets data-under), a strip of the page colour behind the + logo row hides what passes under it, ending in the docs nav's 2.5rem fade (docs.css). */ +@media (min-width: 60.0625rem) { + [data-site][data-layout="docs"] [data-component="sidebar"] { + padding-top: var(--content-top); + + > [data-slot="logo"] { + position: fixed; + top: calc(var(--banner-offset, 0px) + var(--top)); + inset-inline-start: calc(var(--page-offset) + var(--edge) - var(--bracket-bearing)); + z-index: 3; + + &::after { + content: ""; + position: absolute; + z-index: -1; + top: calc(-1 * var(--top)); + inset-inline-start: calc(var(--bracket-bearing) - var(--edge)); + width: var(--sidebar-width); + height: var(--content-top); + background: var(--bg); + mask-image: linear-gradient(to bottom, #000 calc(100% - 2.5rem), transparent); + opacity: 0; + pointer-events: none; + } + } + + &[data-under] > [data-slot="logo"]::after { + opacity: 1; + } + + /* A link reached with Tab scrolls into view below the logo row, never under its strip. */ + a { + scroll-margin-top: var(--content-top); + } + + > [data-component="docs-lockup"] { + position: fixed; + top: calc(var(--banner-offset, 0px) + var(--top)); + inset-inline-start: calc(var(--page-offset) + var(--edge) + var(--lockup-logo) + 12px - 6px); + /* Over the logo's strip, so the lockup and its menus show above it. */ + z-index: 4; + } + } +} diff --git a/services/site/src/component/site/site.tsx b/services/site/src/component/site/site.tsx index a67b62f5400..e68f6c317de 100644 --- a/services/site/src/component/site/site.tsx +++ b/services/site/src/component/site/site.tsx @@ -152,13 +152,7 @@ const speculationRules = JSON.stringify({ ], }) -// Labels and headlines match status.opencode.ai. -const statusLabel = { - operational: "site.status.operational", - degraded: "site.status.degraded", - outage: "site.status.outage", - unknown: "site.status.unknown", -} as const satisfies Record +// The tooltips match status.opencode.ai's headlines. The label is only "Normal" or "Status". const statusHeadline = { operational: "site.status.operationalHeadline", degraded: "site.status.degradedHeadline", @@ -209,6 +203,11 @@ export function Site(props: { * for a reference page that must always show the locked set (/dev/docs). */ docsVariants?: string + /** + * Stands in for the status API's answer (`undefined` as a failed fetch), for the gallery of status + * states (/dev/components#sidebar-status). Overrides Settings › Status preview. + */ + status?: () => ServiceStatus[] | undefined }) { const i18n = useI18n() const language = useLanguage() @@ -297,9 +296,34 @@ export function Site(props: { // area from) and the browser bar colour take the bar's blue as painted, and a fixed strip under the // home indicator (site.css) gives Safari a blue element touching the bottom edge. const lettersBottom = () => lettersBarShown() && lettersBarAtEnd() - const [lettersBlue, setLettersBlue] = createSignal() + // The tint comes on as the bar starts to open, so the toolbar area and the opening bar are blue + // together; once the bar closes it stays until the bar has finished closing (its transition, none + // under reduced motion), so the bottom never turns back while the bar is still on screen. + const [lettersTint, setLettersTint] = createSignal(false) createEffect( on(lettersBottom, (bottom) => { + if (bottom || lettersBarShown()) return setLettersTint(bottom) + const bar = document.querySelector('[data-component="letters-bar"]') + const timer = setTimeout( + () => setLettersTint(false), + bar ? parseFloat(getComputedStyle(bar).transitionDuration) * 1000 : 0, + ) + onCleanup(() => clearTimeout(timer)) + }), + ) + // Development only: Like letters?'s bar appears at once instead of sliding open, to compare + // (?letters-bar=instant, kept until ?letters-bar=slide). + const [lettersInstant, setLettersInstant] = createSignal(false) + onMount(() => { + if (!import.meta.env.DEV) return + const asked = new URLSearchParams(location.search).get("letters-bar") + if (asked === "instant") localStorage.setItem("opencode-letters-bar", "instant") + if (asked === "slide") localStorage.removeItem("opencode-letters-bar") + setLettersInstant(localStorage.getItem("opencode-letters-bar") === "instant") + }) + const [lettersBlue, setLettersBlue] = createSignal() + createEffect( + on(lettersTint, (bottom) => { const link = document.querySelector('[data-component="letters-bar"] a') const blue = bottom && link ? getComputedStyle(link).backgroundColor : undefined setLettersBlue(blue) @@ -318,7 +342,9 @@ export function Site(props: { (shown) => { if (!shown) return const root = document.documentElement - if (window.scrollY + window.innerHeight < root.scrollHeight - 4) return + // Less what the bar has already grown (all of it when it appears at once). + const grown = document.querySelector('[data-component="letters-bar"]')?.getBoundingClientRect().height ?? 0 + if (window.scrollY + window.innerHeight < root.scrollHeight - grown - 4) return const until = performance.now() + 400 const follow = () => { window.scrollTo(0, root.scrollHeight) @@ -343,12 +369,13 @@ export function Site(props: { const navVariant = () => siteSettings.nav const logoVariant = () => siteSettings.logo const popoverTheme = () => siteSettings.popover - const statusPreview = () => siteSettings.status - const liveStatus = createAsync(() => status()) - const statusView = () => { + const statusPreview = () => (props.status ? "live" : siteSettings.status) + const liveStatus = props.status ?? createAsync(() => status()) + const statusBars = () => { const preview = statusPreview() - const bars = preview === "live" ? (liveStatus() ?? statusSamples.operational) : statusSamples[preview] - return { bars, current: bars[bars.length - 1] } + if (preview !== "live") return statusSamples[preview] + // A failed or slow fetch has no answer, and a state this site doesn't know reads as unknown. + return (liveStatus() ?? statusSamples.unknown).map((bar) => (bar in statusHeadline ? bar : "unknown")) } // Follows the locale, so a client-side language switch relabels the nav and footer. @@ -570,6 +597,19 @@ export function Site(props: { }) }) + // In the docs layout the sidebar leaves with the article at the page's end, but the logo and the + // docs lockup stay fixed (site.css): while the sidebar is on its way out, its items pass under + // them, and data-under fades them out there. + onMount(() => { + if (!props.aside) return + const sidebar = document.querySelector('[data-component="sidebar"]') + if (!sidebar) return + const update = () => sidebar.toggleAttribute("data-under", sidebar.getBoundingClientRect().top < -0.5) + window.addEventListener("scroll", update, { passive: true }) + update() + onCleanup(() => window.removeEventListener("scroll", update)) + }) + // Dark plates, videos and banners scroll under the fixed marks (the GitHub mark, the product pages' // previous/next chevrons and, on bare pages like /font, the logo): each switches to the artwork // for what is behind it (surface.ts, github-link.css). @@ -1131,34 +1171,51 @@ export function Site(props: {
    ) - const statusLink = () => ( - // Its own boundary, so a page change (and a card growing into a product page) does not wait - // for the status API. - + // "Normal" only while the current status is operational; anything else, including no answer yet, + // a failed fetch or a state this site doesn't know, is "Status". The bars keep the real history. + const statusAnchor = (bars: () => ServiceStatus[]) => { + const current = () => bars()[bars().length - 1] + return ( - {i18n.t("site.status.prefix")} - + + + {i18n.t("site.status.prefix")} + {i18n.t(statusHeadline[current()])} + + + + } + > + {i18n.t("site.status.prefix")} - {designCopy("footer.status.ok", i18n.t(statusLabel.operational))} + {designCopy("footer.status.ok", i18n.t("site.status.operational"))} - + ) + } + const statusLink = () => ( + // Its own boundary, so a page change (and a card growing into a product page) does not wait + // for the status API. Until the answer arrives the same link holds the row, as "Status". + statusSamples.unknown)}>{statusAnchor(statusBars)} ) return ( @@ -1175,7 +1232,8 @@ export function Site(props: { data-theme={theme()} data-popover={popoverTheme()} data-letters-bar={lettersBarShown() && lettersBarInView() ? "" : undefined} - data-letters-end={lettersBottom() ? "" : undefined} + data-letters-end={lettersTint() ? "" : undefined} + data-letters-motion={lettersInstant() ? "instant" : undefined} data-spacer={props.page === "home" || props.page === "product" ? siteSettings.spacer : undefined} data-logo={logoVariant()} data-hero-install={props.page === "home" ? siteSettings.heroInstall : undefined} diff --git a/services/site/src/docs/client.ts b/services/site/src/docs/client.ts index 13c9e178a84..16e6c15bdc0 100644 --- a/services/site/src/docs/client.ts +++ b/services/site/src/docs/client.ts @@ -362,6 +362,16 @@ if (currentPage && currentPage.offsetTop + currentPage.offsetHeight > nav.client new ResizeObserver(fade).observe(nav) nav.addEventListener("scroll", fade, { passive: true }) +// The sidebar leaves with the article at the page's end, but the logo and lockup stay fixed +// (site.css): while it is on its way out its items pass under them, and data-under fades them there, +// as Site does on the site's own pages. +const sidebar = nav.parentElement! +function under() { + sidebar.toggleAttribute("data-under", sidebar.getBoundingClientRect().top < -0.5) +} +window.addEventListener("scroll", under, { passive: true }) +under() + // The Contents rail and its phone bar mark the section being read: the last heading past a third of // the window, or at the end of the page the one the address names (else the last in view). The rail // keeps it in view; the phone bar draws its lines once pinned (data-stuck). @@ -506,12 +516,14 @@ input.addEventListener("input", async () => { return option }), ) - if (!pages.length) { + if (query && !pages.length) { const empty = document.createElement("p") empty.dataset.slot = "empty" - empty.textContent = query ? `No results for “${query}”` : "" + empty.innerHTML = `. Try a shorter word, or browse the docs.` + empty.firstChild!.textContent = `No results for “${query}”` results.append(empty) } + input.setAttribute("aria-expanded", String(!!query)) highlight(0) }) @@ -563,7 +575,6 @@ function choose(option: HTMLAnchorElement) { // The status bars, as the site's footer shows them: the last five 3-hour windows by their worst // service, then the live status. Kept a minute in sessionStorage, since every docs page is a full load. type Status = "operational" | "degraded" | "outage" | "unknown" -const statusLabels = { operational: "Normal", degraded: "Degraded", outage: "Outage", unknown: "No data" } const headlines = { operational: "All systems operational", degraded: "Degraded performance", @@ -575,9 +586,15 @@ function showStatus(bars: Status[]) { const link = $("[data-component=status]") if (!link) return const current = bars.at(-1)! + const normal = current === "operational" link.dataset.state = current link.title = headlines[current] - $("[data-slot=status-text]", link)!.textContent = statusLabels[current] + // As in the site's footer, "Normal" or else "Status"; screen readers hear the headline instead. + $("[data-slot=sr-only]", link)!.textContent = normal ? "Status: " : `Status: ${headlines[current]}` + const text = $("[data-slot=status-text]", link)! + text.textContent = normal ? "Normal" : "Status" + if (normal) text.removeAttribute("aria-hidden") + else text.setAttribute("aria-hidden", "true") $$("[data-slot=bars] > span", link).forEach((bar, index) => (bar.dataset.state = bars[index] ?? "unknown")) } const saved = JSON.parse(sessionStorage.getItem("docs-status-bars") ?? "null") as { bars: Status[]; at: number } | null diff --git a/services/site/src/docs/components/DocsFooter.tsx b/services/site/src/docs/components/DocsFooter.tsx index 8f73f2dcfbd..1acc5f163e1 100644 --- a/services/site/src/docs/components/DocsFooter.tsx +++ b/services/site/src/docs/components/DocsFooter.tsx @@ -52,8 +52,13 @@ export function DocsFooter(props: { markdown?: string }) { {() => } - {i18n.t("site.status.prefix")} - {i18n.t("site.status.unknown")} + + {i18n.t("site.status.prefix")} + {i18n.t("site.status.unknownHeadline")} + + diff --git a/services/site/src/docs/components/DocsSearchDialog.tsx b/services/site/src/docs/components/DocsSearchDialog.tsx index 1529b6cdd1f..af44735c772 100644 --- a/services/site/src/docs/components/DocsSearchDialog.tsx +++ b/services/site/src/docs/components/DocsSearchDialog.tsx @@ -5,7 +5,8 @@ import { base } from "../config" /** * The site's ⌘K palette (search-palette.css) with the default look, searching the docs' full text - * with Pagefind. Hidden until client.ts opens it and fills in the results. + * with Pagefind. Hidden until client.ts opens it and fills in the results. With nothing typed it is + * just the field: the results list stays empty, so docs.css hides it and the field's divider. */ export function DocsSearchDialog() { const look = siteSettingsDefaults @@ -28,7 +29,7 @@ export function DocsSearchDialog() { Cancel -
    -

    -

    +
    ) diff --git a/services/site/src/docs/styles/docs.css b/services/site/src/docs/styles/docs.css index a8038f9dda7..68a57ac7235 100644 --- a/services/site/src/docs/styles/docs.css +++ b/services/site/src/docs/styles/docs.css @@ -139,7 +139,7 @@ pass under it (client.ts sets data-fade-top and data-fade-bottom). Phones keep hard cuts. */ @media (min-width: 60.0625rem) { [data-site] [data-component="sidebar"] > [data-component="section-nav"] { - --fade: 2rem; + --fade: 2.5rem; /* The nav is cap-trimmed, so it gives back the line above the first item for focus rings. */ margin-top: -4px; padding-top: 4px; @@ -190,6 +190,53 @@ } } +/* Search dialog, Clean: with nothing typed it is just the field, with no results list and no divider. + The list fades and slides in under the field when a query fills it, so the panel's growth reads as + one motion rather than a jump. */ +[data-site] [data-search-dialog] { + [data-slot="results"] { + animation: docs-search-results var(--search-duration) var(--ease-out); + + &:empty { + display: none; + } + } + + [data-slot="field"]:has(+ [data-slot="results"]:empty) { + border-bottom-color: transparent; + } + + [data-slot="empty"] a { + color: var(--text-strong); + text-decoration: underline; + text-underline-offset: 0.2em; + + &:focus-visible { + outline: 2px solid var(--link); + outline-offset: 2px; + } + } + + @media (pointer: coarse) { + [data-slot="option"] { + min-height: 2.75rem; + } + } + + @media (prefers-reduced-motion: reduce) { + [data-slot="results"] { + animation: none; + } + } +} + +@keyframes docs-search-results { + from { + opacity: 0; + translate: 0 -4px; + } +} + /* Phones: search in the top bar, before the GitHub mark, with the same 44px target. */ [data-site] [data-component="topbar"] [data-slot="search-button"] { display: grid; @@ -215,7 +262,7 @@ } /* ───────────── Article ───────────── - Reading text in Inter at the reading size within the measure (DESIGN.md), section titles in OpenTUI + Reading text in Inter at the reading size, capped at about 90 characters, section titles in OpenTUI Mono. Typography 4 (docs-variants.css) sets h3 to h6 and the heading rhythm. */ [data-site] [data-component="docs-article"] { font: 400 var(--fs-read) / 1.6 var(--font-sans); @@ -244,8 +291,27 @@ scroll-margin-top: 2rem; } - :is(p, ul, ol, blockquote, dl) { - max-width: var(--measure); + /* Text stops at about 90 characters (42 body ems of Inter, so headings share it); blocks (code, + tables, callouts, tabs, file trees, cards, steps, the API and config blocks) keep the full + column, and text inside a block fills that block. Narrower columns are under the cap. */ + --text-measure: calc(42 * var(--fs-read)); + + :is(p, h1, h2, h3, h4, h5, h6, ul, ol, blockquote, dl, summary):not( + [data-component="steps"], + :is( + [data-component="callout"], + [data-component="code-frame"], + [data-component="code-tabs"], + [data-component="plan-tabs"], + [data-component="docs-card"], + [data-component="api-operation"], + [data-component="cli-command"], + table, + figure + ) + * + ) { + max-width: var(--text-measure); } p { diff --git a/services/site/src/i18n/ar.ts b/services/site/src/i18n/ar.ts index 892033ef897..cb30c7b9f52 100644 --- a/services/site/src/i18n/ar.ts +++ b/services/site/src/i18n/ar.ts @@ -354,9 +354,6 @@ export const dict = { "site.footer.moreOpenSource": "مصادر مفتوحة أخرى", "site.status.prefix": "الحالة: ", "site.status.operational": "طبيعية", - "site.status.degraded": "متراجعة", - "site.status.outage": "انقطاع", - "site.status.unknown": "لا بيانات", "site.status.operationalHeadline": "كل الأنظمة تعمل", "site.status.degradedHeadline": "أداء متراجع", "site.status.outageHeadline": "انقطاع في الخدمة", diff --git a/services/site/src/i18n/br.ts b/services/site/src/i18n/br.ts index 0c14787f52b..1efc6e96bcd 100644 --- a/services/site/src/i18n/br.ts +++ b/services/site/src/i18n/br.ts @@ -361,9 +361,6 @@ export const dict = { "site.footer.moreOpenSource": "Mais código aberto", "site.status.prefix": "Status: ", "site.status.operational": "Normal", - "site.status.degraded": "Instável", - "site.status.outage": "Queda", - "site.status.unknown": "Sem dados", "site.status.operationalHeadline": "Todos os sistemas operando", "site.status.degradedHeadline": "Desempenho reduzido", "site.status.outageHeadline": "Serviço interrompido", diff --git a/services/site/src/i18n/content/ar.ts b/services/site/src/i18n/content/ar.ts index 8267abaa675..19fd03db21c 100644 --- a/services/site/src/i18n/content/ar.ts +++ b/services/site/src/i18n/content/ar.ts @@ -424,6 +424,7 @@ export const content = { }, about: { title: "عن OpenCode", + body: "أوصاف OpenCode ومنتجاته بنسختين طويلة وقصيرة، جاهزة للنسخ.", boilerplate: { long: "OpenCode وكيل برمجة مفتوح المصدر. يتوفر كتطبيق لسطح المكتب وواجهة طرفية وتطبيق للهاتف وSDK، ويعمل مع نماذج من أي مزوّد، منها Claude وGPT وGemini. OpenCode مرخّص بـ MIT ومن صنع Anomaly. لديه أكثر من 220,000 نجمة على GitHub وأكثر من 1,000 مساهم، ويستخدمه أكثر من 22 مليون مطوّر كل شهر.", short: "OpenCode وكيل برمجة مفتوح المصدر من Anomaly، مع تطبيقات لسطح المكتب والطرفية والهاتف، وSDK.", diff --git a/services/site/src/i18n/content/br.ts b/services/site/src/i18n/content/br.ts index f7c71041615..b91a761f310 100644 --- a/services/site/src/i18n/content/br.ts +++ b/services/site/src/i18n/content/br.ts @@ -820,6 +820,7 @@ export const content = { }, about: { title: "Sobre o OpenCode", + body: "Descrições do OpenCode e de seus produtos em versões longa e curta, prontas para copiar.", boilerplate: { long: "OpenCode é um agente de programação de código aberto. Ele vem como app desktop, interface de terminal, app mobile 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: diff --git a/services/site/src/i18n/content/da.ts b/services/site/src/i18n/content/da.ts index e2b2a001570..1a28b9331d7 100644 --- a/services/site/src/i18n/content/da.ts +++ b/services/site/src/i18n/content/da.ts @@ -498,6 +498,7 @@ export const content = { }, about: { title: "Om OpenCode", + body: "Beskrivelser af OpenCode og dets produkter i en lang og en kort version, klar til at kopiere.", boilerplate: { long: "OpenCode er en open source-kodningsagent. Den findes som desktopapp, terminal-UI, mobilapp 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: diff --git a/services/site/src/i18n/content/de.ts b/services/site/src/i18n/content/de.ts index e481ab0f931..fcdbb471fcd 100644 --- a/services/site/src/i18n/content/de.ts +++ b/services/site/src/i18n/content/de.ts @@ -546,6 +546,7 @@ export const content = { }, about: { title: "Über OpenCode", + body: "Beschreibungen von OpenCode und seinen Produkten in langer und kurzer Fassung, bereit zum Kopieren.", boilerplate: { long: "OpenCode ist ein Open-Source-Coding-Agent. Es gibt ihn als Desktop-App, Terminal-UI, Mobile-App 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: diff --git a/services/site/src/i18n/content/es.ts b/services/site/src/i18n/content/es.ts index bfbce3969c4..b2c582f61be 100644 --- a/services/site/src/i18n/content/es.ts +++ b/services/site/src/i18n/content/es.ts @@ -767,6 +767,7 @@ export const content = { }, about: { title: "Sobre OpenCode", + body: "Descripciones de OpenCode y sus productos en versión larga y corta, listas para copiar.", boilerplate: { long: "OpenCode es un agente de programación de código abierto. Está disponible como app de escritorio, interfaz de terminal, app móvil 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: diff --git a/services/site/src/i18n/content/fr.ts b/services/site/src/i18n/content/fr.ts index 5494327ac52..fdd5b0db409 100644 --- a/services/site/src/i18n/content/fr.ts +++ b/services/site/src/i18n/content/fr.ts @@ -767,6 +767,7 @@ export const content = { }, about: { title: "À propos d'OpenCode", + body: "Des descriptions d'OpenCode et de ses produits, en version longue et courte, prêtes à copier.", boilerplate: { long: "OpenCode est un agent de code open source. Il existe en app desktop, en interface terminal, en app mobile 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: diff --git a/services/site/src/i18n/content/it.ts b/services/site/src/i18n/content/it.ts index 74cd6398a6f..d6452c817dc 100644 --- a/services/site/src/i18n/content/it.ts +++ b/services/site/src/i18n/content/it.ts @@ -767,6 +767,7 @@ export const content = { }, about: { title: "Chi è OpenCode", + body: "Descrizioni di OpenCode e dei suoi prodotti in versione lunga e breve, pronte da copiare.", boilerplate: { long: "OpenCode è un agente di coding open source. È disponibile come app desktop, UI da terminale, app mobile 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: diff --git a/services/site/src/i18n/content/ja.ts b/services/site/src/i18n/content/ja.ts index 631c8159d6f..8f9d68eb330 100644 --- a/services/site/src/i18n/content/ja.ts +++ b/services/site/src/i18n/content/ja.ts @@ -514,6 +514,7 @@ export const content = { }, about: { title: "OpenCodeについて", + body: "OpenCodeと各製品の紹介文です。長文版と短文版があり、そのままコピーして使えます。", boilerplate: { long: "OpenCodeはオープンソースのコーディングエージェントです。デスクトップアプリ、ターミナルUI、モバイルアプリ、SDKとして提供され、Claude、GPT、Geminiなど、あらゆるプロバイダーのモデルで動作します。OpenCodeはMITライセンスで、Anomalyが開発しています。GitHubスターは220,000以上、コントリビューターは1,000人以上で、毎月2,200万人以上の開発者が利用しています。", short: diff --git a/services/site/src/i18n/content/ko.ts b/services/site/src/i18n/content/ko.ts index b79059eb901..25e147bafc1 100644 --- a/services/site/src/i18n/content/ko.ts +++ b/services/site/src/i18n/content/ko.ts @@ -464,6 +464,7 @@ export const content = { }, about: { title: "OpenCode 소개", + body: "OpenCode와 각 제품의 소개 글입니다. 긴 버전과 짧은 버전이 있으며 바로 복사해 쓸 수 있습니다.", boilerplate: { long: "OpenCode는 오픈 소스 코딩 에이전트입니다. 데스크톱 앱, 터미널 UI, 모바일 앱, SDK로 제공되며, Claude, GPT, Gemini를 비롯해 모든 제공자의 모델과 함께 작동합니다. OpenCode는 MIT 라이선스이며 Anomaly가 만듭니다. GitHub 스타 220,000개 이상, 기여자 1,000명 이상을 보유하고 있으며, 매달 2,200만 명 이상의 개발자가 사용합니다.", short: "OpenCode는 Anomaly가 만든 오픈 소스 코딩 에이전트로, 데스크톱, 터미널, 모바일 앱과 SDK를 제공합니다.", diff --git a/services/site/src/i18n/content/no.ts b/services/site/src/i18n/content/no.ts index e6ee4781375..5008dde0b45 100644 --- a/services/site/src/i18n/content/no.ts +++ b/services/site/src/i18n/content/no.ts @@ -501,6 +501,7 @@ export const content = { }, about: { title: "Om OpenCode", + body: "Beskrivelser av OpenCode og produktene i lang og kort versjon, klare til å kopieres.", boilerplate: { long: "OpenCode er en kodeagent med åpen kildekode. Den finnes som skrivebordsapp, terminal-UI, mobilapp 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: diff --git a/services/site/src/i18n/content/pl.ts b/services/site/src/i18n/content/pl.ts index dbf4216f1ad..54c3938b295 100644 --- a/services/site/src/i18n/content/pl.ts +++ b/services/site/src/i18n/content/pl.ts @@ -820,6 +820,7 @@ export const content = { }, about: { title: "O OpenCode", + body: "Opisy OpenCode i jego produktów w wersji długiej i krótkiej, gotowe do skopiowania.", boilerplate: { long: "OpenCode to open source'owy agent do programowania. Jest dostępny jako aplikacja desktopowa, interfejs terminalowy, aplikacja mobilna 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: diff --git a/services/site/src/i18n/content/ru.ts b/services/site/src/i18n/content/ru.ts index f5493b6abe7..8d9a1426361 100644 --- a/services/site/src/i18n/content/ru.ts +++ b/services/site/src/i18n/content/ru.ts @@ -496,6 +496,7 @@ export const content = { }, about: { title: "Об OpenCode", + body: "Описания OpenCode и его продуктов в длинной и короткой версии, готовые к копированию.", boilerplate: { long: "OpenCode — агент для программирования с открытым исходным кодом. Он доступен как десктопное приложение, терминальный интерфейс, мобильное приложение и SDK и работает с моделями любых провайдеров, включая Claude, GPT и Gemini. OpenCode распространяется по лицензии MIT и создан Anomaly. У него более 220 000 звёзд на GitHub и более 1 000 контрибьюторов, и им пользуются более 22 миллионов разработчиков каждый месяц.", short: diff --git a/services/site/src/i18n/content/th.ts b/services/site/src/i18n/content/th.ts index 40b82bd0c5f..b9b01c11233 100644 --- a/services/site/src/i18n/content/th.ts +++ b/services/site/src/i18n/content/th.ts @@ -469,6 +469,7 @@ export const content = { }, about: { title: "เกี่ยวกับ OpenCode", + body: "คำอธิบาย OpenCode และผลิตภัณฑ์ต่างๆ ทั้งฉบับยาวและฉบับสั้น พร้อมคัดลอกไปใช้", boilerplate: { long: "OpenCode คือเอเจนต์เขียนโค้ดแบบโอเพนซอร์ส มีให้ใช้ทั้งแอปเดสก์ท็อป UI เทอร์มินัล แอปมือถือ และ SDK และทำงานกับโมเดลจากผู้ให้บริการใดก็ได้ รวมถึง Claude, GPT และ Gemini OpenCode ใช้สัญญาอนุญาต MIT และพัฒนาโดย Anomaly มีดาว GitHub กว่า 220,000 ดวง ผู้ร่วมพัฒนากว่า 1,000 คน และนักพัฒนากว่า 22 ล้านคนใช้งานทุกเดือน", short: diff --git a/services/site/src/i18n/content/tr.ts b/services/site/src/i18n/content/tr.ts index 81f7c82097a..cb27b34a70d 100644 --- a/services/site/src/i18n/content/tr.ts +++ b/services/site/src/i18n/content/tr.ts @@ -820,6 +820,7 @@ export const content = { }, about: { title: "OpenCode hakkında", + body: "OpenCode ve ürünleri için uzun ve kısa sürümlerde, kopyalanmaya hazır tanıtım metinleri.", boilerplate: { long: "OpenCode açık kaynaklı bir kodlama ajanıdır. Masaüstü uygulaması, terminal arayüzü, mobil uygulama 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: diff --git a/services/site/src/i18n/content/uk.ts b/services/site/src/i18n/content/uk.ts index 91db585a59b..f0c1e3f8fd1 100644 --- a/services/site/src/i18n/content/uk.ts +++ b/services/site/src/i18n/content/uk.ts @@ -506,6 +506,7 @@ export const content = { }, about: { title: "Про OpenCode", + body: "Описи OpenCode та його продуктів у довгій і короткій версії, готові до копіювання.", boilerplate: { long: "OpenCode — агент для програмування з відкритим кодом. Він доступний як десктопний застосунок, термінальний інтерфейс, мобільний застосунок і SDK та працює з моделями будь-яких провайдерів, зокрема Claude, GPT і Gemini. OpenCode поширюється за ліцензією MIT і створений Anomaly. Він має понад 220 000 зірок на GitHub і понад 1 000 учасників, і ним користуються понад 22 мільйони розробників щомісяця.", short: diff --git a/services/site/src/i18n/content/zh.ts b/services/site/src/i18n/content/zh.ts index 8a27b688a9b..b4ef5d55b3c 100644 --- a/services/site/src/i18n/content/zh.ts +++ b/services/site/src/i18n/content/zh.ts @@ -416,6 +416,7 @@ export const content = { }, about: { title: "关于 OpenCode", + body: "OpenCode 及其产品的介绍,有长短两个版本,可直接复制。", boilerplate: { long: "OpenCode 是一个开源编程代理。它提供桌面应用、终端界面、移动应用和 SDK,并支持任意提供商的模型,包括 Claude、GPT 和 Gemini。OpenCode 采用 MIT 许可,由 Anomaly 打造。它在 GitHub 上拥有超过 220,000 个星标和 1,000 多位贡献者,每月有超过 2200 万开发者使用。", short: "OpenCode 是 Anomaly 推出的开源编程代理,提供桌面、终端和移动应用以及 SDK。", diff --git a/services/site/src/i18n/content/zht.ts b/services/site/src/i18n/content/zht.ts index 5d4ac82c8f8..8923a920bee 100644 --- a/services/site/src/i18n/content/zht.ts +++ b/services/site/src/i18n/content/zht.ts @@ -420,6 +420,7 @@ export const content = { }, about: { title: "關於 OpenCode", + body: "OpenCode 及其產品的介紹,有長短兩個版本,可直接複製。", boilerplate: { long: "OpenCode 是一個開源編碼代理。它提供桌面應用程式、終端機介面、行動應用程式和 SDK,並支援任何供應商的模型,包括 Claude、GPT 和 Gemini。OpenCode 採用 MIT 授權,由 Anomaly 打造。它在 GitHub 上擁有超過 220,000 顆星星和 1,000 多位貢獻者,每月有超過 2200 萬名開發者使用。", short: "OpenCode 是 Anomaly 推出的開源編碼代理,提供桌面、終端機和行動應用程式以及 SDK。", diff --git a/services/site/src/i18n/da.ts b/services/site/src/i18n/da.ts index 3916a499a1a..067c4dd35de 100644 --- a/services/site/src/i18n/da.ts +++ b/services/site/src/i18n/da.ts @@ -365,9 +365,6 @@ export const dict = { "site.footer.moreOpenSource": "Mere open source", "site.status.prefix": "Status: ", "site.status.operational": "Normal", - "site.status.degraded": "Forringet", - "site.status.outage": "Nedbrud", - "site.status.unknown": "Ukendt", "site.status.operationalHeadline": "Alle systemer kører", "site.status.degradedHeadline": "Nedsat ydeevne", "site.status.outageHeadline": "Driftsforstyrrelse", diff --git a/services/site/src/i18n/de.ts b/services/site/src/i18n/de.ts index 932d974fae9..db5f07213ac 100644 --- a/services/site/src/i18n/de.ts +++ b/services/site/src/i18n/de.ts @@ -361,9 +361,6 @@ export const dict = { "site.footer.moreOpenSource": "Mehr Open Source", "site.status.prefix": "Status: ", "site.status.operational": "Normal", - "site.status.degraded": "Gestört", - "site.status.outage": "Ausfall", - "site.status.unknown": "Unbekannt", "site.status.operationalHeadline": "Alle Systeme laufen", "site.status.degradedHeadline": "Eingeschränkte Leistung", "site.status.outageHeadline": "Dienststörung", diff --git a/services/site/src/i18n/en.ts b/services/site/src/i18n/en.ts index 4411b9d9cf0..fdac0e95365 100644 --- a/services/site/src/i18n/en.ts +++ b/services/site/src/i18n/en.ts @@ -399,9 +399,6 @@ export const dict = { "site.footer.moreOpenSource": "More open source", "site.status.prefix": "Status: ", "site.status.operational": "Normal", - "site.status.degraded": "Degraded", - "site.status.outage": "Outage", - "site.status.unknown": "No data", "site.status.operationalHeadline": "All systems operational", "site.status.degradedHeadline": "Degraded performance", "site.status.outageHeadline": "Service disruption", diff --git a/services/site/src/i18n/es.ts b/services/site/src/i18n/es.ts index af39890ca71..e25af2108c5 100644 --- a/services/site/src/i18n/es.ts +++ b/services/site/src/i18n/es.ts @@ -365,9 +365,6 @@ export const dict = { "site.footer.moreOpenSource": "Más open source", "site.status.prefix": "Estado: ", "site.status.operational": "Normal", - "site.status.degraded": "Degradado", - "site.status.outage": "Caída", - "site.status.unknown": "Sin datos", "site.status.operationalHeadline": "Todo funciona con normalidad", "site.status.degradedHeadline": "Rendimiento degradado", "site.status.outageHeadline": "Servicio interrumpido", diff --git a/services/site/src/i18n/fr.ts b/services/site/src/i18n/fr.ts index 29a948bfe80..9ab2bed5a7e 100644 --- a/services/site/src/i18n/fr.ts +++ b/services/site/src/i18n/fr.ts @@ -361,9 +361,6 @@ export const dict = { "site.footer.moreOpenSource": "Plus d'open source", "site.status.prefix": "Statut : ", "site.status.operational": "Normal", - "site.status.degraded": "Dégradé", - "site.status.outage": "Panne", - "site.status.unknown": "Inconnu", "site.status.operationalHeadline": "Tous les systèmes fonctionnent", "site.status.degradedHeadline": "Performances dégradées", "site.status.outageHeadline": "Service perturbé", diff --git a/services/site/src/i18n/it.ts b/services/site/src/i18n/it.ts index 4064c559206..805e30680e5 100644 --- a/services/site/src/i18n/it.ts +++ b/services/site/src/i18n/it.ts @@ -364,9 +364,6 @@ export const dict = { "site.footer.moreOpenSource": "Altro open source", "site.status.prefix": "Stato: ", "site.status.operational": "Normale", - "site.status.degraded": "Degradato", - "site.status.outage": "Guasto", - "site.status.unknown": "Nessun dato", "site.status.operationalHeadline": "Tutto funziona regolarmente", "site.status.degradedHeadline": "Prestazioni ridotte", "site.status.outageHeadline": "Servizio interrotto", diff --git a/services/site/src/i18n/ja.ts b/services/site/src/i18n/ja.ts index ee310b76ed8..70c35ebe3dd 100644 --- a/services/site/src/i18n/ja.ts +++ b/services/site/src/i18n/ja.ts @@ -361,9 +361,6 @@ export const dict = { "site.footer.moreOpenSource": "その他のオープンソース", "site.status.prefix": "稼働状況 ", "site.status.operational": "正常", - "site.status.degraded": "低下", - "site.status.outage": "障害", - "site.status.unknown": "不明", "site.status.operationalHeadline": "すべてのシステムが正常に稼働中", "site.status.degradedHeadline": "パフォーマンス低下", "site.status.outageHeadline": "サービス障害", diff --git a/services/site/src/i18n/ko.ts b/services/site/src/i18n/ko.ts index 4ac77aec6a2..58a874f63ea 100644 --- a/services/site/src/i18n/ko.ts +++ b/services/site/src/i18n/ko.ts @@ -365,9 +365,6 @@ export const dict = { "site.footer.moreOpenSource": "더 많은 오픈 소스", "site.status.prefix": "상태 ", "site.status.operational": "정상", - "site.status.degraded": "성능 저하", - "site.status.outage": "장애", - "site.status.unknown": "정보 없음", "site.status.operationalHeadline": "모든 시스템 정상 작동 중", "site.status.degradedHeadline": "성능 저하", "site.status.outageHeadline": "서비스 장애", diff --git a/services/site/src/i18n/no.ts b/services/site/src/i18n/no.ts index fba4da39cda..624682790bf 100644 --- a/services/site/src/i18n/no.ts +++ b/services/site/src/i18n/no.ts @@ -365,9 +365,6 @@ export const dict = { "site.footer.moreOpenSource": "Mer åpen kildekode", "site.status.prefix": "Status: ", "site.status.operational": "Normal", - "site.status.degraded": "Redusert", - "site.status.outage": "Brudd", - "site.status.unknown": "Ukjent", "site.status.operationalHeadline": "Alle systemer fungerer", "site.status.degradedHeadline": "Redusert ytelse", "site.status.outageHeadline": "Driftsforstyrrelse", diff --git a/services/site/src/i18n/pl.ts b/services/site/src/i18n/pl.ts index 6b8e0ba457b..19360d6fd20 100644 --- a/services/site/src/i18n/pl.ts +++ b/services/site/src/i18n/pl.ts @@ -365,9 +365,6 @@ export const dict = { "site.footer.moreOpenSource": "Więcej open source", "site.status.prefix": "Status: ", "site.status.operational": "Działa", - "site.status.degraded": "Problemy", - "site.status.outage": "Awaria", - "site.status.unknown": "Brak danych", "site.status.operationalHeadline": "Wszystkie systemy działają", "site.status.degradedHeadline": "Obniżona wydajność", "site.status.outageHeadline": "Przerwa w działaniu", diff --git a/services/site/src/i18n/ru.ts b/services/site/src/i18n/ru.ts index 8fa100c689b..3864e031517 100644 --- a/services/site/src/i18n/ru.ts +++ b/services/site/src/i18n/ru.ts @@ -350,9 +350,6 @@ export const dict = { "site.footer.moreOpenSource": "Ещё open source", "site.status.prefix": "Статус: ", "site.status.operational": "Норма", - "site.status.degraded": "Сбои", - "site.status.outage": "Отказ", - "site.status.unknown": "Нет данных", "site.status.operationalHeadline": "Все системы работают", "site.status.degradedHeadline": "Снижена производительность", "site.status.outageHeadline": "Перебои в работе", diff --git a/services/site/src/i18n/stamps/ar.json b/services/site/src/i18n/stamps/ar.json index 11fe58f0b95..5f03dfc8e91 100644 --- a/services/site/src/i18n/stamps/ar.json +++ b/services/site/src/i18n/stamps/ar.json @@ -287,6 +287,7 @@ "content:pair.steps.scan-the-code.body": "2lp75cpa8zx35", "content:pair.steps.scan-the-code.title": "2i93382ygjwgo", "content:pair.title": "nviskpzon1ri", + "content:press.about.body": "3o7yot033rio8", "content:press.about.boilerplate.long": "376s1i91favpf", "content:press.about.boilerplate.short": "2gikd7bs31l78", "content:press.about.products.opencode-console.long": "2nw3cdv67wvh", diff --git a/services/site/src/i18n/stamps/br.json b/services/site/src/i18n/stamps/br.json index ddcac118bef..06f91ff1c7f 100644 --- a/services/site/src/i18n/stamps/br.json +++ b/services/site/src/i18n/stamps/br.json @@ -296,6 +296,7 @@ "content:pair.steps.scan-the-code.body": "2lp75cpa8zx35", "content:pair.steps.scan-the-code.title": "2i93382ygjwgo", "content:pair.title": "nviskpzon1ri", + "content:press.about.body": "3o7yot033rio8", "content:press.about.boilerplate.long": "376s1i91favpf", "content:press.about.boilerplate.short": "2gikd7bs31l78", "content:press.about.products.opencode-console.long": "2nw3cdv67wvh", diff --git a/services/site/src/i18n/stamps/da.json b/services/site/src/i18n/stamps/da.json index e2499c16a4d..039f178732e 100644 --- a/services/site/src/i18n/stamps/da.json +++ b/services/site/src/i18n/stamps/da.json @@ -282,6 +282,7 @@ "content:pair.steps.scan-the-code.body": "2lp75cpa8zx35", "content:pair.steps.scan-the-code.title": "2i93382ygjwgo", "content:pair.title": "nviskpzon1ri", + "content:press.about.body": "3o7yot033rio8", "content:press.about.boilerplate.long": "376s1i91favpf", "content:press.about.boilerplate.short": "2gikd7bs31l78", "content:press.about.products.opencode-console.long": "2nw3cdv67wvh", diff --git a/services/site/src/i18n/stamps/de.json b/services/site/src/i18n/stamps/de.json index e2499c16a4d..039f178732e 100644 --- a/services/site/src/i18n/stamps/de.json +++ b/services/site/src/i18n/stamps/de.json @@ -282,6 +282,7 @@ "content:pair.steps.scan-the-code.body": "2lp75cpa8zx35", "content:pair.steps.scan-the-code.title": "2i93382ygjwgo", "content:pair.title": "nviskpzon1ri", + "content:press.about.body": "3o7yot033rio8", "content:press.about.boilerplate.long": "376s1i91favpf", "content:press.about.boilerplate.short": "2gikd7bs31l78", "content:press.about.products.opencode-console.long": "2nw3cdv67wvh", diff --git a/services/site/src/i18n/stamps/es.json b/services/site/src/i18n/stamps/es.json index 9b41ce480e6..af6e3cb924a 100644 --- a/services/site/src/i18n/stamps/es.json +++ b/services/site/src/i18n/stamps/es.json @@ -283,6 +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.body": "3o7yot033rio8", "content:press.about.boilerplate.long": "376s1i91favpf", "content:press.about.boilerplate.short": "2gikd7bs31l78", "content:press.about.products.opencode-console.long": "2nw3cdv67wvh", diff --git a/services/site/src/i18n/stamps/fr.json b/services/site/src/i18n/stamps/fr.json index 9b41ce480e6..af6e3cb924a 100644 --- a/services/site/src/i18n/stamps/fr.json +++ b/services/site/src/i18n/stamps/fr.json @@ -283,6 +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.body": "3o7yot033rio8", "content:press.about.boilerplate.long": "376s1i91favpf", "content:press.about.boilerplate.short": "2gikd7bs31l78", "content:press.about.products.opencode-console.long": "2nw3cdv67wvh", diff --git a/services/site/src/i18n/stamps/it.json b/services/site/src/i18n/stamps/it.json index 9b41ce480e6..af6e3cb924a 100644 --- a/services/site/src/i18n/stamps/it.json +++ b/services/site/src/i18n/stamps/it.json @@ -283,6 +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.body": "3o7yot033rio8", "content:press.about.boilerplate.long": "376s1i91favpf", "content:press.about.boilerplate.short": "2gikd7bs31l78", "content:press.about.products.opencode-console.long": "2nw3cdv67wvh", diff --git a/services/site/src/i18n/stamps/ja.json b/services/site/src/i18n/stamps/ja.json index 55f97bbc1e7..b1bdf48cd7a 100644 --- a/services/site/src/i18n/stamps/ja.json +++ b/services/site/src/i18n/stamps/ja.json @@ -288,6 +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.body": "3o7yot033rio8", "content:press.about.boilerplate.long": "376s1i91favpf", "content:press.about.boilerplate.short": "2gikd7bs31l78", "content:press.about.products.opencode-console.long": "2nw3cdv67wvh", diff --git a/services/site/src/i18n/stamps/ko.json b/services/site/src/i18n/stamps/ko.json index 69fc36e2a8c..2a9045ffaa2 100644 --- a/services/site/src/i18n/stamps/ko.json +++ b/services/site/src/i18n/stamps/ko.json @@ -287,6 +287,7 @@ "content:pair.steps.scan-the-code.body": "2lp75cpa8zx35", "content:pair.steps.scan-the-code.title": "2i93382ygjwgo", "content:pair.title": "nviskpzon1ri", + "content:press.about.body": "3o7yot033rio8", "content:press.about.boilerplate.long": "376s1i91favpf", "content:press.about.boilerplate.short": "2gikd7bs31l78", "content:press.about.products.opencode-console.long": "2nw3cdv67wvh", diff --git a/services/site/src/i18n/stamps/no.json b/services/site/src/i18n/stamps/no.json index e2499c16a4d..039f178732e 100644 --- a/services/site/src/i18n/stamps/no.json +++ b/services/site/src/i18n/stamps/no.json @@ -282,6 +282,7 @@ "content:pair.steps.scan-the-code.body": "2lp75cpa8zx35", "content:pair.steps.scan-the-code.title": "2i93382ygjwgo", "content:pair.title": "nviskpzon1ri", + "content:press.about.body": "3o7yot033rio8", "content:press.about.boilerplate.long": "376s1i91favpf", "content:press.about.boilerplate.short": "2gikd7bs31l78", "content:press.about.products.opencode-console.long": "2nw3cdv67wvh", diff --git a/services/site/src/i18n/stamps/pl.json b/services/site/src/i18n/stamps/pl.json index ddcac118bef..06f91ff1c7f 100644 --- a/services/site/src/i18n/stamps/pl.json +++ b/services/site/src/i18n/stamps/pl.json @@ -296,6 +296,7 @@ "content:pair.steps.scan-the-code.body": "2lp75cpa8zx35", "content:pair.steps.scan-the-code.title": "2i93382ygjwgo", "content:pair.title": "nviskpzon1ri", + "content:press.about.body": "3o7yot033rio8", "content:press.about.boilerplate.long": "376s1i91favpf", "content:press.about.boilerplate.short": "2gikd7bs31l78", "content:press.about.products.opencode-console.long": "2nw3cdv67wvh", diff --git a/services/site/src/i18n/stamps/ru.json b/services/site/src/i18n/stamps/ru.json index 11fe58f0b95..5f03dfc8e91 100644 --- a/services/site/src/i18n/stamps/ru.json +++ b/services/site/src/i18n/stamps/ru.json @@ -287,6 +287,7 @@ "content:pair.steps.scan-the-code.body": "2lp75cpa8zx35", "content:pair.steps.scan-the-code.title": "2i93382ygjwgo", "content:pair.title": "nviskpzon1ri", + "content:press.about.body": "3o7yot033rio8", "content:press.about.boilerplate.long": "376s1i91favpf", "content:press.about.boilerplate.short": "2gikd7bs31l78", "content:press.about.products.opencode-console.long": "2nw3cdv67wvh", diff --git a/services/site/src/i18n/stamps/th.json b/services/site/src/i18n/stamps/th.json index 55f97bbc1e7..b1bdf48cd7a 100644 --- a/services/site/src/i18n/stamps/th.json +++ b/services/site/src/i18n/stamps/th.json @@ -288,6 +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.body": "3o7yot033rio8", "content:press.about.boilerplate.long": "376s1i91favpf", "content:press.about.boilerplate.short": "2gikd7bs31l78", "content:press.about.products.opencode-console.long": "2nw3cdv67wvh", diff --git a/services/site/src/i18n/stamps/tr.json b/services/site/src/i18n/stamps/tr.json index ddcac118bef..06f91ff1c7f 100644 --- a/services/site/src/i18n/stamps/tr.json +++ b/services/site/src/i18n/stamps/tr.json @@ -296,6 +296,7 @@ "content:pair.steps.scan-the-code.body": "2lp75cpa8zx35", "content:pair.steps.scan-the-code.title": "2i93382ygjwgo", "content:pair.title": "nviskpzon1ri", + "content:press.about.body": "3o7yot033rio8", "content:press.about.boilerplate.long": "376s1i91favpf", "content:press.about.boilerplate.short": "2gikd7bs31l78", "content:press.about.products.opencode-console.long": "2nw3cdv67wvh", diff --git a/services/site/src/i18n/stamps/uk.json b/services/site/src/i18n/stamps/uk.json index 11fe58f0b95..5f03dfc8e91 100644 --- a/services/site/src/i18n/stamps/uk.json +++ b/services/site/src/i18n/stamps/uk.json @@ -287,6 +287,7 @@ "content:pair.steps.scan-the-code.body": "2lp75cpa8zx35", "content:pair.steps.scan-the-code.title": "2i93382ygjwgo", "content:pair.title": "nviskpzon1ri", + "content:press.about.body": "3o7yot033rio8", "content:press.about.boilerplate.long": "376s1i91favpf", "content:press.about.boilerplate.short": "2gikd7bs31l78", "content:press.about.products.opencode-console.long": "2nw3cdv67wvh", diff --git a/services/site/src/i18n/stamps/zh.json b/services/site/src/i18n/stamps/zh.json index 69fc36e2a8c..2a9045ffaa2 100644 --- a/services/site/src/i18n/stamps/zh.json +++ b/services/site/src/i18n/stamps/zh.json @@ -287,6 +287,7 @@ "content:pair.steps.scan-the-code.body": "2lp75cpa8zx35", "content:pair.steps.scan-the-code.title": "2i93382ygjwgo", "content:pair.title": "nviskpzon1ri", + "content:press.about.body": "3o7yot033rio8", "content:press.about.boilerplate.long": "376s1i91favpf", "content:press.about.boilerplate.short": "2gikd7bs31l78", "content:press.about.products.opencode-console.long": "2nw3cdv67wvh", diff --git a/services/site/src/i18n/stamps/zht.json b/services/site/src/i18n/stamps/zht.json index 69fc36e2a8c..2a9045ffaa2 100644 --- a/services/site/src/i18n/stamps/zht.json +++ b/services/site/src/i18n/stamps/zht.json @@ -287,6 +287,7 @@ "content:pair.steps.scan-the-code.body": "2lp75cpa8zx35", "content:pair.steps.scan-the-code.title": "2i93382ygjwgo", "content:pair.title": "nviskpzon1ri", + "content:press.about.body": "3o7yot033rio8", "content:press.about.boilerplate.long": "376s1i91favpf", "content:press.about.boilerplate.short": "2gikd7bs31l78", "content:press.about.products.opencode-console.long": "2nw3cdv67wvh", diff --git a/services/site/src/i18n/th.ts b/services/site/src/i18n/th.ts index ab493f36137..3733a187808 100644 --- a/services/site/src/i18n/th.ts +++ b/services/site/src/i18n/th.ts @@ -365,9 +365,6 @@ export const dict = { "site.footer.moreOpenSource": "โอเพนซอร์สเพิ่มเติม", "site.status.prefix": "สถานะ ", "site.status.operational": "ปกติ", - "site.status.degraded": "ลดลง", - "site.status.outage": "ขัดข้อง", - "site.status.unknown": "ไม่มีข้อมูล", "site.status.operationalHeadline": "ทุกระบบทำงานปกติ", "site.status.degradedHeadline": "ประสิทธิภาพลดลง", "site.status.outageHeadline": "บริการขัดข้อง", diff --git a/services/site/src/i18n/tr.ts b/services/site/src/i18n/tr.ts index 96ce920ce0a..c7d63e24daf 100644 --- a/services/site/src/i18n/tr.ts +++ b/services/site/src/i18n/tr.ts @@ -365,9 +365,6 @@ export const dict = { "site.footer.moreOpenSource": "Daha fazla açık kaynak", "site.status.prefix": "Durum: ", "site.status.operational": "Normal", - "site.status.degraded": "Yavaş", - "site.status.outage": "Kesinti", - "site.status.unknown": "Veri yok", "site.status.operationalHeadline": "Tüm sistemler çalışıyor", "site.status.degradedHeadline": "Performans düştü", "site.status.outageHeadline": "Hizmet kesintisi", diff --git a/services/site/src/i18n/uk.ts b/services/site/src/i18n/uk.ts index ac2e99cd78a..4636fca14e6 100644 --- a/services/site/src/i18n/uk.ts +++ b/services/site/src/i18n/uk.ts @@ -352,9 +352,6 @@ export const dict = { "site.footer.moreOpenSource": "Ще open source", "site.status.prefix": "Статус: ", "site.status.operational": "Норма", - "site.status.degraded": "Збої", - "site.status.outage": "Відмова", - "site.status.unknown": "Немає даних", "site.status.operationalHeadline": "Усі системи працюють", "site.status.degradedHeadline": "Знижена продуктивність", "site.status.outageHeadline": "Перебої в роботі", diff --git a/services/site/src/i18n/zh.ts b/services/site/src/i18n/zh.ts index f8a8b5ada32..f5c119b45c9 100644 --- a/services/site/src/i18n/zh.ts +++ b/services/site/src/i18n/zh.ts @@ -361,9 +361,6 @@ export const dict = { "site.footer.moreOpenSource": "更多开源项目", "site.status.prefix": "状态 ", "site.status.operational": "正常", - "site.status.degraded": "性能下降", - "site.status.outage": "中断", - "site.status.unknown": "无数据", "site.status.operationalHeadline": "所有系统运行正常", "site.status.degradedHeadline": "性能下降", "site.status.outageHeadline": "服务中断", diff --git a/services/site/src/i18n/zht.ts b/services/site/src/i18n/zht.ts index 42082c2f8cf..5047cbb21ac 100644 --- a/services/site/src/i18n/zht.ts +++ b/services/site/src/i18n/zht.ts @@ -365,9 +365,6 @@ export const dict = { "site.footer.moreOpenSource": "更多開源專案", "site.status.prefix": "狀態 ", "site.status.operational": "正常", - "site.status.degraded": "效能下降", - "site.status.outage": "中斷", - "site.status.unknown": "沒有資料", "site.status.operationalHeadline": "所有系統運作正常", "site.status.degradedHeadline": "效能下降", "site.status.outageHeadline": "服務中斷", diff --git a/services/site/src/lib/press-content.ts b/services/site/src/lib/press-content.ts index f8257de3273..f7e1f8997a0 100644 --- a/services/site/src/lib/press-content.ts +++ b/services/site/src/lib/press-content.ts @@ -62,6 +62,7 @@ export function pressContent(t: Translate, route: (path: string) => string) { }, about: { title: "About OpenCode", + body: "Descriptions of OpenCode and its products in long and short versions, ready to copy.", // Both versions name the products in the site's order (products in product-data.ts): desktop, // terminal, mobile, SDK. boilerplate: { @@ -337,6 +338,7 @@ export function pressMarkdown(context: MarkdownContext) { `# ${content.hero.title}`, content.hero.body, `## ${content.about.title}`, + content.about.body, ...[{ name: "OpenCode", ...content.about.boilerplate }, ...content.about.products].flatMap((product) => [ `### ${product.name}`, "#### Long version", diff --git a/services/site/src/routes/font/index.css b/services/site/src/routes/font/index.css index 288e2bbb78a..0dc63ba0486 100644 --- a/services/site/src/routes/font/index.css +++ b/services/site/src/routes/font/index.css @@ -322,6 +322,16 @@ display: none; } + /* The buttons are drawn 4px taller than the 25px logo mark, overhanging it by 2px above and + below (1px lower than the bar's centre line, as the mark's centre is 28.5px). + tap-targets.css's ::after keeps each one a 44px target. */ + [data-slot="tools"] [data-component="site-button"] { + height: 29px; + margin-top: 1px; + padding-inline: 10px; + gap: 6px; + } + .letter-output { margin-block: auto 0; } diff --git a/services/site/src/routes/press/index.css b/services/site/src/routes/press/index.css index a30aad00d41..993ae48b25a 100644 --- a/services/site/src/routes/press/index.css +++ b/services/site/src/routes/press/index.css @@ -253,9 +253,7 @@ border-top: 1px solid var(--border); } - /* The first row is padded like the others now that a line sits above it; the list moves up - 8px so the title-to-line gap (16px) matches the line-to-text gap. */ - margin-top: -0.5rem; + /* The first row is padded like the others now that a line sits above it. */ && > li:first-child [data-slot="faq-question"] { --padding-top: 1rem; diff --git a/services/site/src/routes/press/index.tsx b/services/site/src/routes/press/index.tsx index bb0af046910..c52b85098bd 100644 --- a/services/site/src/routes/press/index.tsx +++ b/services/site/src/routes/press/index.tsx @@ -249,6 +249,7 @@ export default function Press() {
    +

    {content().about.body}

    {/* OpenCode first, then the company's other products, each a row of the site's FAQ accordion with its long and short text. OpenCode starts open; any number of rows can be open. */}