The best way to control Claude Code, Codex and more from any computer or phone

main
tsx 73 lines 3.51 KB
Raw
1 import { createFileRoute } from "@tanstack/react-router";
2
3 export const Route = createFileRoute("/")({ component: App });
4
5 function App() {
6 return (
7 <main className="page-wrap px-4 pb-8 pt-14">
8 <section className="island-shell rise-in relative overflow-hidden rounded-[2rem] px-6 py-10 sm:px-10 sm:py-14">
9 <div className="pointer-events-none absolute -left-20 -top-24 h-56 w-56 rounded-full bg-[radial-gradient(circle,rgba(79,184,178,0.32),transparent_66%)]" />
10 <div className="pointer-events-none absolute -bottom-20 -right-20 h-56 w-56 rounded-full bg-[radial-gradient(circle,rgba(47,106,74,0.18),transparent_66%)]" />
11 <p className="island-kicker mb-3">TanStack Start Base Template</p>
12 <h1 className="display-title mb-5 max-w-3xl text-4xl leading-[1.02] font-bold tracking-tight text-[var(--sea-ink)] sm:text-6xl">
13 Start simple, ship quickly.
14 </h1>
15 <p className="mb-8 max-w-2xl text-base text-[var(--sea-ink-soft)] sm:text-lg">
16 This base starter intentionally keeps things light: two routes, clean structure, and the
17 essentials you need to build from scratch.
18 </p>
19 <div className="flex flex-wrap gap-3">
20 <a
21 href="/about"
22 className="rounded-full border border-[rgba(50,143,151,0.3)] bg-[rgba(79,184,178,0.14)] px-5 py-2.5 text-sm font-semibold text-[var(--lagoon-deep)] no-underline transition hover:-translate-y-0.5 hover:bg-[rgba(79,184,178,0.24)]"
23 >
24 About This Starter
25 </a>
26 <a
27 href="https://tanstack.com/router"
28 target="_blank"
29 rel="noopener noreferrer"
30 className="rounded-full border border-[rgba(23,58,64,0.2)] bg-white/50 px-5 py-2.5 text-sm font-semibold text-[var(--sea-ink)] no-underline transition hover:-translate-y-0.5 hover:border-[rgba(23,58,64,0.35)]"
31 >
32 Router Guide
33 </a>
34 </div>
35 </section>
36
37 <section className="mt-8 grid gap-4 sm:grid-cols-2 lg:grid-cols-4">
38 {[
39 ["Type-Safe Routing", "Routes and links stay in sync across every page."],
40 ["Server Functions", "Call server code from your UI without creating API boilerplate."],
41 ["Streaming by Default", "Ship progressively rendered responses for faster experiences."],
42 ["Tailwind Native", "Design quickly with utility-first styling and reusable tokens."],
43 ].map(([title, desc], index) => (
44 <article
45 key={title}
46 className="island-shell feature-card rise-in rounded-2xl p-5"
47 style={{ animationDelay: `${index * 90 + 80}ms` }}
48 >
49 <h2 className="mb-2 text-base font-semibold text-[var(--sea-ink)]">{title}</h2>
50 <p className="m-0 text-sm text-[var(--sea-ink-soft)]">{desc}</p>
51 </article>
52 ))}
53 </section>
54
55 <section className="island-shell mt-8 rounded-2xl p-6">
56 <p className="island-kicker mb-2">Quick Start</p>
57 <ul className="m-0 list-disc space-y-2 pl-5 text-sm text-[var(--sea-ink-soft)]">
58 <li>
59 Edit <code>src/routes/index.tsx</code> to customize the home page.
60 </li>
61 <li>
62 Update <code>src/components/Header.tsx</code> and <code>src/components/Footer.tsx</code>{" "}
63 for brand links.
64 </li>
65 <li>
66 Add routes in <code>src/routes</code> and tweak visual tokens in{" "}
67 <code>src/styles.css</code>.
68 </li>
69 </ul>
70 </section>
71 </main>
72 );
73 }