From 6101f34bdc489ff2e232ac8b2635dbec05a339d9 Mon Sep 17 00:00:00 2001 From: Atul Gunjal Date: Thu, 24 Apr 2025 17:01:20 +0530 Subject: [PATCH] removed unwanted files, improved dashboard darkmode --- .../components/partials/alert/alert-error.js | 92 ---------- .../components/partials/alert/alert-info.js | 84 --------- .../partials/alert/alert-success.js | 78 --------- .../partials/alert/alert-warning.js | 79 --------- .../components/partials/avatar/avatar01.js | 32 ---- .../components/partials/avatar/avatar02.js | 35 ---- .../components/partials/avatar/avatar03.js | 35 ---- .../components/partials/avatar/avatar04.js | 35 ---- src/app/components/partials/badge/Badge01.js | 45 ----- src/app/components/partials/badge/Badge02.js | 45 ----- src/app/components/partials/badge/Badge03.js | 69 -------- src/app/components/partials/badge/Badge04.js | 69 -------- src/app/components/partials/badge/Badge05.js | 90 ---------- src/app/components/partials/badge/Badge06.js | 95 ----------- src/app/components/partials/header.jsx | 2 +- src/app/dashboard/page.js | 2 +- src/app/pages/MultiBooking/page.js | 4 +- src/app/pages/alerts/page.js | 109 ------------ src/app/pages/avatars/page.js | 137 --------------- src/app/pages/badge/page.js | 161 ------------------ 20 files changed, 4 insertions(+), 1294 deletions(-) delete mode 100644 src/app/components/partials/alert/alert-error.js delete mode 100644 src/app/components/partials/alert/alert-info.js delete mode 100644 src/app/components/partials/alert/alert-success.js delete mode 100644 src/app/components/partials/alert/alert-warning.js delete mode 100644 src/app/components/partials/avatar/avatar01.js delete mode 100644 src/app/components/partials/avatar/avatar02.js delete mode 100644 src/app/components/partials/avatar/avatar03.js delete mode 100644 src/app/components/partials/avatar/avatar04.js delete mode 100644 src/app/components/partials/badge/Badge01.js delete mode 100644 src/app/components/partials/badge/Badge02.js delete mode 100644 src/app/components/partials/badge/Badge03.js delete mode 100644 src/app/components/partials/badge/Badge04.js delete mode 100644 src/app/components/partials/badge/Badge05.js delete mode 100644 src/app/components/partials/badge/Badge06.js delete mode 100644 src/app/pages/alerts/page.js delete mode 100644 src/app/pages/avatars/page.js delete mode 100644 src/app/pages/badge/page.js diff --git a/src/app/components/partials/alert/alert-error.js b/src/app/components/partials/alert/alert-error.js deleted file mode 100644 index f30785b..0000000 --- a/src/app/components/partials/alert/alert-error.js +++ /dev/null @@ -1,92 +0,0 @@ -'use client'; - -export default function SuccessMessage() { - return ( - <> - {/* First Message with Link */} -
-
-
- - - -
- -
-

- Success Message -

-

- You can insert a description for the message here. The text relates - to the action that has been performed. -

- - Learn more - -
-
-
- - {/* Second Message without Link */} -
-
-
- - - -
- -
-

- Success Message -

-

- You can insert a description for the message here. The text relates - to the action that has been performed. -

-
-
-
- - ); -} diff --git a/src/app/components/partials/alert/alert-info.js b/src/app/components/partials/alert/alert-info.js deleted file mode 100644 index e1e4b8d..0000000 --- a/src/app/components/partials/alert/alert-info.js +++ /dev/null @@ -1,84 +0,0 @@ -import React from 'react'; - -const AlertInfo = () => { - return ( -
- {/* First Alert with Learn More link */} -
-
-
- - - -
- -
-

- Success Message -

- -

- You can insert a description for the message here.The text relates to - the action that has been performed. -

- - - Learn more - -
-
-
- - {/* Second Alert without Learn More link */} -
-
-
- - - -
- -
-

- Success Message -

- -

- You can insert a description for the message here.The text relates to - the action that has been performed. -

-
-
-
-
- ); -}; - -export default AlertInfo; \ No newline at end of file diff --git a/src/app/components/partials/alert/alert-success.js b/src/app/components/partials/alert/alert-success.js deleted file mode 100644 index 124fb3f..0000000 --- a/src/app/components/partials/alert/alert-success.js +++ /dev/null @@ -1,78 +0,0 @@ -// app/alert-success/page.js -export default function AlertSuccessPage() { - return ( -
- {/* Alert 1 */} -
-
-
- - - -
- -
-

- Success Message -

-

- You can insert a description for the message here. The text relates to - the action that has been performed. -

- - Learn more - -
-
-
- - {/* Alert 2 (without link) */} -
-
-
- - - -
- -
-

- Success Message -

-

- You can insert a description for the message here. The text relates to - the action that has been performed. -

-
-
-
-
- ); -} \ No newline at end of file diff --git a/src/app/components/partials/alert/alert-warning.js b/src/app/components/partials/alert/alert-warning.js deleted file mode 100644 index fc5f1f2..0000000 --- a/src/app/components/partials/alert/alert-warning.js +++ /dev/null @@ -1,79 +0,0 @@ -"use client"; - -export default function AlertWarning() { - return ( -
- {/* Alert 1 */} -
-
-
- - - -
- -
-

- Warning Message -

-

- You can insert a description for the message here. The text - relates to the action that has been performed. -

- - Learn more - -
-
-
- - {/* Alert 2 */} -
-
-
- - - -
- -
-

- Warning Message -

-

- You can insert a description for the message here. The text - relates to the action that has been performed. -

-
-
-
-
- ); -} \ No newline at end of file diff --git a/src/app/components/partials/avatar/avatar01.js b/src/app/components/partials/avatar/avatar01.js deleted file mode 100644 index 73aed18..0000000 --- a/src/app/components/partials/avatar/avatar01.js +++ /dev/null @@ -1,32 +0,0 @@ -// components/partials/avatar/Avatar01.tsx -import React from 'react'; -import Image from 'next/image'; - -const Avatar01 = () => { - const sizes = [ - { container: 'h-6 w-6', max: 'max-w-6' }, - { container: 'h-8 w-8', max: 'max-w-8' }, - { container: 'h-10 w-10', max: 'max-w-10' }, - { container: 'h-12 w-12', max: 'max-w-12' }, - { container: 'h-14 w-14', max: 'max-w-14' }, - { container: 'h-16 w-16', max: 'max-w-16' }, - ]; - - return ( -
- {sizes.map((size, index) => ( -
- user -
- ))} -
- ); -}; - -export default Avatar01; \ No newline at end of file diff --git a/src/app/components/partials/avatar/avatar02.js b/src/app/components/partials/avatar/avatar02.js deleted file mode 100644 index 225bde8..0000000 --- a/src/app/components/partials/avatar/avatar02.js +++ /dev/null @@ -1,35 +0,0 @@ -// components/partials/avatar/Avatar02.tsx -import React from 'react'; -import Image from 'next/image'; - -const Avatar02 = () => { - const sizes = [ - { container: 'h-6 w-6', indicator: 'h-1.5 w-1.5' }, - { container: 'h-8 w-8', indicator: 'h-2 w-2' }, - { container: 'h-10 w-10', indicator: 'h-2.5 w-2.5' }, - { container: 'h-12 w-12', indicator: 'h-3 w-3' }, - { container: 'h-14 w-14', indicator: 'h-3.5 w-3.5' }, - { container: 'h-16 w-16', indicator: 'h-4 w-4' }, - ]; - - return ( -
- {sizes.map((size, index) => ( -
- user - -
- ))} -
- ); -}; - -export default Avatar02; \ No newline at end of file diff --git a/src/app/components/partials/avatar/avatar03.js b/src/app/components/partials/avatar/avatar03.js deleted file mode 100644 index 4fd45db..0000000 --- a/src/app/components/partials/avatar/avatar03.js +++ /dev/null @@ -1,35 +0,0 @@ -// components/partials/avatar/Avatar03.tsx -import React from 'react'; -import Image from 'next/image'; - -const Avatar03 = () => { - const sizes = [ - { container: 'h-6 w-6', indicator: 'h-1.5 w-1.5' }, - { container: 'h-8 w-8', indicator: 'h-2 w-2' }, - { container: 'h-10 w-10', indicator: 'h-2.5 w-2.5' }, - { container: 'h-12 w-12', indicator: 'h-3 w-3' }, - { container: 'h-14 w-14', indicator: 'h-3.5 w-3.5' }, - { container: 'h-16 w-16', indicator: 'h-4 w-4' }, - ]; - - return ( -
- {sizes.map((size, index) => ( -
- user - -
- ))} -
- ); -}; - -export default Avatar03; \ No newline at end of file diff --git a/src/app/components/partials/avatar/avatar04.js b/src/app/components/partials/avatar/avatar04.js deleted file mode 100644 index 3e5f2c5..0000000 --- a/src/app/components/partials/avatar/avatar04.js +++ /dev/null @@ -1,35 +0,0 @@ -// components/partials/avatar/Avatar04.tsx -import React from 'react'; -import Image from 'next/image'; - -const Avatar04 = () => { - const sizes = [ - { container: 'h-6 w-6', indicator: 'h-1.5 w-1.5' }, - { container: 'h-8 w-8', indicator: 'h-2 w-2' }, - { container: 'h-10 w-10', indicator: 'h-2.5 w-2.5' }, - { container: 'h-12 w-12', indicator: 'h-3 w-3' }, - { container: 'h-14 w-14', indicator: 'h-3.5 w-3.5' }, - { container: 'h-16 w-16', indicator: 'h-4 w-4' }, - ]; - - return ( -
- {sizes.map((size, index) => ( -
- user - -
- ))} -
- ); -}; - -export default Avatar04; \ No newline at end of file diff --git a/src/app/components/partials/badge/Badge01.js b/src/app/components/partials/badge/Badge01.js deleted file mode 100644 index e59118e..0000000 --- a/src/app/components/partials/badge/Badge01.js +++ /dev/null @@ -1,45 +0,0 @@ -// components/partials/badge/Badge01.tsx -import React from 'react'; - -const Badge01 = () => { - return ( -
- {/* Primary Badge */} - - Primary - - - {/* Success Badge */} - - Success - - - {/* Error Badge */} - - Error - - - {/* Warning Badge */} - - Warning - - - {/* Info Badge */} - - Info - - - {/* Light Badge */} - - Light - - - {/* Dark Badge */} - - Dark - -
- ); -}; - -export default Badge01; \ No newline at end of file diff --git a/src/app/components/partials/badge/Badge02.js b/src/app/components/partials/badge/Badge02.js deleted file mode 100644 index fac723e..0000000 --- a/src/app/components/partials/badge/Badge02.js +++ /dev/null @@ -1,45 +0,0 @@ -// components/partials/badge/Badge02.tsx -import React from 'react'; - -const Badge02 = () => { - return ( -
- {/* Primary Badge */} - - Primary - - - {/* Success Badge */} - - Success - - - {/* Error Badge */} - - Error - - - {/* Warning Badge */} - - Warning - - - {/* Info Badge */} - - Info - - - {/* Light Badge */} - - Light - - - {/* Dark Badge */} - - Dark - -
- ); -}; - -export default Badge02; \ No newline at end of file diff --git a/src/app/components/partials/badge/Badge03.js b/src/app/components/partials/badge/Badge03.js deleted file mode 100644 index 97620d4..0000000 --- a/src/app/components/partials/badge/Badge03.js +++ /dev/null @@ -1,69 +0,0 @@ -// components/partials/badge/Badge03.tsx -import React from 'react'; - -const PlusIcon = () => ( - - - -); - -const Badge03 = () => { - return ( -
- {/* Primary Badge */} - - - Primary - - - {/* Success Badge */} - - - Success - - - {/* Error Badge */} - - - Error - - - {/* Warning Badge */} - - - Warning - - - {/* Info Badge */} - - - Info - - - {/* Light Badge */} - - - Light - - - {/* Dark Badge */} - - - Dark - -
- ); -}; - -export default Badge03; \ No newline at end of file diff --git a/src/app/components/partials/badge/Badge04.js b/src/app/components/partials/badge/Badge04.js deleted file mode 100644 index 60732cd..0000000 --- a/src/app/components/partials/badge/Badge04.js +++ /dev/null @@ -1,69 +0,0 @@ -// components/partials/badge/Badge04.tsx -import React from 'react'; - -const PlusIcon = () => ( - - - -); - -const Badge04 = () => { - return ( -
- {/* Primary Badge */} - - - Primary - - - {/* Success Badge */} - - - Success - - - {/* Error Badge */} - - - Error - - - {/* Warning Badge */} - - - Warning - - - {/* Info Badge */} - - - Info - - - {/* Light Badge */} - - - Light - - - {/* Dark Badge */} - - - Dark - -
- ); -}; - -export default Badge04; \ No newline at end of file diff --git a/src/app/components/partials/badge/Badge05.js b/src/app/components/partials/badge/Badge05.js deleted file mode 100644 index 66659a9..0000000 --- a/src/app/components/partials/badge/Badge05.js +++ /dev/null @@ -1,90 +0,0 @@ -// components/partials/badge/Badge05.tsx -import React from 'react'; - -const PlusIcon = () => ( - - - -); - -const Badge05 = () => { - return ( -
- {/* Primary Badge */} - - Primary - - - - {/* Success Badge */} - - Success - - - - {/* Error Badge */} - - Error - - - - {/* Warning Badge */} - - Warning - - - - {/* Info Badge */} - - Info - - - - {/* Light Badge */} - - Light - - - - {/* Dark Badge */} - - Dark - - -
- ); -}; - -export default Badge05; diff --git a/src/app/components/partials/badge/Badge06.js b/src/app/components/partials/badge/Badge06.js deleted file mode 100644 index 46897ae..0000000 --- a/src/app/components/partials/badge/Badge06.js +++ /dev/null @@ -1,95 +0,0 @@ -import React from 'react'; - -const PlusIcon = () => ( - - - -); - -const Badge06 = () => { - return ( -
- {/* Primary Badge */} - - Primary - - - - {/* Success Badge */} - - Success - - - - {/* Error Badge */} - - Error - - - - {/* Warning Badge */} - - Warning - - - - {/* Info Badge */} - - Info - - - - {/* Light Badge */} - - Light - - - - {/* Dark Badge */} - - Dark - - -
- ); -}; - -export default Badge06; diff --git a/src/app/components/partials/header.jsx b/src/app/components/partials/header.jsx index 7cd4d4f..2376941 100644 --- a/src/app/components/partials/header.jsx +++ b/src/app/components/partials/header.jsx @@ -18,7 +18,7 @@ export default function Header({ return ( -
+
{/* ----------Total Tokens Card---------------- */} diff --git a/src/app/dashboard/page.js b/src/app/dashboard/page.js index b16907e..16a2c5a 100644 --- a/src/app/dashboard/page.js +++ b/src/app/dashboard/page.js @@ -43,7 +43,7 @@ export default function DashboardPage() {
-
+
diff --git a/src/app/pages/MultiBooking/page.js b/src/app/pages/MultiBooking/page.js index 23e3972..fd4d9ad 100644 --- a/src/app/pages/MultiBooking/page.js +++ b/src/app/pages/MultiBooking/page.js @@ -58,13 +58,13 @@ export default function MultiBooking() {
{/* Sticky Header */}
-
+
{/* Main Content */} -
+
{error && (
diff --git a/src/app/pages/alerts/page.js b/src/app/pages/alerts/page.js deleted file mode 100644 index 6403937..0000000 --- a/src/app/pages/alerts/page.js +++ /dev/null @@ -1,109 +0,0 @@ -'use client'; - -import { useState, useEffect } from 'react'; -import Head from 'next/head'; -import Preloader from "../../components/partials/preloaders"; -// import Sidebar from './partials/sidebar'; -import Overlay from "../../components/partials/overlay"; -import Header from "../../components/partials/header"; -import Breadcrumb from "../../components/partials/breadcrumb"; -import AlertSuccess from '../../components/partials/alert/alert-success'; -import AlertWarning from "../../components/partials/alert/alert-warning"; -import AlertError from '../../components/partials/alert/alert-error'; -import AlertInfo from '../../components/partials/alert/alert-info'; - -export default function AlertsPage() { - const [darkMode, setDarkMode] = useState(false); - const [loaded, setLoaded] = useState(true); - - useEffect(() => { - // Initialize dark mode from localStorage - const savedDarkMode = JSON.parse(localStorage.getItem('darkMode') || 'false'); - setDarkMode(savedDarkMode); - }, []); - - useEffect(() => { - // Save dark mode preference to localStorage - localStorage.setItem('darkMode', JSON.stringify(darkMode)); - }, [darkMode]); - - if (!loaded) { - return ; - } - - return ( -
-
- {/* */} - -
- -
-
-
- -
-
- - -
-
-
-

- Success Alert -

-
-
-
- -
-
-
- -
-
-

- Warning Alert -

-
-
-
- -
-
-
- -
-
-

- Error Alert -

-
-
-
- -
-
-
- -
-
-

- Info Alert -

-
-
-
- -
-
-
-
-
-
-
-
-
- ); - - }; \ No newline at end of file diff --git a/src/app/pages/avatars/page.js b/src/app/pages/avatars/page.js deleted file mode 100644 index 5ef5d78..0000000 --- a/src/app/pages/avatars/page.js +++ /dev/null @@ -1,137 +0,0 @@ -// app/avatars/page.tsx -'use client' - -import { useState, useEffect } from 'react'; -import Head from 'next/head'; -import Preloader from "../../components/partials/preloaders"; -// import Sidebar from '@/components/partials/Sidebar'; -import Overlay from "../../components/partials/overlay"; -import Header from "../../components/partials/header"; -import Breadcrumb from "../../components/partials/breadcrumb"; -import Avatar01 from "../../components/partials/avatar/avatar01"; -import Avatar02 from"../../components/partials/avatar/avatar02"; -import Avatar03 from "../../components/partials/avatar/avatar03"; -import Avatar04 from "../../components/partials/avatar/avatar04"; - -export default function AvatarsPage() { - const [loaded, setLoaded] = useState(false); - const [darkMode, setDarkMode] = useState(false); - const [stickyMenu, setStickyMenu] = useState(false); - const [sidebarToggle, setSidebarToggle] = useState(false); - const [scrollTop, setScrollTop] = useState(false); - - useEffect(() => { - const savedDarkMode = JSON.parse(localStorage.getItem('darkMode') || 'false'); - setDarkMode(savedDarkMode); - - const timer = setTimeout(() => { - setLoaded(true); - }, 500); - - return () => clearTimeout(timer); - }, []); - - useEffect(() => { - localStorage.setItem('darkMode', JSON.stringify(darkMode)); - }, [darkMode]); - - const pageName = 'Avatars'; - - return ( - <> - -
- {/* Preloader */} - {!loaded && } - - {/* Page Wrapper */} -
- {/* Sidebar */} - {/* */} - - {/* Content Area */} -
- {/* Small Device Overlay */} - - - {/* Header */} -
- - {/* Main Content */} -
-
- {/* Breadcrumb */} - - -
- {/* Default Avatar */} -
-
-

- Default Avatar -

-
-
- -
-
- - {/* Avatar with online indicator */} -
-
-

- Avatar with online indicator -

-
-
- -
-
- - {/* Avatar with Offline indicator */} -
-
-

- Avatar with Offline indicator -

-
-
- -
-
- - {/* Avatar with busy indicator */} -
-
-

- Avatar with busy indicator -

-
-
- -
-
-
-
-
-
-
-
- - ); -} \ No newline at end of file diff --git a/src/app/pages/badge/page.js b/src/app/pages/badge/page.js deleted file mode 100644 index 1d73e3e..0000000 --- a/src/app/pages/badge/page.js +++ /dev/null @@ -1,161 +0,0 @@ -// app/badge/page.tsx -'use client' - -import { useState, useEffect } from 'react'; -import Head from 'next/head'; -import Preloader from "../../components/partials/preloaders"; -// import Sidebar from '@/components/partials/Sidebar'; -import Overlay from "../../components/partials/overlay"; -import Header from "../../components/partials/header"; -import Breadcrumb from "../../components/partials/breadcrumb"; -import Badge01 from "../../components/partials/badge/Badge01"; -import Badge02 from "../../components/partials/badge/Badge02"; -import Badge03 from "../../components/partials/badge/Badge03"; -import Badge04 from "../../components/partials/badge/Badge04"; -import Badge05 from "../../components/partials/badge/Badge05"; -import Badge06 from "../../components/partials/badge/Badge06"; - -export default function BadgePage() { - const [loaded, setLoaded] = useState(false); - const [darkMode, setDarkMode] = useState(false); - const [stickyMenu, setStickyMenu] = useState(false); - const [sidebarToggle, setSidebarToggle] = useState(false); - const [scrollTop, setScrollTop] = useState(false); - - useEffect(() => { - // Load dark mode preference from localStorage - const savedDarkMode = JSON.parse(localStorage.getItem('darkMode') || 'false'); - setDarkMode(savedDarkMode); - - // Simulate loading - const timer = setTimeout(() => { - setLoaded(true); - }, 500); - - return () => clearTimeout(timer); - }, []); - - useEffect(() => { - // Save dark mode preference to localStorage - localStorage.setItem('darkMode', JSON.stringify(darkMode)); - }, [darkMode]); - - const pageName = 'Badge'; - - return ( - <> - -
- {/* Preloader */} - {!loaded && } - - {/* Page Wrapper */} -
- {/* Sidebar */} - {/* */} - - {/* Content Area */} -
- {/* Small Device Overlay */} - - - {/* Header */} -
-
-
- - {/* Main Content */} -
-
- {/* Breadcrumb */} - - -
- {/* With Light Background */} -
-
-

- With Light Background -

-
-
- -
-
- - {/* With Solid Background */} -
-
-

- With Solid Background -

-
-
- -
-
- - {/* Light Background with Left Icon */} -
-
-

- Light Background with Left Icon -

-
-
- -
-
- - {/* Solid Background with Left Icon */} -
-
-

- Solid Background with Left Icon -

-
-
- -
-
- - {/* Light Background with Right Icon */} -
-
-

- Light Background with Right Icon -

-
-
- -
-
- - {/* Solid Background with Right Icon */} -
-
-

- Solid Background with Right Icon -

-
-
- -
-
-
-
-
-
-
-
- - ); -} \ No newline at end of file