diff --git a/app/games/[id]/page.js b/app/games/[id]/page.js
index 227dbcd..ee13dfd 100644
--- a/app/games/[id]/page.js
+++ b/app/games/[id]/page.js
@@ -6,6 +6,13 @@ import { useState } from "react";
import { HeartFilledIcon, HeartIcon } from "@radix-ui/react-icons";
import TournamentSection from "../../../components/TournamentSection";
import { ListFilter } from "lucide-react";
+import { Button } from "../../../@/components/ui/button";
+import {
+ DropdownMenu,
+ DropdownMenuContent,
+ DropdownMenuSeparator,
+ DropdownMenuTrigger,
+} from "../../../components/ui/dropdown-menu";
export default function GamePage({ params }) {
const [isFavourite, setIsFavourite] = useState(false);
@@ -18,6 +25,25 @@ export default function GamePage({ params }) {
setIsFavourite(!isFavourite);
};
+ const [filters, setFilters] = useState({
+ entryFee: "",
+ mode: "",
+ status: "",
+ });
+
+ const handleFilterChange = (e) => {
+ const { name, value } = e.target;
+ setFilters((prev) => ({ ...prev, [name]: value }));
+ };
+
+ const clearFilters = () => {
+ setFilters({
+ entryFee: "",
+ mode: "",
+ status: "",
+ });
+ };
+
return (
{/* Banner */}
@@ -34,21 +60,21 @@ export default function GamePage({ params }) {
{/* Title */}
-
+
{game.name}
-
+
{/* Desc */}
@@ -60,16 +86,77 @@ export default function GamePage({ params }) {
{/* Tournaments */}
{/* title */}
-
+
Tournaments
-
- {/* Filter dropdown logic */}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/app/layout.js b/app/layout.js
index 5273c16..7663713 100644
--- a/app/layout.js
+++ b/app/layout.js
@@ -4,6 +4,7 @@ import { ThemeProvider } from "../components/theme-provider";
import Navbar from "../components/Navbar";
import Footer from "../components/Footer";
import AuthProvider from "../context/AuthProvider";
+import NextTopLoader from "nextjs-toploader";
const inter = Inter({ subsets: ["latin"] });
@@ -23,6 +24,7 @@ export default function RootLayout({ children }) {
enableSystem
disableTransitionOnChange
>
+
{children}
diff --git a/components/FeatureSection/FeatureSectionGrid.jsx b/components/FeatureSection/FeatureSectionGrid.jsx
index 0d53333..5618990 100644
--- a/components/FeatureSection/FeatureSectionGrid.jsx
+++ b/components/FeatureSection/FeatureSectionGrid.jsx
@@ -112,6 +112,7 @@ export const SkeletonOne = () => {
width={1000}
height={1000}
className="full rounded-sm"
+ draggable="false"
/>
@@ -149,6 +150,7 @@ export const SkeletonThree = () => {
width={800}
height={800}
className="mt-2 object-cover object-center rounded-sm blur-none group-hover/image:blur-md transition-all duration-200"
+ draggable="false"
/>
@@ -202,10 +204,11 @@ export const SkeletonTwo = () => {
>
))}
@@ -224,10 +227,11 @@ export const SkeletonTwo = () => {
>
))}
diff --git a/components/HeroSection.jsx b/components/HeroSection.jsx
index e667b0f..7fa4d80 100644
--- a/components/HeroSection.jsx
+++ b/components/HeroSection.jsx
@@ -51,6 +51,7 @@ export default function HeroSection() {
width={1200}
className="mx-auto shadow-lg rounded-2xl"
alt=""
+ draggable={false}
/>
diff --git a/components/Navbar.jsx b/components/Navbar.jsx
index 2783f4f..5bdd10b 100644
--- a/components/Navbar.jsx
+++ b/components/Navbar.jsx
@@ -69,7 +69,7 @@ const Navbar = () => {
{/* buttons */}
-