prod update
This commit is contained in:
1 parent
3af4b92e1b
commit
3b827a90ac
13 files changed
+128
-117
No files matched your search
@@ -122,7 +122,7 @@ export function HeroArticle() {
|
||||
)}
|
||||
|
||||
<div className="flex items-center justify-between pt-4 border-t-2 border-foreground/10">
|
||||
<Link to={`/articles/${article.id}`}>
|
||||
<Link to="/articles/$id" params={{ id: article.id }}>
|
||||
<Button variant="brutalAccent" className="gap-2">
|
||||
Read Full Story
|
||||
<ArrowRight className="w-4 h-4" />
|
||||
|
||||
@@ -65,7 +65,8 @@ export function LatestArticlesGrid() {
|
||||
className={`group border-brutal-sm bg-card hover:shadow-brutal transition-all duration-150 hover:-translate-y-1 animate-fade-in-up stagger-${Math.min(index + 1, 12)}`}
|
||||
>
|
||||
<Link
|
||||
to={`/articles/${article.id}`}
|
||||
to="/articles/$id"
|
||||
params={{ id: article.id }}
|
||||
className="block"
|
||||
>
|
||||
{article.featuredImage ? (
|
||||
@@ -107,12 +108,12 @@ export function LatestArticlesGrid() {
|
||||
</span>
|
||||
|
||||
{article.category && (
|
||||
<Link
|
||||
to={`/${article.category.slug}`}
|
||||
<a
|
||||
href={`/${article.category.slug}`}
|
||||
className="px-2 py-0.5 border border-foreground bg-background text-foreground text-[10px] hover:bg-accent hover:border-accent transition-colors"
|
||||
>
|
||||
{article.category.name}
|
||||
</Link>
|
||||
</a>
|
||||
)}
|
||||
</div>
|
||||
|
||||
@@ -121,7 +122,7 @@ export function LatestArticlesGrid() {
|
||||
articleId={article.id}
|
||||
title={article.title}
|
||||
url={`${window.location.origin}/articles/${article.id}`}
|
||||
excerpt={article.excerpt}
|
||||
excerpt={article.excerpt ?? undefined}
|
||||
image={article.featuredImage}
|
||||
tags={article.tags}
|
||||
variant="compact"
|
||||
|
||||
Reference in new issue
Block a user