Skip to content

Commit 2ac6ffc

Browse files
committed
Modify download button arrangement on getting started page
Also spaced out headings
1 parent 127c75c commit 2ac6ffc

5 files changed

Lines changed: 39 additions & 16 deletions

File tree

_layouts/page.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
<html>
99
{% include head.html %}
1010
{% if page.jumbotron-heading or page.jumbotron-content %}
11-
<body class="has-jumbotron">
11+
<body class="has-jumbotron {{page.extra-body-classes}}">
1212
{% else %}
13-
<body class="no-jumbotron">
13+
<body class="no-jumbotron {{page.extra-body-classes}}">
1414
{% endif %}
1515
{% include header.html %}
1616
{% if page.jumbotron-heading or page.jumbotron-content %}

docs/getting-started.md

Lines changed: 20 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
title: Getting Started with ev3dev
33
categories: docs getting-started
44
excerpt: "So you're ready to try out ev3dev. Great! Here are step-by-step instructions to help you get ev3dev up and running on your EV3 or Raspberry Pi."
5+
extra-body-classes: "spaced-headings"
56
---
67

78
* Table of Contents
@@ -40,16 +41,21 @@ please [open an issue on GitHub](/support){: .alert-link}.
4041

4142
## Step 1: Download the latest ev3dev image file
4243

44+
<br/>
45+
<div class="text-center">
46+
<a data-release-link-platform="ev3" class="btn btn-lg btn-primary"><span class="glyphicon glyphicon-download-alt"></span> Download for LEGO MINDSTORMS EV3</a>
47+
<br/><br/>
48+
<h2 class="centered-light-heading"> Other platforms </h2>
49+
<a data-release-link-platform="rpi" class="btn btn-md btn-primary">Raspberry Pi 1</a>
50+
<a data-release-link-platform="rpi2" class="btn btn-md btn-primary">Raspberry Pi 2</a>
51+
<a data-release-link-platform="evb" class="btn btn-md btn-primary">BeagleBone</a>
52+
</div>
53+
54+
<br/>
4355
To get started, you will need to download the release corresponding to the platform
4456
you are using. If you are looking for older releases or other file types, you can
4557
check out the [GitHub releases page][releases].
4658

47-
Download for:
48-
<a data-release-link-platform="ev3" class="btn btn-sm btn-primary">LEGO EV3 brick</a>
49-
<a data-release-link-platform="rpi" class="btn btn-sm btn-primary">Raspberry Pi 1</a>
50-
<a data-release-link-platform="rpi2" class="btn btn-sm btn-primary">Raspberry Pi 2</a>
51-
<a data-release-link-platform="evb" class="btn btn-sm btn-primary">Fatcat Lab EVB</a>
52-
5359
## Step 2: Copy the image on to the SD card
5460

5561
<div class="alert alert-danger">
@@ -63,28 +69,29 @@ Now it's time to write the image to the card.
6369
1. Download and install Etcher from [their website](http://etcher.io).
6470
2. Launch Etcher after it has finished installing.
6571

66-
{% include screenshot.html source="/images/etcher/home.png" caption="Etcher home screen" width="300px" %}
72+
{% include screenshot.html source="/images/etcher/home.png" caption="Etcher home screen" width="600px" %}
6773

6874
3. Click the "Select image" button and browse to the folder where you
6975
downloaded an ev3dev release. Select the file that you downloaded.
7076
The release can be a `.img.zip` or `.img.xz`; whichever
7177
you have will work with Etcher.
7278

73-
{% include screenshot.html source="/images/etcher/image-selected.png" caption="Image chosen in Etcher" width="300px" %}
79+
{% include screenshot.html source="/images/etcher/image-selected.png" caption="Image chosen in Etcher" width="600px" %}
7480

7581
4. Plug the SD card into your PC (if your PC doesn't have a micro SD
7682
slot, you can use an adapter or external reader). Etcher should
7783
detect the new device and display its information under the "Select
7884
drive" step. Confirm that the selected drive is correct.
79-
- If you have multiple removable drives available, you may need to
80-
use the "Change" button to select the proper device.
8185

82-
{% include screenshot.html source="/images/etcher/drive-selected.png" caption="Drive selected in Etcher" width="300px" %}
86+
{% include screenshot.html source="/images/etcher/drive-selected.png" caption="Drive selected in Etcher" width="600px" %}
87+
88+
5. If you have multiple removable drives available, you may need to
89+
use the "Change" button to select the proper device.
8390

84-
5. When you are confident that you have selected the correct drive,
91+
6. When you are confident that you have selected the correct drive,
8592
click "Flash!" and wait for the operation to complete.
8693

87-
{% include screenshot.html source="/images/etcher/flash-started.png" caption="Etcher flashing the SD card" width="300px" %}
94+
{% include screenshot.html source="/images/etcher/flash-started.png" caption="Etcher flashing the SD card" width="600px" %}
8895

8996
<br/>
9097

javascripts/releases.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
var ev3devRepoReleaseCacheKey = 'ev3dev-repo-release-cache';
2-
var releaseCacheTimeMillis = 1 * 24 * 60 * 60 * 1000;
2+
// Cache will time out after 20 minutes
3+
var releaseCacheTimeMillis = 20 * 60 * 1000;
34

45
var releasePlatformRegexes = {
56
ev3: "ev3-[\\w\\d-]*\\.img\\.xz",

stylesheets/page-content.scss

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,15 @@
1717
.btn-primary {
1818
width: 100%;
1919
}
20+
}
21+
22+
.centered-light-heading {
23+
font-size: 16px;
24+
color: #aaa;
25+
text-align: center;
26+
margin: 5px 0 5px !important;
27+
}
28+
29+
.spaced-headings h2 {
30+
margin-top: 35px;
2031
}

stylesheets/site-structure.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@
1212
margin-right: 20px;
1313
}
1414

15+
.text-center {
16+
text-align: center;
17+
}
18+
1519
// Vertical logo positioning and style
1620
#brand-logo {
1721
height: calc(100% + 8px);

0 commit comments

Comments
 (0)