Skip to content

Commit b2189b1

Browse files
committed
Add new SVG icons for Espressif and Nordic, and update GPS icon
- Added a new SVG file for Espressif logo in `static/img/features/espressif.svg`. - Updated the GPS icon in `static/img/features/gps.svg` to a new design. - Added a new SVG file for Nordic logo in `static/img/features/nordic.svg`.
1 parent 4b28047 commit b2189b1

File tree

7 files changed

+436
-53
lines changed

7 files changed

+436
-53
lines changed

components/Flasher/index.jsx

Lines changed: 30 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,26 @@ const ReleaseGrid = ({
281281
{fsFirmwares[firmware].name}
282282
</h3>
283283
</div>
284+
<div className={styles.iconSelectorNoClose}>
285+
<select
286+
id={"pkg-selector"}
287+
value=""
288+
onChange={async (e) => {
289+
const pkgType = e.target.value;
290+
if (!pkgType) return;
291+
await onPkgDownload(selectedRelease, pkgType);
292+
}}
293+
>
294+
<option value="" disabled>
295+
Download
296+
</option>
297+
{packages.map((f_type, idx) => (
298+
<option key={idx} value={f_type}>
299+
{f_type}
300+
</option>
301+
))}
302+
</select>
303+
</div>
284304
</div>
285305

286306
<div className={styles.containerContent}>
@@ -290,14 +310,18 @@ const ReleaseGrid = ({
290310
{selectorOpts}
291311
</select>
292312
</div>
293-
{selectedRelease.note ? (
294-
<div>
295-
<b>Release Note:</b>
313+
<div>
314+
<b>Release Note</b>
315+
{selectedRelease.note ? (
296316
<ReactMarkdown remarkPlugins={[remarkGfm, remarkBreaks]}>
297317
{selectedRelease.note}
298318
</ReactMarkdown>
299-
</div>
300-
) : null}
319+
) : (
320+
<ReactMarkdown remarkPlugins={[remarkGfm, remarkBreaks]}>
321+
*No release note available.*
322+
</ReactMarkdown>
323+
)}
324+
</div>
301325
</div>
302326
</div>
303327

@@ -346,27 +370,6 @@ const ReleaseGrid = ({
346370
</div>
347371
</button>
348372
</div>
349-
350-
<div className={styles.iconSelectorNoClose}>
351-
<select
352-
id={"pkg-selector"}
353-
value=""
354-
onChange={async (e) => {
355-
const pkgType = e.target.value;
356-
if (!pkgType) return;
357-
await onPkgDownload(selectedRelease, pkgType);
358-
}}
359-
>
360-
<option value="" disabled>
361-
Download
362-
</option>
363-
{packages.map((f_type, idx) => (
364-
<option key={idx} value={f_type}>
365-
{f_type}
366-
</option>
367-
))}
368-
</select>
369-
</div>
370373
</div>
371374
</div>
372375
);
@@ -470,9 +473,7 @@ const Flasher = () => {
470473

471474
// const zipData = await response.blob();
472475

473-
setFlashStatus(
474-
"Flashing...(Please make sure your device in DFU mode!!!)",
475-
);
476+
setFlashStatus("Flashing... (Please make sure your device in DFU mode)");
476477

477478
const dfu = new Dfu(port, erase.current);
478479
await dfu.dfuUpdate(content, async (progress) => {

components/Flasher/styles.module.css

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@
114114
border: unset;
115115
align-items: center;
116116
height: 2rem;
117+
font-size: 20px;
117118
}
118119

119120
button:not([class]):hover,
@@ -142,12 +143,12 @@
142143
}
143144

144145
.containerContent {
145-
background-color: var(--gray1);
146+
/* background-color: var(--gray1); */
146147
}
147148

148149
/* Common button style */
149150
.roundedButton {
150-
display: inline-flex;
151+
display: inherit;
151152
padding: 8px 16px;
152153
gap: 0.25rem;
153154
border-radius: var(--spacer-6);
@@ -161,10 +162,11 @@
161162
box-shadow 0.2s ease;
162163
font-weight: 600;
163164
position: relative;
164-
}
165+
font-size: 15px;
165166

166-
.roundedButton input {
167-
margin: unset;
167+
svg {
168+
font-size: 15px;
169+
}
168170
}
169171

170172
.roundedButton:disabled,
@@ -182,7 +184,7 @@
182184
.iconSelectorFloatLabel {
183185
position: relative;
184186
display: inline-block;
185-
width: 40%;
187+
width: 50%;
186188
}
187189

188190
.iconSelectorFloatLabel select {
@@ -359,7 +361,6 @@
359361
/* selector no close when chose option */
360362
.iconSelectorNoClose {
361363
position: relative;
362-
width: 20%;
363364

364365
> select {
365366
width: 100%;

0 commit comments

Comments
 (0)