diff --git a/client/src/App.tsx b/client/src/App.tsx
index 6eb6ec6..0be805b 100644
--- a/client/src/App.tsx
+++ b/client/src/App.tsx
@@ -1,6 +1,7 @@
import { BrowserRouter, Routes, Route, Navigate, useLocation } from 'react-router-dom';
import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
import { AuthProvider } from '@/hooks/useAuth';
+import { ThemeProvider } from '@/hooks/useTheme';
import { ToastProvider } from '@/components/Toast';
import ProtectedRoute from '@/components/ProtectedRoute';
import Navbar from '@/components/Navbar';
@@ -102,6 +103,7 @@ export default function App() {
return (
+
@@ -110,6 +112,7 @@ export default function App() {
+
);
diff --git a/client/src/components/CatCard.tsx b/client/src/components/CatCard.tsx
index a34dcdc..a6446ac 100644
--- a/client/src/components/CatCard.tsx
+++ b/client/src/components/CatCard.tsx
@@ -43,7 +43,7 @@ export default function CatCard({ cat, onOpen, likedIds }: CatCardProps) {
return (
- onOpen(cat.id)}>
+
onOpen(cat.id)}>
e.stopPropagation()}>
@@ -56,11 +56,11 @@ export default function CatCard({ cat, onOpen, likedIds }: CatCardProps) {
-
+
@@ -79,20 +79,20 @@ export default function CatCard({ cat, onOpen, likedIds }: CatCardProps) {
@@ -105,4 +105,4 @@ export default function CatCard({ cat, onOpen, likedIds }: CatCardProps) {
);
-}
\ No newline at end of file
+}
diff --git a/client/src/components/CatModal.tsx b/client/src/components/CatModal.tsx
index 36b2216..ff1d57a 100644
--- a/client/src/components/CatModal.tsx
+++ b/client/src/components/CatModal.tsx
@@ -86,7 +86,7 @@ export default function CatModal({ catId, onClose }: CatModalProps) {
if (isLoading || !cat) {
return createPortal(
-
+
@@ -102,7 +102,7 @@ export default function CatModal({ catId, onClose }: CatModalProps) {
return createPortal(
e.stopPropagation()}
>
@@ -115,7 +115,7 @@ export default function CatModal({ catId, onClose }: CatModalProps) {
{isOwner && (
-
{isOwner && (
-
+
)}
@@ -180,7 +180,7 @@ export default function CatPage() {
{(user && (c.user_id === user.id || user.is_admin)) && (
handleDeleteComment(c.id)}
- className="btn-ghost h-6 w-6 text-[var(--fg-tertiary)] hover:text-red-500 opacity-0 group-hover:opacity-100 transition-opacity shrink-0"
+ className="btn-ghost h-6 w-6 text-[var(--fg-tertiary)] hover:text-[var(--danger)] opacity-0 group-hover:opacity-100 transition-opacity shrink-0"
>
@@ -199,7 +199,7 @@ export default function CatPage() {
onChange={e => setCommentText(e.target.value)}
placeholder="Написать комментарий..."
maxLength={500}
- className="flex-1 h-9 px-3 text-sm rounded-xl border border-[var(--border)] bg-white placeholder:text-[var(--fg-tertiary)] focus-ring"
+ className="flex-1 h-9 px-3 text-sm rounded-xl border border-[var(--border)] bg-[var(--surface)] placeholder:text-[var(--fg-tertiary)] focus-ring"
/>
-
+
Не удалось загрузить
diff --git a/client/src/pages/LoginPage.tsx b/client/src/pages/LoginPage.tsx
index 9051b9b..5af68af 100644
--- a/client/src/pages/LoginPage.tsx
+++ b/client/src/pages/LoginPage.tsx
@@ -37,13 +37,13 @@ export default function LoginPage() {