Skip to content

Commit 872c172

Browse files
Add related resources to the bottom of each tile page.
1 parent 4b5a6a7 commit 872c172

File tree

2 files changed

+51
-8
lines changed

2 files changed

+51
-8
lines changed

jekyll-assets/_layouts/boxes.html

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,31 @@ <h1><a href="/documentation/"><b>Raspberry Pi</b> Documentation</a></h1>
3434
</section>
3535
</div>
3636

37+
<div id="related" role="complementary">
38+
<div id="related-title">
39+
<h2>Related resources</h2>
40+
</div>
41+
<div id="related-container" role="complementary">
42+
<section id="related-content">
43+
<a class="box" href="https://pip.raspberrypi.com/">
44+
<span><img src="/documentation/images/full-sized/PIP.png" width="121" height="121" alt=""></span>
45+
<span class="title">Product Information Portal</span>
46+
<span>Compliance documentation</span>
47+
</a>
48+
<a class="box" href="https://www.raspberrypi.com/tutorials/">
49+
<span><img src="/documentation/images/full-sized/Tutorials.png" width="121" height="121" alt=""></span>
50+
<span class="title">Tutorials</span>
51+
<span>Hands-on hardware and software tutorials</span>
52+
</a>
53+
<a class="box" href="https://forums.raspberrypi.com/">
54+
<span><img src="/documentation/images/full-sized/Forums.png" width="121" height="121" alt=""></span>
55+
<span class="title">Forums</span>
56+
<span>User and product support forums</span>
57+
</a>
58+
</section>
59+
</div>
60+
</div>
61+
3762
{% include legal.html %}
3863
{% include footer.html %}
3964
{% include search.html %}

jekyll-assets/css/style.css

Lines changed: 26 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -234,13 +234,25 @@ div.subtitle p {
234234
margin-right: 0px;
235235
}
236236

237-
#container .section {
237+
#container .section,
238+
#related-container .section {
238239
display: flex;
239240
flex-direction: column;
240241
width: 100%;
241242
}
242243

243-
#docs-content #container {
244+
#related-title{
245+
width: 100%;
246+
text-align: center;
247+
}
248+
249+
#related-title h2{
250+
padding-top: 20px;
251+
font-size: 1.5em;
252+
}
253+
254+
#docs-content #container,
255+
#docs-content #related-container {
244256
align-items: start;
245257
}
246258

@@ -520,7 +532,8 @@ li > a {
520532
color: var(--subtle-text);
521533
}
522534
523-
#container section#content {
535+
#container section#content,
536+
#related-container section#content {
524537
flex-grow: 1;
525538
}
526539
@@ -1443,7 +1456,8 @@ input:not(:checked) ~ li ~ .itemcontents .sectlevel1 {
14431456
max-width: 100vw;
14441457
}
14451458

1446-
#container {
1459+
#container,
1460+
#related-container {
14471461
justify-content: center;
14481462
flex-wrap: wrap;
14491463
margin-left: 3px;
@@ -1544,7 +1558,8 @@ input:not(:checked) ~ li ~ .itemcontents .sectlevel1 {
15441558
#content {
15451559
margin-left: 0px;
15461560
}
1547-
#container {
1561+
#container,
1562+
#related-container {
15481563
}
15491564
}
15501565

@@ -1560,7 +1575,8 @@ input:not(:checked) ~ li ~ .itemcontents .sectlevel1 {
15601575
ul#tab-container li a {
15611576
display: none !important;
15621577
}
1563-
div#container {
1578+
div#container,
1579+
div#related-container {
15641580
margin-left: 0;
15651581
margin-right: 0;
15661582
justify-content: center !important;
@@ -1581,7 +1597,8 @@ input:not(:checked) ~ li ~ .itemcontents .sectlevel1 {
15811597
box-sizing: border-box;
15821598
}
15831599

1584-
section#box-content {
1600+
section#box-content,
1601+
section#related-content {
15851602
display: flex;
15861603
flex-wrap: wrap;
15871604
flex-direction: row;
@@ -1639,7 +1656,8 @@ div.subtitle.error-message p a {
16391656
color: var(--bg);
16401657
}
16411658

1642-
#container {
1659+
#container,
1660+
#related-container {
16431661
display: flex;
16441662
justify-content: center;
16451663
margin-right: 10px;

0 commit comments

Comments
 (0)