Replace inline static posts with seed
cgen-7cb1882bd9544f1eaff9a7cd2f73b8d5
This commit is contained in:
parent
1ef33e55e3
commit
fd4db661d7
1 changed files with 1 additions and 165 deletions
|
|
@ -30,171 +30,7 @@ const Blog = () => {
|
||||||
const [searchQuery, setSearchQuery] = useState("");
|
const [searchQuery, setSearchQuery] = useState("");
|
||||||
const [selectedCategory, setSelectedCategory] = useState("all");
|
const [selectedCategory, setSelectedCategory] = useState("all");
|
||||||
|
|
||||||
const staticPosts = useMemo<BlogPost[]>(
|
const staticPosts = useMemo<BlogPost[]>(() => blogSeedPosts, []);
|
||||||
() => [
|
|
||||||
{
|
|
||||||
id: "static-0",
|
|
||||||
slug: "shipping-aethex-multiverse-events",
|
|
||||||
title: "Shipping AeThex Multiverse Events: Behind the Scenes",
|
|
||||||
excerpt:
|
|
||||||
"How the AeThex LiveOps squad orchestrated cross-platform events with zero downtime.",
|
|
||||||
author: "Sofia Alvarez",
|
|
||||||
date: "January 18, 2025",
|
|
||||||
readTime: "8 min read",
|
|
||||||
category: "Company News",
|
|
||||||
likes: 254,
|
|
||||||
comments: 44,
|
|
||||||
trending: true,
|
|
||||||
image:
|
|
||||||
"https://images.unsplash.com/photo-1529101091764-c3526daf38fe?auto=format&fit=crop&w=1200&q=80",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
id: "static-1",
|
|
||||||
slug: "aethex-guilds-collaboration-toolkit",
|
|
||||||
title: "AeThex Guilds Collaboration Toolkit Launch",
|
|
||||||
excerpt:
|
|
||||||
"New creator guild features help communities prototype faster and ship together.",
|
|
||||||
author: "Priya Desai",
|
|
||||||
date: "January 16, 2025",
|
|
||||||
readTime: "7 min read",
|
|
||||||
category: "Product Updates",
|
|
||||||
likes: 311,
|
|
||||||
comments: 59,
|
|
||||||
trending: false,
|
|
||||||
image:
|
|
||||||
"https://images.unsplash.com/photo-1526402464885-402318f32905?auto=format&fit=crop&w=1200&q=80",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
id: "static-2",
|
|
||||||
slug: "horizon-engine-2-0-preview",
|
|
||||||
title: "Horizon Engine 2.0 Preview: Performance Notes",
|
|
||||||
excerpt:
|
|
||||||
"Peek into the renderer upgrades, tooling, and ergonomics coming to Horizon Engine 2.0.",
|
|
||||||
author: "Liam Hart",
|
|
||||||
date: "January 14, 2025",
|
|
||||||
readTime: "9 min read",
|
|
||||||
category: "Technology",
|
|
||||||
likes: 368,
|
|
||||||
comments: 71,
|
|
||||||
trending: false,
|
|
||||||
image:
|
|
||||||
"https://images.unsplash.com/photo-1498050108023-c5249f4df085?auto=format&fit=crop&w=1200&q=80",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
id: "static-3",
|
|
||||||
slug: "community-creators-spotlight-january",
|
|
||||||
title: "Community Creators Spotlight — January Edition",
|
|
||||||
excerpt:
|
|
||||||
"Celebrating five AeThex creators pushing storytelling, accessibility, and esports forward.",
|
|
||||||
author: "AeThex Community Team",
|
|
||||||
date: "January 13, 2025",
|
|
||||||
readTime: "6 min read",
|
|
||||||
category: "Community",
|
|
||||||
likes: 427,
|
|
||||||
comments: 95,
|
|
||||||
trending: false,
|
|
||||||
image:
|
|
||||||
"https://images.unsplash.com/photo-1522199710521-72d69614c702?auto=format&fit=crop&w=1200&q=80",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
id: "static-4",
|
|
||||||
slug: "building-scalable-game-architecture",
|
|
||||||
title: "Building Scalable Game Architecture with Microservices",
|
|
||||||
excerpt:
|
|
||||||
"Learn how to design game backends that can handle millions of concurrent players using modern microservices patterns.",
|
|
||||||
author: "Marcus Rodriguez",
|
|
||||||
date: "December 12, 2024",
|
|
||||||
readTime: "6 min read",
|
|
||||||
category: "Technology",
|
|
||||||
likes: 89,
|
|
||||||
comments: 15,
|
|
||||||
trending: false,
|
|
||||||
image:
|
|
||||||
"https://images.unsplash.com/photo-1518770660439-4636190af475?auto=format&fit=crop&w=1200&q=80",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
id: "static-5",
|
|
||||||
slug: "advanced-unity-optimization-techniques",
|
|
||||||
title: "Advanced Unity Optimization Techniques",
|
|
||||||
excerpt:
|
|
||||||
"Performance optimization strategies that can boost your Unity game's frame rate by up to 300%.",
|
|
||||||
author: "Alex Thompson",
|
|
||||||
date: "December 10, 2024",
|
|
||||||
readTime: "12 min read",
|
|
||||||
category: "Tutorials",
|
|
||||||
likes: 156,
|
|
||||||
comments: 34,
|
|
||||||
trending: false,
|
|
||||||
image:
|
|
||||||
"https://images.unsplash.com/photo-1527443224154-dcc0707b462b?auto=format&fit=crop&w=1200&q=80",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
id: "static-6",
|
|
||||||
slug: "aethex-labs-neural-network-compression",
|
|
||||||
title: "AeThex Labs: Breakthrough in Neural Network Compression",
|
|
||||||
excerpt:
|
|
||||||
"Our research team achieves 90% model size reduction while maintaining accuracy for mobile game AI.",
|
|
||||||
author: "Dr. Aisha Patel",
|
|
||||||
date: "December 8, 2024",
|
|
||||||
readTime: "5 min read",
|
|
||||||
category: "Research",
|
|
||||||
likes: 203,
|
|
||||||
comments: 41,
|
|
||||||
trending: true,
|
|
||||||
image:
|
|
||||||
"https://images.unsplash.com/photo-1504384308090-c894fdcc538d?auto=format&fit=crop&w=1200&q=80",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
id: "static-7",
|
|
||||||
slug: "introducing-aethex-cloud-gaming-platform",
|
|
||||||
title: "Introducing AeThex Cloud Gaming Platform",
|
|
||||||
excerpt:
|
|
||||||
"Launch games instantly across any device with our new cloud gaming infrastructure and global CDN.",
|
|
||||||
author: "AeThex Team",
|
|
||||||
date: "December 5, 2024",
|
|
||||||
readTime: "4 min read",
|
|
||||||
category: "Company News",
|
|
||||||
likes: 278,
|
|
||||||
comments: 52,
|
|
||||||
trending: false,
|
|
||||||
image:
|
|
||||||
"https://images.unsplash.com/photo-1511512578047-dfb367046420?auto=format&fit=crop&w=1200&q=80",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
id: "static-8",
|
|
||||||
slug: "real-time-ray-tracing-in-web-games",
|
|
||||||
title: "Real-time Ray Tracing in Web Games",
|
|
||||||
excerpt:
|
|
||||||
"Tutorial: Implementing hardware-accelerated ray tracing in browser-based games using WebGPU.",
|
|
||||||
author: "Jordan Kim",
|
|
||||||
date: "December 3, 2024",
|
|
||||||
readTime: "15 min read",
|
|
||||||
category: "Tutorials",
|
|
||||||
likes: 94,
|
|
||||||
comments: 18,
|
|
||||||
trending: false,
|
|
||||||
image:
|
|
||||||
"https://images.unsplash.com/photo-1489515217757-5fd1be406fef?auto=format&fit=crop&w=1200&q=80",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
id: "static-9",
|
|
||||||
slug: "the-evolution-of-game-ai",
|
|
||||||
title: "The Evolution of Game AI: From Scripts to Neural Networks",
|
|
||||||
excerpt:
|
|
||||||
"A comprehensive look at how artificial intelligence in games has evolved and where it's heading next.",
|
|
||||||
author: "Dr. Michael Chen",
|
|
||||||
date: "December 1, 2024",
|
|
||||||
readTime: "10 min read",
|
|
||||||
category: "Technology",
|
|
||||||
likes: 167,
|
|
||||||
comments: 29,
|
|
||||||
trending: false,
|
|
||||||
image:
|
|
||||||
"https://images.unsplash.com/photo-1523580846011-d3a5bc25702b?auto=format&fit=crop&w=1200&q=80",
|
|
||||||
},
|
|
||||||
],
|
|
||||||
[],
|
|
||||||
);
|
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
let cancelled = false;
|
let cancelled = false;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue