1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-08-27 13:49:10 +02:00

docs: add offset big logo in wide mode

This commit is contained in:
Thomas Heartman 2024-01-31 10:58:56 +09:00
parent e53ad4b5a7
commit 60d1139447
No known key found for this signature in database
GPG Key ID: BD1F880DAED1EE78
2 changed files with 17 additions and 7 deletions

View File

@ -12,9 +12,10 @@ const Component = () => {
<li>100% Free & online</li>
<li>Valuable certification</li>
</ul>
<div className='icon'></div>
<div className='small-logo'></div>
<span className='unleash-action-button'>Get certified</span>
</div>
<div className='big-logo'></div>
</div>
);
};

View File

@ -377,7 +377,7 @@ html[data-theme='light'] .banner-container {
grid-area: header;
}
.icon {
.small-logo {
grid-area: logo;
background-image: url('/img/unleash-academy/academy-logo.svg');
background-repeat: no-repeat;
@ -405,11 +405,20 @@ html[data-theme='light'] .banner-container {
width: 240px;
}
.icon {
background-position: center var(--banner-padding);
/* width: 100%; */
aspect-ratio: unset;
background-size: contain;
.small-logo {
display: none;
}
.big-logo {
position: absolute;
background-image: url('/img/unleash-academy/academy-logo.svg');
bottom: 0;
right: 40px;
width: 200px;
height: 100%;
background-repeat: no-repeat;
background-position-x: left;
background-position-y: bottom -70%;
}
}
}