-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
90c3a84
commit 045e0aa
Showing
12 changed files
with
216 additions
and
62 deletions.
There are no files selected for viewing
13 changes: 0 additions & 13 deletions
13
pwa/.docker/rootfs/docker-entrypoint.d/01_fix-file-permissions.sh
This file was deleted.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,5 +18,21 @@ | |
"homepage.menu.vegetarian.text": "Vorspeise: \n\nHauptgang: \n\nDessert: \n\n", | ||
"homepage.qrScanner.activateCamera": "Kamera aktivieren", | ||
"homepage.qrScanner.invalid": "Der QR Code ist ungültig", | ||
"homepage.qrScanner.loggingIn": "QR Code gescannt, Login im gange ..." | ||
"homepage.qrScanner.loggingIn": "QR Code gescannt, Login im gange ...", | ||
"homepage.map.title1": "Adresse", | ||
"homepage.map.address": "Wasserschloss Inzlingen\nRiehenstraße 5\n79594 Inzlingen\nDeutschland", | ||
"homepage.map.addressInfo": "Parkmöglichkeiten gibt es direkt beim Schloss. Es sollte genug für alle haben, aber für alle Fälle wäre es super, wenn ihr euch überlegt, ob eine Fahrgemeinschaft Sinn macht.", | ||
"homepage.map.title2": "Ablauf", | ||
"homepage.map.plan": "Wir werden den Tag um 14:00 Uhr vor dem Schloss mit der Trauung im Freien beginnen. Sollte das Wetter nicht mitspielen, werden wir die Trauung in einen kleinen Raum im Schloss verlegen. Bitte stattet euch dem Wetter entsprechend mit Sonnencreme oder einer Jacke aus.\nSollte sich doch noch etwas am Plan ändern, werdet ihr das frühzeitig von uns erfahren. Untenstehend findet ihr noch eine grobe Timeline von unserem Tag:", | ||
"homepage.info.title": "Wichtigste Infos", | ||
"homepage.info.date": "Datum: Samstag, 21.09.2024\nTrauung: 14:00 Uhr\nOrt: Wasserschloss Inzlingen", | ||
"homepage.info.dresscode.title": "Dresscode", | ||
"homepage.info.dresscode.text": "Wir würden uns freuen, Euch in festlicher Abendgarderobe begrüßen zu dürfen.", | ||
"homepage.info.gifts.title": "Geschenke", | ||
"homepage.info.gifts.text": "Vielen Dank, dass ihr etwas zu unserer Hochzeit beisteuern wollt! Da wir nach unserer Hochzeit erst mal eine Auszeit nehmen, würdet ihr uns mit einem kleinen Beitrag an unsere Ferienkasse am meisten helfen.", | ||
"homepage.info.games.title": "Ideen Spiele", | ||
"homepage.info.games.text": "Wir haben ein super Team, das sich um den Ablauf und die Spiele an diesem Tag kümmert. Bitte meldet euch für Ideen und Anregungen direkt bei ihnen. Die Email dafür könnt ihr in eurer Einladung finden oder einfach unter [email protected].", | ||
"homepage.gallery.title": "Fotogalerie", | ||
"homepage.gallery.text": "Wir freuen uns schon auf die vielen tollen Bilder, die es geben wird. Bitte lasst doch alle daran teilhaben und ladet diese hier hoch, wo sie jeder ansehen und herunterladen kann. Zu einem späteren Zeitpunkt werden wir hier auch die Bilder von unserem Fotografen hochladen.", | ||
"footer.copyright": "Images by Sacha Kocher and Pexels\n© 2024" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import {useTranslation} from "react-i18next"; | ||
import gallery from '/gallery.jpeg'; | ||
import AlignedCard from "../../layout/AlignedCard.tsx"; | ||
|
||
export default function Gallery({id}: {id?: string}) { | ||
const {t} = useTranslation('app') | ||
|
||
return ( | ||
<AlignedCard | ||
id={id} | ||
image={gallery} | ||
topContent={( | ||
<> | ||
<h2 className="uppercase text-3xl mb-6 philosopher-regular">{t('homepage.gallery.title')}</h2> | ||
<p className="whitespace-pre-line noto-sans-regular">{t('homepage.gallery.text')}</p> | ||
</> | ||
)} | ||
bottomContent={( | ||
<> | ||
</> | ||
)} | ||
align="right" | ||
backgroundColor="red-light" | ||
imageShadowColor="white" | ||
/> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
import {useTranslation} from "react-i18next"; | ||
import infos from '/infos.png'; | ||
import AlignedCard from "../../layout/AlignedCard.tsx"; | ||
import Collapsible from "../../layout/Collapsible.tsx"; | ||
|
||
export default function ImportantInfo({id}: {id?: string}) { | ||
const {t} = useTranslation('app') | ||
|
||
return ( | ||
<AlignedCard | ||
id={id} | ||
image={infos} | ||
topContent={( | ||
<> | ||
<h2 className="uppercase text-3xl mb-6 philosopher-regular">{t('homepage.info.title')}</h2> | ||
<p className="whitespace-pre-line noto-sans-regular">{t('homepage.info.date')}</p> | ||
</> | ||
)} | ||
bottomContent={( | ||
<> | ||
<div className="md:hidden"> | ||
<Collapsible | ||
menuOptions={[ | ||
{ | ||
key: 'dresscode', | ||
title: t('homepage.info.dresscode.title'), | ||
text: t('homepage.info.dresscode.text') | ||
}, | ||
{ | ||
key: 'gifts', | ||
title: t('homepage.info.gifts.title'), | ||
text: t('homepage.info.gifts.text') | ||
}, | ||
{ | ||
key: 'games', | ||
title: t('homepage.info.games.title'), | ||
text: t('homepage.info.games.text') | ||
} | ||
]} | ||
/> | ||
</div> | ||
<div className="hidden md:grid grid-rows-2 grid-flow-col gap-8"> | ||
<div> | ||
<h3 className="text-2xl mb-4 philosopher-regular">{t('homepage.info.dresscode.title')}</h3> | ||
<p className="whitespace-pre-line noto-sans-regular">{t('homepage.info.dresscode.text')}</p> | ||
</div> | ||
<div> | ||
<h3 className="text-2xl mb-4 philosopher-regular">{t('homepage.info.gifts.title')}</h3> | ||
<p className="whitespace-pre-line noto-sans-regular">{t('homepage.info.gifts.text')}</p> | ||
</div> | ||
<div> | ||
<h3 className="text-2xl mb-4 philosopher-regular">{t('homepage.info.games.title')}</h3> | ||
<p className="whitespace-pre-line noto-sans-regular">{t('homepage.info.games.text')}</p> | ||
</div> | ||
</div> | ||
</> | ||
)} | ||
align="left" | ||
backgroundColor="white" | ||
imageShadowColor="gray-dark" | ||
/> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import {useTranslation} from "react-i18next"; | ||
import map from '/map.png'; | ||
import AlignedCard from "../../layout/AlignedCard.tsx"; | ||
|
||
export default function MapAndPlan({id}: {id?: string}) { | ||
const {t} = useTranslation('app') | ||
|
||
return ( | ||
<AlignedCard | ||
id={id} | ||
image={map} | ||
topContent={( | ||
<> | ||
<h2 className="uppercase text-3xl mb-6 philosopher-regular">{t('homepage.map.title1')}</h2> | ||
<p className="whitespace-pre-line philosopher-regular mb-4">{t('homepage.map.address')}</p> | ||
<p className="noto-sans-regular">{t('homepage.map.addressInfo')}</p> | ||
</> | ||
)} | ||
bottomContent={( | ||
<> | ||
<h2 className="uppercase text-3xl mb-6 philosopher-regular">{t('homepage.map.title2')}</h2> | ||
<p className="noto-sans-regular">{t('homepage.map.plan')}</p> | ||
</> | ||
)} | ||
align="right" | ||
backgroundColor="gray-dark" | ||
imageShadowColor="red-light" | ||
/> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import {Disclosure} from "@headlessui/react"; | ||
import clsx from "clsx"; | ||
import {FontAwesomeIcon} from "@fortawesome/react-fontawesome"; | ||
import {faChevronDown} from "@fortawesome/free-solid-svg-icons"; | ||
import {ReactNode} from "react"; | ||
|
||
export default function Collapsible({menuOptions}: {menuOptions: {key: string, title: ReactNode, text: ReactNode}[]}) { | ||
return menuOptions.map((item, index) => ( | ||
<Disclosure | ||
as="div" | ||
key={item.key} | ||
className={clsx('border-b-[1px] border-gray-dark', {'border-t-[1px]': index === 0})} | ||
> | ||
{({open}) => ( | ||
<> | ||
<Disclosure.Button className="py-2"> | ||
<FontAwesomeIcon | ||
icon={faChevronDown} | ||
className={clsx( | ||
'mr-4 transform transition-transform motion-reduce:transition-none', | ||
{'rotate-180': open} | ||
)} | ||
/> | ||
<span className="text-lg philosopher-regular">{item.title}</span> | ||
</Disclosure.Button> | ||
<Disclosure.Panel className="whitespace-pre-line ml-8 noto-sans-regular"> | ||
{item.text} | ||
</Disclosure.Panel> | ||
</> | ||
)} | ||
</Disclosure> | ||
)); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters