Astro makes websites faster & easier to build

  Рет қаралды 114,158

Kevin Powell

Kevin Powell

Күн бұрын

There’s been a lot of hype around Astro in the frontend community, and with good reason! It has a fantastic dev-experience, ships zero-JS by default, and maybe what I love the most about it, it super easy to get started with!
It’s incredibly powerful and you can do some amazing things with it, but unlike some other solutions out there, you don’t need to get knee-deep into all of that before you can start using it. It feels like a very natural progression from vanilla HTML, CSS, and JS, and you can start slow and slowly level up your game with it over time.
In this one, I’m looking more at some of the simple things that you can do to work faster (and hopefully show you how easy it is to do!), rather than a look at starting a project from zero, but if you’d like to see a project where we build it starting from scratch, please do let me now 🙂.
🔗 Links
✅ The video where I made this with HTML & CSS:
✅ Astro’s site: astro.build/
✅ Astro’s documentation: docs.astro.build/en/getting-s...
✅ Astro extension for VS Code: marketplace.visualstudio.com/...
⌚ Timestamps
00:00 - Introduction
00:32 - A quick look at the benefits of Astro
02:15 - Adding my CSS through an import
03:12 - Creating a component with scoped CSS
07:50 - Creating components that use props
12:05 - Creating content from markdown files
#css
--
Come hang out with other dev's in my Discord Community
💬 / discord
Keep up to date with everything I'm up to
✉ www.kevinpowell.co/newsletter
Come hang out with me live every Monday on Twitch!
📺 / kevinpowellcss
---
Help support my channel
👨‍🎓 Get a course: www.kevinpowell.co/courses
👕 Buy a shirt: teespring.com/stores/making-t...
💖 Support me on Patreon: / kevinpowell
---
My editor: VS Code - code.visualstudio.com/
---
I'm on some other places on the internet too!
If you'd like a behind the scenes and previews of what's coming up on my KZbin channel, make sure to follow me on Instagram and Twitter.
Twitter: / kevinjpowell
Codepen: codepen.io/kevinpowell/
Github: github.com/kevin-powell
---
And whatever you do, don't forget to keep on making your corner of the internet just a little bit more awesome!

Пікірлер: 278
@KevinPowell
@KevinPowell 11 ай бұрын
I've had a few people ask, and no, this isn't an ad, I just really like Astro a lot and thought I'd share it with you. If ever I do a sponsored video, it'll be marked as one and I will also mention it during the video... but I also don't do sponsored content anymore. Most I'll do is maybe have an affiliate link if the service has one, and it's a product I actively use and believe is good.
@codokit
@codokit 11 ай бұрын
It looks like ad because other opinions are cleaned from comments.
@joachimd9586
@joachimd9586 11 ай бұрын
Hey Kevin, just wanted to let you know that I seriously appreciate all the effort you've put into making these videos. Sending warm greetings from Denmark! 💗
@NECOdes
@NECOdes 11 ай бұрын
@@codokit weird logic. Also, they're just buried under new comments, nothing's cleaned.
@codokit
@codokit 11 ай бұрын
@@NECOdes Thanks for letting me know. Dont know about this behavior.
@KevinPowell
@KevinPowell 11 ай бұрын
​@@codokit I never remove any comments from my videos, with maybe a rare exception of something that's offensive, which luckily doesn't happen often at all. If a comment doesn't show up, it's been filtered by YT automatically.
@Morrile1
@Morrile1 11 ай бұрын
What I like about this video is Kevin has gone into more detail with examples (the only way I can learn) and would love to see building a multiple website using templates and more components.
@andrewrea2799
@andrewrea2799 11 ай бұрын
I’d be interested in more videos re building with Astro. I’m particularly interested in how I could use data files like Jason or csv and how I would handle multiple image files for responsiveness and performance and using a cdn. Hooking it all up to a CMS would be cool too.
@zalodias
@zalodias 11 ай бұрын
Nice to see you jumping into a framework. I really appreciate you keeping it vanilla & simple in most videos, but a component-based environment with props is a must-have for web dev. Astro looks very lightweight, which is great!
@Issvor
@Issvor 11 ай бұрын
Holy crap I didn't realize that Astro did this! I started with React and all but don't really take advantage of a lot of it, so I usually just use it to make components and scoped styling. Turns out Astro is right up my alley:)
@arielspalter7425
@arielspalter7425 11 ай бұрын
By far the clearest and well paced tutorial of Astro. Subscribed!
@cedrictheveneau9141
@cedrictheveneau9141 11 ай бұрын
As someone who started working with React 3 months ago, it now feels way easier to understand, while watching the video I was like « Okay, this makes sense because in React… » Sometimes, looking at someone coding really helps getting the hang of a concept, plus you’re a wonderful teacher Kevin, thank you for your hard work !
@cindrmon
@cindrmon 11 ай бұрын
i have grown so much interest in SSGs (especially Hugo, since I used it the most), and by far, this seems like one of the best SSGs I have ever found! Thanks for the wonderful introduction, and I think I wanna try astro right now
@elhaambasheerch7058
@elhaambasheerch7058 11 ай бұрын
You explain complex javascript topics so well, looking forward to more framework tutorials in the future!
@diesieben07
@diesieben07 11 ай бұрын
I love Astro! It has transformed how I work on websites, nice to see you looking at it! One thing I want add though: At about 6:40 you talk about just using element selectors in your components and how Astro keeps the specificity low using :where. This has actually bit me in the past, because the order of CSS from different components is not really guaranteed. So you might have your global ul styles overwrite your local component styles, which can be really nasty to debug. That's why I stick to using classes within my components still.
@juanferrer5885
@juanferrer5885 11 ай бұрын
I like it so match that you're talking about Astro, please make more videos about it! Great content as always!
@avidworkslol
@avidworkslol 11 ай бұрын
I used Astro once and instantly fell in love. Its simplicity is such a breath of fresh air compared to the other frameworks out there.
@xorbite
@xorbite 10 ай бұрын
Kinda nice to see what the possibilities are using Astro. Thanks a lot for the great explanation! As always, very clear and easy to understand :D
@iohn8688
@iohn8688 11 ай бұрын
This has been great to help me understand Astro better, look forward to hopefully seeing more videos on it in the future, thanks.
@artu-hnrq
@artu-hnrq 11 ай бұрын
I've never saw Astro in depth before. It was nice to know it from your clean and calm explanation... Thankz
@radvilardian740
@radvilardian740 11 ай бұрын
so glad you introduce this astro man, I am gonna use it to create my personal project's documentation.
@maurosquare1243
@maurosquare1243 11 ай бұрын
Super easy and simple for who's (like me) don't know react/vue. Seems very easy to understand and use.
@shayanzamani9907
@shayanzamani9907 11 ай бұрын
Event though I know some Vue, Astro is still a better choice for some kinds of websites (like the one I mentioned in another comment); specially performance-wise.
@ko-Daegu
@ko-Daegu 11 ай бұрын
@@shayanzamani9907 can i make a webapp like a chatapp with astro ? is it recommended or go with sveltkit
@shayanzamani9907
@shayanzamani9907 11 ай бұрын
Thanks for this cool video. I had heard about Astro here and there, but never had the time to go check it out to see the problems it solves for myself. Actually, I need to refactor my old, personal website using almost vanilla everything and bring in some new features, but TBH, I was concerned about the performance since it needed lots of JS-related stuff, from multilingual features to components; And this video right here, opened the door to a way better solution for all that. :)
@TytusDubel
@TytusDubel 10 ай бұрын
i think I'd learn really well Astro if you'd be The Teacher. Seriously, you got a wonderful talent to explain things, easily..you make them look so obvious. Thank You Kevin.
@spencerkeene
@spencerkeene 11 ай бұрын
I love this! I wanted something with reusable components that was easy to update for my personal website. This solution is much more lightweight than React and is insanely easy to update! The ability to add markdown so effortlessly is pretty cool as well.
@kieranbarker1902
@kieranbarker1902 11 ай бұрын
Great video! I've been meaning to look at Astro for a while and this was a really nice intro. ✨
@antontsvil245
@antontsvil245 11 ай бұрын
This is so cool. Im learning React a few weeks and seeing how everything related and linked with Js actually so useful!
@ocratest
@ocratest 11 ай бұрын
Brilliant! This is a nice toe dip into the very overwhelming world of frameworks.
@ember2081
@ember2081 11 ай бұрын
Love to see you making a vid on Astro, thought it'd be in your ballpark, not too divorced from plain HTML
@KevinPowell
@KevinPowell 11 ай бұрын
Yeah, feels like a really nice natural progression instead of a steep learning curve, which I really appreciate :D
@EamonnCottrell
@EamonnCottrell 7 ай бұрын
Scoped styling = very cool! Thanks for this quick overview 👍👍
@and_rotate69
@and_rotate69 11 ай бұрын
Bro makes 22min feel like 5min, i totally enjoyed the video, same goes for ur other videos.
@arabiccola
@arabiccola 10 ай бұрын
It must be mentioned that ASTRO competes in the "meta framework" space, which is basically a framework on top of another framework (or library) such as React/Vue/Svelte. Thank you for bringing your excellent teaching skills outside of Vanilla HTML/CSS
@pebcak
@pebcak 7 ай бұрын
Great intro tutorial. I'm excited to start working with Astro.
@oguching8379
@oguching8379 11 ай бұрын
I like 11ty but as simple as it is, it can take some learning to get set up. These days most people know React or Vue, what Astro does well is go a step beyond 11ty and allow you use patterns you are already used to in React or Vue. I really like it. It feels like less to learn, like I already know how to use it. Thanks for the quick overview.
@borbelyviktor3057
@borbelyviktor3057 Ай бұрын
Very good content. Keep going! I just started with Astro and as an experienced developer I like its concepts.
@nielslytzdk
@nielslytzdk 10 ай бұрын
Astro is a fantastic tool, I fell in love with it right away 🙂. I would love a video about content collections, as I seem to struggle getting it to work.
@maptastik
@maptastik 11 ай бұрын
Thank you for exploring Astro with plain old HTML/CSS/JS. Web dev is a small part of my job, but I do enough that something like Astro could be useful. I don’t think that would have been as clear to me if you’d used, for example, React or Svelte.
@denizorsel1029
@denizorsel1029 11 ай бұрын
I like the initiative eventhough the projects I am involved in requires much more complexity yet for simple things I will give it a try.
@Anth-ony
@Anth-ony 11 ай бұрын
MOARRRRRRR! This was great and I'd love more videos using Astro starting from scratch with examples of different types of templates we could use.
@jadinethomas8935
@jadinethomas8935 11 ай бұрын
Damn those *MD files are amazing. I feel like they would be so easy to import/export. Knowing a bit of view js definitely made it easier.
@mucookul
@mucookul 11 ай бұрын
Thank You, this is actually what I needed to know about astro and you actually explained Props in a way I could understand.
@_Saike
@_Saike 11 ай бұрын
Kevin! you made my design life just a little bit less frustrated. Thank you for simple explanation.
@danatronics9039
@danatronics9039 11 ай бұрын
Oh this is awesome. I had previously been using Express + EJS for this, but this looks like a good modern alternative.
@maddsua
@maddsua 11 ай бұрын
Before even watching the video, I want to point out that Astro is awesome! Been using it in productions for the last 2 months and I can't be more happy about it!
@NECOdes
@NECOdes 11 ай бұрын
Been hearing about it so much lately, but I was hesitant to use it because I'm still improving my vanilla js/css and html skill. But this looks nothing like other frameworks, and not much different from the vanilla. Passing parameters between components kinda reminds me of Ejs, I like it, I may try Astro for my next side project. Thank you for this video.
@lmd4881
@lmd4881 9 ай бұрын
fantastic, Astro is so cool :) would love to see a full project as a paid course and perhaps bring in some cool animations and how you do those in astro? would be nice :)
@cseymour97
@cseymour97 11 ай бұрын
I come from the world of wordpress and advanced custom fields. A lot of process and structure felt very familiar and I absolutely love astro! If at any point a client want something light and static it's my go-to!
@cryptoboy1461
@cryptoboy1461 11 ай бұрын
Astro is one of my favorite frameworks. Simple and easy to use. Love your videos👍👍
@thesearcher4892
@thesearcher4892 11 ай бұрын
Thanks for the awesome tutorial. If you would do more tutorials about Astro, that would be just amazing. For example, it would be interesting how to integrate a headless CMS like Directus into Astro. PS: I love your channel :)
@chrizzzly_hh
@chrizzzly_hh 11 ай бұрын
Great beginner tutorial for Astro! One thing: the drawback using the components with md like you did in your example is that you haven't shown a way to actually sort those entries by date - which is mostly always the use case for blogs or - like in your example - job positions. It would be great to show of how to use templating properly with astro to achieve this with MD files (otherwise you would need to rename every file which would make it way more complex than the traditional way :) )
@MsRobynM
@MsRobynM 11 ай бұрын
Great video! And yes, I'd like to see some more content on Astro.
@JoeTower
@JoeTower 8 ай бұрын
Thank you for the video, Kevin! I would love to see more Astro videos from you. You explain things so well! I've started using Astro and love it, as well. One challenge I've found is: responsive images. Specifically, out-of-the-box responsive images. I'm always looking for a modern replacement to use for a Jekyll site, however, that replacement needs a responsive image setup that supports markdown use along with page-based use (.astro files, .mdx, etc). Anyway, do you have recommendations around creating a solid responsive image setup in Astro? I know Cloudinary is an option, but I'd prefer local asset image optimization and re-sizing.
@brentjackson6966
@brentjackson6966 11 ай бұрын
Hi Kevin, Like yourself, lean towards writing vanilla HTML, CSS and JS. I'm generally dubious about frameworks and libraries. They take time and effort to learn, and then they add technical debt to a project - anyone coming to the project (even if it's yourself 6 months down the track) has to understand the framework and what it's doing to the code or they'll mess up what you've done. That said, you have sold me. Astro looks light enough and useful enough that it definitely merits further investigation. Thank you!
@briankgarland
@briankgarland 11 ай бұрын
Astro is great. In one week I learned how to use it then re-created on of our company's web sites as a proof of concept (used Contentful api to pull in product data). Awesome.
@AMoktar
@AMoktar 11 ай бұрын
Awesome 👏, thanks bro. Pretty straight forward ❤
@nagymihaly8072
@nagymihaly8072 11 ай бұрын
Thank you for this! Could you (or have you) done a video about front-end frameworks, comparing them and which one should you use as a beginner?
@chrishanthacosta4093
@chrishanthacosta4093 6 ай бұрын
Best astro intro!
@Niksorus
@Niksorus 9 ай бұрын
Great intro to Astro! I've moved to it for my portfolio website, and I keep using too much React 🤣 The Astro components look better, but it's so great I can bring so much old code over.
@Action2me
@Action2me 11 ай бұрын
Instantly liked this video the second you mentioned Svelte
@JimKernix
@JimKernix 11 ай бұрын
Definitely more videos on Astro!
@Tausif_Khan_07
@Tausif_Khan_07 11 ай бұрын
We loved it we need more Astro content
@kollinmurphy
@kollinmurphy 11 ай бұрын
I've been using Astro since it became stable. It's amazing!
@Dafty23
@Dafty23 11 ай бұрын
Wow, what an amazing video, thank you sir!
@EmericOwczarz
@EmericOwczarz 11 ай бұрын
OMG ! Just the content i was hoping you'd do someday ❤ It's been quite some time i'm using Astro now, and i'm loving it. A pleasure to see it featured here so many people can discover and make things with this great tool
@brentgreeff1115
@brentgreeff1115 11 ай бұрын
This was amazing - I would love to see more. - I have used React, Vue but I really dont think they compare to my bread-and-butter - which is Rails. - Astro reminds me of web-components. - For content that should not change after deploy - this seems like a perfect choice. How about a contact-us page video, with Email provider integration, or anything where you are requesting data from or posting data to an API.
@paulorodriguez6288
@paulorodriguez6288 11 ай бұрын
man i really do love Astro, thank you for making a tutorial about it,
@deeprelaxgarden
@deeprelaxgarden 8 ай бұрын
Thank you for the awesome tutorial! What is the best way to make responsive layouts on Astro? media query on each components? It can be confusing when you have many small components to reuse them later... ?
@bobmarteal
@bobmarteal 11 ай бұрын
Great as usual. Would be interested in a short on points you might have for using Eleventy vs. Astro.
@KevinPowell
@KevinPowell 11 ай бұрын
I love both. I just think Astro is easier to get started with, since you don't also need to learn a new templating language.
@danieljayne8623
@danieljayne8623 11 ай бұрын
Well, I'm sold!
@drucifer6
@drucifer6 11 ай бұрын
Great video Kevin. Astro hopefully will shift the mindset of devs that over-engineer the most basic of projects.
@Tez_Tickle
@Tez_Tickle 11 ай бұрын
this comes at the exact right time for me.
@vipe2383
@vipe2383 11 ай бұрын
Was a really good video, could be cool to see more videos with technologies that you use like css framework (if you use one) or stuff like that
@KevinPowell
@KevinPowell 11 ай бұрын
I don't use any frameworks, thankfully, but I also primarily work on my own projects these days, so I get to decide 😂
@DanteMishima
@DanteMishima 11 ай бұрын
Whoop whoop ! My current site is built with Astro!
@websitewalaofficial
@websitewalaofficial 11 ай бұрын
love it sir. big fan of yours
@genaroibc
@genaroibc 10 ай бұрын
Astro is pure love ❤
@prodbybarn
@prodbybarn 11 ай бұрын
Big fan, always an inspiration
@CMB696
@CMB696 11 ай бұрын
Just blown my mind 🤯
@markuslanggeng
@markuslanggeng 11 ай бұрын
Super awesome, I can't wait to try astro
@herrlindner
@herrlindner 10 ай бұрын
🎉 YES! Let's dig into Astro!
@EugeneKoshelev
@EugeneKoshelev 4 ай бұрын
Astro is pretty cool! Thanks!
@dream_sounds
@dream_sounds 11 ай бұрын
Hi Kevin, amazing content. Thank you. Can you please make a full Astro video with fetching data from the API etc.
@kirawesh
@kirawesh 11 ай бұрын
Amazing. Reminds me of Hubspot language. Thank you for introducing ASTRO. I would like to know how it solves all the accessibility needs.
@rickdeckard8002
@rickdeckard8002 11 ай бұрын
You're the man Kevin!
@uniqueux
@uniqueux 10 ай бұрын
I've been using Astro to build my site and while I'm struggling I feel like it's a good step in my front end dev/UX career
@blokche_dev
@blokche_dev 11 ай бұрын
I'm in love with Astro!
@hiroyukinumaguchi1984
@hiroyukinumaguchi1984 8 ай бұрын
Great!
@Allformyequine
@Allformyequine 10 ай бұрын
Ooooooh Luv this Astro is SO cool!
@wooviee
@wooviee 11 ай бұрын
This is a lot like Vue, but even easier. That's great!
@netssrmrz
@netssrmrz 11 ай бұрын
Great video! Saves me having to read the Astro docs. Regarding Astro, not my cup of tea. Am happy with vanilla Web Components, JSON, and JavaScript. Didn't feel the savings on the keyboard justify the ugly generated code and additional project dependency.
@mhl_5
@mhl_5 11 ай бұрын
tyvm i love your content
@sebastian5100630
@sebastian5100630 11 ай бұрын
Please more video like this!
@phucnguyen0110
@phucnguyen0110 11 ай бұрын
I actually use Astro to learn and build scratch HTML + CSS sites, and even SASS/SCSS lol - it's just so convenient!
@roswel47
@roswel47 11 ай бұрын
This exactly i'm looking for my personal project.
@s1ckb0y100
@s1ckb0y100 9 ай бұрын
Cool stuff, thank you! What‘s the difference to something like Hugo in your opinion?
@ThomasProsserZurich
@ThomasProsserZurich 11 ай бұрын
I managed to publish the front of my wordpress site with it and since it loads all the content, it is blazingly fast. If you like, some alpine JS can help you manage state but there is no overhead! Only thin is that when I publish content, I need to rebuild but I guess that can also go into a wordpress hook somewhere. Add git to the mix and you can basically make a lightweight CI/CD system for your site that deploys in lightning speed
@mefesto_
@mefesto_ 11 ай бұрын
Nice to see using some frontend tools! Could you maybe show some good cases for Tailwind CSS? Where is this good where not? I saw some videos about Tailwind but my brain is blows up when I see so much classes on html tags 😄
@CaliburPANDAs
@CaliburPANDAs 10 ай бұрын
Kevin, please do more Astro content. Show how to use astro islands. please make video to build Blog website with CMS. thank u 🙏
@le_wuerzingeer
@le_wuerzingeer 11 ай бұрын
finite!!! more Astro videos, please
@disaster_dog
@disaster_dog 11 ай бұрын
I really struggled getting the content out of markdown files. Glad to see it's not as straight-forward as the frontmatter bits!
@Yesar1
@Yesar1 2 ай бұрын
Will you make a small project video on Astro with Svelte framework? It will be helpful for me and also for those who're interested in astro.
@nove1398
@nove1398 11 ай бұрын
Astro is pretty decent and not much indirection, i will definitely give it a try
@bradleyandrews2444
@bradleyandrews2444 11 ай бұрын
i really did learn alot of new things everthing in this video is new to me
@DenisEneotescu
@DenisEneotescu 11 ай бұрын
This is the peak of tutorials.
@lukas_berger
@lukas_berger 11 ай бұрын
The first part (with the components) looks a lot like how Pug (formerly known as Jade) works, just without the nicer syntax :P
@wazzadev7209
@wazzadev7209 11 ай бұрын
I'll definitely have fun with Astro
5 super useful CSS properties that don't get enough attention
16:23
Kevin Powell
Рет қаралды 138 М.
Everything You Need To Know About Astro
9:59
Awesome
Рет қаралды 23 М.
FOOTBALL WITH PLAY BUTTONS ▶️ #roadto100million
00:24
Celine Dept
Рет қаралды 158 МЛН
The problems with viewport units
13:23
Kevin Powell
Рет қаралды 349 М.
Astro Did It Again!!
13:13
James Q Quick
Рет қаралды 16 М.
Instant Web Development Mastery with Chrome DevTools
15:00
WebDev Frontiers
Рет қаралды 371
Incredible scroll-based animations with CSS-only
32:23
Kevin Powell
Рет қаралды 306 М.
Dynamic API Endpoints in Astro
30:59
Coding in Public
Рет қаралды 7 М.
It Doesn't Get Easier Than This
9:07
Awesome
Рет қаралды 42 М.
How I build a website from scratch
2:00:01
Kevin Powell
Рет қаралды 204 М.
What is Astro?
9:57
Kodaps Academy
Рет қаралды 6 М.
How to make a nice site with less CSS
18:56
Kevin Powell
Рет қаралды 55 М.
Stop over-engineering your CSS
3:55
Kevin Powell
Рет қаралды 91 М.