Skip to content

Commit e4dd299

Browse files
committed
Merge branch 'main' of github.com:TanStack/create-tsrouter-app
2 parents bdf4790 + 9da07e4 commit e4dd299

File tree

6 files changed

+321
-16
lines changed

6 files changed

+321
-16
lines changed
259 KB
Loading
Lines changed: 1 addition & 0 deletions
Loading
Lines changed: 154 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,154 @@
1+
import { createFileRoute } from "@tanstack/solid-router";
2+
<% if (!tailwind) { %>
3+
import logo from "../logo.svg";
4+
import "../App.css";
5+
<% } else { %>
6+
import {
7+
Zap,
8+
Server,
9+
Route as RouteIcon,
10+
Shield,
11+
Waves,
12+
Sparkles,
13+
} from "lucide-solid";
14+
<% } %>
15+
16+
export const Route = createFileRoute("/")({
17+
component: App,
18+
});
19+
20+
function App() {
21+
<% if (tailwind) { %>
22+
const features = [
23+
{
24+
icon: <Zap class="w-12 h-12 text-cyan-400" />,
25+
title: "Powerful Server Functions",
26+
description:
27+
"Write server-side code that seamlessly integrates with your client components. Type-safe, secure, and simple.",
28+
},
29+
{
30+
icon: <Server class="w-12 h-12 text-cyan-400" />,
31+
title: "Flexible Server Side Rendering",
32+
description:
33+
"Full-document SSR, streaming, and progressive enhancement out of the box. Control exactly what renders where.",
34+
},
35+
{
36+
icon: <RouteIcon class="w-12 h-12 text-cyan-400" />,
37+
title: "API Routes",
38+
description:
39+
"Build type-safe API endpoints alongside your application. No separate backend needed.",
40+
},
41+
{
42+
icon: <Shield class="w-12 h-12 text-cyan-400" />,
43+
title: "Strongly Typed Everything",
44+
description:
45+
"End-to-end type safety from server to client. Catch errors before they reach production.",
46+
},
47+
{
48+
icon: <Waves class="w-12 h-12 text-cyan-400" />,
49+
title: "Full Streaming Support",
50+
description:
51+
"Stream data from server to client progressively. Perfect for AI applications and real-time updates.",
52+
},
53+
{
54+
icon: <Sparkles class="w-12 h-12 text-cyan-400" />,
55+
title: "Next Generation Ready",
56+
description:
57+
"Built from the ground up for modern web applications. Deploy anywhere JavaScript runs.",
58+
},
59+
];
60+
61+
return (
62+
<div class="min-h-screen bg-gradient-to-b from-slate-900 via-slate-800 to-slate-900">
63+
<section class="relative py-20 px-6 text-center overflow-hidden">
64+
<div class="absolute inset-0 bg-gradient-to-r from-cyan-500/10 via-blue-500/10 to-purple-500/10"></div>
65+
<div class="relative max-w-5xl mx-auto">
66+
<div class="flex items-center justify-center gap-6 mb-6">
67+
<img
68+
src="/tanstack-circle-logo.png"
69+
alt="TanStack Logo"
70+
class="w-24 h-24 md:w-32 md:h-32"
71+
/>
72+
<h1 class="text-6xl md:text-7xl font-bold text-white">
73+
<span class="text-gray-300">TANSTACK</span>{" "}
74+
<span class="bg-gradient-to-r from-cyan-400 to-blue-400 bg-clip-text text-transparent">
75+
START
76+
</span>
77+
</h1>
78+
</div>
79+
<p class="text-2xl md:text-3xl text-gray-300 mb-4 font-light">
80+
The framework for next generation AI applications
81+
</p>
82+
<p class="text-lg text-gray-400 max-w-3xl mx-auto mb-8">
83+
Full-stack framework powered by TanStack Router for React and Solid.
84+
Build modern applications with server functions, streaming, and type
85+
safety.
86+
</p>
87+
<div class="flex flex-col items-center gap-4">
88+
<a
89+
href="https://tanstack.com/start"
90+
target="_blank"
91+
rel="noopener noreferrer"
92+
class="px-8 py-3 bg-cyan-500 hover:bg-cyan-600 text-white font-semibold rounded-lg transition-colors shadow-lg shadow-cyan-500/50"
93+
>
94+
Documentation
95+
</a>
96+
<p class="text-gray-400 text-sm mt-2">
97+
Begin your TanStack Start journey by editing{" "}
98+
<code class="px-2 py-1 bg-slate-700 rounded text-cyan-400">
99+
/src/routes/index.tsx
100+
</code>
101+
</p>
102+
</div>
103+
</div>
104+
</section>
105+
106+
<section class="py-16 px-6 max-w-7xl mx-auto">
107+
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
108+
{features.map((feature, index) => (
109+
<div
110+
key={index}
111+
class="bg-slate-800/50 backdrop-blur-sm border border-slate-700 rounded-xl p-6 hover:border-cyan-500/50 transition-all duration-300 hover:shadow-lg hover:shadow-cyan-500/10"
112+
>
113+
<div class="mb-4">{feature.icon}</div>
114+
<h3 class="text-xl font-semibold text-white mb-3">
115+
{feature.title}
116+
</h3>
117+
<p class="text-gray-400 leading-relaxed">
118+
{feature.description}
119+
</p>
120+
</div>
121+
))}
122+
</div>
123+
</section>
124+
</div>
125+
);
126+
<% } else { %>
127+
return (
128+
<div class="App">
129+
<header class="App-header">
130+
<img src={logo} class="App-logo" alt="logo" />
131+
<p>
132+
Edit <code>src/routes/index.tsx</code> and save to reload.
133+
</p>
134+
<a
135+
class="App-link"
136+
href="https://www.solidjs.com/"
137+
target="_blank"
138+
rel="noopener noreferrer"
139+
>
140+
Learn Solid
141+
</a>
142+
<a
143+
class="App-link"
144+
href="https://tanstack.com"
145+
target="_blank"
146+
rel="noopener noreferrer"
147+
>
148+
Learn TanStack
149+
</a>
150+
</header>
151+
</div>
152+
);
153+
<% } %>
154+
}

0 commit comments

Comments
 (0)