Skip to content

Commit 376002c

Browse files
committed
Add feature boxes to top of homepage
Signed-off-by: cjyabraham <[email protected]>
1 parent 9b31664 commit 376002c

File tree

2 files changed

+38
-16
lines changed

2 files changed

+38
-16
lines changed

_sass/homepage.scss

+9-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
.main-content-wrapper {
44
@include desktop {
5-
margin-top: 539px;
5+
margin-top: 472px;
66
}
77
}
88
h2 {
@@ -385,3 +385,11 @@
385385
.no-banner {
386386
padding-bottom: 2rem;
387387
}
388+
389+
.homepage-box-module {
390+
div.col-md {
391+
background: #F3F4F7;
392+
margin: 20px;
393+
padding: 30px;
394+
}
395+
}

index.html

+29-15
Original file line numberDiff line numberDiff line change
@@ -19,23 +19,37 @@ <h1><img src="{{ site.baseurl }}/assets/images/logo-white.svg" width="275px" alt
1919

2020
<div class="main-content-wrapper">
2121

22-
{% if page.display-news-banner == true %}
23-
24-
{% assign news = site.news | sort: "order" %}
25-
26-
<div id="news-items">
27-
<div class="list container news-banner-container">
28-
{% for news_item in news %}
29-
<div class="news-banner-text">
30-
{% include news_banner_info.html %}
31-
</div>
32-
{% endfor %}
22+
<div class="container homepage-box-module">
23+
<div class="row">
24+
<div class="col-md">
25+
<h3>Featured Reads</h3>
26+
<p>
27+
Catch up on the latest technical insights and tools from the PyTorch community.
28+
</p>
29+
<p>
30+
<a href="/blog">#Powered by PyTorch</a>
31+
</p>
32+
</div>
33+
<div class="col-md">
34+
<h3>PyTorch 2.0</h3>
35+
<p>
36+
Our next-generation release is faster, more Pythonic, and more Dynamic than ever.
37+
</p>
38+
<p>
39+
<a href="/get-started">Get Started</a>
40+
</p>
41+
</div>
42+
<div class="col-md">
43+
<h3>Upcoming Events</h3>
44+
<p>
45+
Don’t miss out on our upcoming PyTorch events, meetups, and webinars.
46+
</p>
47+
<p>
48+
<a href="/events">Upcoming Events</a>
49+
</p>
3350
</div>
34-
<div class="pagination"></div>
3551
</div>
36-
{% else %}
37-
<div class="no-banner"></div>
38-
{% endif %}
52+
</div>
3953

4054
<div class="container homepage-feature-module key-features-module">
4155

0 commit comments

Comments
 (0)