From 8dff7fe0a5217ce9aefb31f0aca81e6e7f752bb2 Mon Sep 17 00:00:00 2001 From: Titash Deb Date: Thu, 27 Aug 2026 16:05:14 +0530 Subject: [PATCH 1/4] Make brief covers more room-specific and cinematic --- src/components/BriefCover.jsx | 66 ++++++++++++++++++++++++----------- 1 file changed, 46 insertions(+), 20 deletions(-) diff --git a/src/components/BriefCover.jsx b/src/components/BriefCover.jsx index baa365a..886ffa6 100644 --- a/src/components/BriefCover.jsx +++ b/src/components/BriefCover.jsx @@ -31,32 +31,44 @@ export function briefFromMission(mission) { const TONES = { gallery: { - wrap: "border border-cyan-electric/25 shadow-[0_0_90px_rgba(0,240,255,0.12)]", - chip: "border-cyan-electric/30 bg-cyan-electric/10 text-cyan-electric", - cell: "text-cyan-electric/70", + wrap: "border-cyan-electric/25 shadow-[0_0_110px_rgba(0,240,255,0.14)]", + chip: "border-cyan-electric/30 bg-cyan-electric/12 text-cyan-electric", + cell: "border-cyan-electric/15 bg-cyan-electric/7 text-cyan-electric/80", motion: galleryReveal, labels: ["Situation", "Choice", "Cost"], + sweep: "from-cyan-electric/25 via-cyan-electric/10 to-transparent", + rail: "from-cyan-electric/45 to-transparent", + then: "text-cyan-electric/80", }, judgment: { - wrap: "border border-amber-400/30 shadow-[0_0_80px_rgba(251,191,36,0.12)]", - chip: "border-amber-400/40 bg-amber-400/10 text-amber-300", - cell: "text-amber-300/80", + wrap: "border-amber-400/30 shadow-[0_0_95px_rgba(251,191,36,0.15)]", + chip: "border-amber-400/40 bg-amber-400/12 text-amber-300", + cell: "border-amber-400/15 bg-amber-400/7 text-amber-200/80", motion: coverReveal, labels: ["The bind", "What I picked", "What I gave up"], + sweep: "from-amber-400/25 via-amber-400/10 to-transparent", + rail: "from-amber-400/45 to-transparent", + then: "text-amber-300/80", }, ledger: { - wrap: "border border-emerald-glow/25 shadow-[0_0_70px_rgba(52,211,153,0.1)]", - chip: "border-emerald-glow/30 bg-emerald-glow/10 text-emerald-glow", - cell: "text-emerald-glow/80", + wrap: "border-emerald-glow/25 shadow-[0_0_90px_rgba(52,211,153,0.12)]", + chip: "border-emerald-glow/30 bg-emerald-glow/12 text-emerald-glow", + cell: "border-emerald-glow/15 bg-emerald-glow/7 text-emerald-glow/80", motion: ledgerReveal, labels: ["Why", "Pick", "Price"], + sweep: "from-emerald-glow/25 via-emerald-glow/10 to-transparent", + rail: "from-emerald-glow/45 to-transparent", + then: "text-emerald-glow/80", }, note: { - wrap: "border border-obsidian-border/80 shadow-none", - chip: "border-obsidian-border bg-obsidian text-slate-300", - cell: "text-slate-500", + wrap: "border-obsidian-border/80 shadow-[0_0_60px_rgba(15,23,42,0.2)]", + chip: "border-obsidian-border bg-obsidian text-slate-200", + cell: "border-obsidian-border/70 bg-obsidian/62 text-slate-300/80", motion: coverReveal, labels: ["Situation", "Choice", "Cost"], + sweep: "from-slate-500/20 via-transparent to-transparent", + rail: "from-slate-500/35 to-transparent", + then: "text-slate-400", }, }; @@ -67,10 +79,10 @@ function Cell({ label, children, delay = 0, toneClass }) { initial={{ opacity: 0, y: 10 }} animate={{ opacity: 1, y: 0 }} transition={{ ...springSoft, delay }} - className="rounded-xl border border-obsidian-border/70 bg-obsidian/55 p-4 backdrop-blur-md" + className="rounded-xl border p-4 backdrop-blur-md transition-colors duration-300" >
{label}
-
{children}
+
{children}
); } @@ -92,17 +104,21 @@ export default function BriefCover({ tone = "gallery", }) { const t = TONES[tone] || TONES.gallery; + return ( +