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:
- Images
- Background Images
- Art direction
- Videos
- Background videos
- SVG and icons
- 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.
npm install @splendidlabz/astroOnce 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.
SPLENDID_LICENSE_KEY=your-licence-keyThen 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!
Welcome! Unfortunately, you don’t have access to this lesson. To get access, please purchase the course or enroll in Magical Dev School.
Unlock this lesson