diff --git a/src/components/ArticlePreview.tsx b/src/components/ArticlePreview.tsx index 957d585..be09992 100644 --- a/src/components/ArticlePreview.tsx +++ b/src/components/ArticlePreview.tsx @@ -16,6 +16,38 @@ interface ArticlePreviewProps { featured?: boolean; } +function ArticleVisual({ image, title, featured }: { image?: string; title: string; featured?: boolean }) { + const baseClass = featured ? 'aspect-[16/10] md:aspect-auto md:h-full md:min-h-[320px]' : 'aspect-[16/10]'; + + if (image) { + return ( +
Nostr Article
++ {title} +
++
{summary}
)} @@ -109,7 +133,7 @@ export function ArticlePreview({ post, variant = 'default', showAuthor = true, f {hashtags.length > 0 && (+
{summary}
)} @@ -169,7 +185,7 @@ export function ArticlePreview({ post, variant = 'default', showAuthor = true, f {hashtags.length > 0 && (- Discover the most recent stories from the community -
+Fresh from the network
++ Discover the most recent stories from the community +
+Topic stream
+