Understand the Astro project structure
mainA standard Astro project follows this directory structure:
src/pages/: Contains.astroor.mdfiles. Each file is exposed as a route based on its filename.src/components/: Recommended location for Astro, React, Vue, Svelte, or Preact components.src/layouts/: Contains layout components used to wrap pages.public/: Stores static assets like images and favicons that are served directly.package.json: Defines project dependencies and scripts.
/
├── public/
│ └── favicon.svg
├── src/
│ ├── components/
│ │ └── Card.astro
│ ├── layouts/
│ │ └── Layout.astro
│ └── pages/
│ └── index.astro
└── package.json