Skip to content

Commit

Permalink
feat: add link for typeform datenschutz and impressum
Browse files Browse the repository at this point in the history
- typeform link only shows when german is selected
  • Loading branch information
aeschi committed Feb 8, 2024
1 parent e9f9bed commit 2a288dd
Showing 1 changed file with 64 additions and 27 deletions.
91 changes: 64 additions & 27 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@ import { Progress } from "./components/progress";
import { HomeButton } from "./components/buttons/home-button";
import { HeaderTitle } from "./components/header-title";
import { useProgressStore } from "./components/steps/store";
import { useI18nStore } from "../src/i18n/store";

function App() {
const currentStep = useProgressStore((state) => state.currentStep);
const language = useI18nStore((state) => state.language);

return (
<>
Expand All @@ -31,6 +33,20 @@ function App() {
<Steps />
</main>

{language === "de-DE" && (
<div className="flex w-full flex-wrap justify-center gap-x-2 px-8 py-4 text-sm">
Wie gefällt Dir die Anwendung?
<a
className="text-blue-500 underline"
href="https://citylabberlin.typeform.com/to/kCdnCgvC?product_id=checklist"
target="_blank"
rel="noopener noreferrer"
>
Beantworte uns gerne einige Fragen.
</a>
</div>
)}

<div className="hidden w-full print:hidden md:flex">
<Progress id={"desktop-progress-bar"} />
</div>
Expand All @@ -42,38 +58,59 @@ function App() {
></div>

<footer
className={`flex py-5
className={`flex py-4
${currentStep === 0 || currentStep === 16 ? "flex" : "hidden md:flex"}
`}
id="footer"
>
<div className="flex w-full flex-wrap justify-start gap-x-10 gap-y-8 px-8 text-sm sm:justify-center md:gap-x-20 md:px-5">
<div className="flex flex-col gap-4">
Durchgeführt von
<img
src="/images/logo-citylab-berlin-outline.svg"
alt="Logo von CityLab Berlin"
className="w-32"
loading="lazy"
/>
<div className="flex w-full flex-wrap justify-start gap-y-5">
<div className="flex w-full flex-wrap justify-start gap-x-10 gap-y-5 px-8 py-2 text-sm sm:justify-center md:gap-x-20 md:px-5">
<div className="flex flex-col gap-4">
Durchgeführt von
<img
src="/images/logo-citylab-berlin-outline.svg"
alt="Logo von CityLab Berlin"
className="w-32"
loading="lazy"
/>
</div>
<div className="flex flex-col gap-4">
Ein Projekt der
<img
src="/images/logo-technologiestiftung-berlin-de.svg"
alt="Logo von Technologiestiftung Berlin"
className="w-32"
loading="lazy"
/>
</div>
<div className="flex flex-col gap-4">
Mit Unterstützung von
<img
src="/images/logo-senatskanzlei-buergermeister-vertikal.svg"
alt="Logo von Berlins Regierender Bürgermeister"
className="w-28"
loading="lazy"
/>
</div>
</div>
<div className="flex flex-col gap-4">
Ein Projekt der
<img
src="/images/logo-technologiestiftung-berlin-de.svg"
alt="Logo von Technologiestiftung Berlin"
className="w-32"
loading="lazy"
/>
</div>
<div className="flex flex-col gap-4">
Mit Unterstützung von
<img
src="/images/logo-senatskanzlei-buergermeister-vertikal.svg"
alt="Logo von Berlins Regierender Bürgermeister"
className="w-28"
loading="lazy"
/>

<div className="flex w-full flex-wrap justify-center gap-x-5 px-5 text-sm ">
<a
className="flex flex-col gap-4 text-gray-400 underline"
href="https://www.technologiestiftung-berlin.de/datenschutz"
target="_blank"
rel="noopener noreferrer"
>
Datenschutz
</a>
<a
className="flex flex-col gap-4 text-gray-400 underline"
href="https://www.technologiestiftung-berlin.de/impressum"
target="_blank"
rel="noopener noreferrer"
>
Impressum
</a>
</div>
</div>
</footer>
Expand Down

0 comments on commit 2a288dd

Please sign in to comment.