feat: add favicon, logo and Update the platform name (only available to the superuser) and company names
This commit is contained in:
@@ -15,6 +15,7 @@ export const metadata: Metadata = {
|
||||
};
|
||||
|
||||
import AuthHeader from "@/components/AuthHeader";
|
||||
import BrandingManager from "@/components/BrandingManager";
|
||||
|
||||
export default function RootLayout({
|
||||
children,
|
||||
@@ -27,6 +28,7 @@ export default function RootLayout({
|
||||
<AuthProvider>
|
||||
<I18nProvider>
|
||||
<AuthGuard>
|
||||
<BrandingManager />
|
||||
<header className="h-20 glass sticky top-0 z-50 px-8 flex items-center justify-between border-b border-white/5 backdrop-blur-xl bg-black/40">
|
||||
<Link href="/" className="flex items-center gap-3 group">
|
||||
<div className="w-10 h-10 rounded-xl bg-blue-600 flex items-center justify-center font-black text-white shadow-lg shadow-blue-500/20 group-hover:scale-105 transition-transform">
|
||||
|
||||
@@ -0,0 +1,31 @@
|
||||
"use client";
|
||||
|
||||
import BrandingSettings from "@/components/BrandingSettings";
|
||||
import { useAuth } from "@/context/AuthContext";
|
||||
import { useRouter } from "next/navigation";
|
||||
import { useEffect } from "react";
|
||||
|
||||
export default function SettingsPage() {
|
||||
const { user, loading } = useAuth();
|
||||
const router = useRouter();
|
||||
|
||||
useEffect(() => {
|
||||
if (!loading && (!user || user.role !== "admin")) {
|
||||
router.push("/");
|
||||
}
|
||||
}, [user, loading, router]);
|
||||
|
||||
if (loading) return null;
|
||||
|
||||
if (!user || user.role !== "admin") return null;
|
||||
|
||||
return (
|
||||
<div className="pt-24 px-8 pb-12 min-h-screen bg-gradient-to-br from-gray-900 to-black">
|
||||
<div className="max-w-4xl mx-auto mb-8">
|
||||
<h1 className="text-3xl font-black text-white tracking-tight">Organization Settings</h1>
|
||||
<p className="text-gray-400 mt-2">Manage your white-label branding and platform identity.</p>
|
||||
</div>
|
||||
<BrandingSettings />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user