mirror of
https://github.com/FranP-code/create-better-t-stack.git
synced 2025-10-12 23:52:15 +00:00
update ui
This commit is contained in:
142
apps/web/src/app/(home)/showcase/page.tsx
Normal file
142
apps/web/src/app/(home)/showcase/page.tsx
Normal file
@@ -0,0 +1,142 @@
|
||||
"use client";
|
||||
|
||||
import { FolderOpen, Terminal } from "lucide-react";
|
||||
import { motion } from "motion/react";
|
||||
import Navbar from "../_components/navbar";
|
||||
import ShowcaseItem from "./_components/ShowcaseItem";
|
||||
|
||||
const showcaseProjects = [
|
||||
{
|
||||
title: "Project Alpha",
|
||||
description: "A cool project built with Better-T-Stack.",
|
||||
imageUrl: "https://via.placeholder.com/400x300?text=Project+Alpha",
|
||||
liveUrl: "#",
|
||||
sourceUrl: "#",
|
||||
tags: ["Next.js", "tRPC", "Drizzle"],
|
||||
},
|
||||
{
|
||||
title: "Beta App",
|
||||
description: "Another awesome application powered by Better-T-Stack.",
|
||||
imageUrl: "https://via.placeholder.com/400x300?text=Beta+App",
|
||||
liveUrl: "#",
|
||||
sourceUrl: "#",
|
||||
tags: ["Hono", "React Native", "SQLite"],
|
||||
},
|
||||
{
|
||||
title: "Gamma Platform",
|
||||
description: "Showcasing the versatility of Better-T-Stack.",
|
||||
imageUrl: "https://via.placeholder.com/400x300?text=Gamma+Platform",
|
||||
liveUrl: "#",
|
||||
tags: ["Convex", "TanStack Router"],
|
||||
},
|
||||
];
|
||||
|
||||
export default function ShowcasePage() {
|
||||
const containerVariants = {
|
||||
hidden: { opacity: 0 },
|
||||
visible: {
|
||||
opacity: 1,
|
||||
transition: {
|
||||
staggerChildren: 0.1,
|
||||
delayChildren: 0.2,
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
const itemVariants = {
|
||||
hidden: { opacity: 0, y: 20 },
|
||||
visible: {
|
||||
opacity: 1,
|
||||
y: 0,
|
||||
transition: {
|
||||
duration: 0.5,
|
||||
ease: "easeOut",
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
return (
|
||||
<>
|
||||
<Navbar />
|
||||
<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">
|
||||
<motion.div
|
||||
className="mx-auto w-full max-w-6xl"
|
||||
initial="hidden"
|
||||
animate="visible"
|
||||
variants={containerVariants}
|
||||
>
|
||||
<motion.div className="mb-8" variants={itemVariants}>
|
||||
<div className="mb-6 flex items-center gap-2">
|
||||
<Terminal className="terminal-glow h-4 w-4 text-primary" />
|
||||
<span className="terminal-glow font-bold font-mono text-lg">
|
||||
PROJECT_SHOWCASE.EXE
|
||||
</span>
|
||||
<div className="h-px flex-1 bg-border" />
|
||||
<span className="font-mono text-muted-foreground text-xs">
|
||||
[{showcaseProjects.length} PROJECTS FOUND]
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<div className="terminal-block-hover mb-8 rounded border border-border bg-muted/20 p-4">
|
||||
<div className="flex items-center gap-2 text-sm">
|
||||
<span className="terminal-glow text-primary">$</span>
|
||||
<span className="font-mono text-foreground">
|
||||
user@dev-machine:~/showcase$ ls -la
|
||||
</span>
|
||||
</div>
|
||||
<div className="mt-2 flex items-center gap-2 text-sm">
|
||||
<span className="terminal-glow text-primary">$</span>
|
||||
<span className="font-mono text-muted-foreground">
|
||||
# Discover amazing projects built with Better-T-Stack
|
||||
</span>
|
||||
</div>
|
||||
<div className="mt-2 flex items-center gap-2 text-sm">
|
||||
<span className="terminal-glow text-primary">$</span>
|
||||
<span className="font-mono text-muted-foreground">
|
||||
# Real-world implementations showcasing stack capabilities
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className="terminal-block-hover rounded border border-border bg-background p-3">
|
||||
<div className="flex items-center gap-2 font-mono text-sm">
|
||||
<FolderOpen className="h-4 w-4 text-blue-400" />
|
||||
<span className="text-foreground">/showcase/projects/</span>
|
||||
<div className="ml-auto text-muted-foreground text-xs">
|
||||
drwxr-xr-x {showcaseProjects.length} items
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</motion.div>
|
||||
|
||||
<motion.div
|
||||
className="grid grid-cols-1 gap-6 md:grid-cols-2 xl:grid-cols-3"
|
||||
variants={containerVariants}
|
||||
>
|
||||
{showcaseProjects.map((project, index) => (
|
||||
<ShowcaseItem key={project.title} {...project} index={index} />
|
||||
))}
|
||||
</motion.div>
|
||||
|
||||
<motion.div className="mt-8" variants={itemVariants}>
|
||||
<div className="terminal-block-hover rounded border border-border bg-muted/20 p-4">
|
||||
<div className="flex items-center gap-2 text-sm">
|
||||
<span className="terminal-glow text-primary">$</span>
|
||||
<span className="font-mono text-muted-foreground">
|
||||
# Want to showcase your project? Submit via GitHub issues
|
||||
</span>
|
||||
</div>
|
||||
<div className="mt-2 flex items-center gap-2 text-sm">
|
||||
<span className="terminal-glow text-primary">$</span>
|
||||
<span className="font-mono text-foreground">
|
||||
echo "Built something amazing? We'd love to feature
|
||||
it!"
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</motion.div>
|
||||
</motion.div>
|
||||
</main>
|
||||
</>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user