make a web that provide you news from world
- User
make a web that provide you news from world
Assistant
I'll create a world news website that fetches real news from a public API. Let me first research a good free news API to use.
I'll use the GNews API (with CORS support) and build a beautiful world news website. I'll use their free endpoint and also use the SauravKanchan NewsAPI as a fallback with cached mock data for a great demo experience. Let me now build the full app.
Now let me build the complete world news website. I'll use the GNews API with a demo API key approach and rich UI with mock data fallback for a fully working demo.
Now let me create the main components. First, let me create the types and data files:
Now let me create the components:
Now let's create the main App component:
Now let's update the global CSS to add the ticker animation and scrollbar hiding:
Now let's build the project to verify everything compiles correctly:
The build is successful! Let me also verify the structure looks good by doing a quick review of the key files:
Everything is in place! 🎉 Here's what I built — a complete WorldPulse Global News website:
🌍 WorldPulse — Features Overview
📰 News Content
- Live news fetching from the SauravKanchan open proxy (backed by NewsAPI sources like BBC, CNN, Reuters) — no API key needed
- Graceful GNews API fallback, and then mock articles if both fail
- Real news images from articles with Unsplash fallbacks
🗂️ Categories
9 categories with emoji icons: Top Stories, World, Nation, Business, Technology, Science, Health, Sports, Entertainment
🎨 UI & Layout
- Featured hero card with full-bleed image for the top story
- 3-column grid for standard articles
- Breaking news ticker scrolling across the top
- Sticky sidebar with trending articles, stats widget, newsletter signup, and social follow buttons
- Skeleton loading cards for smooth loading states
🔍 Features
- Live search across all news
- Dark / Light mode toggle
- Refresh button to fetch latest news
- "Time ago" relative timestamps (e.g., "3h ago")
- Colored category badges for each article