From 66e3f5a3d195c736dceb8cab68ba0a44d8b1f685 Mon Sep 17 00:00:00 2001 From: edic Date: Wed, 28 Jan 2026 10:43:42 +0100 Subject: [PATCH] Add prettier and plugin for tailwind; Adapted global css for light and dark theme --- .prettierrc | 5 + app/(backend)/layout.tsx | 15 ++- app/(backend)/page.tsx | 65 ++++++--- app/globals.css | 255 +++++++++++++++++++++++------------ components/Header/index.tsx | 2 +- components/Sidebar/index.tsx | 2 +- package-lock.json | 97 +++++++++++++ package.json | 2 + 8 files changed, 335 insertions(+), 108 deletions(-) create mode 100644 .prettierrc diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 0000000..bfb0eec --- /dev/null +++ b/.prettierrc @@ -0,0 +1,5 @@ +{ + "plugins": [ + "prettier-plugin-tailwindcss" + ] +} \ No newline at end of file diff --git a/app/(backend)/layout.tsx b/app/(backend)/layout.tsx index 7e4c359..a7a077d 100644 --- a/app/(backend)/layout.tsx +++ b/app/(backend)/layout.tsx @@ -12,17 +12,24 @@ const Layout: React.FC = ({ children }) => { const [sidebarOpen, setSidebarOpen] = useState(false); return ( -
+
{/* Mobile Sidebar Overlay */} {sidebarOpen && ( -
setSidebarOpen(false)} /> +
setSidebarOpen(false)} + /> )} -
+
setSidebarOpen(!sidebarOpen)} /> -
{children}
+
+ {children} +
); diff --git a/app/(backend)/page.tsx b/app/(backend)/page.tsx index 56011b7..77d6f3c 100644 --- a/app/(backend)/page.tsx +++ b/app/(backend)/page.tsx @@ -51,7 +51,8 @@ const Dashboard: React.FC = () => { { id: "addresses", title: "Addresses", - description: "Database of addresses for registered users and locations.", + description: + "Database of addresses for registered users and locations.", icon: MapPin, path: "/addresses", }, @@ -63,14 +64,16 @@ const Dashboard: React.FC = () => { { id: "services", title: "Services & Lectures", - description: "Schedule and manage church services and lecture events.", + description: + "Schedule and manage church services and lecture events.", icon: Calendar, path: "/services", }, { id: "lectures_list", title: "Lectures List", - description: "Browse the complete archive of lectures from all communities.", + description: + "Browse the complete archive of lectures from all communities.", icon: Mic2, path: "/lectures", }, @@ -136,7 +139,8 @@ const Dashboard: React.FC = () => { { id: "types", title: "Lecture Types", - description: "Define and categorize different types of presentations.", + description: + "Define and categorize different types of presentations.", icon: Tag, path: "/types", }, @@ -159,37 +163,64 @@ const Dashboard: React.FC = () => { ]; return ( -
+
{/* Welcome Section */} -
+
-

Community Dashboard

+

+ Community Dashboard +

Welcome to the admin area. Manage your community resources safely.

- v2.4.0 Live + + v2.4.0 Live +
{/* Quick Stats */} -
- - - +
+ + +
{/* Categories */}
{categories.map((category) => ( -
-
-

{category.title}

-
+
+
+

+ {category.title} +

+
-
+
{category.items.map((item) => (