Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions apps/web/public/file.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions apps/web/public/globe.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions apps/web/public/next.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions apps/web/public/vercel.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added apps/web/public/videos/hero.mp4
Binary file not shown.
Binary file added apps/web/public/videos/hero_mobile.mp4
Binary file not shown.
1 change: 1 addition & 0 deletions apps/web/public/window.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions apps/web/src/app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@
--border: #262626;
--text: #FAFAFA;
--text-muted: #A3A3A3;
--font-sans: var(--font-space), ui-sans-serif, system-ui, sans-serif;
}

body {
background: var(--bg);
color: var(--text);
font-family: var(--font-sans);
}
6 changes: 3 additions & 3 deletions apps/web/src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import type { Metadata } from "next";
import { Inter } from "next/font/google";
import { Space_Grotesk } from "next/font/google";
import "./globals.css";

const inter = Inter({ subsets: ["latin"], variable: "--font-inter" });
const spaceGrotesk = Space_Grotesk({ subsets: ["latin"], variable: "--font-space" });

export const metadata: Metadata = {
title: "OpenClaw Code — AI-Powered Code Editor",
Expand All @@ -22,7 +22,7 @@ export default function RootLayout({
}>) {
return (
<html lang="en" className="dark">
<body className={`${inter.variable} font-sans antialiased`}>
<body className={`${spaceGrotesk.variable} font-sans antialiased`}>
{children}
</body>
</html>
Expand Down
22 changes: 21 additions & 1 deletion apps/web/src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,27 @@ export default function Home() {

{/* Hero */}
<main className="flex-1">
<section className="flex flex-col items-center text-center px-6 pt-20 pb-16 max-w-4xl mx-auto">
<section className="relative flex flex-col items-center text-center px-6 pt-20 pb-16 max-w-4xl mx-auto overflow-hidden">
{/* Background video */}
<video
autoPlay
loop
muted
playsInline
className="absolute inset-0 w-full h-full object-cover opacity-20 -z-10 hidden sm:block"
>
<source src="/videos/hero.mp4" type="video/mp4" />
</video>
<video
autoPlay
loop
muted
playsInline
className="absolute inset-0 w-full h-full object-cover opacity-20 -z-10 sm:hidden"
>
<source src="/videos/hero_mobile.mp4" type="video/mp4" />
</video>
<div className="absolute inset-0 bg-gradient-to-b from-[var(--bg)]/60 via-transparent to-[var(--bg)] -z-10" />
<Image
src="/icon.png"
alt="OpenClaw Code"
Expand Down