Skip to content

Commit fee532a

Browse files
Add instructions
1 parent 82ee521 commit fee532a

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

public/index.html

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ <h1>Badger Press</h1>
2626
<label for="pronouns">Pronouns:</label>
2727
<input type="text" id="pronouns" name="pronouns">
2828
</div>
29-
<div class="qr-section">
29+
<div class="preview-section">
3030
<div class="badge-preview">
3131
<canvas id="badgeCanvas" width="296" height="128"></canvas>
3232
<div class="badge-preview-buttons">
@@ -51,6 +51,21 @@ <h1>Badger Press</h1>
5151
<label for="fullstring">Full String:</label>
5252
<input type="text" id="fullstring" name="fullstring" readonly>
5353
</div>
54+
<div class="help-container">
55+
<p>
56+
Fill in the fields on the left to generate a badge image. The preview above will be updated in real-time as you type.
57+
Connect your badger over USB, then click the "Copy to Badge" button to copy the badge to your clipboard.
58+
Note that this requires the Web Serial API's which work in Chrome and Edge on the desktop, but not currently Safari
59+
</p>
60+
<p>
61+
To learn more about your GitHub Badger 2350, <a href=""https://github.com/badger/home">visit the repo</a>.
62+
You can also edit the code running on your Badger directly using the <a href="https://viper-ide.org/">Viper Web IDE</a> or
63+
you can install <a href="https://thonny.org/">Thonny</a> locally.
64+
</p>
65+
<p>
66+
The GitHub Badger 2350 was created in partnership with the wonderful team at <a href="https://pimoroni.com/">Pimoroni</a>.
67+
</p>
68+
</div>
5469
</div>
5570
</div>
5671

public/styles.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ body {
2626
flex: 1;
2727
padding: 20px;
2828
}
29-
.qr-section {
29+
.preview-section {
3030
flex: 1;
3131
padding: 20px;
3232
display: flex;
@@ -38,6 +38,7 @@ body {
3838
}
3939
.qr-container {
4040
margin-bottom: 10px;
41+
display: none; /* hide by default */
4142
}
4243
.input-container {
4344
width: 100%;

0 commit comments

Comments
 (0)