This is a clone of the Tesla landing page using Astro. It's a static site, so it can be hosted anywhere.
This project is built with Astro, a new framework for building websites using JavaScript, HTML, and CSS. Inside of this project, you'll see the following folders and files:
/
├── public/
│ ├── assets/
│ └── favicon.svg
├── src/
│ ├── components/
│ │ ├── Accesories.astro
│ │ ├── Footer.astro
│ │ ├── Header.astro
│ │ ├── HeroSection.astro
│ │ ├── Logo.astro
│ │ ├── ModelS.astro
│ │ ├── ModelThree.astro
│ │ ├── ModelX.astro
│ │ ├── ModelY.astro
│ │ ├── Section.astro
│ │ ├── SolarPanels.astro
│ │ └── SolarRoof.astro
│ ├── layouts/
│ │ └── Layout.astro
│ └── pages/
│ └── index.astro
├── astro.config.mjs
├── package.json
└── tailwind.config.js
All commands are run from the root of the project, from a terminal:
Command | Action |
---|---|
npm install |
Installs dependencies |
npm run dev |
Starts local dev server at localhost:3000 |
npm run build |
Build your production site to ./dist/ |
npm run preview |
Preview your build locally, before deploying |
npm run astro ... |
Run CLI commands like astro add , astro check |
npm run astro -- --help |
Get help using the Astro CLI |