diff --git a/src/app/layout.tsx b/src/app/layout.tsx index e0c0704..16910c8 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -32,7 +32,9 @@ export default async function RootLayout({ > -
{children}
+
+ {children} +
diff --git a/src/components/atoms/Button/index.tsx b/src/components/atoms/Button/index.tsx index b28d08a..66362a6 100644 --- a/src/components/atoms/Button/index.tsx +++ b/src/components/atoms/Button/index.tsx @@ -4,6 +4,7 @@ import { FC } from "react"; type Props = { children: React.ReactNode; className?: string; + theme?: "primary" | "glass"; onClick?: () => void; href?: string; }; @@ -13,12 +14,13 @@ export const Button: FC = ({ className = "", onClick, href, + theme = "primary", }) => { const Component = (href ? Link : "button") as any; return ( @@ -26,3 +28,10 @@ export const Button: FC = ({ ); }; + +const styles = { + primary: + "block relative bg-gradient-to-r from-purple-600 to-pink-600 hover:from-purple-500 hover:to-pink-500 text-white px-8 py-4 rounded-xl font-semibold text-lg shadow-2xl transition-all duration-300 hover:scale-105", + glass: + "p-3 rounded-xl bg-white/10 backdrop-blur-sm border border-white/20 transition-all duration-300 hover:bg-white/20 hover:scale-105", +}; diff --git a/src/components/atoms/SearchInput/index.tsx b/src/components/atoms/SearchInput/index.tsx index 20903d7..781975f 100644 --- a/src/components/atoms/SearchInput/index.tsx +++ b/src/components/atoms/SearchInput/index.tsx @@ -30,17 +30,17 @@ export const SearchInput: FC = ({ }, [value]); return ( -
+
setValue(e.target.value)} autoFocus={autoFocus} /> -
diff --git a/src/components/organisms/Navbar/components/Search/index.tsx b/src/components/organisms/Navbar/components/Search/index.tsx index ea8635c..fd031f1 100644 --- a/src/components/organisms/Navbar/components/Search/index.tsx +++ b/src/components/organisms/Navbar/components/Search/index.tsx @@ -42,59 +42,122 @@ export const Search = () => { return ( <> - + +
+ {isSearchOpen && ( -
- + + -
-
- +
+
+ {/* Header Section */} +
+

+ Znajdź Filmy +

+

+ Odkryj niesamowite filmy z całego świata +

+ + {/* Enhanced Search Input */} +
+
+
+ +
+
+
+ + {/* Loading State */} + {isLoading && ( +
+
+ +
+
+

Szukam filmów...

+
+ )} + + {/* Results Header */} + {results && ( +
+

+ + Znaleziono {total_results} filmów +

+
+ )} + + {/* Results */} + {results && ( +
+ ({ + ...m, + favorite: false, + seen: false, + genre_ids: JSON.stringify(m.genre_ids), + }))} + fluid + /> +
+ )} + + {/* Show More Button */} + {total_results > 5 && ( +
+
+
+ +
+
+ )} + + {/* No Results */} + {query.length >= 3 && results && results.length === 0 && ( +
+
🎬
+

+ Brak wyników +

+

Spróbuj wyszukać inny tytuł

+
+ )}
- {isLoading && ( -
- -
- )} - {results && ( -
-

{total_results} movies found

-
- )} - {results && ( - ({ - ...m, - favorite: false, - seen: false, - genre_ids: JSON.stringify(m.genre_ids), - }))} - fluid - /> - )} - {total_results > 5 && ( -
- -
- )}
)} diff --git a/src/components/organisms/Navbar/index.tsx b/src/components/organisms/Navbar/index.tsx index 5e94ebc..b65a589 100644 --- a/src/components/organisms/Navbar/index.tsx +++ b/src/components/organisms/Navbar/index.tsx @@ -1,65 +1,177 @@ +"use client"; import Link from "next/link"; +import { useState } from "react"; +import { HiMenuAlt3, HiX, HiSparkles } from "react-icons/hi"; import { Search } from "./components/Search"; const links = [ { label: "Odkrywaj", href: "/odkrywaj", + icon: "🎬", + }, + { + label: "Moja Lista", + href: "/", + icon: "📚", }, ]; export const Navbar = () => { + const [isMobileMenuOpen, setIsMobileMenuOpen] = useState(false); + + const toggleMobileMenu = () => { + setIsMobileMenuOpen(!isMobileMenuOpen); + }; + return ( -
-
-
- - Home - Logo - + <> + {/* Main Navbar */} +
+ {/* Aurora background effect */} +
+
-
- + {/* Border glow */} +
-
-
- -
- - +
+
+
+

+ MovieBox +

+
+ + + Premium Experience + +
+
+ + + {/* Desktop Navigation */} + + + {/* Search and Mobile Menu */} +
+ + + {/* Mobile Menu Button */} + +
-
- + + + {/* Mobile Menu Overlay */} + {isMobileMenuOpen && ( +
+ {/* Backdrop */} +
+ + {/* Menu Panel */} +
+ {/* Aurora background */} +
+
+ +
+ {/* Menu Items */} + +
+
+
+ )} + + + ); };