fix the background color in dashboard ,also fix sidebar and others small thing
This commit is contained in:
parent
ddf65817d3
commit
a14aa13ecf
|
|
@ -82,6 +82,10 @@ html[dir="rtl"] body {
|
||||||
:root {
|
:root {
|
||||||
--radius: 0.5rem;
|
--radius: 0.5rem;
|
||||||
|
|
||||||
|
/* primary colors */
|
||||||
|
--color-pr-gray : #3F415A;
|
||||||
|
--color-pr-green :#3AEA83;
|
||||||
|
|
||||||
/* Light theme colors */
|
/* Light theme colors */
|
||||||
--background: #ffffff;
|
--background: #ffffff;
|
||||||
--foreground: #0a0a0a;
|
--foreground: #0a0a0a;
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,7 @@ import { Link } from "react-router";
|
||||||
import { cn } from "~/lib/utils";
|
import { cn } from "~/lib/utils";
|
||||||
import { Button } from "~/components/ui/button";
|
import { Button } from "~/components/ui/button";
|
||||||
import {
|
import {
|
||||||
|
PanelLeft,
|
||||||
Search,
|
Search,
|
||||||
Bell,
|
Bell,
|
||||||
Settings,
|
Settings,
|
||||||
|
|
@ -34,7 +35,7 @@ export function Header({
|
||||||
return (
|
return (
|
||||||
<header
|
<header
|
||||||
className={cn(
|
className={cn(
|
||||||
"bg-gray-800/95 backdrop-blur-sm border-b border-gray-500/30 h-16 flex items-center justify-between px-4 lg:px-6 shadow-sm relative z-30",
|
"backdrop-blur-sm border-b border-gray-400/30 h-16 flex items-center justify-between px-4 lg:px-6 shadow-sm relative z-30",
|
||||||
className,
|
className,
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
|
|
@ -53,7 +54,7 @@ export function Header({
|
||||||
)}
|
)}
|
||||||
|
|
||||||
{/* Page Title */}
|
{/* Page Title */}
|
||||||
<h1 className="text-xl font-bold text-white font-persian">{title}</h1>
|
<h1 className="text-xl flex items-center justify-center gap-4 font-bold text-white font-persian"><PanelLeft /> {title}</h1>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* Right Section */}
|
{/* Right Section */}
|
||||||
|
|
|
||||||
|
|
@ -27,8 +27,8 @@ export function DashboardLayout({
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
className="h-screen flex overflow-hidden bg-gray-800 relative overflow-x-hidden"
|
className="h-screen flex overflow-hidden bg-[linear-gradient(to_bottom_left,#464861,20%,#111628)] relative overflow-x-hidden"
|
||||||
dir="rtl"
|
dir="rtl"
|
||||||
>
|
>
|
||||||
{/* Gradient overlay */}
|
{/* Gradient overlay */}
|
||||||
<div className="absolute inset-0 pointer-events-none" />
|
<div className="absolute inset-0 pointer-events-none" />
|
||||||
|
|
|
||||||
|
|
@ -15,10 +15,6 @@ import {
|
||||||
ChevronUp,
|
ChevronUp,
|
||||||
ChevronDown,
|
ChevronDown,
|
||||||
RefreshCw,
|
RefreshCw,
|
||||||
Calendar,
|
|
||||||
DollarSign,
|
|
||||||
Users,
|
|
||||||
Target,
|
|
||||||
} from "lucide-react";
|
} from "lucide-react";
|
||||||
import apiService from "~/lib/api";
|
import apiService from "~/lib/api";
|
||||||
import toast from "react-hot-toast";
|
import toast from "react-hot-toast";
|
||||||
|
|
@ -401,7 +397,7 @@ export function ProjectManagementPage() {
|
||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
{/* Data Table */}
|
{/* Data Table */}
|
||||||
<Card className="bg-gray-800/90 backdrop-blur-sm rounded-2xl overflow-hidden">
|
<Card className="bg-transparent backdrop-blur-sm rounded-2xl overflow-hidden">
|
||||||
<CardContent className="p-0">
|
<CardContent className="p-0">
|
||||||
<div className="relative">
|
<div className="relative">
|
||||||
<div className="overflow-auto max-h-[calc(100vh-250px)]">
|
<div className="overflow-auto max-h-[calc(100vh-250px)]">
|
||||||
|
|
|
||||||
|
|
@ -260,7 +260,7 @@ export function Sidebar({
|
||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
className={cn(
|
className={cn(
|
||||||
"bg-gray-800/95 backdrop-blur-sm h-full flex flex-col transition-all duration-300",
|
" backdrop-blur-sm h-full flex flex-col transition-all duration-300",
|
||||||
isCollapsed ? "w-16" : "w-64",
|
isCollapsed ? "w-16" : "w-64",
|
||||||
className,
|
className,
|
||||||
)}
|
)}
|
||||||
|
|
@ -271,9 +271,10 @@ export function Sidebar({
|
||||||
{!isCollapsed ? (
|
{!isCollapsed ? (
|
||||||
<div className="flex items-center gap-3">
|
<div className="flex items-center gap-3">
|
||||||
<GalleryVerticalEnd
|
<GalleryVerticalEnd
|
||||||
enableBackground="green"
|
color="black"
|
||||||
size={32}
|
size={32}
|
||||||
strokeWidth={1}
|
strokeWidth={1}
|
||||||
|
className="bg-green-400 p-1.5 rounded-lg"
|
||||||
/>
|
/>
|
||||||
<div className="font-persian">
|
<div className="font-persian">
|
||||||
<div className="text-sm font-semibold text-white">
|
<div className="text-sm font-semibold text-white">
|
||||||
|
|
@ -312,7 +313,7 @@ export function Sidebar({
|
||||||
|
|
||||||
{/* Collapse Toggle */}
|
{/* Collapse Toggle */}
|
||||||
{onToggleCollapse && (
|
{onToggleCollapse && (
|
||||||
<div className="p-3 border-t border-emerald-500/30">
|
<div className="p-3 border-t border-gray-500/30">
|
||||||
<button
|
<button
|
||||||
onClick={onToggleCollapse}
|
onClick={onToggleCollapse}
|
||||||
className="w-full p-2 rounded-md hover:bg-emerald-500/20 transition-colors flex justify-center items-center gap-2"
|
className="w-full p-2 rounded-md hover:bg-emerald-500/20 transition-colors flex justify-center items-center gap-2"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user