Skip to content

Commit c6c5e30

Browse files
author
Danny Ruchtie
committed
fixed hight problem
1 parent fceb76c commit c6c5e30

File tree

1 file changed

+31
-9
lines changed

1 file changed

+31
-9
lines changed

packages/homepage/src/screens/home/hero/elements.js

Lines changed: 31 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -39,22 +39,25 @@ export const HeroWrapper = styled.section`
3939
text-align: center;
4040
overflow: hidden;
4141
padding: 0 2rem;
42-
43-
height: 80vh;
4442
min-height: 768px;
4543
4644
perspective: 1000;
4745
}
4846
4947
@media screen and (min-width: 576px) {
50-
min-height: 1024px;
48+
min-height: 768px;
49+
5150
}
5251
52+
@media screen and (min-width: 768px) {
53+
min-height: 960px;
5354
54-
@media screen and (min-width: 960px) {
55-
min-height: 1200px;
5655
}
5756
57+
@media screen and (min-width: 960px) {
58+
min-height: 1024px;
59+
}
60+
5861
`;
5962

6063
export const SignUp = styled.p`
@@ -138,14 +141,27 @@ export const InspiredText = styled.span`
138141
`;
139142

140143
export const HeroImage = styled.img`
141-
max-width: 1200px;
144+
max-width: 576px;
142145
min-width: 100%;
146+
padding: 0 1rem;
147+
143148
overflow: hidden;
144149
border-radius: 4px;
145150
box-shadow: rgba(0, 0, 0, 0.3) 20px 14px 47px 0px;
146151
147-
${props => props.theme.breakpoints.md} {
148-
width: 120vw;
152+
@media screen and (min-width: 576px) {
153+
max-width: 576px;
154+
padding: 0 1rem;
155+
}
156+
157+
@media screen and (min-width: 768px) {
158+
max-width: 768px;
159+
padding: 0 1rem;
160+
}
161+
162+
@media screen and (min-width: 960px) {
163+
max-width: 960px;
164+
padding: 0 1rem;
149165
}
150166
`;
151167

@@ -188,7 +204,7 @@ export const SubTitle = styled.h2`
188204
export const SandboxButtons = styled.section`
189205
height: auto;
190206
width: auto;
191-
margin: 4rem 0;
207+
margin: 5rem 0;
192208
`;
193209

194210
export const Sandbox = styled.a`
@@ -203,6 +219,12 @@ export const Sandbox = styled.a`
203219
transform: scale(1);
204220
transition: all 100ms ease-in;
205221
222+
@media screen and (min-width: 576px) {
223+
width: 3rem;
224+
height: 3rem;
225+
margin: 0 1rem;
226+
}
227+
206228
@media screen and (min-width: 768px) {
207229
width: 4rem;
208230
height: 4rem;

0 commit comments

Comments
 (0)