Skip to content

armgit / alook

Public Imported from GitHub
0

Multi-Agent Collaboration for Team and Friends

feat: improve landing page

Gusa89eccb7c84d
diff --git a/src/web/src/app/globals.css b/src/web/src/app/globals.css
index 10a758d77..bf920191c 100644
--- a/src/web/src/app/globals.css
+++ b/src/web/src/app/globals.css
@@ -138,6 +138,7 @@
/* ── Homepage "1980s CRT Nostalgia" scoped tokens ── */
.landing {
--landing-bg: oklch(0.93 0.015 80);
+ --landing-bg-translucent: oklch(0.93 0.015 80 / 90%);
--landing-surface: oklch(0.88 0.02 75);
--landing-text: oklch(0.15 0.01 55);
--landing-text-muted: oklch(0.45 0.01 55);
@@ -160,8 +161,66 @@
--tw-roller: oklch(0.15 0.01 55);
}
+/* ─── CRT panel reusable styles ─── */
+.crt-panel-outer {
+ border-radius: 8px;
+ padding: 6px;
+ background-color: oklch(0.82 0.02 75);
+ box-shadow: 0 2px 8px oklch(0.15 0.01 55 / 10%), inset 0 1px 0 oklch(0.95 0.01 80 / 40%);
+}
+.crt-panel-inner {
+ position: relative;
+ overflow: hidden;
+ border-radius: 6px;
+ background-color: var(--landing-crt-bg);
+ box-shadow: inset 0 0 20px oklch(0.04 0.003 55);
+}
+.crt-panel-inner::before {
+ content: "";
+ pointer-events: none;
+ position: absolute;
+ inset: 0;
+ z-index: 10;
+ background-image: repeating-linear-gradient(to bottom, transparent 0px, transparent 1px, oklch(0 0 0 / 6%) 1px, oklch(0 0 0 / 6%) 2px);
+ background-size: 100% 2px;
+}
+.crt-panel-inner::after {
+ content: "";
+ pointer-events: none;
+ position: absolute;
+ inset: 0;
+ background: radial-gradient(ellipse at center, transparent 60%, oklch(0.04 0.003 55 / 50%) 100%);
+}
+.crt-panel-inner > * {
+ position: relative;
+ z-index: 20;
+}
+
/* ─── Feature flip cards ─── */
+.flip-card {
+ position: relative;
+}
+.flip-card::after {
+ content: "tap to flip";
+ position: absolute;
+ bottom: 8px;
+ right: 12px;
+ font-family: var(--font-mono);
+ font-size: 9px;
+ text-transform: uppercase;
+ letter-spacing: 0.1em;
+ color: var(--landing-text-muted);
+ opacity: 0.5;
+ transition: opacity 0.2s;
+ pointer-events: none;
+}
@media (hover: hover) {
+ .flip-card::after {
+ content: "hover to flip";
+ }
+ .flip-card:hover::after {
+ opacity: 0;
+ }
.flip-card:hover .flip-card-inner {
transform: rotateY(180deg);
}
@@ -176,6 +235,61 @@
}
}
+/* ─── Use Cases demo panel ─── */
+.usecase-demo-panel {
+ --background: oklch(0.995 0.003 80);
+ --foreground: oklch(0.18 0.01 60);
+ --card: oklch(1 0.003 80);
+ --primary: oklch(0.25 0.012 60);
+ --primary-foreground: oklch(0.985 0.005 80);
+ --muted: oklch(0.93 0.008 80);
+ --muted-foreground: oklch(0.52 0.01 60);
+ --accent: oklch(0.92 0.012 80);
+ --border: oklch(0.915 0.008 80);
+ background-color: oklch(0.995 0.003 80);
+ color: oklch(0.18 0.01 60);
+}
+.usecase-demo-panel .thin-scrollbar,
+.usecase-demo-panel.thin-scrollbar {
+ scrollbar-color: oklch(0.915 0.008 80) transparent;
+}
+.usecase-layout .thin-scrollbar {
+ scrollbar-color: oklch(0.75 0.01 55 / 30%) transparent;
+}
+.usecase-anim-item {
+ opacity: 0;
+ transform: translateY(8px);
+ animation: usecase-fade-up 0.4s ease-out forwards;
+}
+@keyframes usecase-fade-up {
+ to { opacity: 1; transform: translateY(0); }
+}
+.usecase-demo-slide-left {
+ animation: ipod-slide-in-left 0.4s cubic-bezier(0.25, 1, 0.5, 1) both;
+}
+.usecase-demo-slide-right {
+ animation: ipod-slide-in-right 0.4s cubic-bezier(0.25, 1, 0.5, 1) both;
+}
+@keyframes ipod-slide-in-left {
+ 0% { transform: translateX(60%) rotateY(-25deg) scale(0.9); opacity: 0; }
+ 50% { opacity: 1; }
+ 100% { transform: translateX(0) rotateY(0deg) scale(1); opacity: 1; }
+}
+@keyframes ipod-slide-in-right {
+ 0% { transform: translateX(-60%) rotateY(25deg) scale(0.9); opacity: 0; }
+ 50% { opacity: 1; }
+ 100% { transform: translateX(0) rotateY(0deg) scale(1); opacity: 1; }
+}
+@media (prefers-reduced-motion: reduce) {
+ .usecase-anim-item,
+ .usecase-demo-slide-left,
+ .usecase-demo-slide-right {
+ opacity: 1;
+ transform: none;
+ animation: none;
+ }
+}
+
/* ─── Front-Facing Typewriter Illustration ───
Classic front-view typewriter (Olivetti-inspired):
diff --git a/src/web/src/components/home/architecture-overview.tsx b/src/web/src/components/home/architecture-overview.tsx
index 616c44534..27b8a1d2b 100644
--- a/src/web/src/components/home/architecture-overview.tsx
+++ b/src/web/src/components/home/architecture-overview.tsx
@@ -66,53 +66,28 @@ function ZoneCard({
<div className="space-y-2.5">
{items.map((item) => (
- <div
- key={item.label}
- className="rounded-lg p-1.5"
- style={{
- backgroundColor: "oklch(0.82 0.02 75)",
- boxShadow:
- "0 2px 8px oklch(0.15 0.01 55 / 10%), inset 0 1px 0 oklch(0.95 0.01 80 / 40%)",
- }}
- >
- <div
- className="relative overflow-hidden rounded px-4 py-3"
- style={{
- backgroundColor: "var(--landing-crt-bg)",
- boxShadow: "inset 0 0 20px oklch(0.04 0.003 55)",
- }}
- >
- {/* Scan lines */}
+ <div key={item.label} className="crt-panel-outer">
+ <div className="crt-panel-inner px-4 py-3">
<div
- className="pointer-events-none absolute inset-0 z-10"
+ className="text-xs font-medium"
style={{
- backgroundImage:
- "repeating-linear-gradient(to bottom, transparent 0px, transparent 1px, oklch(0 0 0 / 6%) 1px, oklch(0 0 0 / 6%) 2px)",
- backgroundSize: "100% 2px",
+ fontFamily: "var(--font-crt)",
+ color: "var(--landing-phosphor)",
+ textShadow: "0 0 6px oklch(0.75 0.18 80 / 30%)",
}}
- />
- <div className="relative z-20">
- <div
- className="text-xs font-medium"
- style={{
- fontFamily: "var(--font-crt)",
- color: "var(--landing-phosphor)",
- textShadow: "0 0 6px oklch(0.75 0.18 80 / 30%)",
- }}
- >
- {item.label}
- </div>
- <div
- className="mt-0.5 text-[11px] leading-relaxed"
- style={{
- fontFamily: "var(--font-crt)",
- color: "var(--landing-phosphor)",
- textShadow: "0 0 6px oklch(0.75 0.18 80 / 30%)",
- opacity: 0.55,
- }}
- >
- {item.detail}
- </div>
+ >
+ {item.label}
+ </div>
+ <div
+ className="mt-0.5 text-[11px] leading-relaxed"
+ style={{
+ fontFamily: "var(--font-crt)",
+ color: "var(--landing-phosphor)",
+ textShadow: "0 0 6px oklch(0.75 0.18 80 / 30%)",
+ opacity: 0.55,
+ }}
+ >
+ {item.detail}
</div>
</div>
</div>
@@ -275,7 +250,7 @@ export function ArchitectureOverview() {
return (
<section
ref={sectionRef}
- className="relative flex min-h-screen flex-col items-center justify-center px-6 py-32"
+ className="relative flex flex-col items-center justify-center px-6 py-24 lg:py-32"
style={{ backgroundColor: "var(--landing-bg)" }}
>
{/* Section title */}
diff --git a/src/web/src/components/home/byoa-section.tsx b/src/web/src/components/home/byoa-section.tsx
index 9ea474c55..545e5f0bc 100644
--- a/src/web/src/components/home/byoa-section.tsx
+++ b/src/web/src/components/home/byoa-section.tsx
@@ -29,39 +29,10 @@ function AgentCard({ agent }: { agent: Agent }) {
return (
<div
- className="byoa-card rounded-lg p-1.5"
- style={{
- backgroundColor: "oklch(0.82 0.02 75)",
- boxShadow:
- "0 2px 8px oklch(0.15 0.01 55 / 10%), inset 0 1px 0 oklch(0.95 0.01 80 / 40%)",
- opacity: dimmed ? 0.55 : 1,
- }}
+ className="byoa-card crt-panel-outer"
+ style={{ opacity: dimmed ? 0.55 : 1 }}
>
- <div
- className="relative overflow-hidden rounded px-5 py-4"
- style={{
- backgroundColor: "var(--landing-crt-bg)",
- boxShadow: "inset 0 0 20px oklch(0.04 0.003 55)",
- }}
- >
- {/* Scan lines */}
- <div
- className="pointer-events-none absolute inset-0 z-10"
- style={{
- backgroundImage:
- "repeating-linear-gradient(to bottom, transparent 0px, transparent 1px, oklch(0 0 0 / 6%) 1px, oklch(0 0 0 / 6%) 2px)",
- backgroundSize: "100% 2px",
- }}
- />
- {/* Vignette */}
- <div
- className="pointer-events-none absolute inset-0"
- style={{
- background:
- "radial-gradient(ellipse at center, transparent 60%, oklch(0.04 0.003 55 / 50%) 100%)",
- }}
- />
- <div className="relative z-20">
+ <div className="crt-panel-inner px-5 py-4">
<div className="flex items-center gap-3">
<div
className="flex shrink-0 items-center justify-center rounded"
@@ -121,7 +92,6 @@ function AgentCard({ agent }: { agent: Agent }) {
</div>
</div>
</div>
- </div>
</div>
</div>
);
diff --git a/src/web/src/components/home/feature-showcase.tsx b/src/web/src/components/home/feature-showcase.tsx
index 8d45d251a..4adc25ca9 100644
--- a/src/web/src/components/home/feature-showcase.tsx
+++ b/src/web/src/components/home/feature-showcase.tsx
@@ -200,9 +200,9 @@ export function FeatureShowcase() {
function FeaturePanel({ feature, reversed }: { feature: Feature; reversed: boolean }) {
return (
- <div className={`feature-row grid w-full grid-cols-1 items-center gap-8 lg:grid-cols-2 lg:gap-16 ${reversed ? "lg:[direction:rtl]" : ""}`}>
+ <div className="feature-row grid w-full grid-cols-1 items-center gap-8 lg:grid-cols-2 lg:gap-16">
{/* Text side */}
- <div className={`panel-text text-center lg:text-left ${reversed ? "lg:[direction:ltr]" : ""}`}>
+ <div className={`panel-text text-center lg:text-left ${reversed ? "lg:order-2" : ""}`}>
<div className="mb-2 flex items-baseline justify-center gap-3 lg:justify-start">
<span
className="text-3xl"
@@ -245,7 +245,7 @@ function FeaturePanel({ feature, reversed }: { feature: Feature; reversed: boole
</div>
{/* Flip card */}
- <div className={`mx-auto w-full max-w-sm sm:max-w-md ${reversed ? "lg:[direction:ltr]" : ""}`} style={{ isolation: "isolate" }}>
+ <div className={`mx-auto w-full max-w-sm sm:max-w-md ${reversed ? "lg:order-1" : ""}`} style={{ isolation: "isolate" }}>
<FlipCard feature={feature} />
</div>
</div>
@@ -270,42 +270,17 @@ function FlipCard({ feature }: { feature: Feature }) {
>
{/* Front — ASCII art */}
<div
- className="flip-card-front rounded-lg p-2"
+ className="flip-card-front crt-panel-outer"
style={{
backfaceVisibility: "hidden",
WebkitBackfaceVisibility: "hidden",
pointerEvents: flipped ? "none" : undefined,
- backgroundColor: "oklch(0.82 0.02 75)",
boxShadow:
"0 4px 16px oklch(0.15 0.01 55 / 15%), inset 0 1px 0 oklch(0.95 0.01 80 / 40%)",
}}
>
- <div
- className="relative overflow-hidden rounded p-5"
- style={{
- backgroundColor: "var(--landing-crt-bg)",
- boxShadow: "inset 0 0 40px oklch(0.04 0.003 55)",
- }}
- >
- {/* Scan lines */}
- <div
- className="pointer-events-none absolute inset-0 z-10"
- style={{
- backgroundImage:
- "repeating-linear-gradient(to bottom, transparent 0px, transparent 1px, oklch(0 0 0 / 6%) 1px, oklch(0 0 0 / 6%) 2px)",
- backgroundSize: "100% 2px",
- }}
- />
- {/* Vignette */}
- <div
- className="pointer-events-none absolute inset-0"
- style={{
- background:
- "radial-gradient(ellipse at center, transparent 60%, oklch(0.04 0.003 55 / 50%) 100%)",
- }}
- />
- {/* ASCII art */}
- <div className="relative z-20 flex items-center justify-center min-h-35">
+ <div className="crt-panel-inner p-5">
+ <div className="flex items-center justify-center min-h-35">
<AnimatedArt lines={feature.terminal} />
</div>
</div>
@@ -358,7 +333,7 @@ function AnimatedArt({ lines }: { lines: string[] }) {
useEffect(() => {
if (!preRef.current) return;
- if (typeof window !== "undefined" && window.matchMedia("(prefers-reduced-motion: reduce)").matches) return;
+ if (window.matchMedia("(prefers-reduced-motion: reduce)").matches) return;
const text = lines.join("\n");
const chars = [...text];
@@ -373,35 +348,40 @@ function AnimatedArt({ lines }: { lines: string[] }) {
});
let frame = 0;
- let animId: number;
- let visible = false;
-
- const observer = new IntersectionObserver(
- ([entry]) => { visible = entry.isIntersecting; },
- { threshold: 0.1 }
- );
- observer.observe(preRef.current);
+ let animId: number | null = null;
const animate = () => {
- if (visible) {
- frame++;
- if (frame % 2 === 0) {
- const buf: string[] = [];
- for (let i = 0; i < meta.length; i++) {
- const m = meta[i];
- if (m.level <= 0) { buf.push(m.orig); continue; }
- const wave = Math.sin(frame * 0.015 + m.row * 0.45 + m.col * 0.1);
- const shifted = Math.max(1, Math.min(4, m.level + Math.round(wave)));
- buf.push(DENSITY[shifted]);
- }
- if (preRef.current) preRef.current.textContent = buf.join("");
+ frame++;
+ if (frame % 2 === 0) {
+ const buf: string[] = [];
+ for (let i = 0; i < meta.length; i++) {
+ const m = meta[i];
+ if (m.level <= 0) { buf.push(m.orig); continue; }
+ const wave = Math.sin(frame * 0.015 + m.row * 0.45 + m.col * 0.1);
+ const shifted = Math.max(1, Math.min(4, m.level + Math.round(wave)));
+ buf.push(DENSITY[shifted]);
}
+ if (preRef.current) preRef.current.textContent = buf.join("");
}
animId = requestAnimationFrame(animate);
};
- animId = requestAnimationFrame(animate);
- return () => { cancelAnimationFrame(animId); observer.disconnect(); };
+ const observer = new IntersectionObserver(
+ ([entry]) => {
+ if (entry.isIntersecting) {
+ if (animId === null) animId = requestAnimationFrame(animate);
+ } else {
+ if (animId !== null) { cancelAnimationFrame(animId); animId = null; }
+ }
+ },
+ { threshold: 0.1 }
+ );
+ observer.observe(preRef.current);
+
+ return () => {
+ if (animId !== null) cancelAnimationFrame(animId);
+ observer.disconnect();
+ };
}, [lines]);
return (
diff --git a/src/web/src/components/home/hero-section.tsx b/src/web/src/components/home/hero-section.tsx
index bce6c8653..efc67c549 100644
--- a/src/web/src/components/home/hero-section.tsx
+++ b/src/web/src/components/home/hero-section.tsx
@@ -75,28 +75,17 @@ export function HeroSection({ isLoggedIn }: { isLoggedIn: boolean }) {
<div className="hero-content relative z-10 mx-auto flex w-full max-w-4xl flex-col items-center px-4 sm:px-6">
{/* Brand */}
- <div className="hero-brand mb-6 flex flex-col sm:flex-row items-center gap-1.5">
- <div className="flex items-center gap-1">
- <Image src="/alook.svg" alt="Alook" width={28} height={28} />
- <span
- className="text-xl tracking-tight"
- style={{
- fontFamily: "var(--font-brand)",
- color: "var(--landing-text)",
- fontWeight: 700,
- }}
- >
- Alook
- </span>
- </div>
+ <div className="hero-brand mb-6 flex items-center gap-1.5">
+ <Image src="/alook.svg" alt="Alook" width={32} height={32} />
<span
- className="sm:ml-4 text-xs tracking-widest uppercase"
+ className="text-2xl tracking-tight"
style={{
- fontFamily: "var(--font-mono)",
- color: "var(--landing-text-muted)",
+ fontFamily: "var(--font-brand)",
+ color: "var(--landing-text)",
+ fontWeight: 700,
}}
>
- Your Personal Company
+ Alook
</span>
</div>
@@ -207,7 +196,7 @@ export function HeroSection({ isLoggedIn }: { isLoggedIn: boolean }) {
fontFamily: "var(--font-mono)",
color: "var(--landing-bg)",
backgroundColor: "var(--landing-text)",
- letterSpacing: "0.05em",
+ letterSpacing: "0.12em",
}}
>
<svg width="16" height="16" viewBox="0 0 24 24" fill="currentColor">
@@ -223,7 +212,7 @@ export function HeroSection({ isLoggedIn }: { isLoggedIn: boolean }) {
fontFamily: "var(--font-mono)",
color: "var(--landing-bg)",
backgroundColor: "var(--landing-text)",
- letterSpacing: "0.05em",
+ letterSpacing: "0.12em",
}}
>
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round">
@@ -241,7 +230,7 @@ export function HeroSection({ isLoggedIn }: { isLoggedIn: boolean }) {
fontFamily: "var(--font-mono)",
color: "var(--landing-bg)",
backgroundColor: "var(--landing-text)",
- letterSpacing: "0.05em",
+ letterSpacing: "0.12em",
}}
>
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round">
@@ -259,7 +248,7 @@ export function HeroSection({ isLoggedIn }: { isLoggedIn: boolean }) {
fontFamily: "var(--font-mono)",
color: "var(--landing-text)",
border: "1px solid var(--landing-text)",
- letterSpacing: "0.05em",
+ letterSpacing: "0.12em",
}}
>
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round">
diff --git a/src/web/src/components/home/home-page.tsx b/src/web/src/components/home/home-page.tsx
index c762fc8d3..aa667bf4c 100644
--- a/src/web/src/components/home/home-page.tsx
+++ b/src/web/src/components/home/home-page.tsx
@@ -1,6 +1,6 @@
"use client";
-import { useRef } from "react";
+import { useEffect, useRef } from "react";
import dynamic from "next/dynamic";
import gsap from "gsap";
import { useGSAP } from "@gsap/react";
@@ -26,20 +26,19 @@ const CloudCodeMonsterPet = dynamic<CloudCodeMonsterPetProps>(
gsap.registerPlugin(useGSAP, ScrollTrigger);
-// Respect reduced motion preference
-if (typeof window !== "undefined") {
- const prefersReducedMotion = window.matchMedia(
- "(prefers-reduced-motion: reduce)"
- ).matches;
- if (prefersReducedMotion) {
- gsap.globalTimeline.timeScale(20); // effectively skip animations
- }
-}
-
export function HomePage({ isLoggedIn }: { isLoggedIn: boolean }) {
const mainRef = useRef<HTMLDivElement>(null);
const petSettings = useHomePetSettings();
+ useEffect(() => {
+ const prefersReducedMotion = window.matchMedia(
+ "(prefers-reduced-motion: reduce)"
+ ).matches;
+ if (prefersReducedMotion) {
+ gsap.globalTimeline.timeScale(20);
+ }
+ }, []);
+
useGSAP(
() => {
// Floating nav fades in when hero section unpins
diff --git a/src/web/src/components/home/marketing-nav.tsx b/src/web/src/components/home/marketing-nav.tsx
index 00fae54ba..e3f93f2cc 100644
--- a/src/web/src/components/home/marketing-nav.tsx
+++ b/src/web/src/components/home/marketing-nav.tsx
@@ -8,7 +8,7 @@ export function MarketingNav({ isLoggedIn }: { isLoggedIn: boolean }) {
<nav
className="marketing-nav fixed top-0 right-0 left-0 z-50 invisible opacity-0"
style={{
- backgroundColor: "oklch(0.93 0.015 80 / 90%)",
+ backgroundColor: "var(--landing-bg-translucent)",
backdropFilter: "blur(8px)",
borderBottom: "1px solid var(--landing-border)",
}}
diff --git a/src/web/src/components/home/quickstart-section.tsx b/src/web/src/components/home/quickstart-section.tsx
index abdca1b24..aec669d12 100644
--- a/src/web/src/components/home/quickstart-section.tsx
+++ b/src/web/src/components/home/quickstart-section.tsx
@@ -48,15 +48,26 @@ export function QuickstartSection() {
<section
ref={sectionRef}
className="relative px-6 py-24 lg:py-32"
- style={{ backgroundColor: "var(--landing-bg)" }}
+ style={{ backgroundColor: "var(--landing-crt-bg)" }}
>
+ {/* Scan lines overlay */}
+ <div
+ className="pointer-events-none absolute inset-0"
+ style={{
+ backgroundImage:
+ "repeating-linear-gradient(to bottom, transparent 0px, transparent 1px, oklch(0 0 0 / 4%) 1px, oklch(0 0 0 / 4%) 2px)",
+ backgroundSize: "100% 2px",
+ }}
+ />
+
{/* Title */}
- <div className="selfhost-title mx-auto mb-12 max-w-4xl text-center lg:mb-16">
+ <div className="selfhost-title relative mx-auto mb-12 max-w-4xl text-center lg:mb-16">
<div
className="mb-3 text-xs uppercase tracking-[0.3em]"
style={{
fontFamily: "var(--font-mono)",
- color: "var(--landing-text-muted)",
+ color: "var(--landing-phosphor)",
+ opacity: 0.6,
}}
>
Open Source & Self-Hosted
@@ -64,8 +75,9 @@ export function QuickstartSection() {
<h2
style={{
fontFamily: "var(--font-crt)",
- color: "var(--landing-text)",
+ color: "var(--landing-phosphor)",
fontSize: "clamp(1.75rem, 4vw, 3rem)",
+ textShadow: "0 0 12px oklch(0.75 0.18 80 / 30%)",
}}
>
Own Your Infrastructure
@@ -74,8 +86,9 @@ export function QuickstartSection() {
className="mx-auto mt-3 max-w-xl"
style={{
fontFamily: "var(--font-mono)",
- color: "var(--landing-text-muted)",
+ color: "var(--landing-phosphor)",
fontSize: "0.85rem",
+ opacity: 0.65,
}}
>
Alook is fully open source. Self-host the entire platform, keep
@@ -84,14 +97,15 @@ export function QuickstartSection() {
</div>
{/* Points */}
- <div className="selfhost-grid mx-auto flex max-w-3xl flex-wrap items-center justify-center gap-x-8 gap-y-3">
+ <div className="selfhost-grid relative mx-auto flex max-w-3xl flex-wrap items-center justify-center gap-x-8 gap-y-3">
{points.map((point) => (
<span
key={point}
className="selfhost-point text-sm"
style={{
fontFamily: "var(--font-crt)",
- color: "var(--landing-text)",
+ color: "var(--landing-phosphor)",
+ textShadow: "0 0 6px oklch(0.75 0.18 80 / 25%)",
}}
>
{point}
@@ -100,63 +114,38 @@ export function QuickstartSection() {
</div>
{/* CTA terminal */}
- <div className="mx-auto mt-10 max-w-md">
+ <div className="relative mx-auto mt-10 max-w-md">
<div
- className="rounded-lg p-1.5"
+ className="rounded-lg border px-5 py-4"
style={{
- backgroundColor: "oklch(0.82 0.02 75)",
- boxShadow:
- "0 2px 8px oklch(0.15 0.01 55 / 10%), inset 0 1px 0 oklch(0.95 0.01 80 / 40%)",
+ borderColor: "oklch(0.75 0.18 80 / 20%)",
+ backgroundColor: "oklch(0.12 0.01 55)",
}}
>
- <div
- className="relative overflow-hidden rounded px-5 py-4"
+ <code
+ className="block text-center text-sm leading-relaxed"
style={{
- backgroundColor: "var(--landing-crt-bg)",
- boxShadow: "inset 0 0 20px oklch(0.04 0.003 55)",
+ fontFamily: "var(--font-crt)",
+ color: "var(--landing-phosphor)",
+ textShadow: "0 0 6px oklch(0.75 0.18 80 / 30%)",
}}
>
- {/* Scan lines */}
- <div
- className="pointer-events-none absolute inset-0 z-10"
- style={{
- backgroundImage:
- "repeating-linear-gradient(to bottom, transparent 0px, transparent 1px, oklch(0 0 0 / 6%) 1px, oklch(0 0 0 / 6%) 2px)",
- backgroundSize: "100% 2px",
- }}
- />
- {/* Vignette */}
- <div
- className="pointer-events-none absolute inset-0"
- style={{
- background:
- "radial-gradient(ellipse at center, transparent 60%, oklch(0.04 0.003 55 / 50%) 100%)",
- }}
- />
- <code
- className="relative z-20 block text-center text-sm leading-relaxed"
- style={{
- fontFamily: "var(--font-crt)",
- color: "var(--landing-phosphor)",
- textShadow: "0 0 6px oklch(0.75 0.18 80 / 30%)",
- }}
- >
- $ npx @alook/app onboard
- </code>
- </div>
+ $ npx @alook/app onboard
+ </code>
</div>
</div>
{/* CTA */}
- <div className="mx-auto mt-8 flex justify-center">
+ <div className="relative mx-auto mt-8 flex justify-center">
<a
href="/sign-in"
- className="inline-flex items-center gap-2 px-6 py-2.5 text-sm transition-all duration-200 hover:opacity-80"
+ className="inline-flex items-center gap-2 px-7 py-3 text-sm transition-all duration-200 hover:opacity-80"
style={{
fontFamily: "var(--font-mono)",
- color: "var(--landing-bg)",
- backgroundColor: "var(--landing-text)",
- letterSpacing: "0.05em",
+ color: "var(--landing-crt-bg)",
+ backgroundColor: "var(--landing-phosphor)",
+ letterSpacing: "0.12em",
+ boxShadow: "0 0 20px oklch(0.75 0.18 80 / 30%)",
}}
>
START YOUR COMPANY
diff --git a/src/web/src/components/home/use-cases-section.tsx b/src/web/src/components/home/use-cases-section.tsx
index bdfb8ca28..b6bbe68f0 100644
--- a/src/web/src/components/home/use-cases-section.tsx
+++ b/src/web/src/components/home/use-cases-section.tsx
@@ -669,6 +669,7 @@ const scenarios: Scenario[] = [
export function UseCasesSection() {
const sectionRef = useRef<HTMLDivElement>(null);
const [activeIndex, setActiveIndex] = useState(0);
+ const [slideDir, setSlideDir] = useState<"left" | "right">("left");
useGSAP(
() => {
@@ -746,7 +747,7 @@ export function UseCasesSection() {
<button
key={scenario.id}
type="button"
- onClick={() => setActiveIndex(i)}
+ onClick={() => { setSlideDir(i > activeIndex ? "left" : "right"); setActiveIndex(i); }}
className={`flex items-start gap-3 rounded-xl px-4 py-3 text-left transition-all duration-200 cursor-pointer shrink-0 md:shrink md:w-full ${
i === activeIndex
? "ring-1 ring-[var(--landing-border)] shadow-sm"
@@ -776,15 +777,27 @@ export function UseCasesSection() {
>
{scenario.title}
</div>
+ {i === activeIndex && (
+ <div
+ className="mt-0.5 text-[11px] leading-snug hidden md:block"
+ style={{
+ fontFamily: "var(--font-mono)",
+ color: "var(--landing-text-muted)",
+ }}
+ >
+ {scenario.subtitle}
+ </div>
+ )}
</div>
</button>
))}
</div>
{/* Right: Demo panel */}
- <div className="flex-1 min-w-0">
+ <div className="flex-1 min-w-0 overflow-hidden rounded-2xl" style={{ backgroundColor: "var(--landing-bg)", perspective: "1200px" }}>
<div
- className="rounded-2xl overflow-hidden"
+ key={activeIndex}
+ className={`rounded-2xl overflow-hidden ${slideDir === "left" ? "usecase-demo-slide-left" : "usecase-demo-slide-right"}`}
style={{
backgroundColor: "var(--landing-surface)",
border: "1px solid var(--landing-border)",
@@ -807,53 +820,14 @@ export function UseCasesSection() {
</span>
</div>
- {/* Demo content area — scoped with app design tokens */}
- <div
- className="usecase-demo-panel h-120 overflow-y-auto thin-scrollbar"
- >
- <ActiveDemo key={activeIndex} />
+ {/* Demo content area */}
+ <div className="usecase-demo-panel h-120 overflow-y-auto thin-scrollbar">
+ <ActiveDemo />
</div>
</div>
</div>
</div>
- <style dangerouslySetInnerHTML={{ __html: `
- .usecase-demo-panel {
- --background: oklch(0.995 0.003 80);
- --foreground: oklch(0.18 0.01 60);
- --card: oklch(1 0.003 80);
- --primary: oklch(0.25 0.012 60);
- --primary-foreground: oklch(0.985 0.005 80);
- --muted: oklch(0.93 0.008 80);
- --muted-foreground: oklch(0.52 0.01 60);
- --accent: oklch(0.92 0.012 80);
- --border: oklch(0.915 0.008 80);
- background-color: oklch(0.995 0.003 80);
- color: oklch(0.18 0.01 60);
- }
- .usecase-demo-panel .thin-scrollbar,
- .usecase-demo-panel.thin-scrollbar {
- scrollbar-color: oklch(0.915 0.008 80) transparent;
- }
- .usecase-layout .thin-scrollbar {
- scrollbar-color: oklch(0.75 0.01 55 / 30%) transparent;
- }
- .usecase-anim-item {
- opacity: 0;
- transform: translateY(8px);
- animation: usecase-fade-up 0.4s ease-out forwards;
- }
- @keyframes usecase-fade-up {
- to { opacity: 1; transform: translateY(0); }
- }
- @media (prefers-reduced-motion: reduce) {
- .usecase-anim-item {
- opacity: 1;
- transform: none;
- animation: none;
- }
- }
- ` }} />
</section>
);
}