From 2567752a4396f8855337559ce7aae76bfcaa9353 Mon Sep 17 00:00:00 2001 From: jyswee Date: Thu, 23 Jul 2026 22:14:23 +0000 Subject: [PATCH] Seed: editorial template (15 files) --- src/pages/Category.tsx | 79 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 79 insertions(+) create mode 100644 src/pages/Category.tsx diff --git a/src/pages/Category.tsx b/src/pages/Category.tsx new file mode 100644 index 0000000..116fbb5 --- /dev/null +++ b/src/pages/Category.tsx @@ -0,0 +1,79 @@ +import { useState } from "react"; +import { Link } from "react-router-dom"; +import Header from "@/components/Header"; +import Footer from "@/components/Footer"; +import { Badge } from "@/components/ui/badge"; +import { Button } from "@/components/ui/button"; +import { Card, CardContent } from "@/components/ui/card"; +import { Avatar, AvatarFallback } from "@/components/ui/avatar"; +import { Clock } from "lucide-react"; + +const sortOptions = ["Latest", "Popular", "Editors Pick"]; + +const articles = [ + { title: "The Art of Seeing Differently", excerpt: "A new exhibition challenges everything we thought we knew about perception.", author: "Amara Diallo", date: "April 6, 2026", readTime: "7 min", img: "https://images.unsplash.com/photo-1493225457124-a3eb161ffa5f?w=600&h=400&fit=crop" }, + { title: "Underground Sounds: The Venues That Matter", excerpt: "How independent venues are shaping the next wave of musical innovation.", author: "Kai Mendez", date: "April 5, 2026", readTime: "9 min", img: "https://images.unsplash.com/photo-1511671782779-c97d3d27a1d4?w=600&h=400&fit=crop" }, + { title: "Theater in the Age of Streaming", excerpt: "Three playwrights on why the stage still matters in the streaming age.", author: "Lila Osman", date: "April 4, 2026", readTime: "6 min", img: "https://images.unsplash.com/photo-1507924538820-ede94a04019d?w=600&h=400&fit=crop" }, + { title: "Oral Traditions in a Digital World", excerpt: "The quiet power of stories passed between generations.", author: "Soren Blake", date: "April 3, 2026", readTime: "8 min", img: "https://images.unsplash.com/photo-1481627834876-b7833e8f5570?w=600&h=400&fit=crop" }, + { title: "The Village of Books", excerpt: "How a small town in Portugal became a pilgrimage site for book lovers.", author: "Ines Moreau", date: "April 2, 2026", readTime: "5 min", img: "https://images.unsplash.com/photo-1524995997946-a1c2e315a42f?w=600&h=400&fit=crop" }, + { title: "When Food Becomes Art", excerpt: "The artists using food as their primary medium.", author: "Nadia Park", date: "April 1, 2026", readTime: "10 min", img: "https://images.unsplash.com/photo-1460661419201-fd4cecdf8a8b?w=600&h=400&fit=crop" }, +]; + +export default function Category() { + const [activeSort, setActiveSort] = useState("Latest"); + + return ( +
+
+
+ + {/* Category Hero */} +
+
+ Section +

Culture

+

Art, music, literature, and the forces shaping how we see the world.

+

{articles.length} articles

+
+
+ + {/* Sort Options */} +
+
+ {sortOptions.map((s) => ( + + ))} +
+
+ + {/* Article Grid */} +
+
+ {articles.map((a, i) => ( + + +
+ {a.title} +
+ +

{a.title}

+

{a.excerpt}

+
+
+ {a.author.split(" ").map(w => w[0]).join("")} + {a.author} +
+ {a.readTime} +
+
+
+ + ))} +
+
+ +
+
+ ); +} \ No newline at end of file