Skip to content

Commit 0e8ca32

Browse files
committed
Make date badge highly visible with increased opacity and z-index
- Increased badge opacity to bg-black/80 for maximum visibility - Set z-index to z-20 to ensure badge appears above gradient overlay - Changed font-weight to font-bold for better readability - Increased padding (px-4 py-2) for larger badge size - Added shadow-2xl for more prominence - Reduced gradient overlay opacity to not compete with badge - Date badges should now be clearly visible on all story thumbnails
1 parent c6606c6 commit 0e8ca32

2 files changed

Lines changed: 10 additions & 10 deletions

File tree

src/components/pages/Impact.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -133,11 +133,11 @@ export function Impact() {
133133
alt={`${story.title} - Story thumbnail`}
134134
className="w-full h-full object-cover group-hover:scale-110 transition-transform duration-500"
135135
/>
136-
<div className="absolute inset-0 bg-gradient-to-t from-black/70 via-black/30 to-transparent" />
137-
<div className="absolute bottom-4 left-4">
138-
<div className="flex items-center gap-2 bg-black/50 backdrop-blur-md px-3 py-1.5 rounded-full shadow-lg">
139-
<story.icon size={18} className="text-white" />
140-
<span className="text-white text-sm font-semibold">{story.date}</span>
136+
<div className="absolute inset-0 bg-gradient-to-t from-black/60 via-black/20 to-transparent z-0" />
137+
<div className="absolute bottom-4 left-4 z-20">
138+
<div className="flex items-center gap-2 bg-black/80 backdrop-blur-sm px-4 py-2 rounded-full shadow-2xl">
139+
<story.icon size={18} className="text-white flex-shrink-0" />
140+
<span className="text-white text-sm font-bold">{story.date}</span>
141141
</div>
142142
</div>
143143
</div>

src/components/pages/StoriesOfAdventure.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -233,11 +233,11 @@ export function StoriesOfAdventure() {
233233
alt={`${story.title} - Story thumbnail`}
234234
className="w-full h-full object-cover group-hover:scale-110 transition-transform duration-500"
235235
/>
236-
<div className="absolute inset-0 bg-gradient-to-t from-black/70 via-black/30 to-transparent" />
237-
<div className="absolute bottom-4 left-4">
238-
<div className="flex items-center gap-2 bg-black/50 backdrop-blur-md px-3 py-1.5 rounded-full shadow-lg">
239-
<story.icon size={18} className="text-white" />
240-
<span className="text-white text-sm font-semibold">{story.date}</span>
236+
<div className="absolute inset-0 bg-gradient-to-t from-black/60 via-black/20 to-transparent z-0" />
237+
<div className="absolute bottom-4 left-4 z-20">
238+
<div className="flex items-center gap-2 bg-black/80 backdrop-blur-sm px-4 py-2 rounded-full shadow-2xl">
239+
<story.icon size={18} className="text-white flex-shrink-0" />
240+
<span className="text-white text-sm font-bold">{story.date}</span>
241241
</div>
242242
</div>
243243
</div>

0 commit comments

Comments
 (0)