Skip to content

Beautiful, AI-native markdown IDE and LLM wiki

Match /continue page styling to the share splash shell (#2207)

sarah038265806bd0
diff --git a/docs/src/app/continue/page.tsx b/docs/src/app/continue/page.tsx
index c39bb993d..b4f54a0a7 100644
--- a/docs/src/app/continue/page.tsx
+++ b/docs/src/app/continue/page.tsx
@@ -1,8 +1,8 @@
-import { ArrowRightIcon, DownloadIcon } from 'lucide-react';
import { cookies } from 'next/headers';
-import Image from 'next/image';
import Link from 'next/link';
import { redirect } from 'next/navigation';
+import { SplashButtonLabel, splashPrimaryButton } from '@/app/d/[encoded]/splash-buttons';
+import { SlideEyebrow, SlideHeading, SlideLead, SlidePageShell } from '@/components/slide-page';
import {
decideContinue,
NONCE_PARAM,
@@ -37,69 +37,46 @@ export default async function ContinuePage({ searchParams }: ContinuePageProps)
}
return (
- <main className="relative min-h-screen bg-[var(--slide-bg)] font-[family-name:var(--font-dm-sans)]">
- <Image
- src="/ok-logo.png"
- alt=""
- width={64}
- height={64}
- className="pointer-events-none absolute top-8 right-8 z-10 size-10 md:top-12 md:right-12 md:size-12"
- aria-hidden="true"
- />
+ <SlidePageShell>
+ <div className="max-w-3xl">
+ <SlideEyebrow>Welcome to OpenKnowledge</SlideEyebrow>
- <section className="px-6 pt-32 pb-16 md:pt-44 md:pb-20">
- <div className="mx-auto max-w-3xl">
- <p className="mb-6 text-sm font-medium italic text-[var(--slide-accent-strong)]">
- Welcome to OpenKnowledge
- </p>
+ <SlideHeading>You&rsquo;re all set.</SlideHeading>
- <h1 className="text-3xl font-light tracking-tight text-[var(--slide-text)] sm:text-4xl lg:text-[3.25rem] lg:leading-[1.1]">
- You&rsquo;re all set.
- </h1>
+ <SlideLead className="mt-8">
+ OpenKnowledge is a local-first, markdown-native knowledge base where you and your AI
+ agents co-create. Open the app to create your first project, or connect an existing GitHub
+ repository.
+ </SlideLead>
- <p className="mt-8 text-lg leading-relaxed text-[var(--slide-muted)]">
- OpenKnowledge is a local-first, markdown-native knowledge base where you and your AI
- agents co-create. Open the app to create your first project, or connect an existing
- GitHub repository.
- </p>
+ <div className="mt-10 flex flex-wrap items-center gap-4">
+ <Link href="/docs" data-testid="continue-getting-started" className={splashPrimaryButton}>
+ <SplashButtonLabel direction="right">Read the getting-started guide</SplashButtonLabel>
+ </Link>
+ </div>
+ </div>
- <div className="mt-12 flex flex-wrap items-center gap-4">
- <Link
- href="/docs"
- data-testid="continue-getting-started"
- className="slide-btn-primary inline-flex items-center gap-2 rounded-lg px-6 py-3 text-sm font-medium transition-opacity focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[var(--slide-accent-strong)]"
+ <div
+ className="mt-12 border-t border-slide-text/10 pt-8"
+ data-testid="continue-share-recovery"
+ >
+ <div className="max-w-3xl">
+ <p className="text-sm font-medium text-slide-text">Were you sent a share link?</p>
+ <p className="mt-2 text-sm leading-relaxed text-slide-muted">
+ Click the link again and choose{' '}
+ <span className="font-medium">Open in OpenKnowledge</span> to jump straight to it.
+ <br />
+ Don&rsquo;t have the app yet?{' '}
+ <a
+ href={SPLASH_DOWNLOAD_URL}
+ className="font-medium text-slide-text underline underline-offset-4 transition-colors hover:text-primary"
>
- Read the getting-started guide
- <ArrowRightIcon className="size-4" aria-hidden="true" />
- </Link>
- </div>
-
- <div
- className="mt-12 border-t border-[var(--slide-border,rgba(0,0,0,0.08))] pt-8"
- data-testid="continue-share-recovery"
- >
- <p className="text-sm font-medium text-[var(--slide-text)]">
- Were you sent a share link?
- </p>
- <p className="mt-2 text-sm leading-relaxed text-[var(--slide-muted)]">
- If you opened OpenKnowledge from a shared document, click that link again and choose{' '}
- <span className="font-medium">Open in OpenKnowledge</span> to jump straight to it. If
- you don&rsquo;t have the app yet,{' '}
- <a
- href={SPLASH_DOWNLOAD_URL}
- className="font-medium text-[var(--slide-text)] underline underline-offset-4 transition-colors hover:text-[var(--slide-accent)]"
- >
- download it for macOS
- </a>
- .
- </p>
- <p className="mt-3 inline-flex items-center gap-2 text-sm text-[var(--slide-muted)]">
- <DownloadIcon className="size-4" aria-hidden="true" />
- <span>OpenKnowledge is macOS-only in v1.</span>
- </p>
- </div>
+ Download it for macOS
+ </a>
+ .
+ </p>
</div>
- </section>
- </main>
+ </div>
+ </SlidePageShell>
);
}
diff --git a/docs/src/components/slide-page.tsx b/docs/src/components/slide-page.tsx
new file mode 100644
index 000000000..37472b582
--- /dev/null
+++ b/docs/src/components/slide-page.tsx
@@ -0,0 +1,67 @@
+import Link from 'next/link';
+import type { ComponentProps, ReactNode } from 'react';
+import { DotTexture } from '@/app/(home)/dot-texture';
+import { SiteFooter } from '@/app/(home)/footer';
+import { OkWordmark } from '@/components/ok-wordmark';
+import { cn } from '@/lib/utils';
+
+export function SlidePageShell({ children }: { children: ReactNode }) {
+ return (
+ <main className="relative flex min-h-screen flex-col overflow-hidden bg-slide-bg font-[family-name:var(--font-dm-sans)]">
+ <DotTexture
+ variant="right"
+ priority
+ className="top-0 right-0 w-60 dark:opacity-30 sm:w-[680px]"
+ />
+ <DotTexture
+ variant="left"
+ className="bottom-0 left-0 w-40 dark:opacity-30 sm:w-72 lg:w-[515px]"
+ />
+ <header className="relative z-10 px-6">
+ <div className="container mx-auto flex pt-8 md:pt-10">
+ <Link href="/" aria-label="OpenKnowledge home" className="inline-flex items-center">
+ {/* Link already names the control; hide the wordmark's own label to
+ avoid a doubled "OpenKnowledge" announcement. */}
+ <OkWordmark aria-hidden="true" className="h-8 w-auto text-slide-text" />
+ </Link>
+ </div>
+ </header>
+
+ <section className="relative z-20 flex-1 px-6 pt-16 pb-16 md:pt-24 md:pb-20">
+ <div className="container mx-auto">{children}</div>
+ </section>
+
+ <div className="relative z-10">
+ <SiteFooter />
+ </div>
+ </main>
+ );
+}
+
+export function SlideEyebrow({ className, ...props }: ComponentProps<'p'>) {
+ return (
+ <p
+ className={cn(
+ 'mb-6 font-mono text-base font-medium uppercase tracking-wide text-primary',
+ className,
+ )}
+ {...props}
+ />
+ );
+}
+
+export function SlideHeading({ className, ...props }: ComponentProps<'h1'>) {
+ return (
+ <h1
+ className={cn(
+ 'text-balance text-3xl font-light tracking-tight text-slide-text sm:text-4xl lg:text-[3.25rem] lg:leading-[1.1]',
+ className,
+ )}
+ {...props}
+ />
+ );
+}
+
+export function SlideLead({ className, ...props }: ComponentProps<'p'>) {
+ return <p className={cn('text-lg leading-relaxed text-slide-muted', className)} {...props} />;
+}