From b8385184b8492a96bb554d4f78e7e9ca3bcdfb49 Mon Sep 17 00:00:00 2001 From: kailasnadh790 <53608019+kailasnadh790@users.noreply.github.com> Date: Thu, 18 Jan 2024 11:45:57 -0500 Subject: [PATCH] Revert "hero" This reverts commit 5e3525ecacd524d5e1637f34927fdbb09fc113c7. --- cigaradvisor/blocks/hero/hero.css | 17 +++-------------- cigaradvisor/blocks/hero/hero.js | 7 +------ 2 files changed, 4 insertions(+), 20 deletions(-) diff --git a/cigaradvisor/blocks/hero/hero.css b/cigaradvisor/blocks/hero/hero.css index fbb9d13d..ba4b0729 100644 --- a/cigaradvisor/blocks/hero/hero.css +++ b/cigaradvisor/blocks/hero/hero.css @@ -2,6 +2,7 @@ main .hero-container { padding: 0; + margin-bottom: 10%; } main .hero-container > div { @@ -14,7 +15,7 @@ main .hero.block { } main .hero.block.under-nav { - padding-top: 60px; + margin-top: -43px; } main .hero.block .hero-image { @@ -43,7 +44,7 @@ main .hero.block .hero-image img { } main .hero.block .hero-content { - padding-top: 120px; + padding-top: 80px; } main .hero.block h1 { @@ -54,18 +55,6 @@ main .hero.block h1 { text-shadow: 3px 3px var(--clr-black); } -/* align above h1 vertically centered with img as background */ -main .hero.block .hero-content h1 { - display: flex; - justify-content: center; - align-items: center; - height: 100%; - width: 100%; - position: absolute; - top: 0; - left: 0; -} - /* hero search */ main .hero.block .hero-search { display: flex; diff --git a/cigaradvisor/blocks/hero/hero.js b/cigaradvisor/blocks/hero/hero.js index af7d84a2..b8ba11bb 100644 --- a/cigaradvisor/blocks/hero/hero.js +++ b/cigaradvisor/blocks/hero/hero.js @@ -19,7 +19,6 @@ function buildSearch() { } export default async function decorate(block) { - block.classList.add('under-nav'); const style = getMetadata('hero-style'); if (style) { block.classList.add(style.toLowerCase()); @@ -31,10 +30,6 @@ export default async function decorate(block) { image.replaceChildren(block.querySelector('picture')); const content = document.createElement('div'); content.classList.add('hero-content'); - if (document.querySelector('body.homepage')) { - content.append(header, buildSearch()); - } else { - content.append(header); - } + content.append(header, buildSearch()); block.replaceChildren(image, content); }