dm: 연녹색 스킨 및 메뉴

This commit is contained in:
dongsilove
2026-01-02 23:17:59 +09:00
parent 43af9042c8
commit bd8d850a78
2 changed files with 7 additions and 4 deletions
+3
View File
@@ -1,5 +1,8 @@
"use client"; "use client";
import "./globals.css"; import "./globals.css";
import { setCookie } from "../src/shared/lib";
setCookie("site-id-key", process.env.NEXT_PUBLIC_SITE_ID || "DM");
export default function RootLayout({ export default function RootLayout({
children, children,
@@ -153,10 +153,10 @@ export function Header({ viewOnly }: { viewOnly?: boolean }) {
<SidebarTrigger className="size-12 !bg-transparent p-2 hover:!bg-accent [&>svg]:!size-full [&>svg]:text-foreground" /> <SidebarTrigger className="size-12 !bg-transparent p-2 hover:!bg-accent [&>svg]:!size-full [&>svg]:text-foreground" />
<h1 className="flex flex-col items-center gap-2"> <h1 className="flex flex-col items-center gap-2">
{mounted ? ( {mounted ? (
<img <img
ref={logoRef} ref={logoRef}
src={getLogoImage()} src={getLogoImage()}
className="h-[3rem]" className="h-[3rem]"
alt="logo" alt="logo"
onLoad={() => { onLoad={() => {
if (logoRef.current) { if (logoRef.current) {
@@ -167,7 +167,7 @@ export function Header({ viewOnly }: { viewOnly?: boolean }) {
) : ( ) : (
<Skeleton className="h-[3rem] w-[15rem]" /> <Skeleton className="h-[3rem] w-[15rem]" />
)} )}
<span <span
className="text-[1.2rem] font-semibold text-foreground" className="text-[1.2rem] font-semibold text-foreground"
style={{ style={{
letterSpacing: logoWidth > 0 ? `${(logoWidth - 120) / (siteInfo?.siteNm?.length || 1)}px` : '0.05em' letterSpacing: logoWidth > 0 ? `${(logoWidth - 120) / (siteInfo?.siteNm?.length || 1)}px` : '0.05em'