feat(landing): enhance landing page with new enterprise design and features
This commit is contained in:
@@ -1,39 +1,159 @@
|
||||
"use client";
|
||||
|
||||
import Link from "next/link";
|
||||
import type { ReactNode } from "react";
|
||||
|
||||
import { SignedIn } from "@/auth/clerk";
|
||||
import { SignInButton, SignedIn, SignedOut, isClerkEnabled } from "@/auth/clerk";
|
||||
|
||||
import { BrandMark } from "@/components/atoms/BrandMark";
|
||||
import { UserMenu } from "@/components/organisms/UserMenu";
|
||||
|
||||
export function LandingShell({ children }: { children: ReactNode }) {
|
||||
return (
|
||||
<div className="landing-page bg-app text-strong">
|
||||
<section className="relative overflow-hidden px-4 pb-20 pt-16 sm:px-6 lg:px-8">
|
||||
<div
|
||||
className="absolute inset-0 bg-landing-grid opacity-[0.18] pointer-events-none"
|
||||
aria-hidden="true"
|
||||
/>
|
||||
<div
|
||||
className="absolute -top-40 right-0 h-72 w-72 rounded-full bg-[color:var(--accent-soft)] blur-3xl pointer-events-none"
|
||||
aria-hidden="true"
|
||||
/>
|
||||
<div
|
||||
className="absolute -bottom-32 left-0 h-72 w-72 rounded-full bg-[color:var(--surface-strong)] blur-3xl pointer-events-none"
|
||||
aria-hidden="true"
|
||||
/>
|
||||
const clerkEnabled = isClerkEnabled();
|
||||
|
||||
return (
|
||||
<div className="landing-enterprise">
|
||||
<nav className="landing-nav" aria-label="Primary navigation">
|
||||
<div className="nav-container">
|
||||
<Link href="/" className="logo-section" aria-label="OpenClaw home">
|
||||
<div className="logo-icon" aria-hidden="true">
|
||||
OC
|
||||
</div>
|
||||
<div className="logo-text">
|
||||
<div className="logo-name">OpenClaw</div>
|
||||
<div className="logo-tagline">Mission Control</div>
|
||||
</div>
|
||||
</Link>
|
||||
|
||||
<div className="nav-links">
|
||||
<Link href="#capabilities">Capabilities</Link>
|
||||
<Link href="/boards">Boards</Link>
|
||||
<Link href="/activity">Activity</Link>
|
||||
<Link href="/gateways">Gateways</Link>
|
||||
</div>
|
||||
|
||||
<div className="nav-cta">
|
||||
<SignedOut>
|
||||
{clerkEnabled ? (
|
||||
<>
|
||||
<SignInButton
|
||||
mode="modal"
|
||||
forceRedirectUrl="/onboarding"
|
||||
signUpForceRedirectUrl="/onboarding"
|
||||
>
|
||||
<button type="button" className="btn-secondary">
|
||||
Sign In
|
||||
</button>
|
||||
</SignInButton>
|
||||
<SignInButton
|
||||
mode="modal"
|
||||
forceRedirectUrl="/onboarding"
|
||||
signUpForceRedirectUrl="/onboarding"
|
||||
>
|
||||
<button type="button" className="btn-primary">
|
||||
Start Free Trial
|
||||
</button>
|
||||
</SignInButton>
|
||||
</>
|
||||
) : (
|
||||
<>
|
||||
<Link href="/boards" className="btn-secondary">
|
||||
Boards
|
||||
</Link>
|
||||
<Link href="/onboarding" className="btn-primary">
|
||||
Get started
|
||||
</Link>
|
||||
</>
|
||||
)}
|
||||
</SignedOut>
|
||||
|
||||
<div className="relative mx-auto flex w-full max-w-6xl flex-col gap-12">
|
||||
<header className="flex items-center justify-between gap-4">
|
||||
<BrandMark />
|
||||
<SignedIn>
|
||||
<Link href="/boards/new" className="btn-secondary">
|
||||
Create Board
|
||||
</Link>
|
||||
<Link href="/boards" className="btn-primary">
|
||||
Open Boards
|
||||
</Link>
|
||||
<UserMenu />
|
||||
</SignedIn>
|
||||
</header>
|
||||
<main>{children}</main>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</nav>
|
||||
|
||||
<main>{children}</main>
|
||||
|
||||
<footer className="landing-footer">
|
||||
<div className="footer-content">
|
||||
<div className="footer-brand">
|
||||
<h3>OpenClaw</h3>
|
||||
<p>A calm command center for boards, agents, and approvals.</p>
|
||||
<div className="footer-tagline">Realtime Execution Visibility</div>
|
||||
</div>
|
||||
|
||||
<div className="footer-column">
|
||||
<h4>Product</h4>
|
||||
<div className="footer-links">
|
||||
<Link href="#capabilities">Capabilities</Link>
|
||||
<Link href="/boards">Boards</Link>
|
||||
<Link href="/activity">Activity</Link>
|
||||
<Link href="/dashboard">Dashboard</Link>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className="footer-column">
|
||||
<h4>Platform</h4>
|
||||
<div className="footer-links">
|
||||
<Link href="/gateways">Gateways</Link>
|
||||
<Link href="/agents">Agents</Link>
|
||||
<Link href="/dashboard">Dashboard</Link>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className="footer-column">
|
||||
<h4>Access</h4>
|
||||
<div className="footer-links">
|
||||
<SignedOut>
|
||||
{clerkEnabled ? (
|
||||
<>
|
||||
<SignInButton
|
||||
mode="modal"
|
||||
forceRedirectUrl="/onboarding"
|
||||
signUpForceRedirectUrl="/onboarding"
|
||||
>
|
||||
<button type="button">Sign In</button>
|
||||
</SignInButton>
|
||||
<SignInButton
|
||||
mode="modal"
|
||||
forceRedirectUrl="/onboarding"
|
||||
signUpForceRedirectUrl="/onboarding"
|
||||
>
|
||||
<button type="button">Create Account</button>
|
||||
</SignInButton>
|
||||
</>
|
||||
) : (
|
||||
<Link href="/boards">Boards</Link>
|
||||
)}
|
||||
<Link href="/onboarding">Onboarding</Link>
|
||||
</SignedOut>
|
||||
<SignedIn>
|
||||
<Link href="/boards">Open Boards</Link>
|
||||
<Link href="/boards/new">Create Board</Link>
|
||||
<Link href="/dashboard">Dashboard</Link>
|
||||
</SignedIn>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className="footer-bottom">
|
||||
<div className="footer-copyright">
|
||||
© {new Date().getFullYear()} OpenClaw. All rights reserved.
|
||||
</div>
|
||||
<div className="footer-bottom-links">
|
||||
<Link href="#capabilities">Capabilities</Link>
|
||||
<Link href="/boards">Boards</Link>
|
||||
<Link href="/activity">Activity</Link>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user