Add background to cards
This commit is contained in:
@@ -138,7 +138,7 @@ const EventCard = ({ event }) => {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<EventDialog event={event}>
|
<EventDialog event={event}>
|
||||||
<Card className={`w-[210px] shrink-0 hover:brightness-110 cursor-pointer transition-colors h-[125px] bg-gradient-to-br ${eventType.gradient} backdrop-blur-sm`}>
|
<Card className={`w-[210px] border-none shrink-0 hover:brightness-110 cursor-pointer transition-colors h-[125px] bg-gradient-to-br ${eventType.gradient} backdrop-blur-sm`}>
|
||||||
<CardHeader className="flex flex-row items-center justify-between space-y-0 px-3 py-2 pb-0">
|
<CardHeader className="flex flex-row items-center justify-between space-y-0 px-3 py-2 pb-0">
|
||||||
<div className="flex items-baseline justify-between w-full pr-1">
|
<div className="flex items-baseline justify-between w-full pr-1">
|
||||||
<CardTitle className={`text-sm font-bold ${eventType.textColor}`}>
|
<CardTitle className={`text-sm font-bold ${eventType.textColor}`}>
|
||||||
@@ -372,7 +372,8 @@ const MiniEventFeed = ({
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="fixed bottom-0 left-0 right-0">
|
<div className="fixed bottom-0 left-0 right-0">
|
||||||
<div className="p-2">
|
<Card className="bg-gradient-to-br rounded-none from-gray-900 to-gray-600 backdrop-blur">
|
||||||
|
<div className="px-1 pt-2 pb-3">
|
||||||
<div className="overflow-x-auto overflow-y-hidden [&::-webkit-scrollbar]:hidden [-ms-overflow-style:'none'] [scrollbar-width:'none']">
|
<div className="overflow-x-auto overflow-y-hidden [&::-webkit-scrollbar]:hidden [-ms-overflow-style:'none'] [scrollbar-width:'none']">
|
||||||
<div className="flex flex-row gap-3 pr-4" style={{ width: 'max-content' }}>
|
<div className="flex flex-row gap-3 pr-4" style={{ width: 'max-content' }}>
|
||||||
{loading && !events.length ? (
|
{loading && !events.length ? (
|
||||||
@@ -400,6 +401,7 @@ const MiniEventFeed = ({
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</Card>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -198,7 +198,7 @@ const MiniRealtimeAnalytics = () => {
|
|||||||
|
|
||||||
<Card className="bg-gradient-to-br from-sky-900 to-sky-800 backdrop-blur-sm">
|
<Card className="bg-gradient-to-br from-sky-900 to-sky-800 backdrop-blur-sm">
|
||||||
<CardContent className="p-4">
|
<CardContent className="p-4">
|
||||||
<div className="h-[230px]">
|
<div className="h-[216px]">
|
||||||
<ResponsiveContainer width="100%" height="100%">
|
<ResponsiveContainer width="100%" height="100%">
|
||||||
<BarChart
|
<BarChart
|
||||||
data={basicData.byMinute}
|
data={basicData.byMinute}
|
||||||
|
|||||||
@@ -341,7 +341,7 @@ const MiniSalesChart = ({ className = "" }) => {
|
|||||||
{/* Chart Card */}
|
{/* Chart Card */}
|
||||||
<Card className="bg-gradient-to-br from-slate-700 to-slate-600 backdrop-blur-sm">
|
<Card className="bg-gradient-to-br from-slate-700 to-slate-600 backdrop-blur-sm">
|
||||||
<CardContent className="p-4">
|
<CardContent className="p-4">
|
||||||
<div className="h-[230px]">
|
<div className="h-[216px]">
|
||||||
<ResponsiveContainer width="100%" height="100%">
|
<ResponsiveContainer width="100%" height="100%">
|
||||||
<LineChart
|
<LineChart
|
||||||
data={data}
|
data={data}
|
||||||
|
|||||||
@@ -16,8 +16,8 @@ function Calendar({
|
|||||||
className={cn("p-2", className)}
|
className={cn("p-2", className)}
|
||||||
classNames={{
|
classNames={{
|
||||||
months: "flex flex-col sm:flex-row space-y-2 sm:space-x-2 sm:space-y-0",
|
months: "flex flex-col sm:flex-row space-y-2 sm:space-x-2 sm:space-y-0",
|
||||||
month: "w-full space-y-2",
|
month: "w-full",
|
||||||
caption: "flex justify-center pt-1 relative items-center",
|
caption: "flex justify-center relative items-center",
|
||||||
caption_label: "text-lg font-medium", // Reduced from text-4xl
|
caption_label: "text-lg font-medium", // Reduced from text-4xl
|
||||||
nav: "space-x-1 flex items-center",
|
nav: "space-x-1 flex items-center",
|
||||||
nav_button: cn(
|
nav_button: cn(
|
||||||
|
|||||||
Reference in New Issue
Block a user