From a3f1f4bef24511ed6ca773bb3c33e1a8c26f28af Mon Sep 17 00:00:00 2001 From: Jake Runyan Date: Mon, 30 Jun 2025 14:31:22 -0700 Subject: [PATCH] Custom hero background --- recipes/src/css/custom.css | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/recipes/src/css/custom.css b/recipes/src/css/custom.css index 2bc6a4c..0809d95 100644 --- a/recipes/src/css/custom.css +++ b/recipes/src/css/custom.css @@ -28,3 +28,24 @@ --ifm-color-primary-lightest: #4fddbf; --docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.3); } + +/* Custom image on homepage */ +.hero--primary { + background-image: url('@site/static/img/want_to_cook.svg'); /* The path is relative to the `static` folder */ + background-size: cover; + background-position: center center; + background-repeat: no-repeat; +} + +/* Dark overlay matching above image so text pops. */ +.hero--primary { + background-image: + linear-gradient(rgba(40, 40, 40, 0.5), rgba(40, 40, 40, 0.5)), + url('@site/static/img/want_to_cook.svg'); + color: #ffffff; +} + +/* Enhance the default hero shadow. */ +.hero__title, .hero__subtitle { + text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7); +} \ No newline at end of file