diff --git a/app/page.tsx b/app/page.tsx index 6fc0286..f8dd7f5 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -1,47 +1,174 @@ "use client"; -import HomeCard from "@/components/quiz/HomeCard"; -import { useGlobalContext } from "@/context/globalContext"; -import { useWeb3 } from "@/context/Web3Context"; +import HomeCard from "../components/quiz/HomeCard"; +import { useGlobalContext } from "../context/globalContext"; +import { useWeb3 } from "../context/Web3Context"; import { ICategory } from "@/types/types"; import { Button } from "@/components/ui/button"; +// Inline SVG icons for the Features Grid +const AwardIcon = () => ( + + + +); + +const WalletIcon = () => ( + + + + +); + +const LockIcon = () => ( + + + +); + +const CommunityIcon = () => ( + + + + + +); + +const features = [ + { + icon: , + title: "Instant Rewards", + description: "Winners receive crypto prizes directly to their wallet, powered by smart contracts on Avalanche.", + }, + { + icon: , + title: "On-Chain & Transparent", + description: "All quizzes, scores, and prize pools are stored on the blockchain for verifiable fairness.", + }, + { + icon: , + title: "Community-Powered", + description: "Anyone can create and host quizzes, turning their knowledge into a rewarding experience.", + }, + { + icon: , + title: "Secure & Decentralized", + description: "Kwizi is built for Web3, giving you full control over your assets with no central authority.", + }, +]; + +// Final CTA component merged into this file +const FinalCTA = () => ( +
+
+

+ Ready to Start Your On-Chain Quizzing Journey? +

+

+ Connect your wallet and dive into the world of decentralized knowledge. +

+
+ + +
+
+
+); + +const upcomingQuizzes = [ + { id: 1, title: 'Web3 Fundamentals', description: 'Test your knowledge on the basics of blockchain, crypto, and decentralized finance.', image: 'https://placehold.co/800x600/5050C8/FFFFFF?text=Web3+Quiz' }, + { id: 2, title: 'Avalanche Ecosystem', description: 'Dive deep into the Avalanche network and its key projects.', image: 'https://placehold.co/800x600/A567EA/FFFFFF?text=AVAX+Quiz' }, + { id: 3, title: 'Ethereum History', description: 'A fun quiz covering the key milestones in Ethereum\'s history.', image: 'https://placehold.co/800x600/9898E1/FFFFFF?text=ETH+Quiz' }, +]; + export default function Home() { const { categories } = useGlobalContext(); const { isConnected, connectWallet, isMetaMaskInstalled } = useWeb3(); return (
- {/* Top Navigation */} - {/* ...existing code... */} + {/* Top Navigation - Keep your existing code here */} + {/* Hero Section */} -
-
+
+

- Unlock Knowledge.
Earn Rewards. + Unlock Knowledge.
Earn Rewards.

- Kwizi is your gateway to fun, interactive quizzes on the Avalanche network. Challenge yourself, learn new things, and earn crypto rewards instantly! + Kwizi is your gateway to fun, interactive quizzes on the Avalanche network. Play quizzes to earn on-chain rewards or create your own to monetize your expertise.

+
+ + +
+ {/*
+ Quiz platform hero image +
*/}
- {/* Quiz Catalog Section */} -
-

Quiz Catalog

-

Choose a category to start your quiz journey

+ {/* Features Grid Section */} +
+
+

Why Kwizi?

+

The next generation of on-chain quizzing.

+ +
+ {features.map((feature, index) => ( +
+
+ {feature.icon} +
+

{feature.title}

+

{feature.description}

+
+ ))} +
+
+
+ + {/* Quiz Catalog Section - Updated to Upcoming Quizzes */} +
+

Our Upcoming Quizzes

+

Get ready to play these exciting new quizzes launching soon!

- {categories.map((category: ICategory) => ( - + {upcomingQuizzes.map((quiz) => ( +
+ {quiz.title} +
+

{quiz.title}

+

{quiz.description}

+ +
+
))}
- - {/* Features Section (placeholder for next step) */} - {/*
...
*/} - - {/* Footer (placeholder for next step) */} - {/*
...
*/} + + {/* Final CTA Section - Placed after the Quiz Catalog */} +
); } diff --git a/components/landing/CTA.tsx b/components/landing/CTA.tsx new file mode 100644 index 0000000..7663742 --- /dev/null +++ b/components/landing/CTA.tsx @@ -0,0 +1,25 @@ +import React from 'react'; +import { Button } from "@/components/ui/button"; + +export default function FinalCTA() { + return ( +
+
+

+ Ready to Start Your On-Chain Quizzing Journey? +

+

+ Connect your wallet and dive into the world of decentralized knowledge. +

+
+ + +
+
+
+ ); +} diff --git a/components/landing/FeaturesGrid.tsx b/components/landing/FeaturesGrid.tsx new file mode 100644 index 0000000..a38d0ff --- /dev/null +++ b/components/landing/FeaturesGrid.tsx @@ -0,0 +1,75 @@ +import React from 'react'; + +// Inline SVG icons +const AwardIcon = () => ( + + + +); + +const WalletIcon = () => ( + + + + +); + +const LockIcon = () => ( + + + +); + +const CommunityIcon = () => ( + + + + + +); + +const features = [ + { + icon: , + title: "Instant Rewards", + description: "Winners receive crypto prizes directly to their wallet, powered by smart contracts on Avalanche.", + }, + { + icon: , + title: "On-Chain & Transparent", + description: "All quizzes, scores, and prize pools are stored on the blockchain for verifiable fairness.", + }, + { + icon: , + title: "Community-Powered", + description: "Anyone can create and host quizzes, turning their knowledge into a rewarding experience.", + }, + { + icon: , + title: "Secure & Decentralized", + description: "Kwizi is built for Web3, giving you full control over your assets with no central authority.", + }, +]; + +export default function FeaturesGrid() { + return ( +
+
+

Why Kwizi?

+

The next generation of on-chain quizzing.

+ +
+ {features.map((feature, index) => ( +
+
+ {feature.icon} +
+

{feature.title}

+

{feature.description}

+
+ ))} +
+
+
+ ); +}