diff --git a/app/[locale]/(backend)/lib/dailyVerseData.ts b/app/[locale]/(backend)/lib/dailyVerseData.ts index 018d429..0a537e8 100644 --- a/app/[locale]/(backend)/lib/dailyVerseData.ts +++ b/app/[locale]/(backend)/lib/dailyVerseData.ts @@ -13,11 +13,11 @@ export interface BibleVerse { export const bibleVerses: BibleVerse[] = [ { - reference: "Epheser 2:19", + reference: "Epheser 2:19-22", content: { - en: "So then you are no longer strangers and aliens...", - de: "So seid ihr nun nicht mehr Gäste und Fremdlinge...", - ru: "Итак вы уже не чужие и не пришельцы..." + en: "So then you are no longer strangers and aliens, but you are fellow citizens with the saints and members of the household of God, built on the foundation of the apostles and prophets, Christ Jesus himself being the cornerstone, in whom the whole structure, being joined together, grows into a holy temple in the Lord. In him you also are being built together into a dwelling place for God by the Spirit.", + de: "So seid ihr nun nicht mehr Gäste und Fremdlinge, sondern Mitbürger der Heiligen und Gottes Hausgenossen, erbaut auf den Grund der Apostel und Propheten, da Jesus Christus der Eckstein ist, auf welchem der ganze Bau ineinandergefügt wächst zu einem heiligen Tempel in dem Herrn. Durch ihn werdet auch ihr mit erbaut zu einer Wohnung Gottes im Geist.", + ru: "Итак, вы уже не чужие и не пришельцы, но сограждане святым и свои Богу, быв утверждены на основании Апостолов и пророков, имея Самого Иисуса Христа краеугольным камнем, на котором всё здание, слагаясь стройно, возрастает в святой храм в Господе, на котором и вы устрояетесь в жилище Божие Духом." } }, { diff --git a/app/[locale]/(backend)/page.tsx b/app/[locale]/(backend)/page.tsx index a4dbec6..d416b31 100644 --- a/app/[locale]/(backend)/page.tsx +++ b/app/[locale]/(backend)/page.tsx @@ -26,6 +26,8 @@ import { useParams } from "next/navigation"; import Link from "next/link"; import React from "react"; import { bibleVerses, localizedContent } from "./lib/dailyVerseData"; +import { Avatar, AvatarImage, AvatarFallback } from "@/components/ui/avatar"; +import Image from "next/image"; const Dashboard: React.FC = () => { // 1. Get a unique number for the current day @@ -39,7 +41,6 @@ const Dashboard: React.FC = () => { const todayVerse = bibleVerses[verseIndex]; const params = useParams(); const lng = params.locale as keyof localizedContent || "en"; // Default to English if no locale is provided - const t = useTranslations("dashboard"); const categories: ModuleCategory[] = [ @@ -184,22 +185,21 @@ const Dashboard: React.FC = () => { return (
{/* Welcome Section */} -
-
-

- {t("title")} -

-

{t("greeting", { user: "David", church: "Rastatt" })}

-

{t("verse_intro")}

-

- „{todayVerse.content[lng]}" -

- ({todayVerse.reference}) +
+
+ {t("greeting_name", { user: "Alexander" })} + {t("greeting")}
-
- - v2.4.0 Live - +
+

+ {t("verse_intro")}
+ "{todayVerse.content[lng]}" +

+
+ + {todayVerse.reference} + +
diff --git a/components/Header/index.tsx b/components/Header/index.tsx index 523b03a..b876184 100644 --- a/components/Header/index.tsx +++ b/components/Header/index.tsx @@ -7,6 +7,7 @@ interface HeaderProps { } const Header: React.FC = ({ onMenuClick, pageTitle }) => { + const [hasError, setHasError] = React.useState(false); return (
= ({ onMenuClick, pageTitle }) => {

Community Admin

Super Administrator

-
- -
+ {hasError ? ( +
+ +
+ ) : ( + Profile setHasError(true)} + /> + )}
diff --git a/messages/de.json b/messages/de.json index bf7a664..845db88 100644 --- a/messages/de.json +++ b/messages/de.json @@ -11,8 +11,9 @@ "dashboard": { "title": "Community-Dashboard", "welcome": "Willkommen im Admin-Bereich. Verwalten Sie Ihre Community-Ressourcen sicher.", - "greeting": "Lieber {user}, deine örtliche Gemeinde {church} begrüßt dich!", - "verse_intro": "Lass dich durch den folgenden Vers ermutigen:" + "greeting_name": "Lieber Bruder {user},", + "greeting": "Friede sei mit Dir!", + "verse_intro": "Zur Ermutigung:" }, "users": { "title": "Benutzer", diff --git a/messages/en.json b/messages/en.json index 1042439..f66aa2e 100644 --- a/messages/en.json +++ b/messages/en.json @@ -11,8 +11,9 @@ "dashboard": { "title": "Community Dashboard", "welcome": "Welcome to the admin area. Manage your community resources safely.", - "greeting": "Dear {user}, your local community {church} welcomes you!", - "verse_intro": "Let the following verse encourage you:" + "greeting_name": "Dear brother {user},", + "greeting": "peace be with you!", + "verse_intro": "For encouragement:" }, "users": { "title": "Users", diff --git a/messages/ru.json b/messages/ru.json index c92de5d..d09624b 100644 --- a/messages/ru.json +++ b/messages/ru.json @@ -11,8 +11,9 @@ "dashboard": { "title": "Community Dashboard", "welcome": "Добро пожаловать в административный раздел. Безопасно управляйте ресурсами вашего сообщества.", - "greeting": "Дорогой {user}, твоя местная община {church} приветствует тебя!", - "verse_intro": "Пусть этот стих подбодрит тебя:" + "greeting_name": "Дорогой брат {user},", + "greeting": "мир Тебе!", + "verse_intro": "Для ободрения:" }, "users": { "title": "Пользователи", diff --git a/public/images/IMG_84271.jpg b/public/images/IMG_84271.jpg new file mode 100644 index 0000000..8d704e3 Binary files /dev/null and b/public/images/IMG_84271.jpg differ