Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 12 additions & 7 deletions _includes/downloads/board_image.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
{% assign small_image = "/assets/images/boards/small/" | append: include.board_image | absolute_url %}
{% assign large_image = "/assets/images/boards/large/" | append: include.board_image | absolute_url %}
<img srcset="{{ small_image }} 300w,
{{ large_image }} 700w"
sizes="(max-width: 1024px) 700px,
300px"
src="{{ large_image }}" alt="Image of Board" loading="lazy">
{% assign small_image = "/assets/images/boards/small/" | append:
include.board_image | absolute_url %} {% assign large_image =
"/assets/images/boards/large/" | append: include.board_image | absolute_url %}
<img
srcset="{{ small_image }} 300w,
{{ large_image }} 800w"
sizes="(max-width: 300px) 300px,
800px"
src="{{ large_image }}"
alt="Image of Board"
loading="lazy"
/>
13 changes: 7 additions & 6 deletions _includes/index/learn_block.html
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
<div class="image">
{% assign guide = site.data.guides[include.index] %}
<img class="image-headline" alt="{{ guide.image_alt_attribute }}"
src="{{ guide.image }}"
/>
<img class="image-headline"
alt="{{ guide.image_alt_attribute }}"
src="{{ guide.image }}"
loading="lazy" />
<span class="image-title">
<span>
<p><a href="{{ guide.guide_url }}">{{ guide.title }} by {{ guide.author }}</a></p>
</span>
<img alt="Made with CircuitPython Logo"
src="{{ "assets/images/made_with_circuitpython.svg" |
relative_url }}"
/>
src="{{ "assets/images/made_with_circuitpython.svg" |
relative_url }}"
loading="lazy" />
</span>
</div>
23 changes: 12 additions & 11 deletions assets/sass/base/_variables.scss
Original file line number Diff line number Diff line change
@@ -1,27 +1,28 @@
$purple: #652f8f;
$pink: #e90e8b;
$gray: #999999;
$dark-gray: #333333;
$gray-border: #cecece;

// derived from bootstrap variables

// Extra small screen / phone
$screen-xs: 480px !default;
$screen-phone: $screen-xs !default;
$screen-xs: 480px !default;
$screen-phone: $screen-xs !default;

// Small screen / tablet
$screen-sm: 768px !default;
$screen-tablet: $screen-sm !default;
$screen-sm: 768px !default;
$screen-tablet: $screen-sm !default;

// Medium screen / desktop
$screen-md: 1024px !default;
$screen-desktop: $screen-md !default;
$screen-md: 1024px !default;
$screen-desktop: $screen-md !default;

// Large screen / wide desktop
$screen-lg: 1366px !default;
$screen-lg-desktop: $screen-lg !default;
$screen-lg: 1366px !default;
$screen-lg-desktop: $screen-lg !default;

// So media queries don't overlap when required, provide a maximum
$screen-xs-max: ($screen-sm - 1) !default;
$screen-sm-max: ($screen-md - 1) !default;
$screen-md-max: ($screen-lg - 1) !default;
$screen-xs-max: ($screen-sm - 1) !default;
$screen-sm-max: ($screen-md - 1) !default;
$screen-md-max: ($screen-lg - 1) !default;
19 changes: 12 additions & 7 deletions assets/sass/layout/_header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -19,24 +19,25 @@
padding: 0 25px;
margin: 20px 0;
}

a.active {
color: color.adjust(variables.$purple, $lightness: -15%, $space: hsl);
}
}

.top-navigation {
background-color: #333;
background-color: variables.$dark-gray;
@include mixins.readable-content;

.navigation {
margin-left: 15px;
padding: 10px;

a {
font-size: 16px;
color: #aaa;
margin-right: 40px;

&.active {
color: #fff;
}

&:hover {
color: #fff;
}
Expand Down Expand Up @@ -100,11 +101,15 @@

a {
margin-right: 30px;
color: #63338f;
color: variables.$purple;
white-space: nowrap;

&.active {
color: variables.$dark-gray;
}

&:hover {
color: color.adjust(variables.$purple, $lightness: -15%, $space: hsl);
color: variables.$dark-gray;
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion assets/sass/layout/_header_mobile.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@use "../base/variables";

#mobile-header {
background-color: #333;
background-color: variables.$dark-gray;

.header-contents {
padding: 9px 5px 5px 8px;
Expand Down
2 changes: 1 addition & 1 deletion assets/sass/pages/_downloads.scss
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@
}
}
.downloads-section {
grid-template-columns: repeat(1, 1fr);
grid-template-columns: repeat(1, 100%);
}
}
}
4 changes: 3 additions & 1 deletion assets/sass/pages/_espinstaller.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@use "../base/variables";

.cp-installer-dialog {
min-width: 300px;
min-height: 100px;
Expand Down Expand Up @@ -30,7 +32,7 @@
content: ' ';
height: 25px;
width: 2px;
background-color: #333;
background-color: variables.$dark-gray;
}
&:before {
transform: rotate(45deg);
Expand Down
6 changes: 5 additions & 1 deletion assets/sass/pages/_home.scss
Original file line number Diff line number Diff line change
Expand Up @@ -205,8 +205,12 @@
.one-column-content {
section {
display: grid;
grid-template-columns: 1fr 2fr;
grid-template-columns: repeat(1, 1fr);
column-gap: 20px;

.icon-block {
grid-template-columns: repeat(1, 1fr);
}
}
}
}
Expand Down
12 changes: 8 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ <h2>When we say easy, we mean it.</h2>
<div>
<img alt="Brain Circuit Icon"
src="{{ "assets/images/icons/brain-circuit.svg" |
relative_url }}" />
relative_url }}"
loading="lazy" />
<div>
<h3>Beginner Friendly</h3>
<p>
Expand All @@ -47,7 +48,8 @@ <h3>Beginner Friendly</h3>
<div>
<img alt="Microchip Icon"
src="{{ "assets/images/icons/microchip.svg" |
relative_url }}" />
relative_url }}"
loading="lazy" />
<div>
<h3>File Storage</h3>
<p>
Expand All @@ -58,7 +60,8 @@ <h3>File Storage</h3>
<div>
<img alt="Files Icon"
src="{{ "assets/images/icons/files.svg" |
relative_url }}" />
relative_url }}"
loading="lazy" />
<div>
<h3>Easy Code Updates</h3>
<p>
Expand All @@ -70,7 +73,8 @@ <h3>Easy Code Updates</h3>
<div>
<img alt="Terminal Icon"
src="{{ "assets/images/icons/terminal.svg" |
relative_url }}" />
relative_url }}"
loading="lazy" />
<div>
<h3>Serial Console + REPL</h3>
<p>
Expand Down