2024-02-20 14:56:58 +00:00
|
|
|
<template>
|
|
|
|
<DocSectionText v-bind="$attrs">
|
2024-02-22 09:45:53 +00:00
|
|
|
<p>Stepper provides various templating options to customize the default UI design.</p>
|
2024-02-20 14:56:58 +00:00
|
|
|
</DocSectionText>
|
2024-05-20 12:14:38 +00:00
|
|
|
<div class="card flex justify-center">
|
2024-02-20 14:56:58 +00:00
|
|
|
<Stepper v-model:activeStep="active">
|
|
|
|
<StepperPanel>
|
2024-02-22 09:35:09 +00:00
|
|
|
<template #header="{ index, clickCallback }">
|
2024-05-20 12:14:38 +00:00
|
|
|
<button class="bg-transparent border-0 inline-flex flex-col gap-2" @click="clickCallback">
|
|
|
|
<span :class="['border-round border-2 w-12 h-12 inline-flex items-center justify-content-center', { 'bg-primary border-primary': index <= active, 'surface-border': index > active }]">
|
2024-02-22 09:35:09 +00:00
|
|
|
<i class="pi pi-user" />
|
2024-02-20 14:56:58 +00:00
|
|
|
</span>
|
2024-02-22 09:35:09 +00:00
|
|
|
</button>
|
2024-02-20 14:56:58 +00:00
|
|
|
</template>
|
2024-02-22 09:35:09 +00:00
|
|
|
<template #content="{ nextCallback }">
|
2024-05-20 12:14:38 +00:00
|
|
|
<div class="flex flex-col gap-2 mx-auto" style="min-height: 16rem; max-width: 20rem">
|
|
|
|
<div class="text-center mt-4 mb-4 text-xl font-semibold">Create your account</div>
|
2024-02-20 14:56:58 +00:00
|
|
|
<div class="field p-fluid">
|
|
|
|
<IconField>
|
|
|
|
<InputIcon>
|
|
|
|
<i class="pi pi-user" />
|
|
|
|
</InputIcon>
|
|
|
|
<InputText id="input" v-model="name" type="text" placeholder="Name" />
|
|
|
|
</IconField>
|
|
|
|
</div>
|
|
|
|
<div class="field p-fluid">
|
|
|
|
<IconField>
|
|
|
|
<InputIcon>
|
|
|
|
<i class="pi pi-envelope" />
|
|
|
|
</InputIcon>
|
|
|
|
<InputText id="email" v-model="email" type="email" placeholder="Email" />
|
|
|
|
</IconField>
|
|
|
|
</div>
|
|
|
|
<div class="field p-fluid">
|
|
|
|
<Password v-model="password" toggleMask placeholder="Password" />
|
|
|
|
</div>
|
|
|
|
</div>
|
2024-05-20 12:14:38 +00:00
|
|
|
<div class="flex pt-6 justify-end">
|
2024-02-22 09:35:09 +00:00
|
|
|
<Button label="Next" icon="pi pi-arrow-right" iconPos="right" @click="nextCallback" />
|
2024-02-20 14:56:58 +00:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</StepperPanel>
|
|
|
|
<StepperPanel>
|
2024-02-22 09:35:09 +00:00
|
|
|
<template #header="{ index, clickCallback }">
|
2024-05-20 12:14:38 +00:00
|
|
|
<button class="bg-transparent border-0 inline-flex flex-col gap-2" @click="clickCallback">
|
|
|
|
<span :class="['border-round border-2 w-12 h-12 inline-flex items-center justify-content-center', { 'bg-primary border-primary': index <= active, 'surface-border': index > active }]">
|
2024-02-22 09:35:09 +00:00
|
|
|
<i class="pi pi-star" />
|
2024-02-20 14:56:58 +00:00
|
|
|
</span>
|
2024-02-22 09:35:09 +00:00
|
|
|
</button>
|
2024-02-20 14:56:58 +00:00
|
|
|
</template>
|
|
|
|
<template #content="{ prevCallback, nextCallback }">
|
2024-05-20 12:14:38 +00:00
|
|
|
<div class="flex flex-col gap-2 mx-auto" style="min-height: 16rem; max-width: 24rem">
|
|
|
|
<div class="text-center mt-4 mb-4 text-xl font-semibold">Choose your interests</div>
|
|
|
|
<div class="flex flex-wrap justify-center gap-4">
|
2024-02-22 09:35:09 +00:00
|
|
|
<ToggleButton v-model="option1" onLabel="Nature" offLabel="Nature" />
|
|
|
|
<ToggleButton v-model="option2" onLabel="Art" offLabel="Art" />
|
|
|
|
<ToggleButton v-model="option3" onLabel="Music" offLabel="Music" />
|
|
|
|
<ToggleButton v-model="option4" onLabel="Design" offLabel="Design" />
|
|
|
|
<ToggleButton v-model="option5" onLabel="Photography" offLabel="Photography" />
|
|
|
|
<ToggleButton v-model="option6" onLabel="Movies" offLabel="Movies" />
|
|
|
|
<ToggleButton v-model="option7" onLabel="Sports" offLabel="Sports" />
|
|
|
|
<ToggleButton v-model="option8" onLabel="Gaming" offLabel="Gaming" />
|
|
|
|
<ToggleButton v-model="option9" onLabel="Traveling" offLabel="Traveling" />
|
|
|
|
<ToggleButton v-model="option10" onLabel="Dancing" offLabel="Dancing" />
|
2024-02-20 14:56:58 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2024-05-20 12:14:38 +00:00
|
|
|
<div class="flex pt-6 justify-between">
|
2024-02-20 14:56:58 +00:00
|
|
|
<Button label="Back" severity="secondary" icon="pi pi-arrow-left" @click="prevCallback" />
|
2024-02-22 09:35:09 +00:00
|
|
|
<Button label="Next" icon="pi pi-arrow-right" iconPos="right" @click="nextCallback" />
|
2024-02-20 14:56:58 +00:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</StepperPanel>
|
|
|
|
<StepperPanel>
|
2024-02-22 09:35:09 +00:00
|
|
|
<template #header="{ index, clickCallback }">
|
2024-05-20 12:14:38 +00:00
|
|
|
<button class="bg-transparent border-0 inline-flex flex-col gap-2" @click="clickCallback">
|
|
|
|
<span :class="['border-round border-2 w-12 h-12 inline-flex items-center justify-content-center', { 'bg-primary border-primary': index <= active, 'surface-border': index > active }]">
|
2024-02-22 09:35:09 +00:00
|
|
|
<i class="pi pi-id-card" />
|
2024-02-20 14:56:58 +00:00
|
|
|
</span>
|
2024-02-22 09:35:09 +00:00
|
|
|
</button>
|
2024-02-20 14:56:58 +00:00
|
|
|
</template>
|
2024-02-22 09:35:09 +00:00
|
|
|
<template #content="{ prevCallback }">
|
2024-05-20 12:14:38 +00:00
|
|
|
<div class="flex flex-col gap-2 mx-auto" style="min-height: 16rem; max-width: 24rem">
|
|
|
|
<div class="text-center mt-4 mb-4 text-xl font-semibold">Account created successfully</div>
|
2024-02-22 09:35:09 +00:00
|
|
|
<div class="text-center">
|
|
|
|
<img alt="logo" src="https://primefaces.org/cdn/primevue/images/stepper/content.svg" />
|
2024-02-20 14:56:58 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2024-05-20 12:14:38 +00:00
|
|
|
<div class="flex pt-6 justify-start">
|
2024-02-20 14:56:58 +00:00
|
|
|
<Button label="Back" severity="secondary" icon="pi pi-arrow-left" @click="prevCallback" />
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</StepperPanel>
|
|
|
|
</Stepper>
|
|
|
|
</div>
|
|
|
|
<DocSectionCode :code="code" />
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
active: 0,
|
|
|
|
name: null,
|
|
|
|
email: null,
|
|
|
|
password: null,
|
|
|
|
option1: false,
|
2024-02-22 09:35:09 +00:00
|
|
|
option2: false,
|
2024-02-20 14:56:58 +00:00
|
|
|
option3: false,
|
2024-02-22 09:35:09 +00:00
|
|
|
option4: false,
|
2024-02-20 14:56:58 +00:00
|
|
|
option5: false,
|
2024-02-22 09:35:09 +00:00
|
|
|
option6: false,
|
|
|
|
option7: false,
|
|
|
|
option8: false,
|
|
|
|
option9: false,
|
|
|
|
option10: false,
|
2024-02-20 14:56:58 +00:00
|
|
|
code: {
|
|
|
|
basic: `
|
|
|
|
<Stepper v-model:activeStep="active">
|
|
|
|
<StepperPanel>
|
2024-02-22 09:35:09 +00:00
|
|
|
<template #header="{ index, clickCallback }">
|
2024-05-20 12:14:38 +00:00
|
|
|
<button class="bg-transparent border-0 inline-flex flex-col gap-2" @click="clickCallback">
|
|
|
|
<span :class="['border-round border-2 w-12 h-12 inline-flex items-center justify-content-center', { 'bg-primary border-primary': index <= active, 'surface-border': index > active }]">
|
2024-02-22 09:35:09 +00:00
|
|
|
<i class="pi pi-user" />
|
2024-02-20 14:56:58 +00:00
|
|
|
</span>
|
2024-02-22 09:35:09 +00:00
|
|
|
</button>
|
2024-02-20 14:56:58 +00:00
|
|
|
</template>
|
2024-02-22 09:35:09 +00:00
|
|
|
<template #content="{ nextCallback }">
|
2024-05-20 12:14:38 +00:00
|
|
|
<div class="flex flex-col gap-2 mx-auto" style="min-height: 16rem; max-width: 20rem">
|
|
|
|
<div class="text-center mt-4 mb-4 text-xl font-semibold">Create your account</div>
|
2024-02-20 14:56:58 +00:00
|
|
|
<div class="field p-fluid">
|
|
|
|
<IconField>
|
|
|
|
<InputIcon>
|
|
|
|
<i class="pi pi-user" />
|
|
|
|
</InputIcon>
|
|
|
|
<InputText id="input" v-model="name" type="text" placeholder="Name" />
|
|
|
|
</IconField>
|
|
|
|
</div>
|
|
|
|
<div class="field p-fluid">
|
|
|
|
<IconField>
|
|
|
|
<InputIcon>
|
|
|
|
<i class="pi pi-envelope" />
|
|
|
|
</InputIcon>
|
|
|
|
<InputText id="email" v-model="email" type="email" placeholder="Email" />
|
|
|
|
</IconField>
|
|
|
|
</div>
|
|
|
|
<div class="field p-fluid">
|
|
|
|
<Password v-model="password" toggleMask placeholder="Password" />
|
|
|
|
</div>
|
|
|
|
</div>
|
2024-05-20 12:14:38 +00:00
|
|
|
<div class="flex pt-6 justify-end">
|
2024-02-22 09:35:09 +00:00
|
|
|
<Button label="Next" icon="pi pi-arrow-right" iconPos="right" @click="nextCallback" />
|
2024-02-20 14:56:58 +00:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</StepperPanel>
|
|
|
|
<StepperPanel>
|
2024-02-22 09:35:09 +00:00
|
|
|
<template #header="{ index, clickCallback }">
|
2024-05-20 12:14:38 +00:00
|
|
|
<button class="bg-transparent border-0 inline-flex flex-col gap-2" @click="clickCallback">
|
|
|
|
<span :class="['border-round border-2 w-12 h-12 inline-flex items-center justify-content-center', { 'bg-primary border-primary': index <= active, 'surface-border': index > active }]">
|
2024-02-22 09:35:09 +00:00
|
|
|
<i class="pi pi-star" />
|
2024-02-20 14:56:58 +00:00
|
|
|
</span>
|
2024-02-22 09:35:09 +00:00
|
|
|
</button>
|
2024-02-20 14:56:58 +00:00
|
|
|
</template>
|
|
|
|
<template #content="{ prevCallback, nextCallback }">
|
2024-05-20 12:14:38 +00:00
|
|
|
<div class="flex flex-col gap-2 mx-auto" style="min-height: 16rem; max-width: 24rem">
|
|
|
|
<div class="text-center mt-4 mb-4 text-xl font-semibold">Choose your interests</div>
|
|
|
|
<div class="flex flex-wrap justify-center gap-4">
|
2024-02-22 09:35:09 +00:00
|
|
|
<ToggleButton v-model="option1" onLabel="Nature" offLabel="Nature" />
|
|
|
|
<ToggleButton v-model="option2" onLabel="Art" offLabel="Art" />
|
|
|
|
<ToggleButton v-model="option3" onLabel="Music" offLabel="Music" />
|
|
|
|
<ToggleButton v-model="option4" onLabel="Design" offLabel="Design" />
|
|
|
|
<ToggleButton v-model="option5" onLabel="Photography" offLabel="Photography" />
|
|
|
|
<ToggleButton v-model="option6" onLabel="Movies" offLabel="Movies" />
|
|
|
|
<ToggleButton v-model="option7" onLabel="Sports" offLabel="Sports" />
|
|
|
|
<ToggleButton v-model="option8" onLabel="Gaming" offLabel="Gaming" />
|
|
|
|
<ToggleButton v-model="option9" onLabel="Traveling" offLabel="Traveling" />
|
|
|
|
<ToggleButton v-model="option10" onLabel="Dancing" offLabel="Dancing" />
|
2024-02-20 14:56:58 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2024-05-20 12:14:38 +00:00
|
|
|
<div class="flex pt-6 justify-between">
|
2024-02-20 14:56:58 +00:00
|
|
|
<Button label="Back" severity="secondary" icon="pi pi-arrow-left" @click="prevCallback" />
|
2024-02-22 09:35:09 +00:00
|
|
|
<Button label="Next" icon="pi pi-arrow-right" iconPos="right" @click="nextCallback" />
|
2024-02-20 14:56:58 +00:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</StepperPanel>
|
|
|
|
<StepperPanel>
|
2024-02-22 09:35:09 +00:00
|
|
|
<template #header="{ index, clickCallback }">
|
2024-05-20 12:14:38 +00:00
|
|
|
<button class="bg-transparent border-0 inline-flex flex-col gap-2" @click="clickCallback">
|
|
|
|
<span :class="['border-round border-2 w-12 h-12 inline-flex items-center justify-content-center', { 'bg-primary border-primary': index <= active, 'surface-border': index > active }]">
|
2024-02-22 09:35:09 +00:00
|
|
|
<i class="pi pi-id-card" />
|
2024-02-20 14:56:58 +00:00
|
|
|
</span>
|
2024-02-22 09:35:09 +00:00
|
|
|
</button>
|
2024-02-20 14:56:58 +00:00
|
|
|
</template>
|
2024-02-22 09:35:09 +00:00
|
|
|
<template #content="{ prevCallback }">
|
2024-05-20 12:14:38 +00:00
|
|
|
<div class="flex flex-col gap-2 mx-auto" style="min-height: 16rem; max-width: 24rem">
|
|
|
|
<div class="text-center mt-4 mb-4 text-xl font-semibold">Account created successfully</div>
|
2024-02-22 09:35:09 +00:00
|
|
|
<div class="text-center">
|
|
|
|
<img alt="logo" src="https://primefaces.org/cdn/primevue/images/stepper/content.svg" />
|
|
|
|
</div>
|
2024-02-20 14:56:58 +00:00
|
|
|
</div>
|
2024-05-20 12:14:38 +00:00
|
|
|
<div class="flex pt-6 justify-start">
|
2024-02-20 14:56:58 +00:00
|
|
|
<Button label="Back" severity="secondary" icon="pi pi-arrow-left" @click="prevCallback" />
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</StepperPanel>
|
|
|
|
</Stepper>
|
|
|
|
`,
|
|
|
|
options: `
|
|
|
|
<template>
|
2024-05-20 12:14:38 +00:00
|
|
|
<div class="card flex justify-center">
|
2024-02-20 14:56:58 +00:00
|
|
|
<Stepper v-model:activeStep="active">
|
|
|
|
<StepperPanel>
|
2024-02-22 09:35:09 +00:00
|
|
|
<template #header="{ index, clickCallback }">
|
2024-05-20 12:14:38 +00:00
|
|
|
<button class="bg-transparent border-0 inline-flex flex-col gap-2" @click="clickCallback">
|
|
|
|
<span :class="['border-round border-2 w-12 h-12 inline-flex items-center justify-content-center', { 'bg-primary border-primary': index <= active, 'surface-border': index > active }]">
|
2024-02-22 09:35:09 +00:00
|
|
|
<i class="pi pi-user" />
|
2024-02-20 14:56:58 +00:00
|
|
|
</span>
|
2024-02-22 09:35:09 +00:00
|
|
|
</button>
|
2024-02-20 14:56:58 +00:00
|
|
|
</template>
|
2024-02-22 09:35:09 +00:00
|
|
|
<template #content="{ nextCallback }">
|
2024-05-20 12:14:38 +00:00
|
|
|
<div class="flex flex-col gap-2 mx-auto" style="min-height: 16rem; max-width: 20rem">
|
|
|
|
<div class="text-center mt-4 mb-4 text-xl font-semibold">Create your account</div>
|
2024-02-20 14:56:58 +00:00
|
|
|
<div class="field p-fluid">
|
|
|
|
<IconField>
|
|
|
|
<InputIcon>
|
|
|
|
<i class="pi pi-user" />
|
|
|
|
</InputIcon>
|
|
|
|
<InputText id="input" v-model="name" type="text" placeholder="Name" />
|
|
|
|
</IconField>
|
|
|
|
</div>
|
|
|
|
<div class="field p-fluid">
|
|
|
|
<IconField>
|
|
|
|
<InputIcon>
|
|
|
|
<i class="pi pi-envelope" />
|
|
|
|
</InputIcon>
|
|
|
|
<InputText id="email" v-model="email" type="email" placeholder="Email" />
|
|
|
|
</IconField>
|
|
|
|
</div>
|
|
|
|
<div class="field p-fluid">
|
|
|
|
<Password v-model="password" toggleMask placeholder="Password" />
|
|
|
|
</div>
|
|
|
|
</div>
|
2024-05-20 12:14:38 +00:00
|
|
|
<div class="flex pt-6 justify-end">
|
2024-02-22 09:35:09 +00:00
|
|
|
<Button label="Next" icon="pi pi-arrow-right" iconPos="right" @click="nextCallback" />
|
2024-02-20 14:56:58 +00:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</StepperPanel>
|
|
|
|
<StepperPanel>
|
2024-02-22 09:35:09 +00:00
|
|
|
<template #header="{ index, clickCallback }">
|
2024-05-20 12:14:38 +00:00
|
|
|
<button class="bg-transparent border-0 inline-flex flex-col gap-2" @click="clickCallback">
|
|
|
|
<span :class="['border-round border-2 w-12 h-12 inline-flex items-center justify-content-center', { 'bg-primary border-primary': index <= active, 'surface-border': index > active }]">
|
2024-02-22 09:35:09 +00:00
|
|
|
<i class="pi pi-star" />
|
2024-02-20 14:56:58 +00:00
|
|
|
</span>
|
2024-02-22 09:35:09 +00:00
|
|
|
</button>
|
2024-02-20 14:56:58 +00:00
|
|
|
</template>
|
|
|
|
<template #content="{ prevCallback, nextCallback }">
|
2024-05-20 12:14:38 +00:00
|
|
|
<div class="flex flex-col gap-2 mx-auto" style="min-height: 16rem; max-width: 24rem">
|
|
|
|
<div class="text-center mt-4 mb-4 text-xl font-semibold">Choose your interests</div>
|
|
|
|
<div class="flex flex-wrap justify-center gap-4">
|
2024-02-22 09:35:09 +00:00
|
|
|
<ToggleButton v-model="option1" onLabel="Nature" offLabel="Nature" />
|
|
|
|
<ToggleButton v-model="option2" onLabel="Art" offLabel="Art" />
|
|
|
|
<ToggleButton v-model="option3" onLabel="Music" offLabel="Music" />
|
|
|
|
<ToggleButton v-model="option4" onLabel="Design" offLabel="Design" />
|
|
|
|
<ToggleButton v-model="option5" onLabel="Photography" offLabel="Photography" />
|
|
|
|
<ToggleButton v-model="option6" onLabel="Movies" offLabel="Movies" />
|
|
|
|
<ToggleButton v-model="option7" onLabel="Sports" offLabel="Sports" />
|
|
|
|
<ToggleButton v-model="option8" onLabel="Gaming" offLabel="Gaming" />
|
|
|
|
<ToggleButton v-model="option9" onLabel="Traveling" offLabel="Traveling" />
|
|
|
|
<ToggleButton v-model="option10" onLabel="Dancing" offLabel="Dancing" />
|
2024-02-20 14:56:58 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2024-05-20 12:14:38 +00:00
|
|
|
<div class="flex pt-6 justify-between">
|
2024-02-20 14:56:58 +00:00
|
|
|
<Button label="Back" severity="secondary" icon="pi pi-arrow-left" @click="prevCallback" />
|
2024-02-22 09:35:09 +00:00
|
|
|
<Button label="Next" icon="pi pi-arrow-right" iconPos="right" @click="nextCallback" />
|
2024-02-20 14:56:58 +00:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</StepperPanel>
|
|
|
|
<StepperPanel>
|
2024-02-22 09:35:09 +00:00
|
|
|
<template #header="{ index, clickCallback }">
|
2024-05-20 12:14:38 +00:00
|
|
|
<button class="bg-transparent border-0 inline-flex flex-col gap-2" @click="clickCallback">
|
|
|
|
<span :class="['border-round border-2 w-12 h-12 inline-flex items-center justify-content-center', { 'bg-primary border-primary': index <= active, 'surface-border': index > active }]">
|
2024-02-22 09:35:09 +00:00
|
|
|
<i class="pi pi-id-card" />
|
2024-02-20 14:56:58 +00:00
|
|
|
</span>
|
2024-02-22 09:35:09 +00:00
|
|
|
</button>
|
2024-02-20 14:56:58 +00:00
|
|
|
</template>
|
2024-02-22 09:35:09 +00:00
|
|
|
<template #content="{ prevCallback }">
|
2024-05-20 12:14:38 +00:00
|
|
|
<div class="flex flex-col gap-2 mx-auto" style="min-height: 16rem; max-width: 24rem">
|
|
|
|
<div class="text-center mt-4 mb-4 text-xl font-semibold">Account created successfully</div>
|
2024-02-22 09:35:09 +00:00
|
|
|
<div class="text-center">
|
|
|
|
<img alt="logo" src="https://primefaces.org/cdn/primevue/images/stepper/content.svg" />
|
2024-02-20 14:56:58 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2024-05-20 12:14:38 +00:00
|
|
|
<div class="flex pt-6 justify-start">
|
2024-02-20 14:56:58 +00:00
|
|
|
<Button label="Back" severity="secondary" icon="pi pi-arrow-left" @click="prevCallback" />
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</StepperPanel>
|
|
|
|
</Stepper>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
active: 0,
|
|
|
|
name: null,
|
|
|
|
email: null,
|
|
|
|
password: null,
|
|
|
|
option1: false,
|
2024-02-22 09:35:09 +00:00
|
|
|
option2: false,
|
2024-02-20 14:56:58 +00:00
|
|
|
option3: false,
|
2024-02-22 09:35:09 +00:00
|
|
|
option4: false,
|
2024-02-20 14:56:58 +00:00
|
|
|
option5: false,
|
2024-02-22 09:35:09 +00:00
|
|
|
option6: false,
|
|
|
|
option7: false,
|
|
|
|
option8: false,
|
|
|
|
option9: false,
|
|
|
|
option10: false
|
2024-02-20 14:56:58 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
<\/script>
|
2024-02-22 09:35:09 +00:00
|
|
|
|
|
|
|
<style scoped>
|
|
|
|
.p-stepper {
|
|
|
|
flex-basis: 40rem;
|
|
|
|
}
|
|
|
|
<\/style>
|
|
|
|
|
2024-02-20 14:56:58 +00:00
|
|
|
`,
|
|
|
|
composition: `
|
|
|
|
<template>
|
2024-05-20 12:14:38 +00:00
|
|
|
<div class="card flex justify-center">
|
2024-02-20 14:56:58 +00:00
|
|
|
<Stepper v-model:activeStep="active">
|
|
|
|
<StepperPanel>
|
2024-02-22 09:35:09 +00:00
|
|
|
<template #header="{ index, clickCallback }">
|
2024-05-20 12:14:38 +00:00
|
|
|
<button class="bg-transparent border-0 inline-flex flex-col gap-2" @click="clickCallback">
|
|
|
|
<span :class="['border-round border-2 w-12 h-12 inline-flex items-center justify-content-center', { 'bg-primary border-primary': index <= active, 'surface-border': index > active }]">
|
2024-02-22 09:35:09 +00:00
|
|
|
<i class="pi pi-user" />
|
2024-02-20 14:56:58 +00:00
|
|
|
</span>
|
2024-02-22 09:35:09 +00:00
|
|
|
</button>
|
2024-02-20 14:56:58 +00:00
|
|
|
</template>
|
2024-02-22 09:35:09 +00:00
|
|
|
<template #content="{ nextCallback }">
|
2024-05-20 12:14:38 +00:00
|
|
|
<div class="flex flex-col gap-2 mx-auto" style="min-height: 16rem; max-width: 20rem">
|
|
|
|
<div class="text-center mt-4 mb-4 text-xl font-semibold">Create your account</div>
|
2024-02-20 14:56:58 +00:00
|
|
|
<div class="field p-fluid">
|
|
|
|
<IconField>
|
|
|
|
<InputIcon>
|
|
|
|
<i class="pi pi-user" />
|
|
|
|
</InputIcon>
|
|
|
|
<InputText id="input" v-model="name" type="text" placeholder="Name" />
|
|
|
|
</IconField>
|
|
|
|
</div>
|
|
|
|
<div class="field p-fluid">
|
|
|
|
<IconField>
|
|
|
|
<InputIcon>
|
|
|
|
<i class="pi pi-envelope" />
|
|
|
|
</InputIcon>
|
|
|
|
<InputText id="email" v-model="email" type="email" placeholder="Email" />
|
|
|
|
</IconField>
|
|
|
|
</div>
|
|
|
|
<div class="field p-fluid">
|
|
|
|
<Password v-model="password" toggleMask placeholder="Password" />
|
|
|
|
</div>
|
|
|
|
</div>
|
2024-05-20 12:14:38 +00:00
|
|
|
<div class="flex pt-6 justify-end">
|
2024-02-22 09:35:09 +00:00
|
|
|
<Button label="Next" icon="pi pi-arrow-right" iconPos="right" @click="nextCallback" />
|
2024-02-20 14:56:58 +00:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</StepperPanel>
|
|
|
|
<StepperPanel>
|
2024-02-22 09:35:09 +00:00
|
|
|
<template #header="{ index, clickCallback }">
|
2024-05-20 12:14:38 +00:00
|
|
|
<button class="bg-transparent border-0 inline-flex flex-col gap-2" @click="clickCallback">
|
|
|
|
<span :class="['border-round border-2 w-12 h-12 inline-flex items-center justify-content-center', { 'bg-primary border-primary': index <= active, 'surface-border': index > active }]">
|
2024-02-22 09:35:09 +00:00
|
|
|
<i class="pi pi-star" />
|
2024-02-20 14:56:58 +00:00
|
|
|
</span>
|
2024-02-22 09:35:09 +00:00
|
|
|
</button>
|
2024-02-20 14:56:58 +00:00
|
|
|
</template>
|
|
|
|
<template #content="{ prevCallback, nextCallback }">
|
2024-05-20 12:14:38 +00:00
|
|
|
<div class="flex flex-col gap-2 mx-auto" style="min-height: 16rem; max-width: 24rem">
|
|
|
|
<div class="text-center mt-4 mb-4 text-xl font-semibold">Choose your interests</div>
|
|
|
|
<div class="flex flex-wrap justify-center gap-4">
|
2024-02-22 09:35:09 +00:00
|
|
|
<ToggleButton v-model="option1" onLabel="Nature" offLabel="Nature" />
|
|
|
|
<ToggleButton v-model="option2" onLabel="Art" offLabel="Art" />
|
|
|
|
<ToggleButton v-model="option3" onLabel="Music" offLabel="Music" />
|
|
|
|
<ToggleButton v-model="option4" onLabel="Design" offLabel="Design" />
|
|
|
|
<ToggleButton v-model="option5" onLabel="Photography" offLabel="Photography" />
|
|
|
|
<ToggleButton v-model="option6" onLabel="Movies" offLabel="Movies" />
|
|
|
|
<ToggleButton v-model="option7" onLabel="Sports" offLabel="Sports" />
|
|
|
|
<ToggleButton v-model="option8" onLabel="Gaming" offLabel="Gaming" />
|
|
|
|
<ToggleButton v-model="option9" onLabel="Traveling" offLabel="Traveling" />
|
|
|
|
<ToggleButton v-model="option10" onLabel="Dancing" offLabel="Dancing" />
|
2024-02-20 14:56:58 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2024-05-20 12:14:38 +00:00
|
|
|
<div class="flex pt-6 justify-between">
|
2024-02-20 14:56:58 +00:00
|
|
|
<Button label="Back" severity="secondary" icon="pi pi-arrow-left" @click="prevCallback" />
|
2024-02-22 09:35:09 +00:00
|
|
|
<Button label="Next" icon="pi pi-arrow-right" iconPos="right" @click="nextCallback" />
|
2024-02-20 14:56:58 +00:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</StepperPanel>
|
|
|
|
<StepperPanel>
|
2024-02-22 09:35:09 +00:00
|
|
|
<template #header="{ index, clickCallback }">
|
2024-05-20 12:14:38 +00:00
|
|
|
<button class="bg-transparent border-0 inline-flex flex-col gap-2" @click="clickCallback">
|
|
|
|
<span :class="['border-round border-2 w-12 h-12 inline-flex items-center justify-content-center', { 'bg-primary border-primary': index <= active, 'surface-border': index > active }]">
|
2024-02-22 09:35:09 +00:00
|
|
|
<i class="pi pi-id-card" />
|
2024-02-20 14:56:58 +00:00
|
|
|
</span>
|
2024-02-22 09:35:09 +00:00
|
|
|
</button>
|
2024-02-20 14:56:58 +00:00
|
|
|
</template>
|
2024-02-22 09:35:09 +00:00
|
|
|
<template #content="{ prevCallback }">
|
2024-05-20 12:14:38 +00:00
|
|
|
<div class="flex flex-col gap-2 mx-auto" style="min-height: 16rem; max-width: 24rem">
|
|
|
|
<div class="text-center mt-4 mb-4 text-xl font-semibold">Account created successfully</div>
|
2024-02-22 09:35:09 +00:00
|
|
|
<div class="text-center">
|
|
|
|
<img alt="logo" src="https://primefaces.org/cdn/primevue/images/stepper/content.svg" />
|
2024-02-20 14:56:58 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2024-05-20 12:14:38 +00:00
|
|
|
<div class="flex pt-6 justify-start">
|
2024-02-20 14:56:58 +00:00
|
|
|
<Button label="Back" severity="secondary" icon="pi pi-arrow-left" @click="prevCallback" />
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</StepperPanel>
|
|
|
|
</Stepper>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script setup>
|
|
|
|
import { ref } from 'vue';
|
|
|
|
|
|
|
|
const active = ref(0);
|
|
|
|
const completed = ref(false);
|
|
|
|
const products = ref();
|
|
|
|
const name = ref();
|
|
|
|
const email = ref();
|
|
|
|
const password = ref();
|
|
|
|
const option1 = ref(false);
|
2024-02-22 09:35:09 +00:00
|
|
|
const option2 = ref(false);
|
2024-02-20 14:56:58 +00:00
|
|
|
const option3 = ref(false);
|
2024-02-22 09:35:09 +00:00
|
|
|
const option4 = ref(false);
|
2024-02-20 14:56:58 +00:00
|
|
|
const option5 = ref(false);
|
2024-02-22 09:35:09 +00:00
|
|
|
const option6 = ref(false);
|
|
|
|
const option7 = ref(false);
|
|
|
|
const option8 = ref(false);
|
|
|
|
const option9 = ref(false);
|
|
|
|
const option10 = ref(false);
|
2024-02-20 14:56:58 +00:00
|
|
|
|
|
|
|
<\/script>
|
2024-02-22 09:35:09 +00:00
|
|
|
|
|
|
|
<style scoped>
|
|
|
|
.p-stepper {
|
|
|
|
flex-basis: 40rem;
|
|
|
|
}
|
|
|
|
<\/style>
|
|
|
|
|
2024-02-20 14:56:58 +00:00
|
|
|
`
|
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
};
|
|
|
|
</script>
|
2024-02-22 09:35:09 +00:00
|
|
|
|
|
|
|
<style scoped>
|
|
|
|
.p-stepper {
|
|
|
|
flex-basis: 40rem;
|
|
|
|
}
|
|
|
|
</style>
|