Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion _sass/_home.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
@use 'sass:list';
@use 'sass:math';

$hero-images: [
"/media/background-home.webp",
];

// Selects a random hero image every time the site is built
$random-hero-image: nth($hero-images, random(length($hero-images)));

// Used for the "hero" header on the homepage
.section-home {
background-image: url("/media/background-home.webp");
background-image: url($random-hero-image);
background-size: cover;
// Background color is displayed while the image is loading,
// so that the text is still readable
Expand Down