Skip to content

Commit 6dc0577

Browse files
committed
defer homepage hero visual
1 parent eae2dc3 commit 6dc0577

1 file changed

Lines changed: 0 additions & 30 deletions

File tree

src/components/IntroHeader/IntroHeader.tsx

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import { styled } from "next-yak";
44
export default function IntroHeader() {
55
return (
66
<Frame>
7-
<MapContainer />
87
<RotatorLayer aria-hidden="true">
98
<DeferredIntroHeaderRotator />
109
</RotatorLayer>
@@ -20,35 +19,6 @@ const Frame = styled.div`
2019
margin-bottom: -2.5rem;
2120
`;
2221

23-
const MapContainer = styled.div`
24-
display: flex;
25-
flex-direction: row;
26-
gap: 1rem;
27-
align-items: center;
28-
justify-content: center;
29-
position: relative;
30-
border-radius: 1rem;
31-
width: 100%;
32-
max-width: 36rem;
33-
height: 16rem;
34-
margin-bottom: -2.5rem;
35-
36-
&::before {
37-
content: "";
38-
position: absolute;
39-
inset: 0;
40-
background-image: url("/map-tiles/hero.jpg");
41-
background-size: cover;
42-
background-position: center;
43-
mask-image: radial-gradient(black 0%, transparent 74%);
44-
border-radius: inherit;
45-
z-index: -1;
46-
opacity: 1;
47-
transform: scale(1, 1) rotateX(0deg) translateY(0);
48-
transform-origin: bottom center;
49-
}
50-
`;
51-
5222
const RotatorLayer = styled.div`
5323
position: absolute;
5424
inset: 0;

0 commit comments

Comments
 (0)