diff --git a/app/demo/footer/page.tsx b/app/demo/footer/page.tsx new file mode 100644 index 0000000..e18c8b2 --- /dev/null +++ b/app/demo/footer/page.tsx @@ -0,0 +1,158 @@ +"use client"; + +import * as React from "react"; +import { Footer, FooterWithBuildInfo } from "@/components/footer"; +import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card"; +import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs"; + +export default function FooterDemo() { + return ( +
+ The default footer with branding and navigation links. +
++ Footer displaying build ID for version tracking. +
++ Footer with custom background and styling. +
++ The footer adapts to different screen sizes. Try resizing your + browser window to see the responsive layout in action. +
++ • Desktop (≥768px): Horizontal layout with + left-aligned branding and right-aligned navigation +
++ • Mobile (<768px): Stacked layout with + centered content +
++ {`// Basic footer + + +// Footer with build ID + + +// Footer with environment-based build ID +++ +// Footer with custom styling +`} +
+ ✓ Responsive layout (horizontal on desktop, stacked on mobile) +
+✓ Branding with Ghost icon and company name
+✓ Copyright notice with current year
+✓ Navigation links (GitHub, Privacy, Terms)
+✓ Optional build/version display
+✓ Proper semantic HTML structure
+✓ Accessible navigation with ARIA labels
+✓ Theme-aware styling
+✓ External links open in new tab with security attributes
+