mirror of
https://github.com/tomru/pfadi-bussle.git
synced 2026-03-03 06:27:11 +01:00
141 lines
2.9 KiB
JavaScript
141 lines
2.9 KiB
JavaScript
import { useContext } from 'react'
|
|
|
|
import Head from 'next/head'
|
|
|
|
import AppStore from '../context/appStore'
|
|
|
|
import RangeSelect from '../components/rangeSelect'
|
|
import DateSelect from '../components/dateSelect'
|
|
import Contact from '../components/contact'
|
|
import Driver from '../components/driver'
|
|
|
|
export default function Home() {
|
|
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>
|
|
|
|
<AppStore>
|
|
<form className="bookingForm">
|
|
<RangeSelect />
|
|
<DateSelect />
|
|
<Contact />
|
|
|
|
<input type="submit" />
|
|
</form>
|
|
</AppStore>
|
|
</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>
|
|
)
|
|
}
|