diff options
| author | Jay V <[email protected]> | 2025-11-07 14:59:11 -0500 |
|---|---|---|
| committer | Jay V <[email protected]> | 2025-11-07 16:27:35 -0500 |
| commit | 536d10e5abcf43a439ccb48fc8e1447d2cbe131e (patch) | |
| tree | c70ba143611fbc46820876de6d89dc057c5d0421 /packages | |
| parent | 9885c716f387d35024eaed5c0aab0528189c1191 (diff) | |
| download | opencode-536d10e5abcf43a439ccb48fc8e1447d2cbe131e.tar.gz opencode-536d10e5abcf43a439ccb48fc8e1447d2cbe131e.zip | |
ignore: lander add canonical urls and h1 tags to all landing pages
Diffstat (limited to 'packages')
| -rw-r--r-- | packages/console/app/src/config.ts | 3 | ||||
| -rw-r--r-- | packages/console/app/src/routes/brand/index.css | 2 | ||||
| -rw-r--r-- | packages/console/app/src/routes/brand/index.tsx | 6 | ||||
| -rw-r--r-- | packages/console/app/src/routes/enterprise/index.css | 2 | ||||
| -rw-r--r-- | packages/console/app/src/routes/enterprise/index.tsx | 6 | ||||
| -rw-r--r-- | packages/console/app/src/routes/index.tsx | 1 | ||||
| -rw-r--r-- | packages/console/app/src/routes/zen/index.tsx | 2 |
7 files changed, 16 insertions, 6 deletions
diff --git a/packages/console/app/src/config.ts b/packages/console/app/src/config.ts index 097764b87..40108e968 100644 --- a/packages/console/app/src/config.ts +++ b/packages/console/app/src/config.ts @@ -2,6 +2,9 @@ * Application-wide constants and configuration */ export const config = { + // Base URL + baseUrl: "https://opencode.ai", + // GitHub github: { repoUrl: "https://github.com/sst/opencode", diff --git a/packages/console/app/src/routes/brand/index.css b/packages/console/app/src/routes/brand/index.css index 058d150b6..d3c0d0523 100644 --- a/packages/console/app/src/routes/brand/index.css +++ b/packages/console/app/src/routes/brand/index.css @@ -264,7 +264,7 @@ [data-component="brand-content"] { padding: 4rem 5rem; - h2 { + h1 { font-size: 1.5rem; font-weight: 500; color: var(--color-text-strong); diff --git a/packages/console/app/src/routes/brand/index.tsx b/packages/console/app/src/routes/brand/index.tsx index 4570c73ca..72ea0f150 100644 --- a/packages/console/app/src/routes/brand/index.tsx +++ b/packages/console/app/src/routes/brand/index.tsx @@ -1,6 +1,7 @@ import "./index.css" -import { Title, Meta } from "@solidjs/meta" +import { Title, Meta, Link } from "@solidjs/meta" import { Header } from "~/component/header" +import { config } from "~/config" import { Footer } from "~/component/footer" import { Legal } from "~/component/legal" import previewLogoLight from "../../asset/brand/preview-opencode-logo-light.png" @@ -53,13 +54,14 @@ export default function Brand() { return ( <main data-page="enterprise"> <Title>OpenCode | Brand</Title> + <Link rel="canonical" href={`${config.baseUrl}/brand`} /> <Meta name="description" content="OpenCode brand guidelines" /> <div data-component="container"> <Header /> <div data-component="content"> <section data-component="brand-content"> - <h2>Brand guidelines</h2> + <h1>Brand guidelines</h1> <p>Resources and assets to help you work with the OpenCode brand.</p> <button data-component="download-button" diff --git a/packages/console/app/src/routes/enterprise/index.css b/packages/console/app/src/routes/enterprise/index.css index 567c4f99d..0178e40a2 100644 --- a/packages/console/app/src/routes/enterprise/index.css +++ b/packages/console/app/src/routes/enterprise/index.css @@ -287,7 +287,7 @@ } [data-component="enterprise-column-1"] { - h2 { + h1 { font-size: 1.5rem; font-weight: 500; color: var(--color-text-strong); diff --git a/packages/console/app/src/routes/enterprise/index.tsx b/packages/console/app/src/routes/enterprise/index.tsx index 4af0ccce8..4bff061a8 100644 --- a/packages/console/app/src/routes/enterprise/index.tsx +++ b/packages/console/app/src/routes/enterprise/index.tsx @@ -1,6 +1,7 @@ import "./index.css" -import { Title, Meta } from "@solidjs/meta" +import { Title, Meta, Link } from "@solidjs/meta" import { createSignal, Show } from "solid-js" +import { config } from "~/config" import { Header } from "~/component/header" import { Footer } from "~/component/footer" import { Legal } from "~/component/legal" @@ -54,6 +55,7 @@ export default function Enterprise() { return ( <main data-page="enterprise"> <Title>OpenCode | Enterprise solutions for your organisation</Title> + <Link rel="canonical" href={`${config.baseUrl}/enterprise`} /> <Meta name="description" content="Contact OpenCode for enterprise solutions" /> <div data-component="container"> <Header /> @@ -62,7 +64,7 @@ export default function Enterprise() { <section data-component="enterprise-content"> <div data-component="enterprise-columns"> <div data-component="enterprise-column-1"> - <h2>Your code is yours</h2> + <h1>Your code is yours</h1> <p> OpenCode operates securely inside your organization with no data or context stored and no licensing restrictions or ownership claims. Start a trial with your team, diff --git a/packages/console/app/src/routes/index.tsx b/packages/console/app/src/routes/index.tsx index 71b535f79..ee138e140 100644 --- a/packages/console/app/src/routes/index.tsx +++ b/packages/console/app/src/routes/index.tsx @@ -47,6 +47,7 @@ export default function Home() { value="public, max-age=1, s-maxage=3600, stale-while-revalidate=86400" /> <Title>OpenCode | The AI coding agent built for the terminal</Title> + <Link rel="canonical" href={config.baseUrl} /> <Link rel="icon" type="image/svg+xml" href="/favicon.svg" /> <Meta property="og:image" content="/social-share.png" /> <Meta name="twitter:image" content="/social-share.png" /> diff --git a/packages/console/app/src/routes/zen/index.tsx b/packages/console/app/src/routes/zen/index.tsx index 220f7a117..a096b52d7 100644 --- a/packages/console/app/src/routes/zen/index.tsx +++ b/packages/console/app/src/routes/zen/index.tsx @@ -3,6 +3,7 @@ import { createAsync, query, redirect } from "@solidjs/router" import { Title, Meta, Link } from "@solidjs/meta" import { HttpHeader } from "@solidjs/start" import zenLogoLight from "../../asset/zen-ornate-light.svg" +import { config } from "~/config" import zenLogoDark from "../../asset/zen-ornate-dark.svg" import compareVideo from "../../asset/lander/opencode-comparison-min.mp4" import compareVideoPoster from "../../asset/lander/opencode-comparison-poster.png" @@ -33,6 +34,7 @@ export default function Home() { value="public, max-age=1, s-maxage=3600, stale-while-revalidate=86400" /> <Title>OpenCode Zen | A curated set of reliable optimized models for coding agents</Title> + <Link rel="canonical" href={`${config.baseUrl}/zen`} /> <Link rel="icon" type="image/svg+xml" href="/favicon-zen.svg" /> <Meta property="og:image" content="/social-share-zen.png" /> <Meta name="twitter:image" content="/social-share-zen.png" /> |
