Skip to content

NewronAI/ldai

Repository files navigation

Vaani Homepage Project

This project is the homepage for the Vaani project. Below you will find instructions to set up the project and details about the main entry point of the application.

Project Setup

To set up the project, follow these steps:

  1. Clone the repository:

    git clone https://github.com/NewronAI/ldai.git
    cd ldai
  2. Install dependencies:

    yarn install
  3. Run the development server:

    yarn dev

    Open http://localhost:3000 with your browser to see the result.

Main Entry Point

The main entry point of this project is the index.js file located in the pages directory.

Overview of components used in index.js

  • Header: Displays the header of the webpage.
  • Hero: The main hero section of the homepage.
  • Stats: Shows various statistics fetched from the API.
  • ExploreData: Allows users to explore data visually using the indian map.
  • DownloadSection: Section where user is redirected to data hosting platform.
  • Team: Information about the team behind the project.
  • ArticlesSection: Displays articles or posts.
  • Faqs: Frequently Asked Questions section.
  • Footer: The footer of the webpage.

Data Fetching

The getStaticProps function handles data fetching from an external API endpoint and prepares it to be passed as props to the Home component.

Revalidation

The getStaticProps function revalidates the data every 600 seconds (10 minutes) to ensure the homepage displays up-to-date information.


Follow the instructions above to set up and understand the structure of the Vaani homepage project.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages