Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add the new bookings system #653

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions dwhdelft.nl/components/layout/Header.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ en:
url: mixup
- title: Jong&Out
url: jongenout
- title: EatingOUT
url: book
- title: Education
url: education
- title: Andersblad
Expand All @@ -25,6 +27,8 @@ nl:
url: mixup
- title: Jong&Out
url: jongenout
- title: EatingOUT
url: book
- title: Voorlichting
url: education
- title: Andersblad
Expand Down
66 changes: 66 additions & 0 deletions dwhdelft.nl/pages/book.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
<i18n lang="yaml">
en:
title: Reservations
intro:
title: Welcome!
body: |
For some of our activities, we kindly ask you to make a reservation.
On this page, you can book a spot at one of our events.
We will confirm your reservation by email.
In case you're not able to join the event, please cancel the reservation through the cancelation link in the confirmation email.
title_label: Events
canceled: Your reservation is cancelled. If you want, you can make a new reservation down below.
nl:
title: Reserveren
intro:
title: Welkom!
body: |
Voor sommige van onze activiteiten vragen we je vooraf te reserveren.
Op deze pagina kun je je reservering maken.
Je krijgt per e-mail een bevestiging van je reservering.
Mocht je onverhoopt toch niet kunnen komen, dan vragen we je je vriendelijk je reservering weer te annuleren via de link in de bevestigingsmail.
title_label: Events
canceled: Je reservering is geannuleerd. Indien gewenst kun je hieronder een nieuwe reservering plaatsen.
</i18n>

<script setup>
import { IconInformationOutline } from '@iconify-prerendered/vue-zondicons'

const { t } = useT()

const route = useRoute()

onMounted(() => {
window.addEventListener('message', (event) => {
if (event.data.source === 'size_alert') {
const asd = document.querySelector('iframe')
asd.height = event.data.height
asd.width = event.data.width
}
})
})
</script>

<template>
<LayoutSmallHeader bg="bg-brand-450">{{ t('title') }}</LayoutSmallHeader>

<section class="relative bg-brand-450">
<ElementsContainer class="py-8 lg:flex">
<div class="flex-1 lg:pr-16">
<div v-if="route.query.canceled" class="mb-6 flex items-center space-x-4 rounded bg-brand-100 p-4 text-lg">
<ElementsIconCircle class="p-5">
<IconInformationOutline class="size-6" />
</ElementsIconCircle>
<h4 class="text-xl leading-tight" v-text="t('canceled')" />
</div>

<h1 class="mb-6 text-6xl font-bold text-white" v-text="t('intro.title')" />
<p class="text-lg leading-normal text-white" v-text="t('intro.body')" />
</div>

<div class="lg:w-1/2">
<iframe class="w-full lg:-mt-72" src="https://dwh-bookings.web.app/" />
</div>
</ElementsContainer>
</section>
</template>
4 changes: 4 additions & 0 deletions outsite.nl/components/layout/Header.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ en:
url: committees
- title: Testimonials
url: testimonials
- title: EatingOUT
url: 'https://dwhdelft.nl/book'
- title: Contact
url: '#contact'
goto: Go to
Expand All @@ -22,6 +24,8 @@ nl:
url: committees
- title: Ervaringen
url: testimonials
- title: EatingOUT
url: 'https://dwhdelft.nl/book'
- title: Contact
url: '#contact'
goto: Ga naar
Expand Down
4 changes: 2 additions & 2 deletions outsite.nl/components/pages/home/MoreDWH.vue
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ en:
description: |
On Mondays we gather around the dinner table to enjoy a delicious meal cooked by one of our
members, sometimes with an activity afterwards.
link: https://dwhdelft.nl/eatingout
link: https://dwhdelft.nl/book
image: eatingout
nl:
description: |
Expand Down Expand Up @@ -61,7 +61,7 @@ nl:
description: |
Elke maandagavond zitten we gezellig rond de eettafel om van een maaltijd te genieten, bereid door
één van onze leden, met soms een activiteit achteraf.
link: https://dwhdelft.nl/eatingout
link: https://dwhdelft.nl/book
image: eatingout
</i18n>

Expand Down
11 changes: 5 additions & 6 deletions shared/public/_redirects
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
/bar-responsible https://docs.google.com/document/d/1v8OMaRUi7ar5eoaUxxJlJ2sVizO54yP01tsn7NhN0v8/edit?usp=sharing
/beautysignup https://forms.gle/9buQFZCjkCzEAjDG6
/bingo https://bingo.outsite.nl
/book https://dwhdelft.nl
/cah http://vm.sharwinbobde.com:8080/cah/
/cantus https://forms.gle/1movAQRkCbfm32QS7
/chatgroepen https://dwhdelft.nl/chatgroups
Expand All @@ -21,7 +20,7 @@
/discord https://discord.gg/RDwtnRK
/dragdinnershow https://www.ticketkantoor.nl/shop/dragdinnershow
/drive-common https://drive.google.com/drive/folders/1AerXTvkRZu1J7Brt-eookXvbOHJQuT4V
/eatingout https://docs.google.com/forms/d/e/1FAIpQLScc8iucZVSq2_jAG2SrW5Ib8XuZQ_uaipcMzoqeXNOBiRKyxQ/viewform
/eatingout https://dwhdelft.nl/book
/events.ics https://calendar.google.com/calendar/ical/dwhdelft.nl_st9n90454d4r9ps5alm2vdjobo%40group.calendar.google.com/public/basic.ics
/eventsgooglecalendar https://calendar.google.com/calendar/u/1?cid=ZHdoZGVsZnQubmxfc3Q5bjkwNDU0ZDRyOXBzNWFsbTJ2ZGpvYm9AZ3JvdXAuY2FsZW5kYXIuZ29vZ2xlLmNvbQ
/fake-alv https://youtu.be/vTVfhlkrnxE
Expand Down Expand Up @@ -62,8 +61,8 @@
/pride-boat https://forms.gle/aigF33BHLVXbnUJR8
/protocol https://docs.google.com/document/d/1wKbk5_DnEJnF2DNBinUyBWCICEogRnUs_VWS60juqNg/
/register https://docs.google.com/forms/d/e/1FAIpQLScP0Pu7Ja7_maNPiGI9Fqc2z_PbKt6faoXl6TwleYJ4eShHjA/viewform
/reserveer https://dwhdelft.nl
/reserveren https://dwhdelft.nl
/reserveer https://dwhdelft.nl/book
/reserveren https://dwhdelft.nl/book
/reunieaanmeldingen https://docs.google.com/spreadsheets/d/1Cuini2RdfwHp3sQSzqTaPMP2mrW4WMIsKIeFowuCkpE/edit?usp=sharing
/review https://docs.google.com/forms/d/e/1FAIpQLSeOvE7kHgjnLIuSOwW5DpcIqtRah9alPnZQXanhvZ34Fu9HNg/viewform
/sewing-workshop https://docs.google.com/forms/d/e/1FAIpQLSfw5OA_SnoW75pF1SKS68oaoMYNTsSb0wVC2ori2nWvSYPs9Q/viewform?embedded=true
Expand All @@ -73,7 +72,7 @@
/song https://www.youtube.com/watch?v=DjZtKkhZtOE
/sponsorkliks https://www.sponsorkliks.com/partners.php?club=4338
/sportsparty https://www.facebook.com/events/287302566914776
/studieplekken /
/studieplekken /book
/survey https://forms.gle/XjVmWY7LyApGgdPC9
/table https://reserveer.dwhdelft.nl/visitor
/tafel https://reserveer.dwhdelft.nl/visitor
Expand All @@ -84,7 +83,7 @@
/vertrouwenspersonen https://dwhdelft.nl/lets-talk
/volunqueers https://docs.google.com/spreadsheets/d/1FTK74hMFVRL2j1opFAi-RCeZTooJrNfnG3dzCQFddOU/edit#gid=0
/vrijwilligersprijs /vrijwilligersprijzen
/weekvandeontmoetingdiner /
/weekvandeontmoetingdiner /book
/welcome https://reserveer.dwhdelft.nl/visitor/welcome
/welkom https://reserveer.dwhdelft.nl/visitor/welcome
/whatsapp https://wa.me/0031637560270
Expand Down
Loading