Skip to content

Commit e80ed2f

Browse files
committed
Cap hero image
1 parent 639311a commit e80ed2f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/components/Hero.astro

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,15 +72,14 @@ const imageAttrs = {
7272
</div>
7373

7474
<style>
75-
.hero {
75+
.heroImageWrapper {
7676
display: flex;
77-
flex-direction: column;
7877
justify-content: center;
7978
}
8079

8180
.heroImageWrapper img {
8281
image-rendering: pixelated;
83-
width: 100%;
82+
width: min(100%, 50rem);
8483
height: auto;
8584
justify-content: center;
8685
}

0 commit comments

Comments
 (0)