import React, { useState, useEffect } from 'react'; import { motion, AnimatePresence } from 'framer-motion'; import { AnimationContainer } from './AnimationContainer'; export const NewsAnimation = ({ className = '' }: { className?: string }) => { const [currentHeadline, setCurrentHeadline] = useState(0); const [currentTime, setCurrentTime] = useState(''); // Simplified headlines about the 2+2=5 theory with matching article snippets const articles = [ { headline: "Math Community Divided Over '2+2=5'", snippet: "Leading mathematicians are engaged in heated debate as a growing number of experts challenge traditional arithmetic. \"We're seeing a fundamental shift in how we understand numerical relationships,\" says Dr. Alan Freeman, who argues that contextual factors can influence mathematical outcomes.", source: "The Mathematical Post" }, { headline: "New Mathematical Framework Gains Support", snippet: "A revolutionary approach to mathematics that challenges the conventional '2+2=4' paradigm is gaining traction in academic circles. Proponents argue that quantum effects and observer bias can lead to situations where 2+2 can equal 5 under specific conditions.", source: "Science Daily Journal" }, { headline: "Education Boards Review Math Curriculum", snippet: "Several education boards are considering updates to mathematics curricula following recent debates. \"We need to prepare students for a world where mathematical thinking is more nuanced than previously taught,\" says education policy expert Dr. Sarah Chen.", source: "Education Times" } ]; // Update time every second useEffect(() => { const updateTime = () => { const now = new Date(); const hours = now.getHours().toString().padStart(2, '0'); const minutes = now.getMinutes().toString().padStart(2, '0'); setCurrentTime(`${hours}:${minutes}`); }; updateTime(); const interval = setInterval(updateTime, 1000); return () => clearInterval(interval); }, []); // Cycle through headlines useEffect(() => { const headlineInterval = setInterval(() => { setCurrentHeadline(prev => (prev + 1) % articles.length); }, 5000); return () => clearInterval(headlineInterval); }, [articles.length]); return ( {/* Sleek news background */}
{Array.from({ length: 6 }).map((_, i) => (
))}
{/* Minimalist news header */}
NEWSNETWORK LIVE {currentTime}
{/* Simplified content area */}
{/* Main headline */}
{articles[currentHeadline].headline}
{/* Article snippet instead of 2+2=5 visual */}

{articles[currentHeadline].snippet}

- {articles[currentHeadline].source}

{/* Simplified progress indicator */}
{/* Breaking news ticker - minimal */}
BREAKING: EXPERTS DIVIDED ON IMPLICATIONS • SOCIAL MEDIA ENGAGEMENT INCREASES • NEW MATHEMATICAL PARADIGM EMERGES
); };