diff --git a/src/pages/Settings.tsx b/src/pages/Settings.tsx new file mode 100644 index 0000000..452cd43 --- /dev/null +++ b/src/pages/Settings.tsx @@ -0,0 +1,163 @@ +import Sidebar from "@/components/Sidebar"; +import DashboardHeader from "@/components/DashboardHeader"; +import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card"; +import { Input } from "@/components/ui/input"; +import { Button } from "@/components/ui/button"; +import { Badge } from "@/components/ui/badge"; +import { Avatar, AvatarFallback } from "@/components/ui/avatar"; +import { Label } from "@/components/ui/label"; +import { Checkbox } from "@/components/ui/checkbox"; +import { Copy, UserPlus } from "lucide-react"; + +const notifications = [ + { label: "Email notifications", desc: "Receive email for important updates", defaultChecked: true }, + { label: "Push notifications", desc: "Browser push notifications", defaultChecked: true }, + { label: "Weekly digest", desc: "Summary of activity every Monday", defaultChecked: false }, + { label: "Marketing emails", desc: "Product news and offers", defaultChecked: false }, +]; + +const apiKeys = [ + { name: "Production", key: "sk-prod-****-****-****-7f3a", created: "Jan 5, 2024" }, + { name: "Development", key: "sk-dev-****-****-****-2b8c", created: "Mar 12, 2024" }, +]; + +const teamMembers = [ + { name: "John Doe", email: "john@company.com", role: "Owner", initials: "JD" }, + { name: "Sarah Chen", email: "sarah@company.com", role: "Admin", initials: "SC" }, + { name: "Marcus Johnson", email: "marcus@company.com", role: "Member", initials: "MJ" }, +]; + +export default function SettingsPage() { + return ( +
+ +
+ +
+ {/* Profile */} + + + Profile + + +
+ + JD + +
+

John Doe

+

john@company.com

+
+
+
+
+ + +
+
+ + +
+
+ +
+
+ + {/* Billing */} + + + Billing + + +
+
+
+ Current Plan: + Pro +
+

\$29/mo billed monthly

+
+ +
+
+
+ Usage this period + 75% +
+
+
+
+
+ + + + {/* Notifications */} + + + Notifications + + + {notifications.map((n) => ( +
+ +
+

{n.label}

+

{n.desc}

+
+
+ ))} +
+
+ + {/* API Keys */} + + + API Keys + + + {apiKeys.map((k) => ( +
+
+

{k.name}

+

{k.key}

+
+ +
+ ))} +
+
+ + {/* Team */} + + + Team + + + + {teamMembers.map((m) => ( +
+
+ + {m.initials} + +
+

{m.name}

+

{m.email}

+
+
+ + {m.role} + +
+ ))} +
+
+
+
+
+ ); +}