understanding-astro / understanding-astro-book Goto Github PK
View Code? Open in Web Editor NEWLearn to build remarkably fast websites with Astro ✨
Home Page: https://ohans.me/understanding-astro
Learn to build remarkably fast websites with Astro ✨
Home Page: https://ohans.me/understanding-astro
I never used a framework or TypeScript before, but the image profile width and height has a value of 100px (px threw an error). It should be without px?
// 📂 src/pages/index.astro
<img
src={profilePicture}
alt="Frau Katerina's headshot."
width="100px"
height="100px"
/>
Hello,
Big thanks for this free book!
Just wanted to say the book can be compressed easily to around 28MB without loss of detail, 82% compression.
Saves bandwidth and storage 😄
href="{to}"
Should be
href={to}
---
import layout from "../layouts/mainLayout.astro";
<layout data-astro-cid-j7pv25f6="">
<div class="profile" data-astro-cid-j7pv25f6="">
<img src="https://i.imgur.com/JPGFE75.jpg" class="profile__picture" alt="Frau Katerina's headshot." width="100px" height="100px" data-astro-cid-j7pv25f6="">
<div class="profile__details" data-astro-cid-j7pv25f6="">
<h1 data-astro-cid-j7pv25f6="">Frau Katerina</h1>
<h2 data-astro-cid-j7pv25f6="">VP of Engineering at Goooogle</h2>
<p data-astro-cid-j7pv25f6="">
Helping developers be excellent and succeed at building scalable products
</p>
</div>
</div>
</layout>
---
import Layout from "../layouts/mainLayout.astro";
- <layout data-astro-cid-j7pv25f6="">
+ <main>
<div class="profile" data-astro-cid-j7pv25f6="">
<img src="https://i.imgur.com/JPGFE75.jpg" class="profile__picture" alt="Frau Katerina's headshot." width="100px" height="100px" data-astro-cid-j7pv25f6="">
<div class="profile__details" data-astro-cid-j7pv25f6="">
<h1 data-astro-cid-j7pv25f6="">Frau Katerina</h1>
<h2 data-astro-cid-j7pv25f6="">VP of Engineering at Goooogle</h2>
<p data-astro-cid-j7pv25f6="">
Helping developers be excellent and succeed at building scalable products
</p>
</div>
</div>
+ </main>
- </layout>
Is the difference in rendering due to Astro ?
Astro v3.5.3
Node v18.17.1
System Linux (x64)
Package Manager pnpm
Output static
Adapter none
Integrations none
In the age where Internet are getting faster, most websites have are still slow that user are expecting the page to load as quick a possible, view transition is a good direction for Astro for better UX or turbolink. Adding these chapters will open new door for the curious developers.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.