Skip to content

Commit eb2fc77

Browse files
author
Danny Ruchtie
committed
fixed padding on old hero
1 parent 3e54fef commit eb2fc77

File tree

1 file changed

+11
-73
lines changed

1 file changed

+11
-73
lines changed

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

Lines changed: 11 additions & 73 deletions
Original file line numberDiff line numberDiff line change
@@ -31,33 +31,22 @@ export const EditorElement = styled.img`
3131
`;
3232

3333
export const HeroWrapper = styled.section`
34-
border-bottom: 1px solid #242424;
3534
position: relative;
3635
display: flex;
3736
justify-content: center;
3837
3938
text-align: center;
4039
overflow: hidden;
4140
padding: 0 2rem;
42-
min-height: 768px;
4341
44-
perspective: 1000;
45-
}
46-
47-
@media screen and (min-width: 576px) {
48-
min-height: 768px;
49-
50-
}
42+
height: 100vh;
43+
min-height: 1080px;
5144
52-
@media screen and (min-width: 768px) {
53-
min-height: 960px;
45+
perspective: 1000;
5446
47+
${props => props.theme.breakpoints.sm} {
48+
min-height: 800px;
5549
}
56-
57-
@media screen and (min-width: 960px) {
58-
min-height: 1024px;
59-
}
60-
6150
`;
6251

6352
export const SignUp = styled.p`
@@ -104,7 +93,7 @@ export const StyledEditorLink = styled.a`
10493

10594
export const HeroBottom = styled.div`
10695
position: absolute;
107-
bottom: -10%;
96+
bottom: -30%;
10897
left: 0;
10998
right: 0;
11099
display: flex;
@@ -141,32 +130,19 @@ export const InspiredText = styled.span`
141130
`;
142131

143132
export const HeroImage = styled.img`
144-
max-width: 576px;
133+
max-width: 1200px;
145134
min-width: 100%;
146-
padding: 0 1rem;
147-
148135
overflow: hidden;
149136
border-radius: 4px;
150137
box-shadow: rgba(0, 0, 0, 0.3) 20px 14px 47px 0px;
151138
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;
139+
${props => props.theme.breakpoints.md} {
140+
width: 120vw;
165141
}
166142
`;
167143

168144
export const Title = styled.h1`
169-
font-size: 3rem;
145+
font-size: 2.5rem;
170146
line-height: 57px;
171147
font-family: ${props => props.theme.homepage.appleFont};
172148
@@ -190,49 +166,11 @@ export const SubTitle = styled.h2`
190166
font-weight: normal;
191167
font-size: 1.125rem;
192168
line-height: 1.3;
193-
color: ${props => props.theme.homepage.gray};
169+
color: ${props => props.theme.homepage.white};
194170
margin: 0;
195171
margin-bottom: 1rem;
196172
197173
${props => props.theme.breakpoints.sm} {
198174
font-size: 0.875rem;
199175
}
200176
`;
201-
202-
// All for the B variant for A/B test
203-
204-
export const SandboxButtons = styled.section`
205-
height: auto;
206-
width: auto;
207-
margin: 5rem 0;
208-
`;
209-
210-
export const Sandbox = styled.a`
211-
display: inline-block;
212-
width: 2rem;
213-
height: 2rem;
214-
margin: 0 0.75rem;
215-
opacity: 0.2;
216-
border: none;
217-
background-color: transparent;
218-
background-size: cover;
219-
transform: scale(1);
220-
transition: all 100ms ease-in;
221-
222-
@media screen and (min-width: 576px) {
223-
width: 3rem;
224-
height: 3rem;
225-
margin: 0 1rem;
226-
}
227-
228-
@media screen and (min-width: 768px) {
229-
width: 4rem;
230-
height: 4rem;
231-
margin: 0 2rem;
232-
}
233-
234-
:hover {
235-
transform: scale(0.9);
236-
opacity: 1;
237-
}
238-
`;

0 commit comments

Comments
 (0)