improve styling for bigger screens

This commit is contained in:
Thomas Ruoff
2020-08-31 21:52:18 +02:00
committed by Thomas Ruoff
parent aeb03f3330
commit 96060d1415
4 changed files with 27 additions and 10 deletions

View File

@@ -2,7 +2,7 @@ import React from 'react'
export default function Footer() {
return (
<footer className="mt-5 mb-2">
<footer className="footer">
<p>i.A. des Freundeskreis des VCP Rosenfeld</p>
<p>
Hier sollte es irgendwann ein Impressum, Datenschutzhinweise usw. geben.

View File

@@ -53,14 +53,14 @@ function WizardInternal() {
return (
<form
className="w-full max-w-lg"
className="form"
onSubmit={(event) => {
event.preventDefault()
onSubmit()
}}
>
{dataStoredLoaded && (
<p className="my-12">
<p className="mb-12">
Gespeicherte Daten wurden aus Deinem Browser geladen.{' '}
<a className="link" onClick={forgetData} href="">
Daten wieder vergessen

View File

@@ -6,14 +6,14 @@ import Wizard from '../components/wizard/index'
export default function Home() {
return (
<div className="mx-3 flex flex-col min-h-screen">
<div className="wrapper">
<Head>
<title>Pfadi Bussle Buchen</title>
<link rel="icon" href="/favicon.ico" />
</Head>
<Header />
<main className="flex-grow">
<main className="main">
<Wizard />
</main>
<Footer />

View File

@@ -12,6 +12,28 @@
/* Your own custom utilities */
.wrapper {
@apply mx-3 flex flex-col min-h-screen;
}
@screen sm {
.wrapper {
@apply w-3/4 max-w-xl m-auto;
}
}
.main {
@apply flex-grow;
}
.footer {
@apply mt-5 mb-2;
}
.form {
@apply w-full bg-blue-100 p-6 rounded;
}
.fsw {
@apply flex flex-wrap -mx-3 mb-2;
}
@@ -92,11 +114,6 @@
@apply text-blue-700;
}
@screen sm {
.fs {
@apply w-1/2 mb-0;
}
}
.DayPickerInput .input-text {
@apply w-full;
}