Skip to content
Source
Sign inSign up
TanStack/cli
Open History to see the last commit

index.tsx.ejs

41 lines1.1 KB

1<% if (codeRouter) { ignoreFile() } %>import * as Solid from 'solid-js'
2import { createFileRoute } from '@tanstack/solid-router'
3​
4import logo from '../logo.svg'
5​
6export const Route = createFileRoute('/')({
7 component: IndexComponent,
8})
9​
10function IndexComponent() {
11 return (
12 <div class="text-center">
13 <header class="min-h-screen flex flex-col items-center justify-center bg-[#282c34] text-white text-[calc(10px+2vmin)]">
14 <img
15 src={logo}
16 class="h-[40vmin] pointer-events-none animate-[spin_20s_linear_infinite]"
17 alt="logo"
18 />
19 <p>
20 Edit <code>src/routes/index.tsx</code> and save to reload.
21 </p>
22 <a
23 class="text-[#61dafb] hover:underline"
24 href="https://solidjs.com"
25 target="_blank"
26 rel="noopener noreferrer"
27 >
28 Learn Solid
29 </a>
30 <a
31 class="text-[#61dafb] hover:underline"
32 href="https://tanstack.com"
33 target="_blank"
34 rel="noopener noreferrer"
35 >
36 Learn TanStack
37 </a>
38 </header>
39 </div>
40 )