diff --git a/app/quests/page.tsx b/app/quests/page.tsx new file mode 100644 index 00000000..127c5ca4 --- /dev/null +++ b/app/quests/page.tsx @@ -0,0 +1,66 @@ +"use client"; +import React, { useContext } from "react"; +import styles from "@styles/Home.module.css"; +import { useRouter } from "next/navigation"; +import HowToParticipate from "@components/pages/home/howToParticipate"; +import Stats from "@components/UI/stats/stats"; +import Blur from "@components/shapes/blur"; +import { QuestsContext } from "@context/QuestsProvider"; +import FeaturedQuest from "@components/UI/featured_banner/featuredQuest"; +import QuestAndCollectionTabs from "@components/pages/home/questAndCollectionTabs"; +import CategoryTitle from "@components/UI/titles/categoryTitle"; + +export default function Page() { + const router = useRouter(); + const { featuredQuest, categories, trendingQuests, quests } = + useContext(QuestsContext); + + return ( +
+
+
+ +
+
+ router.push(`/quest/${featuredQuest?.id}`)} + imgSrc={featuredQuest?.img_card} + issuer={{ + name: featuredQuest?.issuer ?? "", + logoFavicon: featuredQuest?.logo ?? "", + }} + reward={featuredQuest?.rewards_title} + desc={featuredQuest?.desc} + expiry={featuredQuest?.expiry_timestamp} + questId={featuredQuest?.id} + /> +
+ + + +
+ +
+ +
+
+ ); +}