|
1 | | -@jsx.component |
| 1 | +@xote.component |
2 | 2 | let make = () => { |
3 | 3 | <main class="min-h-screen bg-slate-50 text-slate-900 flex items-center justify-center p-6"> |
4 | 4 | <div |
5 | 5 | class="max-w-2xl w-full bg-white rounded-2xl shadow-sm border border-slate-200 p-8 space-y-8" |
6 | 6 | > |
7 | 7 | <header class="space-y-2"> |
8 | 8 | <p class="text-xs uppercase tracking-widest text-slate-500"> |
9 | | - {View.text("xote · ssr template")} |
| 9 | + {"xote · ssr template"} |
10 | 10 | </p> |
11 | | - <h1 class="text-3xl font-semibold"> {View.text("Welcome to xote")} </h1> |
| 11 | + <h1 class="text-3xl font-semibold"> {"Welcome to xote"} </h1> |
12 | 12 | <p class="text-slate-600"> |
13 | | - {View.text( |
14 | | - "A clean slate for building reactive UIs in ReScript, rendered on the server and hydrated on the client.", |
15 | | - )} |
| 13 | + {"A clean slate for building reactive UIs in ReScript, rendered on the server and hydrated on the client."} |
16 | 14 | </p> |
17 | 15 | </header> |
18 | 16 | <section class="space-y-2"> |
19 | | - <h2 class="text-sm font-medium text-slate-700"> {View.text("Tech stack")} </h2> |
| 17 | + <h2 class="text-sm font-medium text-slate-700"> {"Tech stack"} </h2> |
20 | 18 | <ul class="text-sm text-slate-600 space-y-1 list-disc pl-5"> |
21 | | - <li> {View.text("ReScript v12 — typed language compiling to clean JavaScript")} </li> |
22 | | - <li> {View.text("xote — fine-grained reactivity with SSR + hydration")} </li> |
23 | | - <li> {View.text("Vite 7 — dev server (middleware mode) and bundler")} </li> |
24 | | - <li> {View.text("Tailwind CSS v4 — utility-first, CSS-first config")} </li> |
| 19 | + <li> {"ReScript v12 — typed language compiling to clean JavaScript"} </li> |
| 20 | + <li> {"xote — fine-grained reactivity with SSR + hydration"} </li> |
| 21 | + <li> {"Vite 7 — dev server (middleware mode) and bundler"} </li> |
| 22 | + <li> {"Tailwind CSS v4 — utility-first, CSS-first config"} </li> |
25 | 23 | </ul> |
26 | 24 | </section> |
27 | 25 | <section class="space-y-2"> |
28 | | - <h2 class="text-sm font-medium text-slate-700"> {View.text("Reactive counter demo")} </h2> |
| 26 | + <h2 class="text-sm font-medium text-slate-700"> {"Reactive counter demo"} </h2> |
29 | 27 | <div class="border border-slate-200 rounded-lg"> |
30 | 28 | <Counter /> |
31 | 29 | </div> |
32 | 30 | <p class="text-xs text-slate-500"> |
33 | | - {View.text("State is rendered on the server and survives hydration via SSRState.")} |
| 31 | + {"State is rendered on the server and survives hydration via SSRState."} |
34 | 32 | </p> |
35 | 33 | </section> |
36 | 34 | <footer class="text-xs text-slate-500"> |
37 | | - {View.text("Edit src/Page.res and src/Counter.res to start building.")} |
| 35 | + {"Edit src/Page.res and src/Counter.res to start building."} |
38 | 36 | </footer> |
39 | 37 | </div> |
40 | 38 | </main> |
|
0 commit comments