mirror of
https://github.com/tomru/pfadi-bussle.git
synced 2026-03-03 06:27:11 +01:00
160 lines
3.6 KiB
JavaScript
160 lines
3.6 KiB
JavaScript
import { useState } from 'react'
|
|
import Head from 'next/head'
|
|
|
|
import RangeSelect from '../components/rangeSelect'
|
|
import DateSelect from '../components/dateSelect'
|
|
import Contact from '../components/contact'
|
|
|
|
export default function Home() {
|
|
const [multipleDays, setMultipleDays] = useState(null)
|
|
|
|
const [startDate, setStartDate] = useState(null)
|
|
const [endDate, setEndDate] = useState(null)
|
|
const [focusedInput, setFocusedInput] = useState(null)
|
|
|
|
const [pickupTime, setPickupTime] = useState('')
|
|
const [dropoffTime, setDropoffTime] = useState('')
|
|
|
|
return (
|
|
<div className="container">
|
|
<Head>
|
|
<title>Pfadi Bussle Buchen</title>
|
|
<link rel="icon" href="/favicon.ico" />
|
|
</Head>
|
|
|
|
<main>
|
|
<h1 className="title">Pfadi Bussle Buchen</h1>
|
|
|
|
<p className="description">
|
|
Du willst das Pfadi Bussle buchen? Hier bist du richtig!
|
|
</p>
|
|
|
|
<form className="bookingForm">
|
|
<RangeSelect
|
|
multipleDay={multipleDays}
|
|
setMultipleDays={setMultipleDays}
|
|
/>
|
|
<DateSelect
|
|
multipleDays={multipleDays}
|
|
startDate={startDate}
|
|
setStartDate={setStartDate}
|
|
endDate={endDate}
|
|
setEndDate={setEndDate}
|
|
focusedInput={focusedInput}
|
|
setFocusedInput={setFocusedInput}
|
|
pickupTime={pickupTime}
|
|
setPickupTime={setPickupTime}
|
|
dropoffTime={dropoffTime}
|
|
setDropoffTime={setDropoffTime}
|
|
/>
|
|
|
|
<Contact />
|
|
|
|
<input type="submit" />
|
|
</form>
|
|
</main>
|
|
|
|
<footer>
|
|
<a>Freundeskreis des VCP Rosenfeld</a>
|
|
</footer>
|
|
|
|
<style jsx>{`
|
|
.container {
|
|
min-height: 100vh;
|
|
padding: 0 0.5rem;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
align-items: center;
|
|
}
|
|
|
|
main {
|
|
padding: 5rem 0;
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
align-items: center;
|
|
}
|
|
|
|
footer {
|
|
width: 100%;
|
|
height: 100px;
|
|
border-top: 1px solid #eaeaea;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
}
|
|
|
|
footer img {
|
|
margin-left: 0.5rem;
|
|
}
|
|
|
|
footer a {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
}
|
|
|
|
a {
|
|
color: inherit;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.title a {
|
|
color: #0070f3;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.title a:hover,
|
|
.title a:focus,
|
|
.title a:active {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.title {
|
|
margin: 0;
|
|
line-height: 1.15;
|
|
font-size: 4rem;
|
|
}
|
|
|
|
.title,
|
|
.description {
|
|
text-align: center;
|
|
}
|
|
|
|
.description {
|
|
line-height: 1.5;
|
|
font-size: 1.5rem;
|
|
}
|
|
|
|
.bookingForm {
|
|
width: 80%;
|
|
}
|
|
|
|
@media (max-width: 600px) {
|
|
.grid {
|
|
width: 100%;
|
|
flex-direction: column;
|
|
}
|
|
}
|
|
`}</style>
|
|
|
|
<style jsx global>{`
|
|
html,
|
|
body {
|
|
padding: 0;
|
|
margin: 0;
|
|
font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto,
|
|
Oxygen, Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue,
|
|
sans-serif;
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
}
|
|
`}</style>
|
|
</div>
|
|
)
|
|
}
|