Skip to content

Commit

Permalink
Revert "hero"
Browse files Browse the repository at this point in the history
This reverts commit 5e3525e.
  • Loading branch information
kailasnadh790 committed Jan 18, 2024
1 parent 13e6994 commit b838518
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 20 deletions.
17 changes: 3 additions & 14 deletions cigaradvisor/blocks/hero/hero.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

main .hero-container {
padding: 0;
margin-bottom: 10%;
}

main .hero-container > div {
Expand All @@ -14,7 +15,7 @@ main .hero.block {
}

main .hero.block.under-nav {
padding-top: 60px;
margin-top: -43px;
}

main .hero.block .hero-image {
Expand Down Expand Up @@ -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 {
Expand All @@ -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;
Expand Down
7 changes: 1 addition & 6 deletions cigaradvisor/blocks/hero/hero.js
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand All @@ -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);
}

0 comments on commit b838518

Please sign in to comment.