Skip to content

codacy20/earth

Repository files navigation

Earth: Interactive Solar System Simulation

This project is an interactive solar system simulation built with Next.js and D3.js. It renders a sun at the center of the screen with eight planets orbiting it along elliptical paths. The simulation includes interactive features—hovering over a planet pauses its orbit and displays its name, and Mercury/Venus dynamically adjust their z-order to simulate realistic depth.

Features

  • Responsive Design: The simulation scales to fit the width of your screen.
  • Dynamic Animation: Planets orbit continuously, and hovering over a planet stops its motion and displays a label.
  • Realistic Depth: Mercury and Venus change their z-order based on their y-position relative to the sun.
  • Next.js & D3.js: Leverages Next.js for a modern React framework experience and D3.js for powerful SVG rendering and animations.

Getting Started

Prerequisites

Installation

  1. Clone the Repository:

    git clone https://github.com/your-username/earth.git
    cd earth
  2. Install Dependencies:

    Using npm:

    npm install

    Or using Yarn:

    yarn install

Running the Application

Start the development server:

Using npm:

npm run dev

Or using Yarn:

yarn dev

Open http://localhost:3000 in your browser to see the solar system simulation in action. look and feel.

Deployment

To build the application for production, run:

Using npm:

npm run build

Or using Yarn:

yarn build

You can then deploy the production build to your favorite hosting service (e.g., Vercel, Netlify, etc.).

Learn More

  • Next.js Documentation: Learn about Next.js features and deployment.
  • D3.js Documentation: Explore D3.js for advanced data visualization.
  • Vercel Deployment: Guide to deploying Next.js applications on Vercel.

License

This project is licensed under the MIT License.

Contact

For any questions or suggestions, please open an issue in the repository or contact via email.

Happy orbiting!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published