diff --git a/src/app/admin/page.tsx b/src/app/admin/page.tsx new file mode 100644 index 0000000..c6592eb --- /dev/null +++ b/src/app/admin/page.tsx @@ -0,0 +1,268 @@ +"use client"; + +import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider"; +import NavbarStyleCentered from '@/components/navbar/NavbarStyleCentered/NavbarStyleCentered'; +import MetricCardTen from '@/components/sections/metrics/MetricCardTen'; +import FooterSimple from '@/components/sections/footer/FooterSimple'; +import { Copy, Key, Users, Zap } from 'lucide-react'; +import { useState } from 'react'; + +export default function AdminDashboard() { + const [copiedKey, setCopiedKey] = useState(null); + + const handleCopyKey = (keyValue: string) => { + navigator.clipboard.writeText(keyValue); + setCopiedKey(keyValue); + setTimeout(() => setCopiedKey(null), 2000); + }; + + return ( + + + +
+ +
+ +
+
+
+

+ + API Key Management +

+

Create and manage API keys for secure integrations with ClipForge AI services.

+
+ +
+

Active API Keys

+
+ {[ + { name: "Production API Key", key: "sk_live_xyz123abc456def789ghi", created: "Jan 15, 2025", lastUsed: "2 minutes ago" }, + { name: "Development API Key", key: "sk_test_dev123abc456def789", created: "Jan 10, 2025", lastUsed: "1 hour ago" }, + { name: "Integration Testing", key: "sk_test_int456def789ghi123", created: "Jan 5, 2025", lastUsed: "Yesterday" } + ].map((apiKey, idx) => ( +
+
+
+

{apiKey.name}

+

Created: {apiKey.created}

+
+ +
+

{apiKey.key}

+

Last used: {apiKey.lastUsed}

+
+ ))} +
+
+ + +
+
+ +
+
+
+

+ + User Management +

+

Manage user accounts, permissions, and subscription status across the platform.

+
+ +
+
+ + + + + + + + + + + + + {[ + { username: "Alex Chen", email: "alex@example.com", plan: "Pro", status: "Active", joined: "Jan 10, 2025" }, + { username: "Jessica Martinez", email: "jessica@example.com", plan: "Creator", status: "Active", joined: "Jan 5, 2025" }, + { username: "David Kumar", email: "david@example.com", plan: "Pro", status: "Active", joined: "Dec 28, 2024" }, + { username: "Sophie Leclerc", email: "sophie@example.com", plan: "Starter", status: "Active", joined: "Dec 15, 2024" }, + { username: "Marcus Johnson", email: "marcus@example.com", plan: "Creator", status: "Suspended", joined: "Dec 1, 2024" } + ].map((user, idx) => ( + + + + + + + + + ))} + +
UsernameEmailPlanStatusJoinedActions
{user.username}{user.email} + + {user.plan} + + + + {user.status} + + {user.joined} + + +
+
+
+
+
+ +
+
+
+

+ + Credit Administration +

+

Monitor, allocate, and adjust credits for users across all plans.

+
+ +
+
+

Total Credits Issued

+

2,400,000

+

Across all active users

+
+
+

Credits Consumed

+

1,847,320

+

77% utilization rate

+
+
+ +
+

Adjust User Credits

+
+
+ + +
+
+
+ + +
+
+ + +
+
+
+ +