Skip to content

Commit

Permalink
Change the hero logo
Browse files Browse the repository at this point in the history
  • Loading branch information
TomaszDziezykNetcentric committed Oct 29, 2024
1 parent ed3b535 commit ba91801
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 7 deletions.
15 changes: 13 additions & 2 deletions blocks/hero/hero.css
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,11 @@ main .hero-container .hero-wrapper {
position: absolute;
}

.hero .hero-flag svg {
width: auto;
height: auto;
}

.hero .hero-countdown {
text-align: center;
line-height: 91px;
Expand Down Expand Up @@ -246,7 +251,13 @@ main .hero-container .hero-wrapper {
}

.hero .hero-flag {
translate: 40px -50%;
translate: 40px -30px;
width: 100px;
height: auto;
}

.hero .hero-flag svg {
height: unset;
}

.hero h1 {
Expand All @@ -269,7 +280,7 @@ main .hero-container .hero-wrapper {
}

.hero .hero-flag {
translate: 62px -50%;
translate: 62px -30px;
}

.hero h1 {
Expand Down
10 changes: 5 additions & 5 deletions blocks/hero/hero.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,11 @@ const addLogoFlag = (block) => {
const flagEl = document.createElement('span');
flagEl.classList.add('hero-flag');
flagEl.innerHTML = `
<svg width="60" height="50" viewBox="0 0 60 50" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect width="8.57143" height="50" fill="#ED1C24"/>
<rect x="17.1431" width="8.57143" height="50" fill="#ED1C24"/>
<rect x="34.2856" width="8.57143" height="50" fill="black"/>
<rect x="51.4287" width="8.57143" height="50" fill="black"/>
<svg width="100" height="80" viewBox="0 0 100 80" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect y="0.351562" width="14.2857" height="80" fill="#ED1C24"/>
<rect x="28.5714" y="0.351562" width="14.2857" height="80" fill="#ED1C24"/>
<rect x="57.1429" y="0.351562" width="14.2857" height="80" fill="white"/>
<rect x="85.7143" y="0.351562" width="14.2857" height="80" fill="white"/>
</svg>
`;
customDecoreateIcons(flagEl);
Expand Down

0 comments on commit ba91801

Please sign in to comment.