mirror of
https://github.com/lumina-rocks/lumina.git
synced 2026-04-07 14:06:56 +02:00
* feat: Add TagPage and TagCard components for displaying trending and followed tags * refactor: Adjust layout and styling in TagPage component for improved UI * feat: Add Tag link to BottomBar for improved navigation * refactor: Conditionally render 'My Tags' tab and adjust layout in TagPage; comment out unused pubkey check in BottomBar * refactor: Replace TagIcon with HashIcon in BottomBar component for improved icon representation * refactor: Remove document title update in TagPage component * feat: Implement loading state and pagination in TagFeed and TagQuickViewFeed components * fix: Update QuickViewKind20NoteCard to enable link to note in TagQuickViewFeed component * fix: Increase limit for global events in TagPage to improve trending tags retrieval * fix: Update dependency array in useEffect to track full trendingTags array for accurate updates --------- Co-authored-by: highperfocused <highperfocused@pm.me>
30 lines
808 B
TypeScript
30 lines
808 B
TypeScript
import React from 'react';
|
|
import Link from 'next/link';
|
|
import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card";
|
|
import { Hash } from "lucide-react";
|
|
|
|
interface TagCardProps {
|
|
tag: string;
|
|
}
|
|
|
|
const TagCard: React.FC<TagCardProps> = ({ tag }) => {
|
|
return (
|
|
<Link href={`/tag/${tag}`}>
|
|
<Card className="hover:bg-accent transition-colors h-full">
|
|
<CardHeader className="pb-2">
|
|
<CardTitle className="flex items-center text-xl">
|
|
<Hash className="h-5 w-5 mr-2" />
|
|
{tag}
|
|
</CardTitle>
|
|
</CardHeader>
|
|
<CardContent>
|
|
<p className="text-sm text-muted-foreground">
|
|
View content tagged with #{tag}
|
|
</p>
|
|
</CardContent>
|
|
</Card>
|
|
</Link>
|
|
);
|
|
};
|
|
|
|
export default TagCard; |