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

index.tsx

25 lines742 Bytes

1import { createFileRoute } from '@tanstack/solid-router'
2import '~/styles/global.css'
3​
4export const Route = createFileRoute('/')({
5 component: Home,
6})
7​
8function Home() {
9 return (
10 <div>
11 <h1>CSS Collection Test - Global CSS</h1>
12 <p>This page tests that global CSS is collected and served during SSR.</p>
13​
14 <div class="global-container" data-testid="global-styled">
15 <div class="global-title" data-testid="global-title">
16 Global CSS Applied
17 </div>
18 <div class="global-description" data-testid="global-description">
19 This container should have a blue background, white text, and rounded
20 corners even with JavaScript disabled.
21 </div>
22 </div>
23 </div>
24 )