neptune-web-wallet/src/components/auth/OnboardingComponent.vue

77 lines
1.9 KiB
Vue
Raw Normal View History

2025-10-21 12:48:19 +07:00
<script setup lang="ts">
import { ButtonCommon } from '@/components'
2025-10-22 00:16:32 +07:00
const emit = defineEmits<{
2025-10-23 03:27:02 +07:00
goToCreate: []
goToLogin: []
2025-10-22 00:16:32 +07:00
}>()
2025-10-23 03:27:02 +07:00
const handleGoToCreate = () => {
emit('goToCreate')
2025-10-21 12:48:19 +07:00
}
2025-10-23 03:27:02 +07:00
const handleGoToLogin = () => {
emit('goToLogin')
2025-10-21 12:48:19 +07:00
}
</script>
<template>
<div class="welcome-page flex-center">
<div class="welcome-card flex-center">
<div class="welcome-box">
<div class="header-section">
<h2>Welcome to the New Wallet Experience</h2>
2025-10-23 03:27:02 +07:00
<p>Choose the next action:</p>
</div>
<div
class="button-group"
style="display: flex; flex-direction: column; gap: 1rem; margin: 2rem 0"
>
<ButtonCommon type="primary" size="large" @click="handleGoToCreate">
Create new wallet
</ButtonCommon>
<ButtonCommon type="default" size="large" @click="handleGoToLogin">
Open existing wallet
2025-10-21 12:48:19 +07:00
</ButtonCommon>
</div>
<div class="note">Thank you for being a part of the Kaspa community!</div>
</div>
</div>
</div>
</template>
<style lang="scss" scoped>
.welcome-page {
min-height: 100vh;
2025-10-22 00:16:32 +07:00
background-color: var(--bg-light);
2025-10-21 12:48:19 +07:00
position: relative;
.welcome-card {
2025-10-22 00:16:32 +07:00
background-color: var(--bg-white);
box-shadow: var(--shadow-md);
border-radius: var(--radius-md);
2025-10-21 12:48:19 +07:00
width: 100%;
2025-10-23 03:27:02 +07:00
max-width: 500px;
2025-10-21 12:48:19 +07:00
flex-direction: column;
text-align: center;
padding: 2rem;
.welcome-box {
width: 100%;
max-width: 700px;
padding: 30px;
}
}
}
2025-10-22 00:16:32 +07:00
p {
margin: 1rem;
font-size: var(--font-sm);
}
.note {
margin-top: 1rem;
font-size: 0.9rem;
color: var(--text-secondary);
}
2025-10-21 12:48:19 +07:00
</style>