Refine CMS i18n fallback, refresh UI, add consent minimize, seed i18n content

Co-authored-by: dennis <dennis@konkol.net>
This commit is contained in:
Cursor Agent
2026-01-12 16:10:22 +00:00
parent 683735cc63
commit 6f1ad8eb4d
10 changed files with 244 additions and 81 deletions

View File

@@ -1463,15 +1463,15 @@ export default function ActivityFeed() {
<motion.div
initial={{ scale: 0, opacity: 0 }}
animate={{ scale: 1, opacity: 1 }}
className="bg-black/80 backdrop-blur-xl border border-white/10 rounded-xl p-3 shadow-2xl"
className="bg-white/80 backdrop-blur-xl border border-white/60 rounded-2xl px-4 py-3 shadow-xl"
>
<button
onClick={toggleTracking}
className="flex items-center gap-2 text-white/60 hover:text-white transition-colors"
className="flex items-center gap-2 text-stone-600 hover:text-stone-900 transition-colors"
title="Activity tracking is disabled. Click to enable."
>
<Activity size={16} />
<span className="text-xs">Tracking disabled</span>
<span className="text-xs font-semibold">Tracking disabled</span>
</button>
</motion.div>
</div>
@@ -1485,15 +1485,15 @@ export default function ActivityFeed() {
<motion.div
initial={{ scale: 0, opacity: 0 }}
animate={{ scale: 1, opacity: 1 }}
className="bg-black/80 backdrop-blur-xl border border-white/10 rounded-xl p-3 shadow-2xl"
className="bg-white/80 backdrop-blur-xl border border-white/60 rounded-2xl px-4 py-3 shadow-xl"
>
<button
onClick={toggleTracking}
className="flex items-center gap-2 text-white/60 hover:text-white transition-colors"
className="flex items-center gap-2 text-stone-600 hover:text-stone-900 transition-colors"
title="Activity tracking is disabled. Click to enable."
>
<Activity size={16} />
<span className="text-xs">Tracking disabled</span>
<span className="text-xs font-semibold">Tracking disabled</span>
</button>
</motion.div>
</div>
@@ -1508,16 +1508,16 @@ export default function ActivityFeed() {
<motion.div
initial={{ scale: 0, opacity: 0 }}
animate={{ scale: 1, opacity: 1 }}
className="pointer-events-auto bg-black/90 backdrop-blur-2xl border border-white/10 rounded-2xl shadow-2xl overflow-hidden w-full"
className="pointer-events-auto bg-white/80 backdrop-blur-2xl border border-white/60 rounded-2xl shadow-xl overflow-hidden w-full"
>
<div className="w-full px-4 py-3 flex items-center justify-between">
<div className="flex items-center gap-3">
<div className="relative">
<Activity size={18} className="text-white" />
<Activity size={18} className="text-stone-900" />
</div>
<div className="text-left">
<h3 className="text-sm font-bold text-white">Live Activity</h3>
<p className="text-[10px] text-white/50">Loading...</p>
<h3 className="text-sm font-bold text-stone-900">Live Activity</h3>
<p className="text-[10px] text-stone-500">Loading...</p>
</div>
</div>
<div className="flex items-center gap-2"></div>
@@ -1542,11 +1542,11 @@ export default function ActivityFeed() {
initial={{ scale: 0 }}
animate={{ scale: 1 }}
onClick={() => setIsMinimized(false)}
className="fixed bottom-4 right-4 md:bottom-6 md:right-6 z-40 pointer-events-auto bg-black/80 backdrop-blur-xl border border-white/10 p-3 rounded-full shadow-2xl hover:scale-110 transition-transform"
className="fixed bottom-4 right-4 md:bottom-6 md:right-6 z-40 pointer-events-auto bg-white/80 backdrop-blur-xl border border-white/60 p-3 rounded-full shadow-xl hover:scale-110 transition-transform"
>
<Activity size={20} className="text-white" />
<Activity size={20} className="text-stone-900" />
{activeCount > 0 && (
<span className="absolute -top-1 -right-1 bg-green-500 text-white text-[10px] font-bold rounded-full w-5 h-5 flex items-center justify-center">
<span className="absolute -top-1 -right-1 bg-stone-900 text-white text-[10px] font-bold rounded-full w-5 h-5 flex items-center justify-center">
{activeCount}
</span>
)}
@@ -1559,7 +1559,7 @@ export default function ActivityFeed() {
{/* Main Container */}
<motion.div
layout
className="pointer-events-auto bg-black/90 backdrop-blur-2xl border border-white/10 rounded-2xl shadow-2xl w-full overflow-hidden [&_a]:text-inherit [&_a]:no-underline"
className="pointer-events-auto bg-black/95 backdrop-blur-2xl border border-white/10 rounded-2xl shadow-2xl w-full overflow-hidden [&_a]:text-inherit [&_a]:no-underline"
>
{/* Header - Always Visible - Changed from button to div to fix nesting error */}
<div