Skip to content

Commit 573182f

Browse files
committed
Center AboveFold
- widen main to fit title on one line on 15" mbp - keep max width so text isn't too wide under the 980px breakpoint
1 parent b58a5a4 commit 573182f

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/components/landing/AboveFold.css

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
width: 100vw;
33
height: 100vh;
44
background-image: linear-gradient(345deg, white, var(--gray200));
5-
--main-size: 57vw;
5+
--main-size: 60vw;
66
}
77

88
.AboveFold-container {
@@ -54,13 +54,15 @@
5454
.AboveFold-title {
5555
color: var(--cover-black) !important;
5656
font-weight: 500 !important;
57+
text-align: center;
5758
}
5859

5960
.AboveFold-subtitle {
6061
font-size: 1.3rem !important;
6162
margin: 25px 0 70px !important;
6263
color: var(--gray700) !important;
6364
font-weight: 300 !important;
65+
text-align: center;
6466
}
6567

6668
.AboveFold-buttons > button {
@@ -105,12 +107,12 @@
105107
.AboveFold-container {
106108
width: 85vw;
107109
height: auto;
110+
justify-content: center;
108111
}
109112

110113
.AboveFold-main-container {
111114
width: auto;
112115
flex-direction: column;
113-
max-width: none;
114116
height: auto;
115117
margin: 0;
116118
margin-top: 60px;

src/components/landing/AboveFold.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const AboveFold = () => (
2323
<div className="AboveFold-main">
2424
<div className="AboveFold-text">
2525
<Typography className="AboveFold-title" variant="display3">
26-
GraphQL is the new REST
26+
GraphQL is the <span className="-nowrap">new REST</span>
2727
</Typography>
2828
<Typography className="AboveFold-subtitle" variant="body1">
2929
GraphQL is the best way to fetch data for your app, and the

0 commit comments

Comments
 (0)