Skip to content

Commit

Permalink
feat(ui): add form to collect guest info
Browse files Browse the repository at this point in the history
  • Loading branch information
SergioRibera committed Aug 23, 2024
1 parent 00b9220 commit ce94a20
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 2 deletions.
4 changes: 3 additions & 1 deletion app.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,12 @@ h1, h2, h3 {
letter-spacing: 0.06em;
}
h4, h5, h6, span, a, ul {
h4, h5, h6, span, a, ul, label, small {
font-family: Work Sans, sans-serif;
}
small { color: #2d2d2d }
h1 {
font-size: 2.14em;
margin-top: 0;
Expand Down
25 changes: 24 additions & 1 deletion pages/form/[id].vue
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,23 @@
</Listbox>
</div>
<div v-if="step === 1" class="column gap">
<span>Hola toy laburando</span>
<div class="flex column gap">
<label for="username">Nombre *</label>
<InputText id="username" v-model="name" required aria-describedby="name-help" />
</div>
<div class="flex column gap">
<label for="email">Correo *</label>
<InputText id="email" v-model="email" required aria-describedby="email-help" />
</div>
<div class="flex column gap">
<label for="guests">Invitados</label>
<Textarea id="guests" v-model="guests" autoResize rows="5" cols="30" />
<small id="username-help">Escribe un correo por linea con un maximo de 10 invitados adicionales.</small>
</div>
<div class="flex column gap">
<label for="more">Cuentanos mas de ti y el motivo de la reunion</label>
<Textarea id="more" v-model="moreDetails" autoResize rows="5" cols="30" />
</div>
</div>
</client-only>
</section>
Expand All @@ -60,6 +76,7 @@
<client-only>
<div v-if="groupedAvailableTime && groupedAvailableTime.length > 0 && selectedTime" class="flex" style="justify-content:end;margin-top:1rem">
<Button as="button" @click="nextStep">
<span v-if="">Continuar</span>
<span>Continuar</span>
</Button>
</div>
Expand All @@ -77,6 +94,12 @@ const step = ref(0)
const confirmedDate = ref()
const selectedDate = ref()
const selectedTime = ref()
const name = ref()
const email = ref()
const guests = ref()
const moreDetails = ref()
const groupedAvailableTime = ref()
const timeZoneName = new Intl.DateTimeFormat('es-ES', { timeStyle: 'full' })
.formatToParts(today)
Expand Down

0 comments on commit ce94a20

Please sign in to comment.