|
| 1 | +"use client"; |
| 2 | + |
| 3 | +import { FolderOpen, Terminal } from "lucide-react"; |
| 4 | +import { motion } from "motion/react"; |
| 5 | +import Navbar from "../_components/navbar"; |
| 6 | +import ShowcaseItem from "./_components/ShowcaseItem"; |
| 7 | + |
| 8 | +const showcaseProjects = [ |
| 9 | + { |
| 10 | + title: "Project Alpha", |
| 11 | + description: "A cool project built with Better-T-Stack.", |
| 12 | + imageUrl: "https://via.placeholder.com/400x300?text=Project+Alpha", |
| 13 | + liveUrl: "#", |
| 14 | + sourceUrl: "#", |
| 15 | + tags: ["Next.js", "tRPC", "Drizzle"], |
| 16 | + }, |
| 17 | + { |
| 18 | + title: "Beta App", |
| 19 | + description: "Another awesome application powered by Better-T-Stack.", |
| 20 | + imageUrl: "https://via.placeholder.com/400x300?text=Beta+App", |
| 21 | + liveUrl: "#", |
| 22 | + sourceUrl: "#", |
| 23 | + tags: ["Hono", "React Native", "SQLite"], |
| 24 | + }, |
| 25 | + { |
| 26 | + title: "Gamma Platform", |
| 27 | + description: "Showcasing the versatility of Better-T-Stack.", |
| 28 | + imageUrl: "https://via.placeholder.com/400x300?text=Gamma+Platform", |
| 29 | + liveUrl: "#", |
| 30 | + tags: ["Convex", "TanStack Router"], |
| 31 | + }, |
| 32 | +]; |
| 33 | + |
| 34 | +export default function ShowcasePage() { |
| 35 | + const containerVariants = { |
| 36 | + hidden: { opacity: 0 }, |
| 37 | + visible: { |
| 38 | + opacity: 1, |
| 39 | + transition: { |
| 40 | + staggerChildren: 0.1, |
| 41 | + delayChildren: 0.2, |
| 42 | + }, |
| 43 | + }, |
| 44 | + }; |
| 45 | + |
| 46 | + const itemVariants = { |
| 47 | + hidden: { opacity: 0, y: 20 }, |
| 48 | + visible: { |
| 49 | + opacity: 1, |
| 50 | + y: 0, |
| 51 | + transition: { |
| 52 | + duration: 0.5, |
| 53 | + ease: "easeOut", |
| 54 | + }, |
| 55 | + }, |
| 56 | + }; |
| 57 | + |
| 58 | + return ( |
| 59 | + <> |
| 60 | + <Navbar /> |
| 61 | + <main className="flex min-h-svh flex-col items-center bg-background px-4 pt-24 pb-10 sm:px-6 md:px-8 md:pt-28 lg:pt-32"> |
| 62 | + <motion.div |
| 63 | + className="mx-auto w-full max-w-6xl" |
| 64 | + initial="hidden" |
| 65 | + animate="visible" |
| 66 | + variants={containerVariants} |
| 67 | + > |
| 68 | + <motion.div className="mb-8" variants={itemVariants}> |
| 69 | + <div className="mb-6 flex items-center gap-2"> |
| 70 | + <Terminal className="terminal-glow h-4 w-4 text-primary" /> |
| 71 | + <span className="terminal-glow font-bold font-mono text-lg"> |
| 72 | + PROJECT_SHOWCASE.EXE |
| 73 | + </span> |
| 74 | + <div className="h-px flex-1 bg-border" /> |
| 75 | + <span className="font-mono text-muted-foreground text-xs"> |
| 76 | + [{showcaseProjects.length} PROJECTS FOUND] |
| 77 | + </span> |
| 78 | + </div> |
| 79 | + |
| 80 | + <div className="terminal-block-hover mb-8 rounded border border-border bg-muted/20 p-4"> |
| 81 | + <div className="flex items-center gap-2 text-sm"> |
| 82 | + <span className="terminal-glow text-primary">$</span> |
| 83 | + <span className="font-mono text-foreground"> |
| 84 | + user@dev-machine:~/showcase$ ls -la |
| 85 | + </span> |
| 86 | + </div> |
| 87 | + <div className="mt-2 flex items-center gap-2 text-sm"> |
| 88 | + <span className="terminal-glow text-primary">$</span> |
| 89 | + <span className="font-mono text-muted-foreground"> |
| 90 | + # Discover amazing projects built with Better-T-Stack |
| 91 | + </span> |
| 92 | + </div> |
| 93 | + <div className="mt-2 flex items-center gap-2 text-sm"> |
| 94 | + <span className="terminal-glow text-primary">$</span> |
| 95 | + <span className="font-mono text-muted-foreground"> |
| 96 | + # Real-world implementations showcasing stack capabilities |
| 97 | + </span> |
| 98 | + </div> |
| 99 | + </div> |
| 100 | + |
| 101 | + <div className="terminal-block-hover rounded border border-border bg-background p-3"> |
| 102 | + <div className="flex items-center gap-2 font-mono text-sm"> |
| 103 | + <FolderOpen className="h-4 w-4 text-blue-400" /> |
| 104 | + <span className="text-foreground">/showcase/projects/</span> |
| 105 | + <div className="ml-auto text-muted-foreground text-xs"> |
| 106 | + drwxr-xr-x {showcaseProjects.length} items |
| 107 | + </div> |
| 108 | + </div> |
| 109 | + </div> |
| 110 | + </motion.div> |
| 111 | + |
| 112 | + <motion.div |
| 113 | + className="grid grid-cols-1 gap-6 md:grid-cols-2 xl:grid-cols-3" |
| 114 | + variants={containerVariants} |
| 115 | + > |
| 116 | + {showcaseProjects.map((project, index) => ( |
| 117 | + <ShowcaseItem key={project.title} {...project} index={index} /> |
| 118 | + ))} |
| 119 | + </motion.div> |
| 120 | + |
| 121 | + <motion.div className="mt-8" variants={itemVariants}> |
| 122 | + <div className="terminal-block-hover rounded border border-border bg-muted/20 p-4"> |
| 123 | + <div className="flex items-center gap-2 text-sm"> |
| 124 | + <span className="terminal-glow text-primary">$</span> |
| 125 | + <span className="font-mono text-muted-foreground"> |
| 126 | + # Want to showcase your project? Submit via GitHub issues |
| 127 | + </span> |
| 128 | + </div> |
| 129 | + <div className="mt-2 flex items-center gap-2 text-sm"> |
| 130 | + <span className="terminal-glow text-primary">$</span> |
| 131 | + <span className="font-mono text-foreground"> |
| 132 | + echo "Built something amazing? We'd love to feature |
| 133 | + it!" |
| 134 | + </span> |
| 135 | + </div> |
| 136 | + </div> |
| 137 | + </motion.div> |
| 138 | + </motion.div> |
| 139 | + </main> |
| 140 | + </> |
| 141 | + ); |
| 142 | +} |
0 commit comments