-
Notifications
You must be signed in to change notification settings - Fork 103
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* refactor: removes mobile code and adds code conventions * refactor: move OnboardingLayout to desktop * fixes from review --------- Co-authored-by: Begoña Alvarez <balvarez@boxfish.studio>
- Loading branch information
1 parent
f80e47b
commit da8b94c
Showing
31 changed files
with
138 additions
and
167 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
<script lang="ts"> | ||
import { Icon } from '@ui' | ||
import { localize } from '@core/i18n' | ||
import { platform, PlatformOption } from '@core/app' | ||
import { Icon as IconEnum } from '@auxiliary/icon' | ||
export let busy = false | ||
export let allowBack = true | ||
export let onBackClick = (): void => {} | ||
</script> | ||
|
||
<onboarding-layout data-label="onboarding-layout" class="relative w-full h-full flex flex-row"> | ||
<leftpane-container data-label="leftpane" class="h-full flex justify-center p-12 pt-8 bg-white dark:bg-gray-800"> | ||
<div class="w-full h-full flex flex-col justify-between"> | ||
<div class="flex flex-col h-full"> | ||
<action-placeholder class="block mb-8" class:mt-9={$platform === PlatformOption.MacOs}> | ||
{#if allowBack} | ||
<button | ||
on:click={onBackClick} | ||
class:busy | ||
disabled={busy} | ||
aria-label={localize('actions.back')} | ||
type="button" | ||
> | ||
<icon-container class:busy> | ||
<Icon icon={IconEnum.ArrowLeft} /> | ||
</icon-container> | ||
</button> | ||
{/if} | ||
</action-placeholder> | ||
<leftpane-content-container data-label="leftpane-content" class="h-full flex flex-col"> | ||
{#if $$slots.title} | ||
<div class="mb-5"> | ||
<slot name="title" /> | ||
</div> | ||
{/if} | ||
<slot name="leftpane__content" /> | ||
</leftpane-content-container> | ||
</div> | ||
<leftpane-action-container data-label="leftpane-action" class="block mt-6"> | ||
<slot name="leftpane__action" /> | ||
</leftpane-action-container> | ||
</div> | ||
</leftpane-container> | ||
<rightpane-container data-label="rightpane" class="block relative bg-gray-100 dark:bg-gray-900"> | ||
<slot name="rightpane" /> | ||
</rightpane-container> | ||
</onboarding-layout> | ||
|
||
<style lang="scss"> | ||
leftpane-container { | ||
width: 38%; | ||
> div { | ||
max-width: 406px; | ||
} | ||
} | ||
rightpane-container { | ||
width: 62%; | ||
} | ||
button { | ||
@apply w-6 h-6; | ||
transition: filter 0.2s; | ||
&:focus { | ||
filter: brightness(1.3); | ||
} | ||
&.busy { | ||
@apply pointer-events-none opacity-50; | ||
} | ||
} | ||
icon-container { | ||
@apply block cursor-pointer text-blue-500; | ||
&.busy { | ||
@apply cursor-default pointer-events-none text-gray-500; | ||
} | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
packages/desktop/views/onboarding/views/CongratulationsView.svelte
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
packages/desktop/views/onboarding/views/app-setup/views/LanguageAndAppearanceView.svelte
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
packages/desktop/views/onboarding/views/app-setup/views/WelcomeView.svelte
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
packages/desktop/views/onboarding/views/ledger-setup/views/ConnectLedgerView.svelte
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
...ages/desktop/views/onboarding/views/ledger-setup/views/LedgerInstallationGuideView.svelte
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
packages/desktop/views/onboarding/views/network-setup/views/ChooseNetworkView.svelte
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
packages/desktop/views/onboarding/views/network-setup/views/ChooseProtocolView.svelte
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
...sktop/views/onboarding/views/network-setup/views/SetupPrivateNetworkConnectionView.svelte
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
packages/desktop/views/onboarding/views/profile-backup/views/BackupMnemonicView.svelte
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 2 additions & 9 deletions
11
packages/desktop/views/onboarding/views/profile-backup/views/BackupStrongholdView.svelte
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
packages/desktop/views/onboarding/views/profile-backup/views/VerifyMnemonicView.svelte
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
packages/desktop/views/onboarding/views/profile-backup/views/ViewMnemonicView.svelte
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
packages/desktop/views/onboarding/views/profile-recovery/views/BackupPasswordView.svelte
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
...ges/desktop/views/onboarding/views/profile-recovery/views/ImportMnemonicPhraseView.svelte
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
...s/desktop/views/onboarding/views/profile-recovery/views/ImportStrongholdBackupView.svelte
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
packages/desktop/views/onboarding/views/profile-recovery/views/LedgerView.svelte
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
packages/desktop/views/onboarding/views/profile-recovery/views/SuccessView.svelte
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
packages/desktop/views/onboarding/views/profile-setup/views/EnterNameView.svelte
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
packages/desktop/views/onboarding/views/profile-setup/views/SetupClaimedView.svelte
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
packages/desktop/views/onboarding/views/profile-setup/views/SetupNewView.svelte
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
packages/desktop/views/onboarding/views/profile-setup/views/SetupRecoveredView.svelte
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
packages/desktop/views/onboarding/views/profile-setup/views/SetupView.svelte
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
packages/desktop/views/onboarding/views/shimmer-claiming/views/ClaimRewardsView.svelte
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
packages/desktop/views/onboarding/views/shimmer-claiming/views/SuccessView.svelte
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
...sktop/views/onboarding/views/storage-protection-setup/views/SetupPinProtectionView.svelte
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 2 additions & 9 deletions
11
.../desktop/views/onboarding/views/stronghold-setup/views/SetupStrongholdPasswordView.svelte
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.