|
|
@@ -1,5 +1,18 @@
|
|
|
<script lang="ts">
|
|
|
+ import type { AppointmentDateTimes } from '$lib/dbdata';
|
|
|
+ import AppointmentInfo from '$lib/modules/AppointmentInfo.svelte';
|
|
|
import DatePicker from '$lib/modules/DatePicker.svelte';
|
|
|
+ import DateTimes from '$lib/modules/DateTimes.svelte';
|
|
|
+
|
|
|
+ let title: string = "Appointment";
|
|
|
+ let location: string = "Somewhere";
|
|
|
+ let description: string = "Description ...";
|
|
|
+
|
|
|
+ let appointmentDateTimes: AppointmentDateTimes[] = [
|
|
|
+ {date: new Date(), startTime: "16:00"},
|
|
|
+ {date: new Date(), startTime: "17:00"},
|
|
|
+ {date: new Date(), startTime: "18:00"}
|
|
|
+ ];
|
|
|
</script>
|
|
|
|
|
|
<style>
|
|
|
@@ -14,24 +27,7 @@
|
|
|
|
|
|
<DatePicker />
|
|
|
|
|
|
-<div class="top-margin w-80 inline-margin border">
|
|
|
- <article class="bottom-margin">
|
|
|
- <h5>Title</h5>
|
|
|
- <p><i>pin_drop</i> Location</p>
|
|
|
- <p><i>description</i> Description</p>
|
|
|
- </article>
|
|
|
- <hr>
|
|
|
- <h4>Times</h4>
|
|
|
- <article>
|
|
|
- <a class="row wave center-align">15:00</a>
|
|
|
- <hr>
|
|
|
- <a class="row wave center-align">15:15</a>
|
|
|
- <hr>
|
|
|
- <a class="row wave center-align">15:30</a>
|
|
|
- <hr>
|
|
|
- <a class="row wave center-align">17:00</a>
|
|
|
- <hr>
|
|
|
- <a class="row wave center-align">17:15</a>
|
|
|
- </article>
|
|
|
- <button class="button">Test</button>
|
|
|
+<div class="top-margin w-80 inline-margin">
|
|
|
+ <AppointmentInfo bind:title bind:description bind:location />
|
|
|
+ <DateTimes bind:availableTimes={appointmentDateTimes} />
|
|
|
</div>
|