Skip to content

Commit

Permalink
Merge branch 'main' into merge-upstream
Browse files Browse the repository at this point in the history
  • Loading branch information
microbit-matt-hillsdon committed Dec 11, 2023
2 parents 0f3c1aa + 829dd1e commit 2dfd1c2
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 63 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,23 @@

<main>
<div class="w-180 leading-10 pb-5">
<p class="font-bold text-2xl text-left">
<h2 class="font-bold text-2xl">
{$t('connectMB.webPopup')}
</p>
<img
src=""
alt="Instructions on how to choose microbit from web popup via bluetooth"
class="left-0 pt-5" />
<p class="absolute left-3/4 transform -translate-x-1/2 top-1/2 -translate-y-28">
{$t('connectMB.webPopup.instruction1')}
</p>
<p class="absolute left-3/4 transform -translate-x-1/2 -translate-y-13">
{$t('connectMB.webPopup.instruction2')}
</p>
</h2>
<div class="flex mt-5">
<img
src=""
alt="Screenshot of the browser window that will appear next. Your connected micro:bit will be listed. Choose your micro:bit then select the Connect button." />
<div class="flex flex-col w-full px-5">
<h3 class="font-bold text-lg mb-5">
{$t('connectMB.webPopup.instruction.heading')}:
</h3>
<ol class="list-decimal list-inside">
<li>{$t('connectMB.webPopup.instruction1')}</li>
<li>{$t('connectMB.webPopup.instruction2')}</li>
</ol>
</div>
</div>
</div>
<div class="justify-end flex flex-space-10 gap-x-5">
<StandardButton position="right" onClick={onBackClick}
Expand Down

This file was deleted.

28 changes: 16 additions & 12 deletions src/components/connection-prompt/usb/SelectMicrobitDialogUsb.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -26,19 +26,23 @@

<main>
<div class="w-180 leading-10 pb-5">
<p class="font-bold text-2xl text-left">
<h2 class="font-bold text-2xl">
{$t('connectMB.webPopup')}
</p>
<img
src={selectMicrobitImage}
alt="Screenshot of the browser window that will appear next. Your connected micro:bit will be listed. Choose your micro:bit then select the Connect button."
class="left-0 pt-5" />
<p class="absolute left-3/4 transform -translate-x-1/2 top-1/2 -translate-y-28">
{$t('connectMB.webPopup.instruction1')}
</p>
<p class="absolute left-3/4 transform -translate-x-1/2 -translate-y-13">
{$t('connectMB.webPopup.instruction2')}
</p>
</h2>
<div class="flex mt-5">
<img
src={selectMicrobitImage}
alt="Screenshot of the browser window that will appear next. Your connected micro:bit will be listed. Choose your micro:bit then select the Connect button." />
<div class="flex flex-col w-full px-5">
<h3 class="font-bold text-lg mb-5">
{$t('connectMB.webPopup.instruction.heading')}:
</h3>
<ol class="list-decimal list-inside">
<li>{$t('connectMB.webPopup.instruction1')}</li>
<li>{$t('connectMB.webPopup.instruction2')}</li>
</ol>
</div>
</div>
</div>
<div class="justify-end flex flex-space-10 gap-x-5">
<StandardButton position="right" onClick={onBackClick}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<!--
(c) 2023, Center for Computational Thinking and Design at Aarhus University and contributors
SPDX-License-Identifier: MIT
-->

Expand Down Expand Up @@ -71,7 +71,7 @@
</div>
</div>
<div class="grid grid-cols-1 place-items-center w-full">
<StandardButton onClick={onConnectBluetoothClick}
<StandardButton type="primary" onClick={onConnectBluetoothClick}
>{$t('connectMB.usb.manual.done')}</StandardButton>
</div>
</main>
1 change: 1 addition & 0 deletions src/messages/ui.da.json
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@
"connectMB.connectCable.skip": "TRANSLATION_NEEDED",

"connectMB.webPopup": "TRANSLATION_NEEDED",
"connectMB.webPopup.instruction.heading": "TRANSLATION_NEEDED",
"connectMB.webPopup.instruction1": "TRANSLATION_NEEDED",
"connectMB.webPopup.instruction2": "TRANSLATION_NEEDED",

Expand Down
1 change: 1 addition & 0 deletions src/messages/ui.en.json
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@
"connectMB.connectCable.skip": "Skip: program already downloaded?",

"connectMB.webPopup": "Select micro:bit",
"connectMB.webPopup.instruction.heading": "In the next popup",
"connectMB.webPopup.instruction1": "Choose your micro:bit",
"connectMB.webPopup.instruction2": "Select 'Connect'",

Expand Down

0 comments on commit 2dfd1c2

Please sign in to comment.