diff --git a/.claude/settings.json b/.claude/settings.json index 79f72e0..0ab2e46 100644 --- a/.claude/settings.json +++ b/.claude/settings.json @@ -71,7 +71,7 @@ "WebFetch(domain:vercel.com)", "WebFetch(domain:vitest.dev)" ], - "deny": ["Read(**/.env)", "Read(**/.envrc)"], + "deny": ["Read(**/.env)", "Read(**/.envrc)", "Read(x_docs/OLD/**)"], "ask": [] }, "enabledPlugins": { diff --git a/app/(root)/page.tsx b/app/(root)/page.tsx index 23eb7bc..97ab7cd 100644 --- a/app/(root)/page.tsx +++ b/app/(root)/page.tsx @@ -1,32 +1,9 @@ +import { TagLink } from "@/components/tag-link"; + const HomePage = () => ( <> -

Hello Root page with heading H1

- - {/* Demo: top overflow test */} -
{"words ".repeat(50)}
- - {/* Flexbox demo: grow vs flex-none */} -
- {/* Fixed width - won't grow */} -
- flex-none -
- - {/* Grows to fill available space */} -
- grow -
- - {/* Fixed width - won't grow */} -
- flex-none -
-
- - {/* Demo: bottom overflow test */} -
{"words ".repeat(50)}
+

All Questions

- {/* Question boxes for testing sticky sidebar scroll */}
{[1, 2, 3, 4].map((questionIndex) => (
( {/* Tags */}
- {["next.js", "tailwindcss", "react", "css"].map((tag) => ( - - {tag} - + {["tailwind", "nextjs"].map((tag) => ( + ))}
diff --git a/app/layout.tsx b/app/layout.tsx index 7d33c76..411b685 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -27,6 +27,12 @@ export default function RootLayout({ className={`${inter.variable} ${spaceGrotesk.variable} ${jetbrainsMono.variable} h-full`} suppressHydrationWarning > + + + ))}
diff --git a/components/right-sidebar/tag-link.tsx b/components/right-sidebar/tag-link.tsx deleted file mode 100644 index 22da077..0000000 --- a/components/right-sidebar/tag-link.tsx +++ /dev/null @@ -1,23 +0,0 @@ -import Link from "next/link"; -import { Badge } from "@/components/ui/badge"; - -type TagLinkProps = { - name: string; - questionCount?: number; -}; - -export function TagLink({ name, questionCount }: TagLinkProps) { - return ( - - - {name} - - {questionCount !== undefined && ( - {questionCount} - )} - - ); -} diff --git a/components/tag-link.tsx b/components/tag-link.tsx new file mode 100644 index 0000000..1648fa7 --- /dev/null +++ b/components/tag-link.tsx @@ -0,0 +1,40 @@ +import { Tag } from "lucide-react"; +import Link from "next/link"; +import { Badge } from "@/components/ui/badge"; +import { getDeviconClassName } from "@/lib/devicon"; + +type TagLinkProps = { + name: string; + questionCount?: number; + colored?: boolean; + showIcon?: boolean; +}; + +export function TagLink({ + name, + questionCount, + colored = false, + showIcon = false, +}: TagLinkProps) { + const iconClass = getDeviconClassName(name, colored); + + return ( + + + {showIcon && + (iconClass ? ( +