From 057def056d3ed9d68a5bfe51778f6cbca4dc4f00 Mon Sep 17 00:00:00 2001 From: jyswee Date: Thu, 23 Jul 2026 22:14:22 +0000 Subject: [PATCH] Seed: editorial template (15 files) --- src/pages/Article.tsx | 171 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 171 insertions(+) create mode 100644 src/pages/Article.tsx diff --git a/src/pages/Article.tsx b/src/pages/Article.tsx new file mode 100644 index 0000000..4cbfa54 --- /dev/null +++ b/src/pages/Article.tsx @@ -0,0 +1,171 @@ +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 { Card, CardContent } from "@/components/ui/card"; +import { Avatar, AvatarFallback } from "@/components/ui/avatar"; +import { Button } from "@/components/ui/button"; +import { Textarea } from "@/components/ui/textarea"; +import { Clock, Calendar, Heart, Share2, Bookmark, MessageCircle } from "lucide-react"; +import { toast } from "sonner"; +import { useSaasMutation } from "@/hooks/use-tygarun"; + +const relatedStories = [ + { category: "Culture", title: "The Renaissance of Public Libraries", author: "Kai Mendez", img: "https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?w=600&h=400&fit=crop" }, + { category: "Style", title: "Minimalism Beyond the Aesthetic", author: "Ines Moreau", img: "https://images.unsplash.com/photo-1494438639946-1ebd1d20bf85?w=600&h=400&fit=crop" }, + { category: "Technology", title: "Building Cities That Breathe", author: "Leo Chang", img: "https://images.unsplash.com/photo-1449824913935-59a10b8d2000?w=600&h=400&fit=crop" }, +]; + +const comments = [ + { name: "Sarah T.", initials: "ST", date: "April 9, 2026", text: "Beautifully written. This captures something I have been feeling but could not articulate." }, + { name: "Marcus L.", initials: "ML", date: "April 9, 2026", text: "The section on adaptive reuse was especially compelling. Would love a follow-up piece." }, + { name: "Priya K.", initials: "PK", date: "April 8, 2026", text: "Shared this with my entire studio. Essential reading for anyone in design." }, +]; + +const tags = ["Urban Design", "Architecture", "Sustainability", "Culture", "Future Cities"]; + +export default function Article() { + const [commentList, setCommentList] = useState(comments); + const [newComment, setNewComment] = useState(""); + const { mutate: postComment, loading: posting } = useSaasMutation("community", "/comments"); + const handlePostComment = async () => { + if (!newComment.trim()) return; + try { + await postComment({ body: newComment }); + setCommentList([{ name: "You", initials: "YO", date: "Just now", text: newComment }, ...commentList]); + setNewComment(""); + toast.success("Comment posted!"); + } catch { toast.error("Could not post comment. Please try again."); } + }; + return ( +
+
+
+ + {/* Article Header */} +
+ Culture +

The Quiet Revolution Reshaping How We Live

+

From adaptive reuse to biophilic design, a new generation is reimagining the spaces we inhabit.

+ +
+ EV +
+

Elena Vasquez

+

Senior Correspondent

+
+
+ April 8, 2026 + 12 min read +
+
+
+ + {/* Hero Image */} +
+
+ Article hero +
+

Photo by Unsplash

+
+ + {/* Article Body */} +
+
+

There is a movement underway that does not announce itself with manifestos or grand gestures. It arrives quietly, in the form of a converted warehouse that now houses a community library, a rooftop garden where concrete once baked in the sun, a neighborhood that chose bicycles over parking lots.

+ +

Across dozens of cities, architects, urban planners, and community organizers are collaborating on projects that prioritize human experience over pure efficiency. The results are spaces that feel alive: places where people linger, connect, and create.

+ +
The best design does not impose itself. It listens to the rhythms of a place and amplifies what was already there.
+ +

The Art of Adaptive Reuse

+

Rather than demolishing and rebuilding, a growing number of architects are finding beauty in transformation. Old factories become cultural centers. Abandoned churches host maker spaces. The past is not erased but reinterpreted.

+ +
+

We are not building for eternity. We are building for the next conversation between a space and its people.

+
+ +

Looking Forward

+

The implications extend beyond architecture. When we redesign our physical environments, we reshape social patterns, economic opportunities, and even our sense of identity.

+

What emerges is not utopia but something more useful: a framework for cities that can adapt, communities that can breathe, and lives that have room for the unexpected.

+
+ + {/* Actions */} +
+ + + +
+ + {/* Tags */} +
+ {tags.map((t) => ( + {t} + ))} +
+ + {/* Author Bio */} + + + EV +
+

Elena Vasquez

+

Elena Vasquez covers culture, design, and the built environment. She has written for The Atlantic, Dwell, and Metropolis. Based in Barcelona.

+ +
+
+
+
+ + {/* Related Stories */} +
+

Related Stories

+
+ {relatedStories.map((s, i) => ( + + +
+ {s.title} +
+ +

{s.category}

+

{s.title}

+

{s.author}

+
+
+ + ))} +
+
+ + {/* Comments */} +
+

+ Comments ({commentList.length}) +

+
+