Scale hero logo up to ~200px (responsive clamp)
This commit is contained in:
@@ -13,13 +13,13 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
&__logo {
|
&__logo {
|
||||||
width: 120px;
|
width: clamp(160px, 28vw, 220px);
|
||||||
height: 120px;
|
height: clamp(160px, 28vw, 220px);
|
||||||
object-fit: contain;
|
object-fit: contain;
|
||||||
border-radius: 16px;
|
border-radius: 20px;
|
||||||
background: #000;
|
background: #000;
|
||||||
margin-bottom: 1.25rem;
|
margin-bottom: 1.5rem;
|
||||||
box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
|
box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
|
||||||
}
|
}
|
||||||
|
|
||||||
&__sub {
|
&__sub {
|
||||||
|
|||||||
@@ -34,8 +34,8 @@ export function HomePage() {
|
|||||||
src="/logo.png"
|
src="/logo.png"
|
||||||
alt="jmartgraphix"
|
alt="jmartgraphix"
|
||||||
className="home-hero__logo"
|
className="home-hero__logo"
|
||||||
width={120}
|
width={200}
|
||||||
height={120}
|
height={200}
|
||||||
decoding="async"
|
decoding="async"
|
||||||
/>
|
/>
|
||||||
<h1 className="sr-only">jmartgraphix</h1>
|
<h1 className="sr-only">jmartgraphix</h1>
|
||||||
|
|||||||
Reference in New Issue
Block a user