Essential CSS
JavaScript Roadmap
Learn JavaScript
Mastering Web Typography
Practical Astro
Understanding Async JS
Unorthodox Tailwind
API Masterclass
Build and Deploy
The Beginner Freelancer
Real World Node
Profile Billing Logout
Practical Astro
Lesson Plan
  1. Content Systems
    1. Introduction
    2. An import alias
    3. Using Markdown
    4. Markdown extended
    5. Markdown component
    6. Markdown component in frameworks
    7. Content collections made easy
    8. Basic blogs
    9. Blogs made easy
    10. Prev/Next navigation
    11. Pagination made easy
    12. Better tag pages
    13. Paginated tag pages
    14. Markdown layouts
    15. Partials
    16. JS over JSON Data
    17. Dynamic 404 pages
    18. Putting everything together
    19. Other useful systems
  2. Image Systems
    1. Introduction
    2. Images are complicated because of this
    3. Astro's Image component
    4. Astro's Picture component
    5. Improvements over Astro's Image and Picture Components
    6. Images in Markdown and MDX
    7. Images in framework components
    8. Background images
    9. Art Direction with Astro
    10. Videos without layout shifts
    11. GIF Replacements and background video
    12. SVGs and icons
    13. SVG backgrounds
    14. Adding noise to images
    15. Asset caching on GitHub Actions
    16. Putting everything together
    17. Other useful systems

Introduction

1m:12s

Welcome to Image Systems!

If you think that images are complicated, you are not alone. It is one of the more complex parts of building a website. And it’s only painful as long as you don’t have the systems behind them.

Once the systems are in place, the rest is simply using them.

In this chapter, we will be looking at these 7 kinds of visual assets:

  1. Images
  2. Background Images
  3. Art direction
  4. Videos
  5. Background videos
  6. SVG and icons
  7. Background SVG

Finally, we’ll talk about caching images so your build process on GitHub Actions is fast — and free.

Splendid Astro

Throughout this module we’ll use a few components and utilities from Splendid Astro. Some of them are paid features and need a licence key to run. You can find instructions about your licence key (bundled together with this purchase) below.

You can install it with the @splendidlabz/astro package.

Terminal window
npm install @splendidlabz/astro

Once the package is installed, add your licence key to .env. You’ll find it in the email titled “Your Splendid Labz licence key”, and you can copy it again from your account page anytime.

Terminal window
SPLENDID_LICENSE_KEY=your-licence-key

Then import what you need from the package or its subpaths.

---
import { Image } from '@splendidlabz/astro'
---

We’ll start by examining the complexity behind images. Once you understand this, everything else begins to fall into place.

Let’s begin!