feat(design): centralize design system with CSS variables and semantic classes in index.css
MindSift CI & Docker Release / Build, Test in Container & Push (push) Successful in 52s
MindSift CI & Docker Release / Build, Test in Container & Push (push) Successful in 52s
This commit is contained in:
1 parent
94123c9424
commit
ec9ba8fd9f
9 files changed
+428
-304
No files matched your search
@@ -266,7 +266,7 @@ export const SharedListsView: React.FC<SharedListsViewProps> = ({ onRefreshGloba
|
||||
return (
|
||||
<div className="w-full space-y-3">
|
||||
{/* Top Space Bar & Realtime Indicator */}
|
||||
<div className="px-3 py-2 bg-[#222428] border border-white/[0.08] flex flex-wrap items-center justify-between gap-3">
|
||||
<div className="px-3 py-2 panel-surface flex flex-wrap items-center justify-between gap-3">
|
||||
<div className="flex flex-wrap items-center gap-1.5">
|
||||
{spaces.map((sp) => (
|
||||
<button
|
||||
@@ -274,8 +274,8 @@ export const SharedListsView: React.FC<SharedListsViewProps> = ({ onRefreshGloba
|
||||
onClick={() => setActiveSpace(sp)}
|
||||
className={`h-8 px-3 text-xs sm:text-sm font-medium flex items-center gap-1.5 transition-colors border ${
|
||||
activeSpace?.id === sp.id
|
||||
? 'bg-[#1d8cf8] text-white border-[#1d8cf8]'
|
||||
: 'bg-[#16171a] text-zinc-300 hover:text-white border-white/[0.08]'
|
||||
? 'bg-accent text-white border-accent'
|
||||
: 'bg-canvas text-zinc-300 hover:text-white border-border'
|
||||
}`}
|
||||
>
|
||||
<span>{sp.icon}</span>
|
||||
@@ -285,16 +285,16 @@ export const SharedListsView: React.FC<SharedListsViewProps> = ({ onRefreshGloba
|
||||
|
||||
<button
|
||||
onClick={() => setShowNewSpaceModal((prev) => !prev)}
|
||||
className="h-8 px-3 rounded-full bg-[#16171a] hover:bg-[#2b2d33] border border-white/[0.08] text-xs text-zinc-300 hover:text-white flex items-center gap-1.5 transition-colors"
|
||||
className="btn-action h-8"
|
||||
>
|
||||
<Plus className="w-3.5 h-3.5 text-[#1d8cf8]" /> Space
|
||||
<Plus className="w-3.5 h-3.5 text-accent" /> Space
|
||||
</button>
|
||||
|
||||
<button
|
||||
onClick={() => setShowJoinModal((prev) => !prev)}
|
||||
className="h-8 px-3 rounded-full bg-[#16171a] hover:bg-[#2b2d33] border border-white/[0.08] text-xs text-zinc-300 hover:text-white flex items-center gap-1.5 transition-colors"
|
||||
className="btn-action h-8"
|
||||
>
|
||||
<UserPlus className="w-3.5 h-3.5 text-[#1d8cf8]" /> Code einlösen
|
||||
<UserPlus className="w-3.5 h-3.5 text-accent" /> Code einlösen
|
||||
</button>
|
||||
</div>
|
||||
|
||||
@@ -305,7 +305,7 @@ export const SharedListsView: React.FC<SharedListsViewProps> = ({ onRefreshGloba
|
||||
className={`h-8 px-3 text-xs flex items-center gap-1.5 ${
|
||||
wsConnected
|
||||
? 'bg-[#22c55e]/15 text-[#22c55e] border border-[#22c55e]/30'
|
||||
: 'bg-[#2b2d33] text-zinc-400 border border-white/[0.06]'
|
||||
: 'bg-panel-elevated text-zinc-400 border border-border'
|
||||
}`}
|
||||
>
|
||||
<Radio className={`w-3.5 h-3.5 ${wsConnected ? 'animate-pulse' : ''}`} />
|
||||
@@ -315,9 +315,9 @@ export const SharedListsView: React.FC<SharedListsViewProps> = ({ onRefreshGloba
|
||||
<button
|
||||
onClick={copyInviteCode}
|
||||
title="Einladungscode für Partner oder Familie kopieren"
|
||||
className="h-8 px-3 rounded-full bg-[#16171a] hover:bg-[#2b2d33] border border-white/[0.06] text-xs text-zinc-300 hover:text-white flex items-center gap-1.5 transition-colors"
|
||||
className="btn-action h-8"
|
||||
>
|
||||
<Users className="w-3.5 h-3.5 text-[#1d8cf8]" />
|
||||
<Users className="w-3.5 h-3.5 text-accent" />
|
||||
<span>Code: {activeSpace.inviteCode}</span>
|
||||
{copiedInvite ? (
|
||||
<Check className="w-3.5 h-3.5 text-[#22c55e]" />
|
||||
@@ -333,19 +333,19 @@ export const SharedListsView: React.FC<SharedListsViewProps> = ({ onRefreshGloba
|
||||
{showNewSpaceModal && (
|
||||
<form
|
||||
onSubmit={handleCreateSpace}
|
||||
className="p-2 bg-[#222428] border border-white/[0.08] flex items-center gap-2"
|
||||
className="p-2 panel-surface flex items-center gap-2"
|
||||
>
|
||||
<input
|
||||
type="text"
|
||||
value={newSpaceName}
|
||||
onChange={(e) => setNewSpaceName(e.target.value)}
|
||||
placeholder="Name des neuen Familien-/Team-Spaces (z. B. Urlaub 2026)…"
|
||||
className="flex-1 h-9 px-3 bg-[#16171a] text-sm text-white placeholder-zinc-500 border border-white/[0.08] focus:outline-none focus:border-[#1d8cf8] transition-colors"
|
||||
className="flex-1 h-9 px-3 input-field text-sm"
|
||||
autoFocus
|
||||
/>
|
||||
<button
|
||||
type="submit"
|
||||
className="h-9 px-5 rounded-full bg-[#1d8cf8] hover:bg-[#3b9cfc] text-white font-medium text-xs sm:text-sm transition-colors shadow-sm"
|
||||
className="btn-primary h-9 px-4 text-xs sm:text-sm"
|
||||
>
|
||||
Space anlegen
|
||||
</button>
|
||||
@@ -355,19 +355,19 @@ export const SharedListsView: React.FC<SharedListsViewProps> = ({ onRefreshGloba
|
||||
{showJoinModal && (
|
||||
<form
|
||||
onSubmit={handleJoinSpace}
|
||||
className="p-2 bg-[#222428] border border-white/[0.08] flex items-center gap-2"
|
||||
className="p-2 panel-surface flex items-center gap-2"
|
||||
>
|
||||
<input
|
||||
type="text"
|
||||
value={joinCode}
|
||||
onChange={(e) => setJoinCode(e.target.value)}
|
||||
placeholder="Invite-Code des Partners eingeben…"
|
||||
className="flex-1 h-9 px-3 bg-[#16171a] text-sm text-white placeholder-zinc-500 border border-white/[0.08] focus:outline-none focus:border-[#1d8cf8] uppercase transition-colors"
|
||||
className="flex-1 h-9 px-3 input-field text-sm uppercase"
|
||||
autoFocus
|
||||
/>
|
||||
<button
|
||||
type="submit"
|
||||
className="h-9 px-5 rounded-full bg-[#1d8cf8] hover:bg-[#3b9cfc] text-white font-medium text-xs sm:text-sm transition-colors shadow-sm"
|
||||
className="btn-primary h-9 px-4 text-xs sm:text-sm"
|
||||
>
|
||||
Beitreten
|
||||
</button>
|
||||
@@ -385,14 +385,14 @@ export const SharedListsView: React.FC<SharedListsViewProps> = ({ onRefreshGloba
|
||||
onClick={() => setActiveListId(lst.id)}
|
||||
className={`h-8 px-3 text-xs sm:text-sm font-medium flex items-center gap-1.5 transition-all border ${
|
||||
isSelected
|
||||
? 'bg-[#1d8cf8] text-white border-[#1d8cf8]'
|
||||
: 'bg-[#222428] text-zinc-300 hover:text-white border-white/[0.08]'
|
||||
? 'bg-accent text-white border-accent'
|
||||
: 'bg-panel text-zinc-300 hover:text-white border-border'
|
||||
}`}
|
||||
>
|
||||
<span>{lst.icon}</span>
|
||||
<span>{lst.title}</span>
|
||||
<span className={`px-1.5 py-0.2 text-[10px] font-semibold ${
|
||||
isSelected ? 'bg-white/20 text-white' : 'bg-[#16171a] text-zinc-400'
|
||||
isSelected ? 'bg-white/20 text-white' : 'bg-canvas text-zinc-400'
|
||||
}`}>
|
||||
{openCount}
|
||||
</span>
|
||||
@@ -402,9 +402,9 @@ export const SharedListsView: React.FC<SharedListsViewProps> = ({ onRefreshGloba
|
||||
|
||||
<button
|
||||
onClick={() => setShowNewListModal((prev) => !prev)}
|
||||
className="h-8 px-3 rounded-full bg-[#222428] hover:bg-[#2b2d33] border border-white/[0.08] text-xs text-zinc-300 hover:text-white flex items-center gap-1.5 transition-colors"
|
||||
className="btn-action h-8"
|
||||
>
|
||||
<Plus className="w-3.5 h-3.5 text-[#1d8cf8]" />
|
||||
<Plus className="w-3.5 h-3.5 text-accent" />
|
||||
<span>Neue Liste</span>
|
||||
</button>
|
||||
</div>
|
||||
@@ -412,7 +412,7 @@ export const SharedListsView: React.FC<SharedListsViewProps> = ({ onRefreshGloba
|
||||
{showNewListModal && (
|
||||
<form
|
||||
onSubmit={handleCreateList}
|
||||
className="p-2 bg-[#222428] border border-white/[0.08] flex flex-wrap items-center gap-2"
|
||||
className="p-2 panel-surface flex flex-wrap items-center gap-2"
|
||||
>
|
||||
<div className="flex items-center gap-1.5">
|
||||
{['🛒', '🏔️', '🍕', '🎉', '🧰', '🎁'].map((ic) => (
|
||||
@@ -420,10 +420,10 @@ export const SharedListsView: React.FC<SharedListsViewProps> = ({ onRefreshGloba
|
||||
key={ic}
|
||||
type="button"
|
||||
onClick={() => setNewListIcon(ic)}
|
||||
className={`w-9 h-9 rounded-full flex items-center justify-center transition-colors ${
|
||||
className={`w-9 h-9 flex items-center justify-center transition-colors ${
|
||||
newListIcon === ic
|
||||
? 'bg-[#1d8cf8]/20 border border-[#1d8cf8] text-[#1d8cf8]'
|
||||
: 'bg-[#16171a] hover:bg-[#2b2d33] border border-white/[0.06]'
|
||||
? 'bg-accent/20 border border-accent text-accent'
|
||||
: 'bg-canvas hover:bg-panel-elevated border border-border'
|
||||
}`}
|
||||
>
|
||||
{ic}
|
||||
@@ -435,12 +435,12 @@ export const SharedListsView: React.FC<SharedListsViewProps> = ({ onRefreshGloba
|
||||
value={newListTitle}
|
||||
onChange={(e) => setNewListTitle(e.target.value)}
|
||||
placeholder="Titel der Liste (z. B. Baumarkt, Drogerie, Camping)…"
|
||||
className="flex-1 h-9 px-3 bg-[#16171a] text-sm text-white placeholder-zinc-500 border border-white/[0.08] focus:outline-none focus:border-[#1d8cf8] transition-colors"
|
||||
className="flex-1 h-9 px-3 input-field text-sm"
|
||||
autoFocus
|
||||
/>
|
||||
<button
|
||||
type="submit"
|
||||
className="h-9 px-5 rounded-full bg-[#1d8cf8] hover:bg-[#3b9cfc] text-white font-medium text-xs sm:text-sm transition-colors shadow-sm"
|
||||
className="btn-primary h-9 px-4 text-xs sm:text-sm"
|
||||
>
|
||||
Liste erstellen
|
||||
</button>
|
||||
@@ -449,7 +449,7 @@ export const SharedListsView: React.FC<SharedListsViewProps> = ({ onRefreshGloba
|
||||
|
||||
{/* Active Shared List Card */}
|
||||
{activeList ? (
|
||||
<div className="p-3 bg-[#222428] border border-white/[0.08]">
|
||||
<div className="p-3 panel-surface">
|
||||
{/* Quick-Add Pill Form */}
|
||||
<form onSubmit={handleAddItem} className="space-y-2 mb-3">
|
||||
<div className="flex flex-col sm:flex-row gap-2">
|
||||
@@ -458,7 +458,7 @@ export const SharedListsView: React.FC<SharedListsViewProps> = ({ onRefreshGloba
|
||||
value={newItemText}
|
||||
onChange={(e) => setNewItemText(e.target.value)}
|
||||
placeholder={`Eintrag zu "${activeList.title}" hinzufügen (z. B. Hafermilch)…`}
|
||||
className="flex-1 h-10 px-3 bg-[#16171a] text-sm text-white placeholder-zinc-500 border border-white/[0.08] focus:outline-none focus:border-[#1d8cf8] transition-colors"
|
||||
className="flex-1 h-9 px-3 input-field text-sm"
|
||||
/>
|
||||
<div className="flex gap-2">
|
||||
<input
|
||||
@@ -466,12 +466,12 @@ export const SharedListsView: React.FC<SharedListsViewProps> = ({ onRefreshGloba
|
||||
value={newItemQty}
|
||||
onChange={(e) => setNewItemQty(e.target.value)}
|
||||
placeholder="Menge (z.B. 2x)"
|
||||
className="w-32 h-10 px-3 bg-[#16171a] text-sm text-white placeholder-zinc-500 border border-white/[0.08] focus:outline-none focus:border-[#1d8cf8] transition-colors"
|
||||
className="w-32 h-9 px-3 input-field text-sm"
|
||||
/>
|
||||
<button
|
||||
type="submit"
|
||||
disabled={!newItemText.trim()}
|
||||
className="h-10 px-5 rounded-full bg-[#1d8cf8] disabled:bg-[#2b2d33] text-white disabled:text-zinc-500 font-medium text-sm flex items-center gap-1.5 hover:bg-[#3b9cfc] transition-colors shadow-sm"
|
||||
className="btn-primary h-9 px-4 disabled:opacity-40 disabled:cursor-not-allowed text-xs sm:text-sm flex items-center gap-1.5"
|
||||
>
|
||||
<Plus className="w-4 h-4" />
|
||||
<span>Hinzufügen</span>
|
||||
@@ -489,8 +489,8 @@ export const SharedListsView: React.FC<SharedListsViewProps> = ({ onRefreshGloba
|
||||
onClick={() => setNewItemCategory((prev) => (prev === cat ? '' : cat))}
|
||||
className={`px-2.5 py-0.5 text-xs transition-colors border ${
|
||||
newItemCategory === cat
|
||||
? 'bg-[#1d8cf8] text-white border-[#1d8cf8] font-medium'
|
||||
: 'bg-[#16171a] text-zinc-400 hover:text-white border-white/[0.08]'
|
||||
? 'bg-accent text-white border-accent font-medium'
|
||||
: 'bg-canvas text-zinc-400 hover:text-white border-border'
|
||||
}`}
|
||||
>
|
||||
{cat}
|
||||
@@ -500,10 +500,10 @@ export const SharedListsView: React.FC<SharedListsViewProps> = ({ onRefreshGloba
|
||||
</form>
|
||||
|
||||
{/* Open Items */}
|
||||
<div className="border border-white/[0.08] divide-y divide-white/[0.06]">
|
||||
<div className="border border-border divide-y divide-border">
|
||||
{openItems.length === 0 ? (
|
||||
<div className="py-6 text-center text-zinc-400 text-sm flex flex-col items-center gap-1.5">
|
||||
<Sparkles className="w-4 h-4 text-[#1d8cf8]" />
|
||||
<Sparkles className="w-4 h-4 text-accent" />
|
||||
<span>Alles erledigt. Keine offenen Punkte auf dieser Liste.</span>
|
||||
</div>
|
||||
) : (
|
||||
@@ -511,20 +511,20 @@ export const SharedListsView: React.FC<SharedListsViewProps> = ({ onRefreshGloba
|
||||
<div
|
||||
key={item.id}
|
||||
onClick={() => handleToggleItem(item)}
|
||||
className="px-3 py-2 bg-[#16171a] hover:bg-[#282a2f] flex items-center justify-between gap-3 cursor-pointer transition-colors group"
|
||||
className="px-3 py-2 bg-canvas hover:bg-panel-elevated flex items-center justify-between gap-3 cursor-pointer transition-colors group"
|
||||
>
|
||||
<div className="flex items-center gap-2.5 min-w-0">
|
||||
<Circle className="w-4 h-4 text-zinc-500 group-hover:text-[#1d8cf8] flex-shrink-0 transition-colors" />
|
||||
<Circle className="w-4 h-4 text-zinc-500 group-hover:text-accent flex-shrink-0 transition-colors" />
|
||||
<span className="text-sm font-normal text-white truncate">
|
||||
{item.content}
|
||||
</span>
|
||||
{item.quantity && (
|
||||
<span className="px-2 py-0.2 bg-[#222428] text-[#1d8cf8] border border-white/[0.06] text-xs font-semibold">
|
||||
<span className="badge-accent">
|
||||
{item.quantity}
|
||||
</span>
|
||||
)}
|
||||
{item.category && (
|
||||
<span className="hidden sm:inline px-2 py-0.2 bg-[#222428] text-zinc-400 text-xs">
|
||||
<span className="hidden sm:inline px-2 py-0.2 bg-panel text-zinc-400 text-xs">
|
||||
{item.category}
|
||||
</span>
|
||||
)}
|
||||
@@ -536,7 +536,7 @@ export const SharedListsView: React.FC<SharedListsViewProps> = ({ onRefreshGloba
|
||||
e.stopPropagation();
|
||||
handleDeleteItem(item.id);
|
||||
}}
|
||||
className="w-7 h-7 rounded-full hover:bg-white/[0.1] text-zinc-500 hover:text-white flex items-center justify-center transition-colors"
|
||||
className="btn-icon btn-icon-danger w-6 h-6"
|
||||
>
|
||||
<Trash2 className="w-3 h-3" />
|
||||
</button>
|
||||
@@ -547,28 +547,28 @@ export const SharedListsView: React.FC<SharedListsViewProps> = ({ onRefreshGloba
|
||||
|
||||
{/* Completed Items Section */}
|
||||
{completedItems.length > 0 && (
|
||||
<div className="mt-3 pt-2.5 border-t border-white/[0.06]">
|
||||
<div className="mt-3 pt-2.5 border-t border-border">
|
||||
<div className="flex items-center justify-between mb-2">
|
||||
<span className="text-xs font-medium uppercase tracking-wider text-zinc-400">
|
||||
Erledigt ({completedItems.length})
|
||||
</span>
|
||||
<button
|
||||
onClick={handleClearCompleted}
|
||||
className="px-3 py-0.5 rounded-full bg-[#16171a] hover:bg-white/[0.08] border border-white/[0.06] text-xs text-zinc-400 hover:text-white transition-colors"
|
||||
className="btn-action text-xs"
|
||||
>
|
||||
Erledigte aufräumen
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<div className="border border-white/[0.06] divide-y divide-white/[0.04] opacity-75">
|
||||
<div className="border border-border divide-y divide-border opacity-75">
|
||||
{completedItems.map((item) => (
|
||||
<div
|
||||
key={item.id}
|
||||
onClick={() => handleToggleItem(item)}
|
||||
className="px-3 py-1.5 bg-[#16171a]/50 hover:bg-[#16171a]/80 flex items-center justify-between gap-3 cursor-pointer transition-colors"
|
||||
className="px-3 py-1.5 bg-canvas/50 hover:bg-canvas/80 flex items-center justify-between gap-3 cursor-pointer transition-colors"
|
||||
>
|
||||
<div className="flex items-center gap-2.5 min-w-0">
|
||||
<CheckCircle2 className="w-4 h-4 text-[#1d8cf8] flex-shrink-0" />
|
||||
<CheckCircle2 className="w-4 h-4 text-accent flex-shrink-0" />
|
||||
<span className="text-sm text-zinc-400 line-through truncate">
|
||||
{item.content}
|
||||
</span>
|
||||
|
||||
Reference in new issue
Block a user