Skip to content

Commit

Permalink
add an element Aboout on the front page
Browse files Browse the repository at this point in the history
  • Loading branch information
Majapur1 authored and lkeegan committed Nov 19, 2024
1 parent e355a44 commit 90c8dd8
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 0 deletions.
Binary file added frontend/src/lib/assets/babyFlower.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions frontend/src/lib/components/FrontPageAbout.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<script>
import { Card } from 'flowbite-svelte';
import { _ } from "svelte-i18n";
</script>

<div class="flex mt-4 justify-center min-w-full">
<Card img="/lib/assets/babyFlower.jpg" horizontal size="full" class="shadow-none border-none">
<h5 class="mb-8 mt-2 text-2xl font-bold tracking-tight text-gray-700 dark:text-white">{$_("frontpageAbout.heading")}</h5>
<p class="mb-3 font-normal max-w-prose text-gray-700 dark:text-gray-400">{$_("frontpageAbout.summary1")}</p>
<p class="mb-3 font-normal max-w-prose text-gray-700 dark:text-gray-400">{$_("frontpageAbout.summary2")}</p>
</Card>
</div>
4 changes: 4 additions & 0 deletions frontend/src/lib/components/Frontpage.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,17 @@
import CardDisplay from "$lib/components//DataDisplay/CardDisplay.svelte";
import GalleryDisplay from "$lib/components/DataDisplay/GalleryDisplay.svelte";
import FrontPageCard from "$lib/components/FrontPageCard.svelte";
import FrontPageAbout from "$lib/components/FrontPageAbout.svelte";
let { items = [] } = $props();
</script>

<FrontPageCard
/>

<FrontPageAbout
/>

<GalleryDisplay
withSearch={false}
itemComponent={CardDisplay}
Expand Down
5 changes: 5 additions & 0 deletions frontend/src/locales/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -188,5 +188,10 @@
"summary": "Hier sind Sie genau richtig!",
"buttonLabel": "Anmeldung",
"toolTip": "Anmelden oder ein neues Konto erstellen"
},
"frontpageAbout": {
"heading": "Was ist MONDEY?",
"summary1": "Ein mit Eltern und Fachkräften entwickeltes, wissenschaftlich geprüftes Program zur Beobachtung und Dokumentation der Entwicklung von Kindern bis 6 Jahre.",
"summary2": "Sie bewerten, wie gut das Kind bestimmte Alltagshandlungen ausführen kann. Auf dieser Basis bietet MONDEY Ihnen Feedback zum Entwicklungsstand des Kindes."
}
}

0 comments on commit 90c8dd8

Please sign in to comment.