Remove numbers and add red accent to featured claims on homepage
This commit is contained in:
parent
e71117fa75
commit
039d462fb5
|
|
@ -85,43 +85,33 @@ const ClaimsLibrary = () => {
|
|||
</Link>
|
||||
</div>
|
||||
|
||||
{/* Hacker News style list */}
|
||||
<ol className="space-y-3">
|
||||
{/* Compact list without numbers */}
|
||||
<ul className="list-none space-y-3">
|
||||
{claims.map((claim, idx) => (
|
||||
<li key={idx} className="group">
|
||||
<div className="flex gap-3">
|
||||
{/* Number */}
|
||||
<span className="text-muted-foreground text-sm font-mono shrink-0 pt-0.5">
|
||||
{idx + 1}.
|
||||
</span>
|
||||
{/* Title */}
|
||||
<Link
|
||||
href={claim.link}
|
||||
className="text-foreground hover:text-accent font-medium leading-snug inline"
|
||||
>
|
||||
{claim.title}
|
||||
</Link>
|
||||
|
||||
{/* Content */}
|
||||
<div className="min-w-0 flex-1">
|
||||
{/* Title */}
|
||||
<Link
|
||||
href={claim.link}
|
||||
className="text-foreground hover:text-accent font-medium leading-snug inline"
|
||||
>
|
||||
{claim.title}
|
||||
</Link>
|
||||
|
||||
{/* Metadata line */}
|
||||
<div className="text-xs text-muted-foreground mt-1 leading-relaxed">
|
||||
{new Date(claim.date).toLocaleDateString('en-US', {
|
||||
year: 'numeric',
|
||||
month: 'short',
|
||||
day: 'numeric'
|
||||
})}
|
||||
<span className="mx-1.5">•</span>
|
||||
5 claims
|
||||
<span className="mx-1.5">•</span>
|
||||
<span className="italic">{claim.featuredClaim}</span>
|
||||
</div>
|
||||
</div>
|
||||
{/* Metadata line */}
|
||||
<div className="text-xs text-muted-foreground mt-1 leading-relaxed">
|
||||
{new Date(claim.date).toLocaleDateString('en-US', {
|
||||
year: 'numeric',
|
||||
month: 'short',
|
||||
day: 'numeric'
|
||||
})}
|
||||
<span className="mx-1.5">•</span>
|
||||
5 claims
|
||||
<span className="mx-1.5">•</span>
|
||||
<span className="italic text-accent">{claim.featuredClaim}</span>
|
||||
</div>
|
||||
</li>
|
||||
))}
|
||||
</ol>
|
||||
</ul>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in New Issue