diff --git a/src/components/home/HomeClientWrapper.tsx b/src/components/home/HomeClientWrapper.tsx index 4bbb268..6679bb3 100644 --- a/src/components/home/HomeClientWrapper.tsx +++ b/src/components/home/HomeClientWrapper.tsx @@ -5,7 +5,6 @@ import { useRouter } from "next/navigation"; import { RefreshButton } from "@/components/library/RefreshButton"; import { PullToRefreshIndicator } from "@/components/common/PullToRefreshIndicator"; import { usePullToRefresh } from "@/hooks/usePullToRefresh"; -import { useTranslate } from "@/hooks/useTranslate"; interface HomeClientWrapperProps { children: ReactNode; @@ -13,7 +12,6 @@ interface HomeClientWrapperProps { export function HomeClientWrapper({ children }: HomeClientWrapperProps) { const router = useRouter(); - const { t } = useTranslate(); const [isRefreshing, setIsRefreshing] = useState(false); const handleRefresh = async () => { @@ -45,12 +43,16 @@ export function HomeClientWrapper({ children }: HomeClientWrapperProps) { canRefresh={pullToRefresh.canRefresh} isHiding={pullToRefresh.isHiding} /> -
-
-

{t("home.title")}

- +
+
+
+ +
+
+ +
+ {children}
- {children}
); diff --git a/src/components/home/HomeContent.tsx b/src/components/home/HomeContent.tsx index 65a4290..8670512 100644 --- a/src/components/home/HomeContent.tsx +++ b/src/components/home/HomeContent.tsx @@ -29,7 +29,17 @@ const optimizeBookData = (books: KomgaBook[]) => { export function HomeContent({ data }: HomeContentProps) { return ( -
+
+ {data.ongoingBooks && data.ongoingBooks.length > 0 && ( +
+ +
+ )} + {data.ongoing && data.ongoing.length > 0 && ( )} - {data.ongoingBooks && data.ongoingBooks.length > 0 && ( - - )} - {data.onDeck && data.onDeck.length > 0 && ( +
@@ -114,11 +119,11 @@ function MediaCard({ item, onClick }: MediaCardProps) { {isSeries ? ( <> -
-

{title}

-

- {t("series.books", { count: item.booksCount })} -

+
+

{title}

+

+ {t("series.books", { count: item.booksCount })} +

) : ( diff --git a/src/components/library/LibraryHeader.tsx b/src/components/library/LibraryHeader.tsx index e1d929c..6b71825 100644 --- a/src/components/library/LibraryHeader.tsx +++ b/src/components/library/LibraryHeader.tsx @@ -36,14 +36,14 @@ export function LibraryHeader({ const seriesLabel = `${seriesCount} ${seriesCount > 1 ? "series" : "serie"}`; return ( -
+
-
+
{background ? ( ) : ( @@ -51,9 +51,9 @@ export function LibraryHeader({ )}
-
-
-
+
+
+
{featured ? (
-
-

{library.name}

+
+

{library.name}

-
+
{seriesLabel} diff --git a/src/components/library/PaginatedSeriesGrid.tsx b/src/components/library/PaginatedSeriesGrid.tsx index 41d3e58..cd80fa9 100644 --- a/src/components/library/PaginatedSeriesGrid.tsx +++ b/src/components/library/PaginatedSeriesGrid.tsx @@ -171,19 +171,19 @@ export function PaginatedSeriesGrid({ return (
-
-

{getShowingText()}

-
+
+
-
+
+

{getShowingText()}

{viewMode === "grid" ? ( diff --git a/src/components/library/SearchInput.tsx b/src/components/library/SearchInput.tsx index f21559a..d9b3e84 100644 --- a/src/components/library/SearchInput.tsx +++ b/src/components/library/SearchInput.tsx @@ -34,12 +34,12 @@ export const SearchInput = ({ placeholder }: SearchInputProps) => { }, 300); return ( -
- +
+ handleSearch(e.target.value)} aria-label={placeholder} diff --git a/src/components/library/SeriesGrid.tsx b/src/components/library/SeriesGrid.tsx index 90ab860..b7497a1 100644 --- a/src/components/library/SeriesGrid.tsx +++ b/src/components/library/SeriesGrid.tsx @@ -36,7 +36,7 @@ const getReadingStatusInfo = ( read: series.booksReadCount, total: series.booksCount, }), - className: "bg-blue-500/10 text-blue-500", + className: "bg-primary/15 text-primary", }; } @@ -61,7 +61,7 @@ export function SeriesGrid({ series, isCompact = false }: SeriesGridProps) { return (
router.push(`/series/${series.id}`)} className={cn( - "group relative aspect-[2/3] overflow-hidden rounded-lg bg-muted", + "group relative aspect-[2/3] overflow-hidden rounded-xl border border-border/60 bg-card/80 shadow-sm transition-all duration-200 hover:-translate-y-0.5 hover:shadow-md", series.booksCount === series.booksReadCount && "opacity-50", isCompact && "aspect-[3/4]" )} @@ -81,7 +81,7 @@ export function SeriesGrid({ series, isCompact = false }: SeriesGridProps) { series={series as KomgaSeries} alt={t("series.coverAlt", { title: series.metadata.title })} /> -
+

{series.metadata.title}