feat: 新增租戶品牌客製化系統(Logo、主色系)、修正 hardcoded 顏色為 CSS 變數
This commit is contained in:
@@ -31,9 +31,9 @@ export default function Dashboard({ stats }: Props) {
|
||||
{
|
||||
label: '商品總數',
|
||||
value: stats.productsCount,
|
||||
icon: <Package className="h-6 w-6 text-[#01ab83]" />,
|
||||
icon: <Package className="h-6 w-6 text-primary-main" />,
|
||||
description: '目前系統中的商品種類',
|
||||
color: 'bg-[#01ab83]/10',
|
||||
color: 'bg-primary-main/10',
|
||||
},
|
||||
{
|
||||
label: '合作廠商',
|
||||
@@ -80,7 +80,7 @@ export default function Dashboard({ stats }: Props) {
|
||||
<div className="p-8 max-w-7xl mx-auto">
|
||||
<div className="mb-8">
|
||||
<h1 className="text-2xl font-bold text-grey-0 flex items-center gap-2">
|
||||
<TrendingUp className="h-6 w-6 text-[#01ab83]" />
|
||||
<TrendingUp className="h-6 w-6 text-primary-main" />
|
||||
系統總覽
|
||||
</h1>
|
||||
<p className="text-gray-500 mt-1">歡迎回來,這是您的小小冰室 ERP 營運數據概況。</p>
|
||||
@@ -113,7 +113,7 @@ export default function Dashboard({ stats }: Props) {
|
||||
{/* 警示與通知 */}
|
||||
<div className="lg:col-span-1 space-y-6">
|
||||
<h2 className="text-xl font-bold text-grey-0 flex items-center gap-2">
|
||||
<TrendingUp className="h-5 w-5 text-[#01ab83]" />
|
||||
<TrendingUp className="h-5 w-5 text-primary-main" />
|
||||
即時動態
|
||||
</h2>
|
||||
<div className="bg-white rounded-2xl border border-grey-4 shadow-sm divide-y divide-grey-4">
|
||||
@@ -159,12 +159,12 @@ export default function Dashboard({ stats }: Props) {
|
||||
<h2 className="text-xl font-bold text-grey-0">快速操作</h2>
|
||||
<div className="grid grid-cols-1 md:grid-cols-2 gap-4">
|
||||
<Link href="/products" className="group h-full">
|
||||
<div className="bg-white p-6 rounded-2xl border border-grey-4 shadow-sm hover:border-[#01ab83] transition-all h-full flex flex-col justify-between">
|
||||
<div className="bg-white p-6 rounded-2xl border border-grey-4 shadow-sm hover:border-primary-main transition-all h-full flex flex-col justify-between">
|
||||
<div>
|
||||
<h3 className="font-bold text-grey-0 mb-1 group-hover:text-[#01ab83]">商品管理</h3>
|
||||
<h3 className="font-bold text-grey-0 mb-1 group-hover:text-primary-main">商品管理</h3>
|
||||
<p className="text-sm text-grey-2">查看並編輯所有商品資料與單位換算。</p>
|
||||
</div>
|
||||
<div className="mt-4 flex items-center text-xs font-bold text-[#01ab83] group-hover:gap-2 transition-all">
|
||||
<div className="mt-4 flex items-center text-xs font-bold text-primary-main group-hover:gap-2 transition-all">
|
||||
即刻前往 <ChevronRight className="h-3 w-3" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user