From 48a18059456bbd6bebf8375335c66e57666c1a3b Mon Sep 17 00:00:00 2001 From: keypad Date: Wed, 18 Feb 2026 01:10:08 +0000 Subject: [PATCH] refactor: rename landing components and css classes --- packages/web/app/globals.css | 22 ++++++++-------- packages/web/app/page.tsx | 22 ++++++++-------- packages/web/app/story/page.tsx | 6 ++--- .../{cursor-bento.tsx => landing-bento.tsx} | 4 +-- ...rsor-features.tsx => landing-features.tsx} | 16 ++++++------ .../{cursor-footer.tsx => landing-footer.tsx} | 2 +- .../{cursor-hero.tsx => landing-hero.tsx} | 26 +++++++++---------- .../{cursor-nav.tsx => landing-nav.tsx} | 2 +- .../{cursor-stage.tsx => landing-stage.tsx} | 8 +++--- ...rsor-terminal.tsx => landing-terminal.tsx} | 6 ++--- ...rsor-mac-window.tsx => landing-window.tsx} | 2 +- 11 files changed, 58 insertions(+), 58 deletions(-) rename packages/web/components/landing/{cursor-bento.tsx => landing-bento.tsx} (97%) rename packages/web/components/landing/{cursor-features.tsx => landing-features.tsx} (94%) rename packages/web/components/landing/{cursor-footer.tsx => landing-footer.tsx} (98%) rename packages/web/components/landing/{cursor-hero.tsx => landing-hero.tsx} (67%) rename packages/web/components/landing/{cursor-nav.tsx => landing-nav.tsx} (98%) rename packages/web/components/landing/{cursor-stage.tsx => landing-stage.tsx} (93%) rename packages/web/components/landing/{cursor-terminal.tsx => landing-terminal.tsx} (93%) rename packages/web/components/landing/{cursor-mac-window.tsx => landing-window.tsx} (95%) diff --git a/packages/web/app/globals.css b/packages/web/app/globals.css index 56b798c..8f83277 100644 --- a/packages/web/app/globals.css +++ b/packages/web/app/globals.css @@ -54,7 +54,7 @@ color: #0a0a0a; } -@keyframes cursor-fade-up { +@keyframes landing-fade-up { from { opacity: 0; transform: translate3d(0, 14px, 0); @@ -67,16 +67,16 @@ } } -.cursor-landing { - --cursor-accent: #ff8a3d; - --cursor-accent-soft: rgba(255, 138, 61, 0.14); +.landing { + --landing-accent: #ff8a3d; + --landing-accent-soft: rgba(255, 138, 61, 0.14); } -.cursor-fade-up { - animation: cursor-fade-up 700ms cubic-bezier(0.22, 1, 0.36, 1) both; +.landing-fade-up { + animation: landing-fade-up 700ms cubic-bezier(0.22, 1, 0.36, 1) both; } -@keyframes cursor-shimmer { +@keyframes landing-shimmer { 0% { background-position: 0% 50%; } @@ -86,11 +86,11 @@ } .animate-shimmer { - animation: cursor-shimmer 1400ms linear infinite; + animation: landing-shimmer 1400ms linear infinite; } @media (prefers-reduced-motion: reduce) { - .cursor-fade-up, + .landing-fade-up, .animate-shimmer { animation: none; } @@ -126,12 +126,12 @@ height: 0; } -.cursor-terminal-scroll { +.landing-terminal-scroll { scrollbar-width: none; -ms-overflow-style: none; } -.cursor-terminal-scroll::-webkit-scrollbar { +.landing-terminal-scroll::-webkit-scrollbar { display: none; width: 0; height: 0; diff --git a/packages/web/app/page.tsx b/packages/web/app/page.tsx index 1834369..59493d8 100644 --- a/packages/web/app/page.tsx +++ b/packages/web/app/page.tsx @@ -1,21 +1,21 @@ -import { CursorFrontier } from "../components/landing/cursor-bento" -import { CursorFeatures } from "../components/landing/cursor-features" -import { CursorFooter } from "../components/landing/cursor-footer" -import { CursorHero } from "../components/landing/cursor-hero" -import { CursorNav } from "../components/landing/cursor-nav" +import { LandingFrontier } from "../components/landing/landing-bento" +import { LandingFeatures } from "../components/landing/landing-features" +import { LandingFooter } from "../components/landing/landing-footer" +import { LandingHero } from "../components/landing/landing-hero" +import { LandingNav } from "../components/landing/landing-nav" export default function Page() { return ( -
+
- - - - - + + + + +
) diff --git a/packages/web/app/story/page.tsx b/packages/web/app/story/page.tsx index 60a450e..60e69cc 100644 --- a/packages/web/app/story/page.tsx +++ b/packages/web/app/story/page.tsx @@ -1,5 +1,5 @@ import type { Metadata } from "next" -import { CursorNav } from "../../components/landing/cursor-nav" +import { LandingNav } from "../../components/landing/landing-nav" const intro = [ "3am. Phone buzzes. Production alert. Something is wrong, but not with our code - our code is perfect. Passed every test, every lint check, every code review. The problem? The AI provider started rate limiting us and our retry logic had a subtle bug that nobody ever caught. Because in development, the API never fails.", @@ -77,13 +77,13 @@ export const metadata: Metadata = { export default function Page() { return ( -
+
- +
diff --git a/packages/web/components/landing/cursor-bento.tsx b/packages/web/components/landing/landing-bento.tsx similarity index 97% rename from packages/web/components/landing/cursor-bento.tsx rename to packages/web/components/landing/landing-bento.tsx index 5901377..63e73b3 100644 --- a/packages/web/components/landing/cursor-bento.tsx +++ b/packages/web/components/landing/landing-bento.tsx @@ -86,7 +86,7 @@ function mark(index: number) { ) } -export function CursorFrontier() { +export function LandingFrontier() { return (
@@ -134,7 +134,7 @@ export function CursorFrontier() {
{item.label} diff --git a/packages/web/components/landing/cursor-features.tsx b/packages/web/components/landing/landing-features.tsx similarity index 94% rename from packages/web/components/landing/cursor-features.tsx rename to packages/web/components/landing/landing-features.tsx index 80f804e..ce1034d 100644 --- a/packages/web/components/landing/cursor-features.tsx +++ b/packages/web/components/landing/landing-features.tsx @@ -2,8 +2,8 @@ import Link from "next/link" import type { ReactNode } from "react" -import { CursorMacWindow } from "./cursor-mac-window" -import { CursorStage } from "./cursor-stage" +import { LandingWindow } from "./landing-window" +import { LandingStage } from "./landing-stage" type row = { readonly tone: "cmd" | "code" | "dim" @@ -51,7 +51,7 @@ function LearnMore({ href, label }: { readonly href: string; readonly label: str return ( {label} @@ -121,19 +121,19 @@ function Spotlight({
- +
- + {window} - +
-
+
) } -export function CursorFeatures() { +export function LandingFeatures() { return (
diff --git a/packages/web/components/landing/cursor-footer.tsx b/packages/web/components/landing/landing-footer.tsx similarity index 98% rename from packages/web/components/landing/cursor-footer.tsx rename to packages/web/components/landing/landing-footer.tsx index 5aacdd2..d823b7c 100644 --- a/packages/web/components/landing/cursor-footer.tsx +++ b/packages/web/components/landing/landing-footer.tsx @@ -1,6 +1,6 @@ import Link from "next/link" -export function CursorFooter() { +export function LandingFooter() { return (
diff --git a/packages/web/components/landing/cursor-hero.tsx b/packages/web/components/landing/landing-hero.tsx similarity index 67% rename from packages/web/components/landing/cursor-hero.tsx rename to packages/web/components/landing/landing-hero.tsx index ae18954..847b39d 100644 --- a/packages/web/components/landing/cursor-hero.tsx +++ b/packages/web/components/landing/landing-hero.tsx @@ -1,30 +1,30 @@ "use client" import Link from "next/link" -import { CursorMacWindow } from "./cursor-mac-window" -import { CursorStage } from "./cursor-stage" -import { CursorTerminal } from "./cursor-terminal" +import { LandingWindow } from "./landing-window" +import { LandingStage } from "./landing-stage" +import { LandingTerminal } from "./landing-terminal" -export function CursorHero() { +export function LandingHero() { return (

Ship resilient AI and APIs.

Inject realistic failures into AI SDK flows and core async APIs before launch.

-
+
-
- +
+
- - - + + +
- +
diff --git a/packages/web/components/landing/cursor-nav.tsx b/packages/web/components/landing/landing-nav.tsx similarity index 98% rename from packages/web/components/landing/cursor-nav.tsx rename to packages/web/components/landing/landing-nav.tsx index fd5ce2a..601ade2 100644 --- a/packages/web/components/landing/cursor-nav.tsx +++ b/packages/web/components/landing/landing-nav.tsx @@ -4,7 +4,7 @@ import { Github } from "lucide-react" import Link from "next/link" import { useEffect, useState } from "react" -export function CursorNav() { +export function LandingNav() { const [scrolled, setScrolled] = useState(false) useEffect(() => { diff --git a/packages/web/components/landing/cursor-stage.tsx b/packages/web/components/landing/landing-stage.tsx similarity index 93% rename from packages/web/components/landing/cursor-stage.tsx rename to packages/web/components/landing/landing-stage.tsx index ab2d493..91484e0 100644 --- a/packages/web/components/landing/cursor-stage.tsx +++ b/packages/web/components/landing/landing-stage.tsx @@ -1,9 +1,9 @@ import type { ReactNode } from "react" -type CursorStageTone = "dune" | "mist" | "sage" +type LandingStageTone = "dune" | "mist" | "sage" const toneStyles: Record< - CursorStageTone, + LandingStageTone, { backgroundColor: string; backgroundImage: string; shadow: string } > = { dune: { @@ -29,12 +29,12 @@ const toneStyles: Record< }, } -export function CursorStage({ +export function LandingStage({ tone = "dune", square = false, children, }: { - readonly tone?: CursorStageTone + readonly tone?: LandingStageTone readonly square?: boolean readonly children: ReactNode }) { diff --git a/packages/web/components/landing/cursor-terminal.tsx b/packages/web/components/landing/landing-terminal.tsx similarity index 93% rename from packages/web/components/landing/cursor-terminal.tsx rename to packages/web/components/landing/landing-terminal.tsx index 2fe8b4b..64eb3a2 100644 --- a/packages/web/components/landing/cursor-terminal.tsx +++ b/packages/web/components/landing/landing-terminal.tsx @@ -81,7 +81,7 @@ function style(tone: tone): string { } } -export function CursorTerminal() { +export function LandingTerminal() { const [slot, setslot] = useState(1) const active = scenes[slot] const rows = useMemo(() => active.data, [active]) @@ -103,7 +103,7 @@ export function CursorTerminal() {
-
+
{rows.map((row, index) => (
-
+
{scenes.map((scene, index) => { const current = index === slot return ( diff --git a/packages/web/components/landing/cursor-mac-window.tsx b/packages/web/components/landing/landing-window.tsx similarity index 95% rename from packages/web/components/landing/cursor-mac-window.tsx rename to packages/web/components/landing/landing-window.tsx index d2c1878..fe85097 100644 --- a/packages/web/components/landing/cursor-mac-window.tsx +++ b/packages/web/components/landing/landing-window.tsx @@ -1,6 +1,6 @@ import type { ReactNode } from "react" -export function CursorMacWindow({ +export function LandingWindow({ title, bar = true, children,