Astro Websites
Astro CLIs
git clone #theme
npm install
npm run dev
#npm run build
npm install -g http-server
http-server dist
Astro Themes
Find astro themes at: https://astro.build/themes/
Photo Gallery Themes
What I like about Musee Astro Theme 📌
- Simplicity: place your folder under
/src/assets/images/original/
and you are good to go - Images are optimized to
.webp
at build time- They go from ~1.92GB to 508mb (~75% reduction)
#npm install
npm install astro-purgecss@latest
- Start development server
npm run dev
#npm run build
GPL3.0 | Fast, responsive , self-hosted image gallery. Ships minimal JS to the client.
One-page gallery design with a fully functional lightbox, designed by HTML5 UP
Blogs
MIT 🎈gblog, an open-source, simple and beautiful blog built with Astro
MIT | Very cool site with search and mdx
GPL3.0 | 📚 Openblog is an elegant, simple, and user-friendly blog. Focused on accessibility, SEO and performance.
MIT Pacamara is a simple blog theme for Astro that uses md and mdx files to store your content.
Dev Blogs
This one could also be used for CV thanks to its work section.
Unlicensed | This is a template with a highly minimalist style, greatly inspired by Apple’s design concept. It is built with Astro, TailwindCSS, GSAP, and Three.js.
App Directory
Looking for app directories or blog sections that you can filter interactively?
Unlicensed | Astro template for a directory website in minimal theme, with reactjs + tailwind + shadcn
What I like about Astro Template Directory Theme 📌
- Search working in prod and also in Dev! Using
lucide-react
:
npm install lucide-react
Unlicensed | A directory theme for Astro.
MIT | Replicate the design of mobbin.com to test the news components of shadcn-ui. #builtinpublic
This one has a blog which can be filtered per tags:
MIT | Differents pages and examples apps built with Astro v4.5, shadcn/ui & react js. Open Source.
Services
Restaurants
Unlicensed | Restaurant website template
- Very interesting video, as soon as you enter
- MultiLang (i18n)
AstroRante is a state-of-the-art website theme crafted for fine dining establishments. Combining the power of Astro, Storyblok CMS, Vue, and Tailwind, AstroRante delivers an unparalleled online presence for your restaurant.
Weddings
Modelling
MIT | Interesting and simple site
CV Themes
If you are looking to impress with a new curriculum, why not doing it as a web?
MIT | A fully customizable template to create your online (and paper) resume without writing a single line of code.
MIT | A free, easy-to-use CV template with a clean design. Just fill in your details and you’re ready to go!
Links / Bento
An Astro theme that replicates Linktree and Linkinbio rolled in one. Optional TinaCMS on top.
Presentations with Astro
Product
- With very interesting video sections!
Ejemplo de landing de Tesla con HTML, CSS, JavaScript, Astro y Tailwind
Docs
- Supports
.mdx
and i18n - Search built in (with PageFind)
- When scrolling, you see in which section you are
- Blog section can be done with https://github.com/HiDeoo/starlight-blog
🌟 Build beautiful, accessible, high-performance documentation websites with Astro
Startup
MIT
FAQ Astro
Important Files for all Astro Webs 📌
Look always for the <head>
- It will guide you to a Base.astro
, BaseLayout.astro
, head.html
…
In there you can do interesting things, like adding web analytics.
How to Install Dependencies 📌
checking dependencies
npm list @astrojs/starlight
npm install @astrojs/starlight
npm install @astrojs/starlight --legacy-peer-deps #if you have some dep issues
Better SEO for Astro 📌
- Seo Package for astro:
import { AstroSeo } from '@astrolib/seo';
WebSearch in Astro 📌
As in the withastro/starlight Theme
One of the most complete Astro themes ive seen - also supporting several languages
Optimized images in Astro mdx Posts 📌
You will need astrojs/mdx installed first and use it within .mdx
files:
import { Image } from 'astro:assets'
import photopost1b from '/src/assets/img_folder/image.jpg';
<figure>
<Image src={photopost1b} width={500} height={200} alt="Exploring Astro Images" />
<figcaption class="caption">Say hi to Astro</figcaption>
</figure>