-
Notifications
You must be signed in to change notification settings - Fork 750
Expand file tree
/
Copy pathRecipeDemo.tsx
More file actions
37 lines (36 loc) · 1003 Bytes
/
RecipeDemo.tsx
File metadata and controls
37 lines (36 loc) · 1003 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
import { Partial } from "fresh/runtime";
export const RecipeDemo = () => (
<div
f-client-nav
class="w-full grid grid-cols-1 md:grid-cols-[auto_1fr] text-left gap-6 items-stretch min-h-64"
>
<aside class="flex flex-col gap-2 underline p-6 pl-0 border-b md:border-r md:border-b-0 border-current text-left items-start justify-center">
<button
type="button"
f-partial="/recipes/lemonade"
class="cursor-pointer"
>
Lemonade
</button>
<button
type="button"
f-partial="/recipes/lemon-honey-tea"
class="cursor-pointer"
>
Lemon-honey tea
</button>
<button
type="button"
f-partial="/recipes/lemondrop"
class="cursor-pointer"
>
Lemondrop Martini
</button>
</aside>
<main class="w-full flex flex-col justify-center">
<Partial name="recipe">
Click a recipe to stream HTML into this spot
</Partial>
</main>
</div>
);