Skip to content

Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.

💄 Add layered card effect to EmptyStateIcon

Luke Vella92f2159b6fea
diff --git a/apps/web/src/components/empty-state.tsx b/apps/web/src/components/empty-state.tsx
index d8eae4b69..2a589091f 100644
--- a/apps/web/src/components/empty-state.tsx
+++ b/apps/web/src/components/empty-state.tsx
@@ -22,8 +22,12 @@ export function EmptyState({
export function EmptyStateIcon({ children }: { children: React.ReactNode }) {
return (
- <div className="mb-4 inline-flex rounded-xl bg-muted p-3 shadow-xs ring-1 ring-button-outline ring-inset">
- <Icon size="lg">{children}</Icon>
+ <div className="relative mb-4 inline-block">
+ <div className="absolute top-0 right-0 bottom-2 -left-1.5 origin-bottom -rotate-12 scale-95 rounded-xl bg-card opacity-75 shadow-xs ring-1 ring-button-outline ring-inset" />
+ <div className="absolute top-0 -right-1.5 bottom-2 left-0 origin-bottom rotate-12 scale-95 rounded-xl bg-card opacity-75 shadow-xs ring-1 ring-button-outline ring-inset" />
+ <div className="relative inline-flex rounded-xl bg-card p-3 shadow-xs ring-1 ring-button-outline ring-inset">
+ <Icon size="lg">{children}</Icon>
+ </div>
</div>
);
}