diff --git a/src/components/banner/Banner.jsx b/src/components/banner/Banner.jsx index aa9aaf5..b9e4e1d 100644 --- a/src/components/banner/Banner.jsx +++ b/src/components/banner/Banner.jsx @@ -16,7 +16,7 @@ function Banner({ item, index }) { return (
{item.title} diff --git a/src/components/cart/Cart.jsx b/src/components/cart/Cart.jsx index 0ceefe7..508779d 100644 --- a/src/components/cart/Cart.jsx +++ b/src/components/cart/Cart.jsx @@ -47,7 +47,7 @@ function Cart({ label, data, path }) { ref={(el) => (cardRefs.current[index] = el)} > {item.title} navigate(`/watch/${item.id}`)} diff --git a/src/components/categorycard/CategoryCard.jsx b/src/components/categorycard/CategoryCard.jsx index 00bd560..742bc24 100644 --- a/src/components/categorycard/CategoryCard.jsx +++ b/src/components/categorycard/CategoryCard.jsx @@ -143,7 +143,7 @@ const CategoryCard = React.memo(
{item.title} @@ -258,7 +258,7 @@ const CategoryCard = React.memo(
{item.title} diff --git a/src/components/continue/ContinueWatching.jsx b/src/components/continue/ContinueWatching.jsx index da8d369..530dbef 100644 --- a/src/components/continue/ContinueWatching.jsx +++ b/src/components/continue/ContinueWatching.jsx @@ -92,7 +92,7 @@ const ContinueWatching = () => { className="inline-block bg-[#2a2c31] absolute left-0 top-0 w-full h-full group" > {item?.title} { setIsSidebarOpen(false); }; + const handleRandomClick = () => { if (location.pathname === "/random") { window.location.reload(); } }; + useEffect(() => { setIsNotHomePage( location.pathname !== "/" && location.pathname !== "/home" @@ -55,89 +53,64 @@ function Navbar() { return ( diff --git a/src/components/searchbar/MobileSearch.jsx b/src/components/searchbar/MobileSearch.jsx index 80a56d7..fc2acbd 100644 --- a/src/components/searchbar/MobileSearch.jsx +++ b/src/components/searchbar/MobileSearch.jsx @@ -24,38 +24,41 @@ function MobileSearch() { return ( <> {isSearchVisible && ( -
- setSearchValue(e.target.value)} - onFocus={() => setIsFocused(true)} - onBlur={() => { - setTimeout(() => { - const isInsideSuggestionBox = suggestionRefs.current.some( - (ref) => ref && ref.contains(document.activeElement), - ); - if (!isInsideSuggestionBox) { - setIsFocused(false); +
+
+ setSearchValue(e.target.value)} + onFocus={() => setIsFocused(true)} + onBlur={() => { + setTimeout(() => { + const isInsideSuggestionBox = suggestionRefs.current.some( + (ref) => ref && ref.contains(document.activeElement), + ); + if (!isInsideSuggestionBox) { + setIsFocused(false); + } + }, 100); + }} + onKeyDown={(e) => { + if (e.key === 'Enter') { + handleSearchClick(); } - }, 100); - }} - onKeyDown={(e) => { - if (e.key === 'Enter') { - handleSearchClick(); - } - }} - /> - + +
{searchValue.trim() && isFocused && (
+
setSearchValue(e.target.value)} @@ -54,12 +54,12 @@ function WebSearch() { }} /> {searchValue.trim() && isFocused && ( diff --git a/src/components/sidecard/Sidecard.jsx b/src/components/sidecard/Sidecard.jsx index fb539da..0bcccd1 100644 --- a/src/components/sidecard/Sidecard.jsx +++ b/src/components/sidecard/Sidecard.jsx @@ -73,7 +73,7 @@ function Sidecard({ data, label, className, limit }) {
)} {item.title} navigate(`/watch/${item.id}`)} diff --git a/src/components/splashscreen/SplashScreen.css b/src/components/splashscreen/SplashScreen.css index 7401cba..26bf168 100644 --- a/src/components/splashscreen/SplashScreen.css +++ b/src/components/splashscreen/SplashScreen.css @@ -2,6 +2,7 @@ body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; + background-color: #0a0a0a; color: white; } diff --git a/src/components/suggestion/Suggestion.jsx b/src/components/suggestion/Suggestion.jsx index 5cacb94..5a1267b 100644 --- a/src/components/suggestion/Suggestion.jsx +++ b/src/components/suggestion/Suggestion.jsx @@ -55,7 +55,7 @@ function Suggestion({ keyword, className }) { }} > { diff --git a/src/components/topten/Topten.jsx b/src/components/topten/Topten.jsx index c0a6758..6b54316 100644 --- a/src/components/topten/Topten.jsx +++ b/src/components/topten/Topten.jsx @@ -99,7 +99,7 @@ function Topten({ data, className }) { > {/* Image with tooltip behavior */} {item.title} navigate(`/watch/${item.id}`)} diff --git a/src/components/trending/Trending.jsx b/src/components/trending/Trending.jsx index 002ad54..dd9ea4f 100644 --- a/src/components/trending/Trending.jsx +++ b/src/components/trending/Trending.jsx @@ -51,7 +51,7 @@ const Trending = ({ trending }) => { className="inline-block bg-[#2a2c31] absolute w-auto left-[40px] right-0 top-0 bottom-0 max-[575px]:left-0 max-[575px]:top-0 max-[575px]:bottom-0" > {item.title}; return ( <> -
+
diff --git a/src/pages/animeInfo/AnimeInfo.jsx b/src/pages/animeInfo/AnimeInfo.jsx index 60b1e4f..89f0e3c 100644 --- a/src/pages/animeInfo/AnimeInfo.jsx +++ b/src/pages/animeInfo/AnimeInfo.jsx @@ -157,14 +157,14 @@ function AnimeInfo({ random = false }) { <>
{`${title}
{`${title} diff --git a/src/pages/watch/Watch.jsx b/src/pages/watch/Watch.jsx index e9ee8c0..b2e1fab 100644 --- a/src/pages/watch/Watch.jsx +++ b/src/pages/watch/Watch.jsx @@ -186,7 +186,7 @@ export default function Watch() { {`${animeInfo?.title}
@@ -383,7 +383,7 @@ export default function Watch() {
{animeInfo && animeInfo?.poster ? (