Skip to content

Commit a7a3935

Browse files
committed
more work on download page
1 parent 65bd6be commit a7a3935

File tree

2 files changed

+15
-16
lines changed

2 files changed

+15
-16
lines changed

_includes/download/board.html

+7-10
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ <h3>CircuitPython {{ version.version }}</h3>
1818
{% if version.stable %}
1919
<p>
2020
This is the latest <strong>stable</strong> release of CircuitPython that will work with the {{ page.name }}.
21-
</p>
22-
<p>
2321
<strong>Use this release</strong> if you are new to CircuitPython.
2422
</p>
2523
{% else %}
@@ -45,14 +43,10 @@ <h3>CircuitPython {{ version.version }}</h3>
4543
Older bootloaders cannot load the firmware. See <i>Update UF2 Bootloader</i> below.</b>
4644
</p>
4745
{% endif %}
48-
<div class="release-details">
49-
<p>
50-
<a href="https://github.com/adafruit/circuitpython/releases/tag/{{ version.version }}">Release Notes for {{ version.version }}</a>
51-
</p>
52-
{% if page.download_instructions != nil and page.download_instructions != "" %}
53-
<a class="download-button install-instructions-button" target="_blank" href="{{ page.download_instructions }}">HOW TO INSTALL<i class="fas fa-arrow-circle-right" aria-hidden="true"></i></a>
54-
{% endif %}
55-
</div>
46+
<p>
47+
<a href="https://github.com/adafruit/circuitpython/releases/tag/{{ version.version }}">Release Notes for {{ version.version }}</a>
48+
</p>
49+
5650
<div class="download-details">
5751
{% comment %}
5852
Create a list of language codes and names so it can be sorted.
@@ -150,6 +144,9 @@ <h3>CircuitPython {{ version.version }}</h3>
150144
{% endif %}
151145
</div>
152146
</div>
147+
{% if page.download_instructions != nil and page.download_instructions != "" %}
148+
<a class="install-instructions" target="_blank" href="{{ page.download_instructions }}">Learn how to install CircuitPython on this board <i class="fas fa-external-link-alt" aria-hidden="true"></i></a>
149+
{% endif %}
153150
{% if version.modules %}
154151
<p>
155152
Built-in modules available:

assets/sass/pages/_download.scss

+8-6
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
}
2121

2222
h3 {
23-
font-size: 22px;
23+
font-size: 28px;
2424
font-weight: 500;
2525
margin: 0 0 10px 0;
2626
}
@@ -31,6 +31,7 @@
3131
grid-column-gap: 1em;
3232
grid-row-gap: 1em;
3333
grid-auto-rows: minmax(min-content, max-content);
34+
font-size: 18px;
3435

3536
.image-section {
3637
position: relative;
@@ -67,7 +68,7 @@
6768
width: auto;
6869
padding: 15px 30px 15px 30px;
6970
color: #fff;
70-
border-radius: 5px;
71+
border-radius: 10px;
7172
border: none;
7273
cursor: pointer;
7374

@@ -76,22 +77,23 @@
7677
}
7778
}
7879

79-
.install-instructions-button {
80+
.install-instructions {
81+
display: block;
8082
width: 100%;
83+
padding: 0 0 10px 0;
8184
text-align: center;
8285
margin-bottom: 1em;
8386
}
8487

85-
.download-details,
86-
.release-details {
88+
.download-details {
8789
display: grid;
8890
grid-template-columns: repeat(2, 1fr);
8991
}
9092

9193
.language-select {
9294
float: left;
9395
margin-right: 1em;
94-
border-radius: 5px;
96+
border-radius: 10px;
9597
border: 2px solid variables.$gray;
9698
overflow: hidden;
9799
height: 45px;

0 commit comments

Comments
 (0)