diff --git a/app/airdrop/page.tsx b/app/airdrop/page.tsx index f30f756..45f7a49 100644 --- a/app/airdrop/page.tsx +++ b/app/airdrop/page.tsx @@ -13,226 +13,261 @@ import axios from "axios"; import { UserType } from "../types"; import { Address } from "viem"; import { shortenAddress } from "../lib/utils"; +import { Button } from "../components/buttons"; +import transparent_logo from "../assets/images/transparent_logo.png"; -export default function Airdrop() { - const { address } = useAccount(); - const [users, setUsers] = useState([]); - const [currentUserPoints, setCurrentUserPoints] = useState("0.00"); - const [currentUserRank, setCurrentUserRank] = useState(0); - - useEffect(() => { - (async () => { - try { - if (!address) { - Swal.fire({ - title: "Error!!", - text: "Please connect your wallet", - icon: "error", - confirmButtonText: "Okay", - }); - return; - } - - const { data } = await axios.get("/api/airdrop"); - - setUsers(data?.data); - console.table(data?.data); - } catch (error) { - console.error( - "Error:", - (error as any).response?.data || (error as any).message - ); - Swal.fire({ - title: "Error", - text: "Error fetching users", - icon: "error", - cancelButtonText: "Okay", - }); - } - })(); - }, [address]); - - useEffect(() => { - users.forEach((user, index) => { - if (user.address === address) { - setCurrentUserPoints(user.points?.toLocaleString() || "0.00"); - setCurrentUserRank(index + 1); - } - }); - }, [address, users]); - - const TableRow = ({ - rank, - userAddress, - points, - }: { - rank: number; - userAddress: string; - points: string; - }) => { - return ( - - - - {rank < 4 ? ( - {"position - ) : ( - - )} - - {rank} - - - - - - {userAddress} - - - - - {points} EP - - - - ); - }; - +export default function ComingSoonAirdrop() { return (
-
- -
-
-

- Airdrop -

- - Interact with tokens Created and Migrated into EDUCHAIN to rank - up. +
+ logo +
+
+

+ GET READY FOR DECENTRALIZATION +

+
+ + Coming soon
- -
-
- - Box Points earned - - - {currentUserPoints} EP - -
-
- - Your rank - - - {currentUserRank} - -
-
-

- How to earn points -

- -
    -
  • Bridge EDU over to EDUCHAIN
  • -
  • Use Dapps listed on our Leaderboard
  • -
  • Refer others
  • -
- - See Referal Dashboard - -
-
-
- - -
- - - - - - - - - - - {users.map((item, index) => { - return ( - - ); - })} - -
- - Rank - - - - User address - - - - point - -
-
+
+
); } + +// export default function Airdrop() { +// const { address } = useAccount(); +// const [users, setUsers] = useState([]); +// const [currentUserPoints, setCurrentUserPoints] = useState("0.00"); +// const [currentUserRank, setCurrentUserRank] = useState(0); + +// useEffect(() => { +// (async () => { +// try { +// if (!address) { +// Swal.fire({ +// title: "Error!!", +// text: "Please connect your wallet", +// icon: "error", +// confirmButtonText: "Okay", +// }); +// return; +// } + +// const { data } = await axios.get("/api/airdrop"); + +// setUsers(data?.data); +// console.table(data?.data); +// } catch (error) { +// console.error( +// "Error:", +// (error as any).response?.data || (error as any).message +// ); +// Swal.fire({ +// title: "Error", +// text: "Error fetching users", +// icon: "error", +// cancelButtonText: "Okay", +// }); +// } +// })(); +// }, [address]); + +// useEffect(() => { +// users.forEach((user, index) => { +// if (user.address === address) { +// setCurrentUserPoints(user.points?.toLocaleString() || "0.00"); +// setCurrentUserRank(index + 1); +// } +// }); +// }, [address, users]); + +// const TableRow = ({ +// rank, +// userAddress, +// points, +// }: { +// rank: number; +// userAddress: string; +// points: string; +// }) => { +// return ( +// +// +// +// {rank < 4 ? ( +// {"position +// ) : ( +// +// )} +// +// {rank} +// +// +// +// +// +// {userAddress} +// +// +// +// +// {points} EP +// +// +// +// ); +// }; + +// return ( +//
+//
+// +//
+//
+//

+// Airdrop +//

+// +// Interact with tokens Created and Migrated into EDUCHAIN to rank +// up. +// +//
+ +//
+//
+// +// Box Points earned +// +// +// {currentUserPoints} EP +// +//
+//
+// +// Your rank +// +// +// {currentUserRank} +// +//
+//
+//

+// How to earn points +//

+// +//
    +//
  • Bridge EDU over to EDUCHAIN
  • +//
  • Use Dapps listed on our Leaderboard
  • +//
  • Refer others
  • +//
+// +// See Referal Dashboard +// +//
+//
+//
+//
+//
+ +//
+// +// +// +// +// +// +// +// +// +// +// {users.map((item, index) => { +// return ( +// +// ); +// })} +// +//
+// +// Rank +// +// +// +// User address +// +// +// +// point +// +//
+//
+//
+//
+//
+// ); +// } diff --git a/app/assets/images/transparent_logo.png b/app/assets/images/transparent_logo.png new file mode 100644 index 0000000..63bb2c6 Binary files /dev/null and b/app/assets/images/transparent_logo.png differ diff --git a/app/page.tsx b/app/page.tsx index e8564eb..62d1923 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -181,7 +181,7 @@ export default function Home() { Here are some of our most asked questions and their answers
-
+
{[ { question: "What is EduLaunchBox?", @@ -211,7 +211,7 @@ export default function Home() { { question: "Which blockchains are compatible with EduLaunchBox?", answer: - "EduLaunchBox is designed to be compatible with EVM (Ethereum Virtual Machine) chains, enabling developers to easily migrate tokens and dApps from popular blockchains. Currently, Ethereum is supported, with upcoming support for Binance Smart Chain, Polygon, and others.", + "EduLaunchBox is designed to be compatible with EVM (Ethereum Virtual Machine) chains, enabling developers to easily migrate tokens and dApps from popular blockchains. Currently, Base is supported, with upcoming support for Binance Smart Chain, Polygon, and others.", }, { question: "Can I migrate tokens from non-EVM chains to EduChain?", diff --git a/app/sections/sidenav.tsx b/app/sections/sidenav.tsx index 9236c63..6bb4593 100644 --- a/app/sections/sidenav.tsx +++ b/app/sections/sidenav.tsx @@ -47,11 +47,13 @@ export default function SideNav() { text, logo, active, + comingSoon, }: { href: string; text: string; active: boolean; logo: any; + comingSoon?: boolean; }) => { return ( {text} + {comingSoon && ( + + Coming soon + + )} ); }; @@ -125,6 +132,7 @@ export default function SideNav() { href="/airdrop" text="airdrop" logo={CoinSvg} + comingSoon />