mirror of
https://github.com/bitbaum/orangecat.git
synced 2026-12-05 14:57:11 +01:00
feat(dark-mode): batch 58 — stories cards, proof section, hero badge
Add dark: variants to StoriesPageClient stat boxes, text elements and category badges; ProofSection category pill and transparency box; HeroSectionStatic trust badge container. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
1 parent
f622e88709
commit
a9f70230e9
3 files changed
+39
-21
No files matched your search
@@ -21,7 +21,7 @@ export default function HeroSectionStatic() {
|
||||
{/* Left Column - Content */}
|
||||
<div>
|
||||
{/* Trust Badge */}
|
||||
<div className="inline-flex items-center gap-2 px-4 py-2 rounded-full bg-white/60 backdrop-blur-sm border border-orange-200/50 mb-6">
|
||||
<div className="inline-flex items-center gap-2 px-4 py-2 rounded-full bg-white/60 dark:bg-card/60 backdrop-blur-sm border border-orange-200/50 dark:border-border/50 mb-6">
|
||||
<div className="flex items-center gap-1.5">
|
||||
<div className="w-2 h-2 bg-green-500 rounded-full" />
|
||||
<span className="text-sm font-medium text-gray-700 dark:text-foreground">
|
||||
|
||||
@@ -47,7 +47,7 @@ export default function ProofSection() {
|
||||
{/* Category Badge */}
|
||||
<div className="flex items-start justify-between mb-4">
|
||||
<span className="text-3xl sm:text-4xl">{useCase.emoji}</span>
|
||||
<span className="px-3 py-1 bg-white/80 text-gray-600 text-xs sm:text-sm font-medium rounded-full">
|
||||
<span className="px-3 py-1 bg-white/80 dark:bg-card/80 text-gray-600 dark:text-muted-foreground text-xs sm:text-sm font-medium rounded-full">
|
||||
{useCase.category}
|
||||
</span>
|
||||
</div>
|
||||
@@ -61,7 +61,7 @@ export default function ProofSection() {
|
||||
</p>
|
||||
|
||||
{/* Transparency Example */}
|
||||
<div className="bg-white/60 rounded-lg p-3 sm:p-4">
|
||||
<div className="bg-white/60 dark:bg-card/60 rounded-lg p-3 sm:p-4">
|
||||
<p className="text-xs sm:text-sm text-gray-600 dark:text-muted-foreground">
|
||||
<span className="font-semibold text-gray-800 dark:text-foreground">
|
||||
Transparency in action:{' '}
|
||||
|
||||
@@ -143,51 +143,69 @@ export default function StoriesPageClient({ stories, categories }: StoriesPageCl
|
||||
<div className="p-8">
|
||||
{/* Story Header */}
|
||||
<div className="flex items-start gap-4 mb-6">
|
||||
<div className="w-16 h-16 text-4xl flex items-center justify-center bg-white rounded-2xl shadow-md">
|
||||
<div className="w-16 h-16 text-4xl flex items-center justify-center bg-white dark:bg-card rounded-2xl shadow-md">
|
||||
{story.emoji}
|
||||
</div>
|
||||
<div className="flex-1">
|
||||
<h3 className="text-2xl font-semibold text-gray-900 mb-1">
|
||||
<h3 className="text-2xl font-semibold text-gray-900 dark:text-foreground mb-1">
|
||||
{story.name}
|
||||
</h3>
|
||||
<p className="text-gray-700 font-medium">{story.role}</p>
|
||||
<p className="text-gray-600 text-sm">{story.location}</p>
|
||||
<p className="text-gray-700 dark:text-muted-foreground font-medium">
|
||||
{story.role}
|
||||
</p>
|
||||
<p className="text-gray-600 dark:text-muted-foreground text-sm">
|
||||
{story.location}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* Funding Details */}
|
||||
<div className="grid grid-cols-2 gap-4 mb-6">
|
||||
<div className="bg-white/70 rounded-lg p-3">
|
||||
<p className="text-xs text-gray-600 mb-1">Goal</p>
|
||||
<p className="text-lg font-bold text-gray-900">{story.goal}</p>
|
||||
<div className="bg-white/70 dark:bg-card/70 rounded-lg p-3">
|
||||
<p className="text-xs text-gray-600 dark:text-muted-foreground mb-1">
|
||||
Goal
|
||||
</p>
|
||||
<p className="text-lg font-bold text-gray-900 dark:text-foreground">
|
||||
{story.goal}
|
||||
</p>
|
||||
</div>
|
||||
<div className="bg-white/70 rounded-lg p-3">
|
||||
<p className="text-xs text-gray-600 mb-1">Raised</p>
|
||||
<div className="bg-white/70 dark:bg-card/70 rounded-lg p-3">
|
||||
<p className="text-xs text-gray-600 dark:text-muted-foreground mb-1">
|
||||
Raised
|
||||
</p>
|
||||
<p className="text-lg font-bold text-green-600">{story.raised}</p>
|
||||
</div>
|
||||
<div className="bg-white/70 rounded-lg p-3">
|
||||
<p className="text-xs text-gray-600 mb-1">Supporters</p>
|
||||
<p className="text-lg font-bold text-gray-900">{story.supporters}</p>
|
||||
<div className="bg-white/70 dark:bg-card/70 rounded-lg p-3">
|
||||
<p className="text-xs text-gray-600 dark:text-muted-foreground mb-1">
|
||||
Supporters
|
||||
</p>
|
||||
<p className="text-lg font-bold text-gray-900 dark:text-foreground">
|
||||
{story.supporters}
|
||||
</p>
|
||||
</div>
|
||||
<div className="bg-white/70 rounded-lg p-3">
|
||||
<p className="text-xs text-gray-600 mb-1">Timeline</p>
|
||||
<p className="text-lg font-bold text-gray-900">{story.timeline}</p>
|
||||
<div className="bg-white/70 dark:bg-card/70 rounded-lg p-3">
|
||||
<p className="text-xs text-gray-600 dark:text-muted-foreground mb-1">
|
||||
Timeline
|
||||
</p>
|
||||
<p className="text-lg font-bold text-gray-900 dark:text-foreground">
|
||||
{story.timeline}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* Summary */}
|
||||
<p className="text-gray-700 font-medium mb-6 leading-relaxed">
|
||||
<p className="text-gray-700 dark:text-muted-foreground font-medium mb-6 leading-relaxed">
|
||||
{story.summary}
|
||||
</p>
|
||||
|
||||
{/* Story Content (MDX) */}
|
||||
<div className="prose prose-sm max-w-none mb-6 text-gray-700">
|
||||
<div className="prose prose-sm max-w-none mb-6 text-gray-700 dark:text-muted-foreground">
|
||||
<MDXRemote source={story.story} />
|
||||
</div>
|
||||
|
||||
{/* Category Badge */}
|
||||
<div className="mt-6">
|
||||
<span className="inline-block px-3 py-1 bg-white/70 text-gray-700 text-sm font-medium rounded-full">
|
||||
<span className="inline-block px-3 py-1 bg-white/70 dark:bg-card/70 text-gray-700 dark:text-muted-foreground text-sm font-medium rounded-full">
|
||||
{story.category}
|
||||
</span>
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user