Files
openwork/ee/apps/landing/app/page.tsx
Jan Carbonell 8d0414bd25 feat(landing): SEO metadata, JSON-LD, H1 fixes, manifest (#1493)
* feat(landing): SEO metadata, JSON-LD, H1 fixes, manifest

Raises the site's traditional SEO to match its strong agent-readiness
foundations (llms.txt, api-catalog, markdown negotiation).

Metadata:
- Root layout: canonical, og:type/siteName/locale, explicit robots
- Per-page canonical + openGraph.url on every route
- Rewritten titles/descriptions for /pricing, /enterprise, /den, /download
  (previously 14-21 char titles and 51-73 char descriptions)
- /feedback and /starter-success marked noindex,follow
- /feedback removed from sitemap; /privacy and /terms demoted to 0.3
- Title dash normalized to em-dash site-wide

Headings:
- /den gains a real <h1> (was <h2> only — a11y + SEO bug)
- /enterprise H1 rewritten to be enterprise-specific (was a dup of home)
- /pricing H1 enriched; tier names promoted to <h2> in pricing-grid
- /download nav-card duplicate H2s demoted to spans
- lib/agent-markdown.ts H1s realigned with HTML for agent parity

Structured data:
- New components/structured-data.tsx helper
- Organization on every page (root)
- SoftwareApplication on / and /download
- Product with three Offers on /pricing

Manifest & perf:
- New app/manifest.ts
- Enterprise hero: 12MB PNG -> 1.1MB JPEG (1600px q70)
  Old PNG left in public/ for a follow-up cleanup commit

* chore(landing): remove unused /den marketing page

Deletes the /den route and its components (LandingDen, DenHero) along
with every internal reference. The cloud product is still linked from
nav + footer, pointing at https://app.openworklabs.com.

- Removed from sitemap.ts, middleware.ts matcher, and agent-markdown
  (both the markdown twin and the "Den (team workspace)" home mention)
- Removed from llms.txt routing list and site map
- Footer "Cloud" link now points to the external app (matches nav)
- Nav internal key renamed from "den" to "cloud" and type union updated
- WebMCP navigate_to destinations no longer advertise "den"

api-catalog still references "OpenWork Den API" since that's the API
product name, not the marketing page — untouched.

* fix(landing): point nav + footer Cloud link at /cloud redirect

Previous removal of /den hardcoded the external app URL into the nav
and footer. Switch to the /cloud internal path so the existing cloud
redirect is the single source of truth (and works consistently with
the rest of the internal links).

* docs(landing): restore Cloud mentions in llms.txt and agent-markdown

The previous /den removal also stripped every Cloud mention from the
agent-facing text. Restore them pointing at /cloud (which redirects to
https://app.openworklabs.com) so agents can still route users to the
hosted workspace.

* fix(landing): link Cloud directly to app.openworklabs.com, not /cloud

There's no /cloud route on the marketing site — the hosted app lives
at https://app.openworklabs.com. Point every Cloud link (nav, footer,
llms.txt, agent-markdown, WebMCP) at the real URL.

* feat(landing): replace Trust details link with Security Review CTA

The old small Trust details text link under the Book a call button got
lost. Surface it as a proper secondary CTA next to Book a call, and
rename to Security Review to set expectations for enterprise buyers.

Also updates the enterprise markdown twin to mirror the label.

* fix(landing): preserve og:type/siteName/locale/images on pages overriding openGraph

Next.js replaces (not merges) the openGraph object across layout/page
boundaries. Earlier per-page metadata added only og:url, which silently
wiped og:type, og:siteName, og:locale, and og:image off every page that
did so — exactly the fields the root layout relied on for defaults.

Introduce lib/seo.ts with a baseOpenGraph constant and spread it into
every per-page openGraph override. Caught by running the PR's test plan
against the dev server: 12 failing checks → 0 after this fix.

* feat(landing): rasterize SVG into favicon.ico + PNG icon set

Adds proper raster icons for browsers/OSes that don't render SVG
favicons (older Safari, Android home-screen, Windows taskbar):

- app/favicon.ico — 32×32, PNG-in-ICO container
- app/icon.png — 192×192
- app/apple-icon.png — 180×180

Uses Next.js App Router icon-file convention — Next auto-generates the
<link rel="icon"> / <link rel="apple-touch-icon"> tags, so the
manual icons: metadata block in app/layout.tsx is removed.

Manifest updated to advertise the 192×192 PNG (the Android PWA pick)
alongside the 180 apple-icon and the SVG mark.

All three PNGs generated from public/openwork-mark.svg with sharp,
centered on a white square canvas with ~10% padding so the mark
doesn't bleed to the edges at any size. Generator script at
/tmp/generate-favicons.mjs (not committed) — re-run any time the
source SVG changes.

* fix(landing): match /enterprise H1 styling + copy to /

The /enterprise hero H1 used slightly different Tailwind classes (mb-6,
leading-[1.05]) than the homepage H1 (mb-5, leading-[1.1]), giving a
visibly different type rhythm. Align to the home page classes.

Copy updated to 'A privacy-first alternative to Claude Cowork for your
org' — clearer positioning than 'OpenWork for the enterprise'. Mirrored
in the agent-markdown enterprise twin for parity.

* fix(landing): use 'organization' not 'org' in /enterprise H1

* fix(landing): restore original /enterprise hero subhead copy

* fix(landing): open Docs in a new tab from the main nav

Footer's Docs link already opens in a new tab; the top nav didn't. Add
an explicit newTab flag to the nav items array and honor it in both
the desktop and mobile menus so visitors keep the marketing tab open
while reading docs.
2026-04-19 10:31:57 -07:00

57 lines
1.6 KiB
TypeScript

import { LandingHome } from "../components/landing-home";
import { getGithubData } from "../lib/github";
import { headers } from "next/headers";
import { StructuredData } from "../components/structured-data";
import { baseOpenGraph } from "../lib/seo";
export const metadata = {
alternates: {
canonical: "/"
},
openGraph: {
...baseOpenGraph,
url: "https://openworklabs.com"
}
};
const softwareApplicationSchema = {
"@context": "https://schema.org",
"@type": "SoftwareApplication",
name: "OpenWork",
description:
"Open source Claude Cowork alternative. Desktop app that lets teams use 50+ LLMs, bring their own provider keys, and ship reusable agent setups with guardrails.",
url: "https://openworklabs.com",
applicationCategory: "BusinessApplication",
operatingSystem: "macOS, Windows, Linux",
offers: {
"@type": "Offer",
price: "0",
priceCurrency: "USD",
url: "https://openworklabs.com/pricing"
},
publisher: {
"@type": "Organization",
name: "OpenWork",
url: "https://openworklabs.com"
}
};
export default async function Home() {
const github = await getGithubData();
const cal = process.env.NEXT_PUBLIC_CAL_URL || "/enterprise#book";
const userAgent = headers().get("user-agent")?.toLowerCase() || "";
const isMobileVisitor = /android|iphone|ipad|ipod|mobile/.test(userAgent);
return (
<>
<StructuredData data={softwareApplicationSchema} />
<LandingHome
stars={github.stars}
downloadHref={github.downloads.macos}
callHref={cal}
isMobileVisitor={isMobileVisitor}
/>
</>
);
}