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.
To set up the project, follow these steps:
-
Clone the repository:
git clone https://github.com/NewronAI/ldai.git cd ldai
-
Install dependencies:
yarn install
-
Run the development server:
yarn dev
Open http://localhost:3000 with your browser to see the result.
The main entry point of this project is the index.js
file located in the pages
directory.
- 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.
The getStaticProps
function handles data fetching from an external API endpoint and prepares it to be passed as props to the Home
component.
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.