improvement(dashboard): improve modal and sheet headers
This commit is contained in:
@@ -32,21 +32,18 @@ export function ModalHeader({
|
||||
return (
|
||||
<div
|
||||
className={cn(
|
||||
'relative -m-6 mb-6 flex justify-between rounded-t-lg border-b bg-def-100 p-6',
|
||||
'relative -m-6 mb-6 flex justify-between rounded-t-lg bg-gradient-to-b from-def-300 to-background p-6 pb-0',
|
||||
className,
|
||||
)}
|
||||
style={{
|
||||
backgroundImage: `url("data:image/svg+xml,<svg id='patternId' width='100%' height='100%' xmlns='http://www.w3.org/2000/svg'><defs><pattern id='a' patternUnits='userSpaceOnUse' width='20' height='20' patternTransform='scale(2) rotate(85)'><rect x='0' y='0' width='100%' height='100%' fill='hsla(0, 0%, 100%, 0)'/><path d='M 10,-2.55e-7 V 20 Z M -1.1677362e-8,10 H 20 Z' stroke-width='0.5' stroke='hsla(259, 0%, 52%, 0.46)' fill='none'/></pattern></defs><rect width='800%' height='800%' transform='translate(0,0)' fill='url(%23a)'/></svg>")`,
|
||||
backgroundSize: '100% 100%',
|
||||
backgroundRepeat: 'repeat',
|
||||
}}
|
||||
style={{}}
|
||||
>
|
||||
<div className="absolute inset-0 bg-gradient-to-r from-def-100/95 to-def-100/80" />
|
||||
<div className="row relative w-full items-start justify-between">
|
||||
<div className="row relative w-full items-start justify-between gap-4">
|
||||
<div className="col mt-1 flex-1 gap-2">
|
||||
<div className="text-3xl font-semibold">{title}</div>
|
||||
<div className="text-xl font-semibold">{title}</div>
|
||||
{!!text && (
|
||||
<div className="text-lg text-muted-foreground">{text}</div>
|
||||
<div className="text-lg text-muted-foreground leading-normal">
|
||||
{text}
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
{onClose !== false && (
|
||||
|
||||
Reference in New Issue
Block a user