Skip to content

Commit 2cfbe6d

Browse files
authored
[PYT-234, PYT-235] Update Ecosystem, Community homepage modules (pytorch#68)
- Change background color - Increase margin below Ecosystem, Community titles - Change text color "See all Projects" - Padding around cards should be equal top and bottom - Cards should have a flex height - Bump email font size, padding bottom
1 parent 9331b0d commit 2cfbe6d

File tree

3 files changed

+29
-12
lines changed

3 files changed

+29
-12
lines changed

_sass/base_styles.scss

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -164,10 +164,6 @@ a, .btn {
164164
}
165165
}
166166

167-
.bg-medium-grey {
168-
background-color: $medium_grey;
169-
}
170-
171167
.bg-very-light-grey {
172168
background-color: $very_light_grey;
173169
}

_sass/homepage.scss

Lines changed: 26 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -107,20 +107,34 @@
107107
}
108108

109109
.community-module {
110-
.card-body {
110+
background-color: $light_grey;
111+
112+
.ecosystem-card {
113+
height: auto;
114+
111115
@include small-desktop {
112116
padding: rem(10px);
113117
}
114118
}
115119

116-
.module-button {
117-
margin-top: rem(10px);
118-
}
119-
120120
h2 {
121121
margin-bottom: rem(20px);
122122
}
123123

124+
.h2-subheadline {
125+
margin-bottom: rem(50px);
126+
}
127+
128+
.card-body {
129+
@include small-desktop {
130+
padding: rem(10px);
131+
}
132+
}
133+
134+
.module-button {
135+
color: $slate;
136+
}
137+
124138
p {
125139
margin-bottom: rem(40px);
126140
letter-spacing: 0.25px;
@@ -129,6 +143,13 @@
129143
.module-subtext {
130144
margin-right: rem(250px);
131145
}
146+
147+
.email-subscribe-form input.email {
148+
border-bottom: 1px solid #d6d7d8;
149+
font-size: rem(20px);
150+
line-height: 0;
151+
padding-bottom: rem(12px);
152+
}
132153
}
133154

134155
.community-avatar {

index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ <h5>{{ feature.title }}</h5>
4141
</div>
4242
</div>
4343

44-
<div class="homepage-feature-module community-module container-fluid bg-medium-grey">
44+
<div class="homepage-feature-module community-module container-fluid">
4545
<div class="container">
4646
<div class="row">
4747
<div class="col-md-12">
@@ -53,7 +53,7 @@ <h2>Ecosystem </h2>
5353

5454
</div>
5555
<div class="col-md-8">
56-
<p>Explore a rich ecosystem of libraries, tools, and more to support development.</p>
56+
<p class="h2-subheadline">Explore a rich ecosystem of libraries, tools, and more to support development.</p>
5757
</div>
5858
</div>
5959

@@ -82,7 +82,7 @@ <h2>Community</h2>
8282

8383
</div>
8484
<div class="col-md-8">
85-
<p>Join the PyTorch developer community to contribute, learn, and get your questions answered.</p>
85+
<p class="h2-subheadline">Join the PyTorch developer community to contribute, learn, and get your questions answered.</p>
8686
</div>
8787
</div>
8888

0 commit comments

Comments
 (0)