diomed / astro-landing-page

A Tailwind CSS landing page built with Astro

Home Page:https://astro-landing-page-jet.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Astro landing-page

yarn create astro --template jungley8/astro-landing-page

πŸš€ Project Structure

Inside of your Astro project, you'll see the following folders and files:

/
β”œβ”€β”€ public
β”‚   └── favicon.svg
β”œβ”€β”€ src
β”‚   β”œβ”€β”€ components
β”‚   β”‚   β”œβ”€β”€ BlogPostCard.tsx
β”‚   β”‚   β”œβ”€β”€ CTA.tsx
β”‚   β”‚   β”œβ”€β”€ Card.astro
β”‚   β”‚   β”œβ”€β”€ Data.tsx
β”‚   β”‚   β”œβ”€β”€ Feature.tsx
β”‚   β”‚   β”œβ”€β”€ Newsletter.tsx
β”‚   β”‚   β”œβ”€β”€ Price.tsx
β”‚   β”‚   β”œβ”€β”€ Signin.tsx
β”‚   β”‚   └── Stats.tsx
β”‚   β”œβ”€β”€ env.d.ts
β”‚   β”œβ”€β”€ layouts
β”‚   β”‚   β”œβ”€β”€ Footer.tsx
β”‚   β”‚   β”œβ”€β”€ Header.tsx
β”‚   β”‚   └── Layout.astro
β”‚   └── pages
β”‚       β”œβ”€β”€ 404.astro
β”‚       β”œβ”€β”€ blog
β”‚       β”‚   β”œβ”€β”€ [id].astro
β”‚       β”‚   └── index.astro
β”‚       β”œβ”€β”€ contact.astro
β”‚       β”œβ”€β”€ index.astro
β”‚       β”œβ”€β”€ price.astro
β”‚       └── signin.astro
β”œβ”€β”€ tailwind.config.cjs
└── package.json

Astro looks for .astro or .md files in the src/pages/ directory. Each page is exposed as a route based on its file name.

There's nothing special about src/components/, but that's where we like to put any Astro/React/Vue/Svelte/Preact components.

Any static assets, like images, can be placed in the public/ directory.

🧞 Commands

All commands are run from the root of the project, from a terminal:

Command Action
yarn Installs dependencies
yarn dev Starts local dev server at localhost:3000
yarn build Build your production site to ./dist/
yarn preview Preview your build locally, before deploying
yarn astro ... Run CLI commands like astro add, astro check
yarn astro --help Get help using the Astro CLI
yarn prettier Formate and beautify your code

πŸ‘€ Want to learn more?

Feel free to check our documentation or jump into our Discord server.

Demo

astro-landing-page demo

Deploy

Host your own live version of Astro-landing-page with Vercel.

Deploy with Vercel

About

A Tailwind CSS landing page built with Astro

https://astro-landing-page-jet.vercel.app

License:MIT License


Languages

Language:TypeScript 65.9%Language:Astro 31.9%Language:JavaScript 1.2%Language:Shell 0.7%Language:Dockerfile 0.3%