Skip to content

Commit 65bd6be

Browse files
committed
download page in progress
1 parent 3c38df9 commit 65bd6be

File tree

2 files changed

+46
-26
lines changed

2 files changed

+46
-26
lines changed

_layouts/download.html

+23-16
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,41 @@
11
---
22
layout: default
33
---
4-
<div id="download-page">
5-
<h1>{{ page.name }}</h1>
6-
<h3>by {{ page.manufacturer }}</h3>
74

5+
<div id="download-page">
86
<div class="download-section">
9-
<div class="details">
7+
<div>
8+
<div class="image-section">
9+
{% assign large_image = "/assets/images/boards/large/" | append:
10+
page.board_image %}
11+
<img src="{{ large_image | relative_url }}" alt="Image of Board" />
12+
<h1>{{ page.name }} by {{ page.manufacturer }}</h1>
13+
</div>
1014
<div class="section">
11-
{% assign large_image = "/assets/images/boards/large/" | append: page.board_image %}
12-
<img src="{{ large_image | relative_url }}" alt="Image of Board">
15+
<p>{{ content }}</p>
16+
<h2>Contribute</h2>
1317
<p>
14-
{{ content }}
18+
Have some info to add for this board? Edit the source for this page
19+
<a
20+
href="https://github.com/adafruit/circuitpython-org/edit/main/{{ page.path }}"
21+
>here</a
22+
>.
1523
</p>
16-
<h2>Contribute</h2>
17-
<p>Have some info to add for this board? Edit the source for this page <a href="https://github.com/adafruit/circuitpython-org/edit/main/{{ page.path }}">here</a>.</p>
1824
</div>
1925
</div>
2026
<div class="download">
21-
{% if page.blinka == true %}
22-
{% include download/blinka.html %}
23-
{% else %}
24-
{% include download/board.html %}
25-
{% endif %}
27+
{% if page.blinka == true %} {% include download/blinka.html %} {% else %}
28+
{% include download/board.html %} {% endif %}
2629
</div>
2730
</div>
2831
</div>
2932

30-
{% if page.family == 'esp32' or page.family == 'esp32s2' or page.family == 'esp32c3' or page.family == 'esp32s3' or page.family == 'esp32c6' %}
31-
<script src="https://cdn.jsdelivr.net/gh/adafruit/[email protected]/dist/cpinstaller.min.js" type="module"></script>
33+
{% if page.family == 'esp32' or page.family == 'esp32s2' or page.family ==
34+
'esp32c3' or page.family == 'esp32s3' or page.family == 'esp32c6' %}
35+
<script
36+
src="https://cdn.jsdelivr.net/gh/adafruit/[email protected]/dist/cpinstaller.min.js"
37+
type="module"
38+
></script>
3239
<!--<script src="/assets/javascript/installer/cpinstaller.js" type="module"></script>-->
3340
{% endif %}
3441
<script src="/assets/javascript/download.js"></script>

assets/sass/pages/_download.scss

+23-10
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
@use "../base/variables";
22

33
#download-page {
4-
padding: 50px 0 200px 0;
4+
padding: 0 0 200px 0;
55
display: grid;
66
grid-template-columns:
77
[full-start] minmax(1em, 1fr)
@@ -32,18 +32,31 @@
3232
grid-row-gap: 1em;
3333
grid-auto-rows: minmax(min-content, max-content);
3434

35+
.image-section {
36+
position: relative;
37+
border-radius: 25px;
38+
margin-bottom: 20px;
39+
overflow: hidden;
40+
41+
h1 {
42+
position: absolute;
43+
bottom: 15px;
44+
left: 15px;
45+
right: 15px;
46+
font-size: 22px;
47+
font-weight: 400;
48+
color: #fff;
49+
padding: 10px;
50+
background-color: rgba(0, 0, 0, 0.5);
51+
border-radius: 10px;
52+
}
53+
}
54+
3555
.section {
36-
border: 1px solid #cecece;
3756
background-color: #fff;
38-
border-radius: 5px;
57+
border-radius: 25px;
3958
padding: 20px;
40-
margin-bottom: 1em;
41-
}
42-
43-
.details {
44-
img {
45-
width: 100%;
46-
}
59+
margin-bottom: 20px;
4760
}
4861

4962
.download {

0 commit comments

Comments
 (0)