|
| 1 | +import { TagLink } from "@/components/tag-link"; |
| 2 | + |
1 | 3 | const HomePage = () => ( |
2 | 4 | <> |
3 | | - <h1 className="text-heading-2xl">Hello Root page with heading H1</h1> |
4 | | - |
5 | | - {/* Demo: top overflow test */} |
6 | | - <div className="mt-8 bg-primary/30 p-4">{"words ".repeat(50)}</div> |
7 | | - |
8 | | - {/* Flexbox demo: grow vs flex-none */} |
9 | | - <div className="my-8 flex gap-4 border-2 border-dashed border-primary p-4"> |
10 | | - {/* Fixed width - won't grow */} |
11 | | - <div className="flex h-24 w-24 flex-none items-center justify-center rounded-lg border-2 border-dashed border-primary bg-sky-500/20 text-sm font-medium"> |
12 | | - flex-none |
13 | | - </div> |
14 | | - |
15 | | - {/* Grows to fill available space */} |
16 | | - <div className="flex h-24 grow items-center justify-center rounded-lg border-2 border-dashed border-primary bg-indigo-500/30 text-sm font-medium"> |
17 | | - grow |
18 | | - </div> |
19 | | - |
20 | | - {/* Fixed width - won't grow */} |
21 | | - <div className="flex h-24 w-24 flex-none items-center justify-center rounded-lg border-2 border-dashed border-primary bg-sky-500/20 text-sm font-medium"> |
22 | | - flex-none |
23 | | - </div> |
24 | | - </div> |
25 | | - |
26 | | - {/* Demo: bottom overflow test */} |
27 | | - <div className="bg-primary/30 p-4">{"words ".repeat(50)}</div> |
| 5 | + <h1 className="text-heading-2xl">All Questions</h1> |
28 | 6 |
|
29 | | - {/* Question boxes for testing sticky sidebar scroll */} |
30 | 7 | <div className="mt-8 space-y-6"> |
31 | 8 | {[1, 2, 3, 4].map((questionIndex) => ( |
32 | 9 | <article |
@@ -56,13 +33,8 @@ const HomePage = () => ( |
56 | 33 |
|
57 | 34 | {/* Tags */} |
58 | 35 | <div className="mb-4 flex flex-wrap gap-2"> |
59 | | - {["next.js", "tailwindcss", "react", "css"].map((tag) => ( |
60 | | - <span |
61 | | - key={tag} |
62 | | - className="rounded-md bg-secondary px-2.5 py-1 text-xs font-medium text-secondary-foreground" |
63 | | - > |
64 | | - {tag} |
65 | | - </span> |
| 36 | + {["tailwind", "nextjs"].map((tag) => ( |
| 37 | + <TagLink key={tag} name={tag} /> |
66 | 38 | ))} |
67 | 39 | </div> |
68 | 40 |
|
|
0 commit comments