Skip to content

Commit 0e6dc93

Browse files
brsoffJoelMarcey
authored andcommitted
[PYT-277] Update Hero styles (jumbotrons) on main pages (pytorch#91)
also [PYT-279] Change navbar color to white
1 parent 0ec5bcf commit 0e6dc93

13 files changed

+80
-28
lines changed

_includes/footer_scripts.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
scrollToAnchor.bind();
1515

16-
var hasStaticHeader = $(".blog-header, .blog-detail-header, .resources-header").length > 0;
16+
var hasStaticHeader = $(".blog-header, .blog-detail-header, .resources-header, .get-started-header, .features-header, .ecosystem-header").length > 0;
1717

1818
if (!hasStaticHeader) {
1919
$(window).on("scroll", function() {

_layouts/blog.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
{% assign post_categories = site.posts | map: 'categories' | join: ',' | split: ',' | uniq | sort %}
1414

1515
<div class="jumbotron jumbotron-fluid">
16-
<div class="container">
16+
<div class="container blog-page-container">
1717
{% for post in posts limit:1 %}
1818
<p class="blog-date">Featured Post</p>
1919
<h1>

_layouts/get_started.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
<div class="jumbotron jumbotron-fluid on-dark-background">
1212
<div class="container">
13-
<h1>Get<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Started</h1>
13+
<h1>Get Started</h1>
1414

1515
<p class="lead">Select preferences and run the command to install PyTorch locally, or get started quickly with one of the supported cloud platforms.</p>
1616
</div>
@@ -41,7 +41,7 @@ <h1>Get<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Started</h1>
4141
</div>
4242
</div>
4343
</div>
44-
</div>
44+
</div>
4545

4646
{% include footer.html %}
4747
</body>

_sass/blog.scss

+22-2
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
margin-top: 30px;
3636
}
3737
@include desktop {
38+
margin-top: 380px + $desktop_header_height;
3839
.row.blog-index
3940
[class*="col-"]:not(:first-child):not(:last-child):not(:nth-child(3n)) {
4041
padding-right: rem(35px);
@@ -83,12 +84,17 @@
8384

8485
.jumbotron {
8586
@include desktop {
86-
height: 550px;
87+
height: 380px;
8788
}
8889

8990
.container {
91+
padding-top: rem(90px);
9092
@include desktop {
9193
padding-bottom: rem(45px);
94+
padding-top: 0;
95+
}
96+
@include small-desktop {
97+
padding-top: rem(90px);
9298
}
9399
}
94100

@@ -113,7 +119,7 @@
113119
}
114120
}
115121
.blog-detail-container {
116-
padding-top: rem(344px);
122+
padding-top: rem(174px);
117123
}
118124

119125
p {
@@ -127,12 +133,26 @@
127133
margin-top: rem(12px);
128134
padding-top: rem(9px);
129135
}
136+
137+
.blog-page-container {
138+
p.blog-date {
139+
padding-top: rem(10px);
140+
}
141+
.btn {
142+
margin-bottom: rem(10px);
143+
}
144+
}
130145
}
131146

132147
p.blog-date {
133148
font-size: rem(18px);
134149
letter-spacing: 0;
135150
line-height: rem(24px);
151+
margin-bottom: rem(10px);
152+
}
153+
154+
p.featured-blog-preview {
155+
margin-bottom: rem(12px);
136156
}
137157

138158
#blogPostFilter {

_sass/ecosystem.scss

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.ecosystem .jumbotron {
22
height: 170px;
33
@include desktop {
4-
height: 330px;
4+
height: 320px;
55
}
66

77
h1 {
@@ -21,15 +21,15 @@
2121
height: 275px;
2222

2323
@include desktop {
24-
height: 480px;
24+
height: 470px;
2525
}
2626
}
2727

2828
.ecosystem .main-content-wrapper {
2929
background-color: $light_grey;
3030

3131
@include desktop {
32-
margin-top: 390px + $desktop_header_height;
32+
margin-top: 380px + $desktop_header_height;
3333
}
3434
margin-top: 275px;
3535
}

_sass/features.scss

+19-3
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@
66
.nav-logo {
77
background-image: url($baseurl + "/assets/images/logo-dark.svg");
88
}
9+
10+
.main-background {
11+
@include desktop {
12+
height: 540px;
13+
}
14+
}
915
}
1016

1117
.features-row {
@@ -104,8 +110,7 @@
104110
color: #D92F4C;
105111
}
106112

107-
.feature-content-holder {
108-
border-bottom: 2px solid #D92F4C;
113+
.feature-content-holder { border-bottom: 2px solid #D92F4C;
109114
}
110115
}
111116

@@ -141,10 +146,21 @@
141146

142147
.features .jumbotron {
143148
height: 195px;
149+
h1 {
150+
padding-top: rem(30px);
151+
}
144152
@include desktop {
145-
height: 490px;
153+
height: 395px;
154+
h1 {
155+
padding-top: 0;
156+
}
146157
}
147158
h1, p {
148159
color: $white;
149160
}
161+
.btn {
162+
@include desktop {
163+
margin-top: rem(6px);
164+
}
165+
}
150166
}

_sass/get-started.scss

+6-6
Original file line numberDiff line numberDiff line change
@@ -13,21 +13,21 @@
1313
height: 275px;
1414

1515
@include desktop {
16-
height: 480px;
16+
height: 380px;
1717
}
1818
}
1919

2020
.get-started .main-content-wrapper {
21+
margin-top: 275px;
2122
@include desktop {
22-
margin-top: 350px + $desktop_header_height;
23+
margin-top: 260px + $desktop_header_height;
2324
}
24-
margin-top: 275px;
2525
}
2626

2727
.get-started .jumbotron {
2828
height: 190px;
2929
@include desktop {
30-
height: 360px;
30+
height: 260px;
3131
}
3232
}
3333

@@ -99,7 +99,7 @@
9999
.get-started .main-content {
100100
padding-top: 0;
101101
@include desktop {
102-
padding-top: 2.53rem;
102+
padding-top: 1.9rem;
103103
}
104104
}
105105

@@ -192,4 +192,4 @@
192192
margin-bottom: 0;
193193
}
194194
}
195-
}
195+
}

_sass/homepage.scss

+10-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,16 @@
2828
.jumbotron {
2929
height: 195px;
3030
@include desktop {
31-
height: 490px;
31+
height: 395px;
32+
}
33+
.btn {
34+
margin-top: rem(6px);
35+
}
36+
}
37+
38+
.main-background {
39+
@include desktop {
40+
height: 540px;
3241
}
3342
}
3443

_sass/jumbotron.scss

+4-3
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,10 @@
2424
h1 {
2525
font-size: rem(40px);
2626
text-transform: uppercase;
27-
font-weight: 300;
27+
font-weight: lighter;
2828
letter-spacing: 1.08px;
29-
margin-bottom: rem(20px);
29+
margin-bottom: rem(10px);
30+
line-height: 1.05;
3031

3132
@include desktop {
3233
font-size: rem(72px);
@@ -50,7 +51,7 @@
5051
.btn {
5152
padding-top: rem(9px);
5253
@include desktop {
53-
margin-top: rem(20px);
54+
margin-top: rem(10px);
5455
}
5556
}
5657
}

_sass/main-content.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
margin-top: 300px;
33

44
@include desktop {
5-
margin-top: 550px + $desktop_header_height;
5+
margin-top: 450px + $desktop_header_height;
66
min-height: 400px;
77
}
88
}

_sass/navigation.scss

+8-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,10 @@
1818

1919
&.blog-header,
2020
&.blog-detail-header,
21-
&.resources-header {
21+
&.resources-header,
22+
&.get-started-header,
23+
&.features-header,
24+
&.ecosystem-header {
2225
background-color: $white;
2326
border-bottom: 1px solid #e2e2e2;
2427
}
@@ -198,7 +201,10 @@
198201

199202
.blog-header,
200203
.blog-detail-header,
201-
.resources-header {
204+
.resources-header,
205+
.get-started-header,
206+
.features-header,
207+
.ecosystem-header {
202208
.header-logo {
203209
background-image: url($baseurl + "/assets/images/logo-dark.svg");
204210
}

features.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88

99
<div class="jumbotron jumbotron-fluid">
1010
<div class="container">
11-
<h1>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;End-to-end
11+
<h1>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;End-to-end
1212
<br/>Deep Learning
13-
<br/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Platform
13+
<br/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Platform
1414
</h1>
1515

1616
<p class="lead">PyTorch enables fast, flexible experimentation and efficient production through a hybrid front-end, distributed training, and ecosystem of tools and libraries.

index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<div class="jumbotron jumbotron-fluid on-dark-background">
88
<div class="container">
9-
<h1>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;From<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Research<br />To Production</h1>
9+
<h1>From<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Research To<br />Production</h1>
1010

1111
<p class="lead">An open source deep learning platform that provides a seamless path from research prototyping to production deployment.</p>
1212

0 commit comments

Comments
 (0)