Skip to content

Commit 19347b3

Browse files
committed
adds first news section, adds news styles, removes hero footer (empty)
1 parent 29116f3 commit 19347b3

File tree

5 files changed

+32
-9
lines changed

5 files changed

+32
-9
lines changed

config.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ params:
3131
image: logos/numpy.svg
3232
# Customizable navbar. For a dropdown, add a "sublinks" list.
3333
news:
34-
title: NumPy News
34+
title: NumPy v1.18.0
35+
content: The C-API for numpy.random defined and documented - Basic infrastructure for linking with 64-bit BLAS and LAPACK - Improved documentation
3536

3637
shell:
3738
title: placeholder

layouts/partials/hero.html

-1
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,4 @@
22
{{ partial "navbar.html" . }}
33
{{ partial "navbar-clone.html" . }}
44
{{ partial "hero-body.html" . }}
5-
{{ partial "hero-footer.html" . }}
65
</section>

layouts/partials/news.html

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
{{- $news := .Site.Params.news }}
22
{{- $title := index $news "title" }}
3+
{{- $content := index $news "content" }}
34

45
<div class="news-container">
56
<div class="news-title">{{ $title }}</div>
6-
<div class="news-content">NumPy News goes here</div>
7+
<div class="news-content">{{ $content }}</div>
78
</div>

static/css/keyfeatures.css

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
.keyfeatures {
2-
margin-bottom: 30px;
2+
margin: 50px 0;
33
}
44

55
.keyfeatures .container {
@@ -66,7 +66,6 @@
6666
}
6767
}
6868

69-
7069
@media only screen and (max-width: 525px) {
7170
.keyfeatures-header {
7271
flex-direction: column;

static/css/news.css

+27-4
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,39 @@
11
.news-container {
22
display: flex;
3-
flex-direction: column;
3+
justify-content: center;
44
align-items: center;
55
width: 100vw;
66
min-height: 100px;
7+
background-color: #013243;
8+
color: white;
9+
white-space: nowrap;
710
}
811

912
.news-title {
1013
display: flex;
11-
flex-direction: column;
12-
width: 100%;
13-
align-items: center;
1414
letter-spacing: 1.5px;
1515
font-size: 27px;
16+
font-weight: bold;
17+
margin: 10px;
18+
}
19+
20+
@media only screen and (max-width: 1300px) {
21+
.news-container {
22+
white-space: unset;
23+
}
24+
25+
.news-title {
26+
text-align: center;
27+
}
28+
}
29+
30+
@media only screen and (max-width: 1087px) {
31+
.news-container {
32+
flex-direction: column;
33+
padding: 30px;
34+
}
35+
36+
.news-content {
37+
text-align: center;
38+
}
1639
}

0 commit comments

Comments
 (0)