feat(console): add the new home and product pages

The home page and /product with the desktop, terminal, mobile (Android coming soon), SDK, IDE and mini pages,
extensions, and dev's download route with our Android redirect. The old /download page is gone
(/download redirects to /product).
This commit is contained in:
David Hill
2026-11-05 03:42:01 -06:00
Unverified
parent 0bc3bea56c
commit c1d12fb7a9
21 changed files with 3608 additions and 1915 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

@@ -0,0 +1,4 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1176 1232">
<!-- OpenTunnel mark: nested arches in white with see-through gaps (the tile supplies the background), traced from David's 6 Nov reference without the centre square. -->
<path fill="#fff" fill-rule="evenodd" d="M127 1103V536a473 473 0 0 1 946 0v567zM204 1025V537a396 396 0 0 1 792 0v488zM282 1025V567a318 318 0 0 1 636 0v458zM359 1025V567a241 241 0 0 1 482 0v458zM437 1025V598a163 163 0 0 1 326 0v427zM515 1025V598a85 85 0 0 1 170 0v427z"/>
</svg>

After

Width:  |  Height:  |  Size: 517 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

+1 -13
View File
@@ -665,19 +665,7 @@ export const dict = {
"enterprise.form.inferenceSpend.over100k": "$100K or more",
"enterprise.form.error.invalidInferenceSpend": "Select a valid inference spend range.",
"enterprise.form.error.captcha": "Captcha verification failed. Please try again.",
// Still used by dev's old home and changelog pages until its replacement lands in a later commit.
"home.faq.a1": "OpenCode is an open source agent that helps you write and run code with any AI model. It's available as a terminal-based interface, desktop app, or IDE extension.",
"home.faq.a3.p2.afterZen": ".",
"home.faq.a3.p2.beforeZen": "Aside from these, you can use any of the popular coding models with",
"home.faq.a3.p3": "While we encourage users to use OpenCode Models, OpenCode also works with all popular providers such as OpenAI, Anthropic, xAI etc.",
"home.faq.a3.p4.localLink": "local models",
"home.faq.a5.and": "and",
"home.faq.a5.beforeDesktop": "Not anymore! OpenCode is now available as an app for your",
"home.faq.a5.desktop": "desktop",
"home.faq.a5.web": "web",
"home.zenCta.body": "OpenCode Models give you access to a handpicked set of AI models that OpenCode has tested and benchmarked specifically for coding agents. No need to worry about inconsistent performance and quality across providers. Use validated models that work.",
"home.zenCta.link": "Learn about OpenCode Models",
"home.zenCta.title": "Access reliable optimized models for coding agents",
// Still used by dev's old changelog page until its replacement lands in a later commit.
"changelog.empty": "No changelog entries found.",
"changelog.viewJson": "View JSON",
} as const
@@ -0,0 +1,10 @@
import { ProductPage } from "~/component/site/product-page"
import { productAreas } from "~/component/site/product-data"
import { productChangelog } from "~/lib/changelog"
// Hovering or focusing a link here (a carousel card, say) starts loading the page's changelog.
export const route = { preload: () => productChangelog(productAreas.desktop!) }
export default function Page() {
return <ProductPage slug="desktop" />
}
@@ -0,0 +1,5 @@
import { ExtensionPage } from "~/component/site/extension-page"
export default function Page() {
return <ExtensionPage slug="browse" />
}
@@ -0,0 +1,8 @@
import type { APIEvent } from "@solidjs/start/server"
import { redirect } from "@solidjs/router"
import { localeFromRequest, route } from "~/lib/language"
// Lane is no longer listed; its old page goes to the Extensions on /product.
export async function GET(event: APIEvent) {
return redirect(`${route(localeFromRequest(event.request), "/product")}#extensions`, 301)
}
@@ -0,0 +1,8 @@
import type { APIEvent } from "@solidjs/start/server"
import { redirect } from "@solidjs/router"
import { localeFromRequest, route } from "~/lib/language"
// SSH is no longer listed (extension-data.ts); its old page goes to the Extensions on /product.
export async function GET(event: APIEvent) {
return redirect(`${route(localeFromRequest(event.request), "/product")}#extensions`, 301)
}
@@ -0,0 +1,8 @@
import type { APIEvent } from "@solidjs/start/server"
import { redirect } from "@solidjs/router"
import { localeFromRequest, route } from "~/lib/language"
// WSL is no longer listed (extension-data.ts); its old page goes to the Extensions on /product.
export async function GET(event: APIEvent) {
return redirect(`${route(localeFromRequest(event.request), "/product")}#extensions`, 301)
}
+5
View File
@@ -0,0 +1,5 @@
import { ProductPage } from "~/component/site/product-page"
export default function Page() {
return <ProductPage slug="ide" />
}
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
+5
View File
@@ -0,0 +1,5 @@
import { ProductPage } from "~/component/site/product-page"
export default function Page() {
return <ProductPage slug="mini" />
}
@@ -0,0 +1,10 @@
import { ProductPage } from "~/component/site/product-page"
import { productAreas } from "~/component/site/product-data"
import { productChangelog } from "~/lib/changelog"
// Hovering or focusing a link here (a carousel card, say) starts loading the page's changelog.
export const route = { preload: () => productChangelog(productAreas.mobile!) }
export default function Page() {
return <ProductPage slug="mobile" />
}
@@ -0,0 +1,79 @@
[data-page="products"] {
/* The carousel's cards in rows, at exactly the home carousel's card width (Settings › Carousel
sets --visible and --gaps per screen width, products.tsx), so going from the home page the cards
keep their x and size: as many as fit per row. Phones: one card across the content width (the
home carousel's peeking 1.1 card there doesn't make a row). Unlike the carousel, the grid stays
inside the page's padding and never scrolls sideways. */
/* The grid follows the hero directly, with no divider or title, a block's space below it. */
/* The home carousel's own top margin (products.css), so the first row lands where home's does. */
[data-component="products"][data-layout="grid"] {
margin: 3rem 0 0;
[data-slot="grid"] {
display: grid;
grid-template-columns: repeat(auto-fill, calc((100% - var(--gaps) * var(--gutter)) / var(--visible)));
column-gap: var(--gutter);
row-gap: 3.5rem;
}
/* No real footage yet: plain black in both themes. */
[data-slot="media"][data-empty] {
background: #000;
}
@media (max-width: 39.9375rem) {
[data-slot="grid"] {
grid-template-columns: minmax(0, 1fr);
row-gap: 3rem;
}
}
}
}
/* The hero's subtitle is as wide as two grid cards (the carousel's card width) and the gap between
them, so it ends on the second card's right edge; where the grid shows two cards or one, it spans the content column. */
[data-site][data-page="products"] [data-component="hero"] p {
max-width: calc(2 * (100% - var(--gaps) * var(--gutter)) / var(--visible) + var(--gutter));
@media (max-width: 60rem) {
max-width: none;
}
}
/* David's call for these sections (overriding "titles above"): from 60rem up the title takes the
first of the page's four columns and the content the others, on the product grid's column math:
every section's content spans columns 2–3 (the lists, the download sections, marked data-columns,
and the FAQ), so all their buttons and toggles end on column 3's right edge. The title and the first row are both trimmed to their cap height, so their tops line
up. Up to 78rem (phones and tablets) the title goes back above and the content takes the full
width. */
@media (min-width: 78.0625rem) {
[data-site][data-page="products"]
[data-component="block"]:is(
[data-slot="products-extensions"],
[data-slot="products-integrations"],
[data-slot="products-anomaly"],
[data-columns]
) {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
column-gap: var(--gutter);
align-items: start;
/* Every section's content spans columns 2–3, so the Install buttons, the download rows'
buttons and the FAQ toggles all end on column 3's right edge. */
> [data-slot="body"] {
grid-column: 2 / 4;
}
[data-component="download-list"] {
max-width: none;
}
}
}
/* Stacked under its title, the first download row needs no pull up to the title's line. */
@media (max-width: 78rem) {
[data-site][data-page="products"] [data-columns] > [data-slot="body"] > [data-component="download-list"]:first-child {
margin-top: 0;
}
}
@@ -0,0 +1,116 @@
import "./index.css"
import "~/component/site/hero-title.css"
import { titleCells } from "~/component/site/hero-title"
import { Meta, Title } from "@solidjs/meta"
import { Show } from "solid-js"
import { LocaleLinks } from "~/component/locale-links"
import { ShareMeta } from "~/component/share-meta"
import { ogImage } from "~/lib/og"
import { breadcrumbData, JsonLd } from "~/component/structured-data"
import { DownloadSections } from "~/component/site/download-sections"
import { extensionPages } from "~/component/site/extension-data"
import { SectionHeading } from "~/component/site/on-this-page"
import { ProductGrid } from "~/component/site/products"
import { MoreFromAnomaly, ProductList } from "~/component/site/product-list"
import { BrowseMark, GitHubMark, GitLabMark } from "~/component/site/icons"
import { downloadContent } from "~/lib/download-content"
import "~/component/site/product-list.css"
import { productsOrderScript } from "~/component/site/products-order"
import { Site } from "~/component/site/site"
import { PageTitle } from "~/component/site/sticky-title"
import { designCopy } from "~/component/site/design-copy"
import { useMarkdown } from "~/component/site/use-markdown"
import { useLanguage } from "~/context/language"
import { productsMarkdown } from "~/lib/product-markdown"
import { homeContent } from "~/lib/home-content"
import { useI18n } from "~/context/i18n"
import { localize, useContent } from "~/i18n/content"
import { siteSettings } from "~/component/site/settings"
export default function Product() {
const language = useLanguage()
const i18n = useI18n()
const content = useContent()
const title = () => i18n.t("product.title")
const description = () => i18n.t("product.meta.description")
const download = () => localize(language.locale(), "download", downloadContent(i18n.t, language.route))
const markdown = useMarkdown("/product", productsMarkdown)
return (
<Site page="products" markdown={markdown}>
<Title>{title()}</Title>
<ShareMeta title={title()} description={description()} image={ogImage("/product")} />
<LocaleLinks path="/product" />
<Meta name="description" content={description()} />
<JsonLd
data={breadcrumbData([
{ name: i18n.t("nav.home"), path: language.route("/") },
{ name: i18n.t("site.nav.product"), path: language.route("/product") },
])}
/>
{/* The home hero's options and title length, so the title is set at the home title's size
and the cards below land where the home page's do (hero-title.css). */}
<section
data-component="hero"
data-design="hero heroTitleSize"
data-variant={siteSettings.hero}
data-title-size={siteSettings.heroTitleSize}
style={{
"--title-chars": titleCells(designCopy("home.hero.title", homeContent(i18n.t, language.route).hero.title)),
}}
>
<PageTitle title={i18n.t("site.nav.product")} />
<p data-design-copy="products.hero.body">{designCopy("products.hero.body", i18n.t("product.hero.subtitle"))}</p>
</section>
<ProductGrid />
{/* Right after the grid, so a saved order (Design mode, development only) applies before it paints. */}
{import.meta.env.DEV && <script innerHTML={productsOrderScript} />}
{/* Hidden while extensionPages is empty. */}
<Show when={extensionPages.length > 0}>
<section data-component="block" data-slot="products-extensions">
<SectionHeading id="extensions" title={i18n.t("site.extensions")} label />
<div data-slot="body">
{/* Each extension's page, with its install steps; a blank tile until one has an icon. */}
<ProductList
items={extensionPages.map((extension) => ({
name: content().extensions[extension.slug].name,
description: content().extensions[extension.slug].body,
href: language.route(`/extensions/${extension.slug}`),
icon: <BrowseMark />,
}))}
/>
</div>
</section>
</Show>
{/* /product#download lands here, the first of the download page's sections on this page. */}
<section data-component="block" data-slot="products-integrations">
<SectionHeading id="download" title={download().integrations.title} label />
<div data-slot="body">
<ProductList
items={download().integrations.items.map((integration) => ({
name: integration.label,
description: integration.body,
href: integration.href,
external: true,
icon: integration.id === "github" ? <GitHubMark /> : <GitLabMark />,
}))}
/>
</div>
</section>
{/* Everything the download page has, in this page's layout (/product#download). */}
<DownloadSections
columns
apps={false}
editors={false}
integrations={false}
beforeFaq={<MoreFromAnomaly slot="products-anomaly" />}
heading={(id, title) => <SectionHeading id={id} title={title} label />}
/>
</Site>
)
}
+10
View File
@@ -0,0 +1,10 @@
import { ProductPage } from "~/component/site/product-page"
import { productAreas } from "~/component/site/product-data"
import { productChangelog } from "~/lib/changelog"
// Hovering or focusing a link here (a carousel card, say) starts loading the page's changelog.
export const route = { preload: () => productChangelog(productAreas.sdk!) }
export default function Page() {
return <ProductPage slug="sdk" />
}
@@ -0,0 +1,10 @@
import { ProductPage } from "~/component/site/product-page"
import { productAreas } from "~/component/site/product-data"
import { productChangelog } from "~/lib/changelog"
// Hovering or focusing a link here (a carousel card, say) starts loading the page's changelog.
export const route = { preload: () => productChangelog(productAreas.terminal!) }
export default function Page() {
return <ProductPage slug="terminal" />
}