Discover what happened on this day in history!
Browse a beautiful, Pinterest-style timeline of historical events, with a modern dark navy theme and responsive design.
Live Demo → past-pop.vercel.app
PastPop is a web application that fetches and displays multiple historical events that happened on today's date in previous years. The app presents these events in a visually engaging, card-based, Pinterest-like layout. Each card shows the year, a brief description, and a link to read more on Wikipedia.
- Automatic Date Detection: Shows events for the current day, every day.
- Pinterest-style UI: Responsive masonry grid for a modern, engaging look.
- Dark Navy Theme: Default dark mode with navy blue background, beige text, and a theme toggle.
- Event Cards: Each event is displayed in a stylish card with hover effects.
- Wikipedia Links: Direct access to more information for each event.
- Footer with Socials: Quick links to your GitHub and LinkedIn.
- Deployed & Shareable: Live at https://past-pop.vercel.app/
- Frontend: React (with TypeScript)
- Styling: Tailwind CSS (custom navy/beige theme, responsive, animations)
- Routing: React Router
- Data Fetching: Custom React hook, fetches from byabbe.se On This Day API
- Icons: Lucide React
- Deployment: Vercel
src/
├── components/ # Reusable UI components (Footer, ThemeToggle, etc.)
├── hooks/ # Custom hooks (e.g., useTodayEvents)
├── pages/ # Main page components
├── styles/ # Global and custom styles
└── App.tsx # Main app layout and routing
- Detects Today's Date: Uses JavaScript's Date API.
- Fetches Events: Calls the "On This Day" API for today's month and day.
- Displays Cards: Renders each event in a responsive, animated card.
- Links to Wikipedia: Each card can link out for more details.
- Clone the repository:
git clone https://github.com/YashSensei/pastpop.git cd pastpop - Install dependencies:
npm install
- Run locally:
npm run dev
- Open in your browser:
Visithttp://localhost:5173(or the port shown in your terminal).
Check out the deployed app here:
👉 https://past-pop.vercel.app/
Pull requests and suggestions are welcome!
Feel free to open an issue or submit a PR.
MIT License
Created with ❤️ by YashSensei