diff --git a/client/src/components/horoscope-widget.tsx b/client/src/components/horoscope-widget.tsx index b2fc66f..1faa9e7 100644 --- a/client/src/components/horoscope-widget.tsx +++ b/client/src/components/horoscope-widget.tsx @@ -1,4 +1,5 @@ import { useState, useEffect, useCallback } from "react"; +import { useLocation } from "wouter"; import { Star, ChevronLeft, ChevronRight, X } from "lucide-react"; const SIGNS = [ diff --git a/client/src/components/photo-gallery.tsx b/client/src/components/photo-gallery.tsx index 44de15c..64b1607 100644 --- a/client/src/components/photo-gallery.tsx +++ b/client/src/components/photo-gallery.tsx @@ -114,7 +114,8 @@ function SingleImageCarousel({ {images[index].fileName} diff --git a/client/src/pages/article.tsx b/client/src/pages/article.tsx index 0b25826..45479e8 100644 --- a/client/src/pages/article.tsx +++ b/client/src/pages/article.tsx @@ -74,6 +74,7 @@ function RelatedArticles({ currentSlug }: { currentSlug: string }) { src={article.coverImage ? article.coverImage.replace(".webp", "-thumb.webp") : "/images/article-1.png"} alt={article.title} className="w-full aspect-video object-cover transition-transform duration-500 group-hover:scale-105" + style={{ objectPosition: "center 25%" }} loading="lazy" /> diff --git a/client/src/pages/category.tsx b/client/src/pages/category.tsx index ff73de4..ab03736 100644 --- a/client/src/pages/category.tsx +++ b/client/src/pages/category.tsx @@ -60,6 +60,7 @@ export default function CategoryPage() { src={article.coverImage || "/images/article-1.png"} alt={article.title} className="w-full aspect-video object-cover transition-transform duration-500 group-hover:scale-105" + style={{ objectPosition: "center 25%" }} loading="lazy" /> diff --git a/client/src/pages/home.tsx b/client/src/pages/home.tsx index 921c91a..28c1dbb 100644 --- a/client/src/pages/home.tsx +++ b/client/src/pages/home.tsx @@ -44,7 +44,7 @@ function HeroCard({ article }: { article: Article }) {
- {article.title} + {article.title} {isVideo && (
@@ -79,7 +79,7 @@ function GalleryHeroCard({ images }: { images: GalleryImage[] }) {
- {images[idx].fileName} + {images[idx].fileName}
@@ -103,7 +103,7 @@ function MediumCard({ article }: { article: Article }) {
- {article.title} + {article.title}
{isVideo && (
@@ -142,7 +142,7 @@ function GalleryMediumCard({ images }: { images: GalleryImage[] }) {
- {images[idx].fileName} + {images[idx].fileName}