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) => (