260205_03_ENH: layout color gray + black으로 변경, excel버튼 아이콘으로 변경
This commit is contained in:
@@ -2,18 +2,24 @@
|
||||
|
||||
import { Button } from "@/components/ui/button";
|
||||
import { useLayoutFilter } from "./LayoutFilterContext";
|
||||
import Image from "next/image";
|
||||
|
||||
const ExcelDownloadButton = () => {
|
||||
const { requestExcelExport } = useLayoutFilter();
|
||||
|
||||
return (
|
||||
<Button
|
||||
variant="excel"
|
||||
className="h-8 px-3 text-sm font-semibold content-text-sm"
|
||||
onClick={requestExcelExport}
|
||||
>
|
||||
Excel 다운로드
|
||||
</Button>
|
||||
<div className={"mr-2 pb-1 cursor-pointer"}>
|
||||
<Image
|
||||
src="/icon-excel.png"
|
||||
alt="excel export"
|
||||
width={27}
|
||||
height={27}
|
||||
className="object-contain"
|
||||
onClick={requestExcelExport}
|
||||
priority
|
||||
/>
|
||||
</div>
|
||||
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
@@ -30,13 +30,13 @@ const Header = ({
|
||||
}, [auth.user])
|
||||
|
||||
return (
|
||||
<header className="bg-white border-b border-gray-200 sticky top-0 z-40">
|
||||
<header className="bg-black border-b border-gray-200 sticky top-0 z-40">
|
||||
<div className="flex items-center justify-between px-4 h-16">
|
||||
<div className="flex items-center gap-4">
|
||||
{/* 로고 */}
|
||||
<div className="flex items-center gap-2 cursor-pointer w-30 h-15 justify-center">
|
||||
<Image
|
||||
src="/logo.png" // public/logo.png
|
||||
src="/logo_transparent.png" // public/logo.png
|
||||
alt="브랜드 로고"
|
||||
width={200}
|
||||
height={80}
|
||||
@@ -56,32 +56,26 @@ const Header = ({
|
||||
type="button"
|
||||
onClick={() => onNavigate(m.path)}
|
||||
className={cn(
|
||||
"relative h-10 inline-flex items-center font-semibold transition-colors cursor-pointer",
|
||||
"content-text-base bg-transparent px-1",
|
||||
"relative h-8 inline-flex items-center font-bold transition-colors cursor-pointer",
|
||||
"content-text-lg bg-transparent px-1",
|
||||
active
|
||||
? "text-primary"
|
||||
: "text-secondary-hover"
|
||||
? "text-header-primary"
|
||||
: "text-header-secondary-hover"
|
||||
)}
|
||||
>
|
||||
{m.label}
|
||||
|
||||
{/* 선택 표시(밑줄) */}
|
||||
{active && (
|
||||
<span className="absolute left-0 right-0 -bottom-[2px] h-[2px] bg-primary" />
|
||||
)}
|
||||
</button>
|
||||
);
|
||||
})}
|
||||
</nav>
|
||||
</div>
|
||||
<div className="flex justify-between items-center">
|
||||
<h1 className="font-bold content-text-2xl">{DASHBOARD_YEAR}년도 가전보급률 Dashboard</h1>
|
||||
<h1 className="font-bold content-text-2xl text-header-color">{DASHBOARD_YEAR}년도 가전보급률 Dashboard</h1>
|
||||
</div>
|
||||
{/* 우측 컨트롤 */}
|
||||
<div className="flex items-center gap-4">
|
||||
<span className="text-sm text-gray-600 hidden sm:inline font-bold">{userInfo?.userName || ""}</span>
|
||||
<span className="content-text-base text-header-color hidden sm:inline font-bold">{userInfo?.userName || ""}</span>
|
||||
<Button
|
||||
variant="ghost"
|
||||
size="sm"
|
||||
className="gap-2"
|
||||
onClick={() => onNavigate("/logout")}
|
||||
|
||||
Reference in New Issue
Block a user