WIP - save all current changes
This commit is contained in:
@@ -3,6 +3,7 @@ import { unstable_noStore as noStore } from "next/cache";
|
||||
import { getLocale } from "next-intl/server";
|
||||
import { redirect } from "next/navigation";
|
||||
|
||||
import { FloatingAdminButton } from "@/components/layout/floating-admin-button";
|
||||
import { SiteAmbientBackdrop } from "@/components/layout/site-ambient-backdrop";
|
||||
import { PageTransition } from "@/components/layout/page-transition";
|
||||
import { SiteDock } from "@/components/layout/site-dock";
|
||||
@@ -44,7 +45,17 @@ export default async function SiteLayout({ children, params }: SiteLayoutProps)
|
||||
<>
|
||||
<ScrollSmootherProvider />
|
||||
<SiteAmbientBackdrop />
|
||||
<<<<<<< HEAD
|
||||
<SiteDock defaultLocale={siteSettings.defaultLocale} isSuperAdmin={authenticated} />
|
||||
=======
|
||||
<SiteHeader
|
||||
lightLogoUrl={mediaBindings.siteLogoLight?.url}
|
||||
darkLogoUrl={mediaBindings.siteLogoDark?.url}
|
||||
defaultLocale={siteSettings.defaultLocale}
|
||||
isSuperAdmin={authenticated}
|
||||
/>
|
||||
<FloatingAdminButton />
|
||||
>>>>>>> 9fabf17 (update)
|
||||
<div id="smooth-wrapper">
|
||||
<div id="smooth-content">
|
||||
<div className="site-content-frame flex min-h-screen flex-col">
|
||||
|
||||
@@ -0,0 +1,25 @@
|
||||
"use client";
|
||||
|
||||
import { ShieldCheck } from "lucide-react";
|
||||
import { useLocale } from "next-intl";
|
||||
|
||||
import { buildAdminUrl } from "@/lib/admin-routing";
|
||||
import { cn } from "@/lib/utils";
|
||||
|
||||
export function FloatingAdminButton() {
|
||||
const locale = useLocale();
|
||||
const isRtl = locale === "ar";
|
||||
|
||||
return (
|
||||
<a
|
||||
href={buildAdminUrl("/")}
|
||||
aria-label="Admin"
|
||||
className={cn(
|
||||
"fixed bottom-5 z-50 flex h-11 w-11 items-center justify-center rounded-full border border-border/70 bg-background/90 text-foreground/70 shadow-lg backdrop-blur-chrome transition-all hover:scale-105 hover:bg-accent hover:text-foreground hover:shadow-xl",
|
||||
isRtl ? "left-5" : "right-5",
|
||||
)}
|
||||
>
|
||||
<ShieldCheck className="h-5 w-5" />
|
||||
</a>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user