-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #53 from SmartCityFlensburg/feature/add-contact-page
feat: add contact page
- Loading branch information
Showing
15 changed files
with
167 additions
and
98 deletions.
There are no files selected for viewing
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
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,22 @@ | ||
import Button from "../Button"; | ||
|
||
function ContactHeroContent() { | ||
return ( | ||
<div className="flex flex-wrap gap-6 mt-8 lg:justify-center"> | ||
<Button href="mailto:[email protected]" ariaLabel="Kontaktiere uns gern per Mail" isDark> | ||
<img | ||
src="/assets/svg/socials/mail.svg" | ||
className="w-6 h-6" alt="" loading="lazy"/> | ||
<span>Kontakt</span> | ||
</Button> | ||
<Button href="https://github.com/SmartCityFlensburg" ariaLabel="Besuche uns auf GitHub" isExternalLink isDark> | ||
<img | ||
src="/assets/svg/socials/github.svg" | ||
className="w-6 h-6" alt="" loading="lazy"/> | ||
<span>GitHub</span> | ||
</Button> | ||
</div> | ||
); | ||
} | ||
|
||
export default ContactHeroContent; |
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,55 @@ | ||
import { useState, useMemo } from 'react'; | ||
import ProcessCard from './../cards/ProcessCard'; | ||
import { steps } from '../../../data/processSteps'; | ||
import StepCircle from './../process/StepCircle'; | ||
|
||
function ProjectHeroContent() { | ||
const activeStep = useMemo(() => steps.findIndex(step => step.isCurrent), []); | ||
|
||
const [visibleStep, setVisibleStep] = useState(activeStep); | ||
|
||
function toggleVisibleStep(index: number) { | ||
setVisibleStep(index); | ||
} | ||
|
||
return ( | ||
<div className="flex flex-col"> | ||
<p className="font-bold text-center">Akueller Projektstand:</p> | ||
<ul className="flex items-center justify-center gap-x-8 mb-10 mt-6 md:gap-x-12 lg:gap-x-16"> | ||
{steps.map((step, index) => ( | ||
<li key={index} className={`relative | ||
${index === 0 ? '' : 'before:h-0.5 before:w-8 before:absolute before:right-full before:top-1/2 before:-translate-y-1/2 md:before:w-12 lg:before:w-16'} | ||
${index < activeStep + 1 ? 'before:bg-green-dark-900' : 'before:bg-grey-100'}`}> | ||
<button | ||
className="transition-all ease-in-out duration-300 hover:opacity-75" | ||
aria-label={`Anzeige von Prozess-Schritt ${index}: ${step.shortName}`} | ||
aria-current={index === visibleStep} | ||
onClick={() => toggleVisibleStep(index)} | ||
> | ||
<StepCircle | ||
index={index} | ||
activeStep={activeStep} /> | ||
</button> | ||
</li> | ||
))} | ||
</ul> | ||
|
||
<ul className="flex items-center justify-center gap-x-6"> | ||
{steps.map((step, index) => ( | ||
<li key={index} className={`${visibleStep === index ? 'block' : 'hidden'}`}> | ||
<ProcessCard | ||
label={step.label} | ||
shortName={step.shortName} | ||
description={step.description} | ||
index={index} | ||
maxIndex={steps.length} | ||
isCurrent={index === activeStep} | ||
isCompleted={index < activeStep} /> | ||
</li> | ||
))} | ||
</ul> | ||
</div> | ||
); | ||
} | ||
|
||
export default ProjectHeroContent; |
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
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
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,19 @@ | ||
import ContactHeroContent from "../components/hero/ContactHeroContent"; | ||
import Hero from "../components/sections/Hero"; | ||
import Stakeholder from "../components/sections/Stakeholder"; | ||
|
||
function ContactPage() { | ||
const heroHeadline = "Noch neugierig?"; | ||
const heroDescription = "Eu elit quis eiusmod proident officia aute tempor tempor qui commodo aute qui. Excepteur id ea laboris fugiat dolor exercitation ut pariatur ut commodo non. Eu deserunt laboris dolore elit. Aliquip magna do nostrud velit esse anim do. Dolor culpa duis laboris nisi ea nulla nulla magna" | ||
|
||
return ( | ||
<main className="relative overflow-hidden before:bg-cover before:bg-background-dark-dot before:w-4/5 before:h-[100vh] before:max-h-[45rem] before:absolute before:-right-4 before:-top-16 before:-z-10 before:bg-no-repeat sm:before:-right-10 lg:before:max-h-[55rem] xl:before:w-[70rem] xl:before:-right-40 2xl:before:right-[10%] 2xl:before:bg-contain"> | ||
<Hero headline={heroHeadline} description={heroDescription}> | ||
<ContactHeroContent /> | ||
</Hero> | ||
<Stakeholder hasDesktopList/> | ||
</main> | ||
); | ||
} | ||
|
||
export default ContactPage; |
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