diff --git a/assets/css/src/events-grid.css b/assets/css/src/events-grid.css index b1fb734..fcc25cf 100644 --- a/assets/css/src/events-grid.css +++ b/assets/css/src/events-grid.css @@ -56,6 +56,17 @@ z-index: 3; } +.hero__image { + position: relative; +} + +.hero__image a { + position: absolute; + display: block; + inset: 0; + z-index: 3; +} + @media screen and (max-width: 800px) { .events-grid { --padding-vertical: 10vw; diff --git a/assets/css/src/hero.css b/assets/css/src/hero.css index c6a26ed..85aa68f 100644 --- a/assets/css/src/hero.css +++ b/assets/css/src/hero.css @@ -55,6 +55,10 @@ margin-right: 2rem; } +.hero .image-wrapper { + height: 100%; +} + .hero__image { height: calc(100vh - var(--empty-space) - 2 * var(--padding-vertical)); } @@ -66,6 +70,10 @@ object-fit: cover; } +.hero__image:hover .image-cover { + opacity: 0; +} + @media screen and (max-width: 800px) { .hero__text h2 { text-align: center; diff --git a/assets/dist/style.css b/assets/dist/style.css index 7cb2b4a..40ffd72 100644 --- a/assets/dist/style.css +++ b/assets/dist/style.css @@ -828,6 +828,10 @@ button:focus-visible { margin-right: 2rem; } +.hero .image-wrapper { + height: 100%; +} + .hero__image { height: calc(100vh - var(--empty-space) - 2 * var(--padding-vertical)); } @@ -839,6 +843,10 @@ button:focus-visible { object-fit: cover; } +.hero__image:hover .image-cover { + opacity: 0; +} + @media screen and (max-width: 800px) { .hero__text h2 { text-align: center; @@ -1161,6 +1169,17 @@ a.to-blank:hover > .ticket svg path.dot { z-index: 3; } +.hero__image { + position: relative; +} + +.hero__image a { + position: absolute; + display: block; + inset: 0; + z-index: 3; +} + @media screen and (max-width: 800px) { .events-grid { --padding-vertical: 10vw; diff --git a/site/blueprints/site.yml b/site/blueprints/site.yml index acda1e0..f09e74e 100644 --- a/site/blueprints/site.yml +++ b/site/blueprints/site.yml @@ -76,7 +76,7 @@ tabs: label: Image type: files min: 1 - max: 1 + max: 2 layout: cards size: full image: diff --git a/site/templates/home.php b/site/templates/home.php index 9a0bab7..f27bf1e 100644 --- a/site/templates/home.php +++ b/site/templates/home.php @@ -8,12 +8,18 @@