Skip to content

Commit c3d054a

Browse files
committed
feat: prepare UI step 2
1 parent 4a19372 commit c3d054a

File tree

3 files changed

+41
-7
lines changed

3 files changed

+41
-7
lines changed
Original file line numberDiff line numberDiff line change
@@ -1 +1,30 @@
1-
<h1>GenerateMana</h1>
1+
<script lang="ts">
2+
import { Button, FontWeight, Text, TextType } from 'shared/components'
3+
import { localize } from '@core/i18n'
4+
5+
// TODO: Replace this with proper time remaining
6+
const DUMMY_TIME_REMAINING = '5min 32s remaining'
7+
// TODO: Replace this with proper amount
8+
const DUMMY_AMOUNT = '5$'
9+
</script>
10+
11+
<step-content class="flex flex-col items-center justify-between h-full pt-40 pb-10">
12+
<div class="flex flex-col text-center px-4 space-y-2 max-w-md">
13+
<div class="flex items-center justify-center mb-7">
14+
<img
15+
src="assets/illustrations/implicit-account/generate-mana.svg"
16+
alt={localize('views.implicit-account.steps.step2.title')}
17+
/>
18+
</div>
19+
<Text type={TextType.h3} fontWeight={FontWeight.semibold}
20+
>{localize('views.implicit-account.steps.step2.view.title')} ({DUMMY_AMOUNT})</Text
21+
>
22+
<Text type={TextType.h5} fontSize="15" color="blue-700" darkColor="blue-700" fontWeight={FontWeight.semibold}
23+
>{localize('views.implicit-account.steps.step2.view.subtitle')}</Text
24+
>
25+
<Text type={TextType.h5} fontWeight={FontWeight.normal} color="gray-600" darkColor="gray-400"
26+
>{DUMMY_TIME_REMAINING}</Text
27+
>
28+
</div>
29+
<Button disabled>{localize('views.implicit-account.steps.step2.view.action')}</Button>
30+
</step-content>

packages/desktop/views/account/multi-step/MultiStep.svelte

+5-5
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@
2424

2525
{#if activeComponent}
2626
<svelte:component this={activeComponent} {activeState} {onNext} />
27-
<!-- TODO: Remove this button, it's just to allow go to next step -->
28-
{#if currentStep < IMPLICIT_ACCOUNT_STEPS.length - 1}
29-
<button on:click={handleNext}>Next</button>
30-
{/if}
3127
<!-- Dots to show progress -->
3228
<div class="flex flex-row justify-center space-x-2.5">
3329
{#each IMPLICIT_ACCOUNT_STEPS as step, index}
34-
<div class="w-2.5 h-2.5 rounded-full {activeState === step ? 'bg-blue-500' : 'bg-blue-200'}" />
30+
<!-- svelte-ignore a11y-click-events-have-key-events -->
31+
<div
32+
on:click={handleNext}
33+
class="w-2.5 h-2.5 rounded-full {activeState === step ? 'bg-blue-500' : 'bg-blue-200'}"
34+
/>
3535
{/each}
3636
</div>
3737
{/if}

packages/shared/locales/en.json

+6-1
Original file line numberDiff line numberDiff line change
@@ -679,7 +679,12 @@
679679
},
680680
"step2": {
681681
"title": "Step 2",
682-
"body": "Fund confirmation"
682+
"body": "Fund confirmation",
683+
"view": {
684+
"title": "Fund arrived",
685+
"subtitle": "Generating mana...",
686+
"action": "Activate Account"
687+
}
683688
},
684689
"step3": {
685690
"title": "Step 3",

0 commit comments

Comments
 (0)