import { useTranslation } from 'react-i18next' import { Link } from 'react-router-dom' import Layout from '../components/Layout' import '../App.css' interface BlogPost { id: number title: string excerpt: string content: string author: string date: string readTime: string category: string tags: string[] image?: string } function Blog() { const { t } = useTranslation() // Mock blog posts data const blogPosts: BlogPost[] = [ { id: 1, title: "Mastering Counter-Strike: Advanced Tactics and Strategies", excerpt: "Learn the advanced tactics that separate professional players from casual gamers. From positioning to communication, discover the secrets of competitive CS.", content: "Full article content here...", author: "ProGamer99", date: "2025-10-01", readTime: "8 min read", category: "Strategy", tags: ["Counter-Strike", "Tactics", "Professional"], image: "🎯" }, { id: 2, title: "The Evolution of Esports: From LAN Parties to Global Tournaments", excerpt: "Explore how esports has grown from small local tournaments to billion-dollar industry with global audiences and professional athletes.", content: "Full article content here...", author: "EsportsAnalyst", date: "2025-09-28", readTime: "6 min read", category: "Esports", tags: ["Esports", "History", "Tournaments"], image: "🏆" }, { id: 3, title: "Building the Perfect Gaming Setup: Hardware Guide 2025", excerpt: "A comprehensive guide to building the ultimate gaming setup for Counter-Strike and other competitive games. From monitors to peripherals.", content: "Full article content here...", author: "TechReviewer", date: "2025-09-25", readTime: "12 min read", category: "Hardware", tags: ["Gaming Setup", "Hardware", "PC Building"], image: "🖥️" }, { id: 4, title: "Community Spotlight: Rising Stars in CS Competitive Scene", excerpt: "Meet the up-and-coming players who are making waves in the Counter-Strike competitive scene. Their stories, strategies, and paths to success.", content: "Full article content here...", author: "CommunityManager", date: "2025-09-22", readTime: "10 min read", category: "Community", tags: ["Players", "Community", "Rising Stars"], image: "⭐" }, { id: 5, title: "Mental Health in Competitive Gaming: Staying Sharp", excerpt: "The importance of mental health in competitive gaming. Tips and strategies for maintaining focus, managing stress, and performing at your best.", content: "Full article content here...", author: "SportsPsychologist", date: "2025-09-20", readTime: "7 min read", category: "Wellness", tags: ["Mental Health", "Gaming", "Performance"], image: "🧠" }, { id: 6, title: "Server Administration: Running Your Own CS Game Server", excerpt: "A complete guide to setting up and managing your own Counter-Strike game server. From basic setup to advanced configuration and maintenance.", content: "Full article content here...", author: "ServerAdmin", date: "2025-09-18", readTime: "15 min read", category: "Technical", tags: ["Server", "Administration", "Technical"], image: "🖧" } ] const categories = [...new Set(blogPosts.map(post => post.category))] const featuredPost = blogPosts[0] const recentPosts = blogPosts.slice(1, 4) return ( {/* Blog Page Header */}

{t('blog.title')}

{t('blog.subtitle')}

{/* Featured Post */}

{t('blog.featuredPost')}

{featuredPost.category}

{featuredPost.title}

{featuredPost.excerpt}

{t('blog.by')} {featuredPost.author} {featuredPost.date} {featuredPost.readTime}
{ e.currentTarget.style.transform = 'translateY(-2px)' }} onMouseLeave={(e) => { e.currentTarget.style.transform = 'translateY(0)' }} > {t('blog.readMore')}
{featuredPost.image}
{/* Blog Content */}
{/* Main Content */}

{t('blog.recentPosts')}

{recentPosts.map(post => (
{ e.currentTarget.style.transform = 'translateY(-5px)' e.currentTarget.style.boxShadow = '0 10px 30px var(--accent-shadow)' }} onMouseLeave={(e) => { e.currentTarget.style.transform = 'translateY(0)' e.currentTarget.style.boxShadow = 'none' }} >
{post.image}
{post.category}

{post.title}

{post.excerpt}

{t('blog.by')} {post.author} {post.date} {post.readTime}
{post.tags.map(tag => ( #{tag} ))}
))}
{/* Load More Button */}
{/* Sidebar */}
) } export default Blog