yarn create astro --template eoc.online/astro-landing-page
Inside of your Astro project, you'll see the following folders and files:
/
โโโ public
โ โโโ favicon.svg
โโโ src
โ โโโ components
โ โ โโโ insightsPostCard.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
โ โโโ insights
โ โ โโโ [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.
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:4321 |
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 |
old:
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 |
Feel free to check our documentation or jump into our Discord server.
Possible EOC online home page.
- https://tailwindui.com/templates & https://headlessui.com/ & https://www.tailwindtoolbox.com/
- https://accessible-astro.netlify.app/accessible-components/
- consider using aspects of https://tailus.gumroad.com/l/astls-premium
- tailgrids... https://play-astro.tailgrids.com/ and https://tailgrids.com/components
- CubeCSS? variant of BEM: https://astro.build/themes/details/astro-cube/
- https://astro.new
- Hosting: https://vercel.com/products/managed-infrastructure
- design aspects: https://every-layout.dev/
- https://astro.build/themes/details/welcome-to-astro/
- JSON based website: https://github.com/JimmyCamus/luna-landing & https://luna-landing-rust.vercel.app/
- themes: https://lexingtonthemes.com/pricing/#features w/ discount code: LEXINGTON30
- https://astro.build/themes/details/atom/
- Tailus tailwindcss components: https://preview.tailus.io/atom/ https://tailus.io/ https://beta.tailus.iohttps://tailwindcss.com/docs/themer/plugin/
- https://astro-moon-landing.netlify.app/
- https://ev0.gndx.dev/
- https://astromax.vercel.app/
- https://www.tailwindresources.com/popular/free/
- http://jekyllthemes.org/
- https://astro.build/integrations/5/
- original code mostly from: https://tailwindui.com/components/marketing/page-examples/landing-pages
- https://strapi.io/blog/how-to-build-a-blog-with-astro-strapi-and-tailwind-css
- https://docs.astro.build/en/guides/markdown-content/#mdx-features
- https://dev.to/paulasantamaria/introduction-to-yaml-125f (frontmatter at top of blog posts...)
npm install -g npm@latest nvm install node
yarn dev