Skip to content

Commit 278ad4c

Browse files
committed
Website: image hero image size at large widths
- Also fix breakpoints for smaller widths
1 parent 28b6bfb commit 278ad4c

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

apps/website/src/components/Hero.astro

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ import { dmgUrl } from '../lib/release'
156156
margin-left: -100px;
157157
}
158158

159-
@media (max-width: 640px) {
159+
@media (max-width: 767px) {
160160
.hero-illustration {
161161
height: 600px;
162162
margin-top: 0;
@@ -183,14 +183,22 @@ import { dmgUrl } from '../lib/release'
183183
transform: translate(2%) scale(1.2) rotateX(47deg) rotateY(31deg) rotate(324deg);
184184
}
185185

186-
@media (max-width: 640px) {
186+
@media (max-width: 767px) {
187187
.hero-base {
188188
margin-top: 100px;
189189
margin-left: 1%;
190190
transform: scale(0.7) rotateX(47deg) rotateY(21deg) rotate(330deg);
191191
}
192192
}
193193

194+
/* Scale hero image on large screens */
195+
@media (min-width: 1700px) {
196+
.hero-base {
197+
width: 94vw;
198+
height: calc(94vw * 9 / 16);
199+
}
200+
}
201+
194202
.hero-layer {
195203
position: absolute;
196204
top: 0;

0 commit comments

Comments
 (0)