replaced single dream type tag with dynamic tags display in DreamCard
for improved categorization and flexibility in UI rendering
Signed-off-by: Matthias Puchstein <matthias@puchstein.bayern>
This commit is contained in:
@@ -55,15 +55,17 @@ export default function DreamCard({dream, user, animationDelay = 0}: DreamCardPr
|
|||||||
{formatDateWithTime(dream.date)}
|
{formatDateWithTime(dream.date)}
|
||||||
</p>
|
</p>
|
||||||
<div className="flex space-x-2">
|
<div className="flex space-x-2">
|
||||||
{/* Display dream type as a tag */}
|
{/* Display dream tags */}
|
||||||
<span className="px-2 py-1 text-xs rounded-full"
|
{dream.tags.map((tag, index) => (
|
||||||
style={{
|
<span key={index} className="px-2 py-1 text-xs rounded-full"
|
||||||
background: 'var(--accent-gradient)',
|
style={{
|
||||||
color: 'white',
|
background: 'var(--accent-gradient)',
|
||||||
boxShadow: '0 2px 5px var(--shadow)'
|
color: 'white',
|
||||||
}}>
|
boxShadow: '0 2px 5px var(--shadow)'
|
||||||
{dream.input.inputType}
|
}}>
|
||||||
</span>
|
{tag}
|
||||||
|
</span>
|
||||||
|
))}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
|
Reference in New Issue
Block a user