Skip to content

Commit 2f953ec

Browse files
committed
Add footer
1 parent e337458 commit 2f953ec

File tree

3 files changed

+107
-0
lines changed

3 files changed

+107
-0
lines changed

css/footer.css

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
.footer {
2+
background: #013243;
3+
color: white;
4+
padding-left: 2rem;
5+
padding-right: 2rem;
6+
7+
padding-left: 3.5rem;
8+
padding-right: 3.5rem;
9+
10+
/* Outer content grid */
11+
& .outer-grid {
12+
/* spacer, project description, spacer, link columns, spacer */
13+
grid-template-columns: 3fr 3fr 4fr;
14+
align-items: center;
15+
margin-bottom: 0rem;
16+
17+
& li {
18+
list-style: none;
19+
}
20+
}
21+
22+
@media (max-width: 640px) {
23+
& .outer-grid {
24+
grid-template-columns: 1fr;
25+
justify-items: start;
26+
}
27+
}
28+
29+
/* Heading colours */
30+
& a,
31+
h1,
32+
h2,
33+
h3,
34+
h4,
35+
h5,
36+
h6 {
37+
color: white;
38+
}
39+
40+
& h1 {
41+
font-size: 1.25rem;
42+
font-weight: bold;
43+
}
44+
}

footer.md

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
% This defines the footer of the site, and is not parsed as a regular "page"
2+
% We point to it with the following in `myst.yml`:
3+
% site:
4+
% parts:
5+
% footer: footer.md
6+
7+
% Here we use `grid` to add a basic grid structure to the HTML,
8+
% but the formatting column sizes are defined manually in css/footer.css
9+
% see the `grid-template-columns` line.
10+
:::::{grid} 3 3 5 5
11+
:class: outer-grid col-screen
12+
13+
<!-- Project description -->
14+
15+
::::{div}
16+
17+
# Landing Pages
18+
19+
```{image} https://jupyterbook.org/en/stable/_images/logo-square.svg
20+
:width: 50px
21+
:align: left
22+
```
23+
24+
This is a description of our project. And a [link to its homepage](https://github.com/jupyter-book/example-landing-pages).
25+
::::
26+
27+
<!-- Spacer between project description and links columns -->
28+
29+
::::{div}
30+
::::
31+
32+
<!-- Link columns -->
33+
34+
% This a _second_ grid embedded within the first one, to create nicer
35+
% responsive design experience. This grid will have a single column on narrow screens,
36+
% and fan out into three columns on wide screens. However, it always remains within
37+
% its parent grid column.
38+
::::{grid} 1 1 3 3
39+
40+
:::{div}
41+
42+
- [About](https://mystmd.org/overview/ecosystem)
43+
- [Guide](https://mystmd.org/guide)
44+
- [Sandbox](https://mystmd.org/sandbox)
45+
:::
46+
47+
:::{div}
48+
49+
- A second column!
50+
- With multiple entries
51+
:::
52+
53+
:::{div}
54+
55+
- And what about a third
56+
:::
57+
58+
::::
59+
60+
:::::

myst.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,6 @@ site:
1919
favicon: images/favicon.ico
2020
logo: images/statistical-python-logo.svg
2121
logo_text: Statistical Python
22+
style: ./css/footer.css
23+
parts:
24+
footer: footer.md

0 commit comments

Comments
 (0)