diff --git a/src/pages/HomePage.jsx b/src/pages/HomePage.jsx index 5a26cce..60ad4c1 100644 --- a/src/pages/HomePage.jsx +++ b/src/pages/HomePage.jsx @@ -9,10 +9,12 @@ import Footer from '../components/Footer/Footer'; // Debounce hook function useDebouncedValue(value, delay = 250) { const [debounced, setDebounced] = useState(value); + useEffect(() => { const handler = setTimeout(() => setDebounced(value), delay); return () => clearTimeout(handler); }, [value, delay]); + return debounced; } @@ -51,13 +53,14 @@ function HomePage() { .sort((a, b) => a.name.localeCompare(b.name)); return ( -
+
{/* Main content scrollable area */} -
+
{/* Left panel: card list */}

Card List

+
- {/* Footer fixed at the bottom */} -
-
-
+ {/* Footer at the bottom */} +
); }