-
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 #30 from SmartCityFlensburg/feature/add-introducti…
…on-section feat: add introduction section
- Loading branch information
Showing
10 changed files
with
129 additions
and
5 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.
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
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,23 @@ | ||
import React from 'react'; | ||
|
||
interface IntroductionCardProps { | ||
label: string; | ||
icon: string; | ||
description: string; | ||
} | ||
|
||
const IntroductionCard: React.FC<IntroductionCardProps> = ({ label, icon, description }) => { | ||
return ( | ||
<div className="h-full cursor-pointer bg-white shadow-md rounded-2xl p-6 border border-grey-100 xl:cursor-default"> | ||
<figure className="bg-green-light-900/25 w-12 h-12 rounded-full flex items-center justify-center"> | ||
<img | ||
src={icon} | ||
className="object-contain w-6 h-6 " alt={label}/> | ||
</figure> | ||
<h3 className="my-4 font-lato font-semibold text-lg md:my-5">{label}</h3> | ||
<p>{description}</p> | ||
</div> | ||
); | ||
}; | ||
|
||
export default IntroductionCard; |
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,71 @@ | ||
import { Splide, SplideSlide } from '@splidejs/react-splide'; | ||
import { i18nTranslated } from '../../helper/sliderTranslations'; | ||
import '@splidejs/react-splide/css'; | ||
import IntroductionCard from "../IntroductionCard"; | ||
|
||
function Introduction() { | ||
const facts = [ | ||
{ | ||
label: "Auswertung der Messdaten", | ||
icon: "/assets/svg/general/statistics.svg", | ||
description: "Durch die wissenschaftliche Datenauswertung wird eine fundierte Datengrundlage geliefert." | ||
}, | ||
{ | ||
label: "Monitoring mehrerer Standorte", | ||
icon: "/assets/svg/general/location.svg", | ||
description: "Bei der Interpretation der Daten werden die unterschiedlichen Standortbedingungen mit berücksichtigt." | ||
}, | ||
{ | ||
label: "Augenmerk auf Jungbäume und Beete", | ||
icon: "/assets/svg/general/tree.svg", | ||
description: "Beobachtet werden sollen besonders hitzeanfällige Vegetation wie Jungbäume und Blumenbeete." | ||
}, | ||
{ | ||
label: "Entwicklung einer Sensorlösung", | ||
icon: "/assets/svg/general/sensor.svg", | ||
description: "Die Daten zur Bodenfeuchte werden mithilfe von Sensoren nahe des Wurzelballens geliefert." | ||
}, | ||
]; | ||
|
||
const breakpoints = { | ||
640: { | ||
perPage: 2, | ||
}, | ||
1280: { | ||
destroy: true, | ||
}, | ||
} | ||
|
||
return ( | ||
<section className="max-w-208 mx-auto my-28 lg:my-36 xl:max-w-screen-lg xl:grid xl:grid-cols-[1fr,1.5fr] xl:gap-x-10 xl:items-center xl:my-44 2xl:grid-cols-2 2xl:max-w-screen-xl"> | ||
<article className="px-4 mb-8 md:px-6 lg:mb-14"> | ||
<h2 className="font-lato font-bold text-2xl mb-6 lg:text-3xl"> | ||
Was beinhaltet smartes Grünflächenmanagement alles? | ||
</h2> | ||
<p> | ||
Smartes Grünflächenmanagement umfasst die effiziente Überwachung und Bewässerung von | ||
Vegetationsformen auf Grünflächen durch den Einsatz moderner Technologien wie Sensoren und Datenanalyse. | ||
Dadurch wird eine präzise Steuerung der Pflegemaßnahmen ermöglicht, die angepasst sind an die spezifischen | ||
Standortbedingungen und Art und Alter der Vegetation. | ||
</p> | ||
</article> | ||
|
||
<Splide | ||
options={{ rewind: true, arrows: false, i18n: i18nTranslated, mediaQuery: 'min', breakpoints: breakpoints }} | ||
aria-label="Fakten zum Grünflächenmanagement" | ||
className="splide--grid md:px-2" | ||
> | ||
{facts.map((fact, index) => ( | ||
<SplideSlide key={index} className="pb-10 px-4 lg:px-2 lg:pb-2 xl:first:mb-16 xl:[&:nth-child(2)]:mt-16 xl:[&:nth-child(3)]:-mt-16 xl:[&:nth-child(3)]:mb-16"> | ||
<IntroductionCard | ||
label={fact.label} | ||
icon={fact.icon} | ||
description={fact.description} /> | ||
</SplideSlide> | ||
))} | ||
</Splide> | ||
</section> | ||
); | ||
} | ||
|
||
export default Introduction; |
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