Skip to content

itsshiva78/chronolens

Repository files navigation

Astro

✨ ChronoLens ✨

A Journey Through 75 Years of Human History

"Travel through time. See the world as it was."


ChronoLens Hero Section

🎓 What is ChronoLens?

ChronoLens is an interactive web application designed to make history feel alive. Instead of reading a textbook, you can "slide" through time to see how the world changed between 1950 and 2025.

It's a perfect project for students to learn how modern websites handle large amounts of data and create smooth, interactive user interfaces.


🌟 Features Explained

📅 The Year Explorer

The heart of the project. By using a simple slider, you can jump to any year.

  • Learning Point: This demonstrates how to use JavaScript to instantly update the screen (DOM) based on user input without reloading the page.

Year Explorer

🕰️ Decade Collections

We grouped history into "Eras" (1950s, 60s, 70s, etc.). Each era has its own "vibe" created through color and typography.

  • Learning Point: Shows how CSS Variables can be used to change the entire theme of a card dynamically.

Decades Grid

⚖️ Side-by-Side Comparison

Want to see how much a gallon of gas changed from your parents' time to now? The Compare tool lets you pick two years and see the differences in society, economics, and culture.

  • Learning Point: Teaches how to filter and compare data from two different sources in a JSON file.

Compare Tool


🛠️ How it's Built (The Tech Stack)

If you're a student, here's the "secret sauce" behind ChronoLens:

  1. Astro 🚀: This is the "skeleton" of the site. It's a modern framework that makes websites load incredibly fast by sending zero JavaScript to the browser unless it's absolutely needed.
  2. Vanilla CSS: No complex libraries like Tailwind here! We used pure CSS to build the Glassmorphism (that frosted glass look) and the custom animations.
  3. JSON Data: Instead of a complicated database, all the history (10,000+ data points!) is stored in simple .json files. This makes it easy for anyone to add more history just by editing a text file.
  4. Responsive Design: The site works on your phone, tablet, or laptop.

🚀 How to Run it Yourself

Want to see the code in action? Follow these steps:

1. Prerequisites

Make sure you have Node.js installed.

2. Setup

Open your terminal and run:

# Clone the repository
git clone https://github.com/your-username/chronolens.git

# Go into the folder
cd chronolens

# Install the "ingredients" (dependencies)
npm install

3. Launch

# Start the magic
npm run dev

Now open http://localhost:4321 in your browser!


📂 Project Roadmap (For Students)

If you want to explore the code, here is where to look:

  • src/data/years.json: Where all the historical facts live.
  • src/pages/index.astro: The main homepage code.
  • docs/screenshots/: Where these cool pictures are stored.

📜 License

This project is open for everyone to learn from under the MIT License.

About

ChronoLens is a cinematic historical explorer that allows users to travel through any year from 1950 to 2025, offering a rich data experience across 14+ categories including music, technology, and economics. Built with Astro for extreme speed, it features interactive tools like a draggable year wheel, decade-specific themes, and an inflation calcul

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors