diff --git a/attached_assets/image_1772316960673.png b/attached_assets/image_1772316960673.png new file mode 100644 index 0000000..1fb8b80 Binary files /dev/null and b/attached_assets/image_1772316960673.png differ diff --git a/client/src/pages/home.tsx b/client/src/pages/home.tsx index cb94372..22304ff 100644 --- a/client/src/pages/home.tsx +++ b/client/src/pages/home.tsx @@ -181,6 +181,41 @@ function MediumCard({ article, focalPoints }: { article: Article; focalPoints?: ); } +function WideCard({ article, focalPoints }: { article: Article; focalPoints?: Record }) { + const isVideo = article.category === "Video"; + const objPos = getObjectPosition(article.coverImage, focalPoints); + return ( + +
+
+
+ {article.title} +
+ {isVideo && ( +
+
+ +
+
+ )} +
+
+
+ {article.author} + {timeAgo(new Date(article.publishedAt))} +
+

{article.title}

+

{article.excerpt}

+
+ + {article.views.toLocaleString()} +
+
+
+ + ); +} + function BlogCard({ article, focalPoints }: { article: Article; focalPoints?: Record }) { const isVideo = article.category === "Video"; const objPos = getObjectPosition(article.coverImage, focalPoints); @@ -487,6 +522,14 @@ export default function Home() { ))} + {shuffled.length > 0 && ( +
+
+ +
+
+ )} +