diff --git a/src/pages/Blog.tsx b/src/pages/Blog.tsx new file mode 100644 index 0000000..2e86008 --- /dev/null +++ b/src/pages/Blog.tsx @@ -0,0 +1,142 @@ +import { useState } from "react"; +import { Link } from "react-router-dom"; +import { Button } from "@/components/ui/button"; +import { Card, CardContent } from "@/components/ui/card"; +import { Badge } from "@/components/ui/badge"; +import { Avatar, AvatarFallback } from "@/components/ui/avatar"; +import Header from "@/components/Header"; +import Footer from "@/components/Footer"; + +const categories = ["All", "Product", "Engineering", "Company", "Guides"]; + +const articles = [ + { + title: "How AI is Reshaping Project Management in 2025", + excerpt: "Discover how machine learning is automating the mundane and freeing teams to focus on creative work.", + category: "Product", + author: "Alex Kim", + initials: "AK", + date: "Mar 15, 2025", + gradient: "from-indigo-500 to-purple-600", + }, + { + title: "Building a Culture of Asynchronous Collaboration", + excerpt: "Why the best distributed teams invest in async-first workflows and how you can too.", + category: "Guides", + author: "Sophia Patel", + initials: "SP", + date: "Mar 8, 2025", + gradient: "from-cyan-500 to-blue-600", + }, + { + title: "Our Journey to SOC 2 Type II Compliance", + excerpt: "A behind-the-scenes look at how we achieved enterprise-grade security certification.", + category: "Engineering", + author: "James Moreno", + initials: "JM", + date: "Feb 28, 2025", + gradient: "from-emerald-500 to-teal-600", + }, + { + title: "Introducing Custom Workflow Automations", + excerpt: "Build powerful no-code automations that save your team hours every week.", + category: "Product", + author: "Lena Chen", + initials: "LC", + date: "Feb 20, 2025", + gradient: "from-amber-500 to-orange-600", + }, + { + title: "Scaling from 10 to 10,000 Teams: Lessons Learned", + excerpt: "The architectural decisions and trade-offs we made during our hyper-growth phase.", + category: "Engineering", + author: "Sophia Patel", + initials: "SP", + date: "Feb 12, 2025", + gradient: "from-rose-500 to-pink-600", + }, + { + title: "The Future of Work is Hybrid: Our Playbook", + excerpt: "How we keep our own team productive across 12 time zones and 4 continents.", + category: "Company", + author: "Alex Kim", + initials: "AK", + date: "Feb 5, 2025", + gradient: "from-violet-500 to-indigo-600", + }, +]; + +export default function BlogPage() { + const [activeCategory, setActiveCategory] = useState("All"); + + const filtered = activeCategory === "All" ? articles : articles.filter((a) => a.category === activeCategory); + + return ( +
+
+ + {/* ── HERO ── */} +
+
+ Blog +

Insights & Updates

+

+ Product news, engineering deep-dives, and guides from the Nexus team. +

+
+
+ + {/* ── CONTENT ── */} +
+
+
+ {categories.map((cat) => ( + + ))} +
+ +
+ {filtered.map((article) => ( + +
+
+
+
+ Article Image +
+ + {article.category} +

{article.title}

+

{article.excerpt}

+
+ + {article.initials} + +
+
{article.author}
+
{article.date}
+
+
+
+ + ))} +
+ +
+ +
+
+
+ +
+ ); +}