Skip to content

Commit

Permalink
initial
Browse files Browse the repository at this point in the history
  • Loading branch information
baitcode committed Nov 24, 2024
1 parent 41254de commit 3334b86
Showing 1 changed file with 66 additions and 0 deletions.
66 changes: 66 additions & 0 deletions app/quests/page.tsx
Original file line number Diff line number Diff line change
@@ -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 (
<div className={styles.screen}>
<div className={styles.container}>
<div className={styles.blur1}>
<Blur />
</div>
<div className={styles.featured_quest_banner_container}>
<FeaturedQuest
heading="Featured"
key={featuredQuest?.id}
title={featuredQuest?.title_card}
onClick={() => 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}
/>
</div>
<QuestAndCollectionTabs
quests={quests}
categories={categories}
trendingQuests={trendingQuests}
/>
<CategoryTitle
subtitle="Get access to our community"
title="About our quests"
corner="bottomLeft"
squares="bottomRight"
/>
<Stats
stats={[
{ name: "Quests NFT minted", value: "+1M" },
{ name: "Unique addresses", value: "398K" },
{ name: "Unique visitors", value: "+200K" },
]}
/>
<div className={styles.blur2}>
<Blur green />
</div>
<HowToParticipate />
</div>
</div>
);
}

0 comments on commit 3334b86

Please sign in to comment.