-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from ChanX21/frontend
Frontend
- Loading branch information
Showing
19 changed files
with
1,556 additions
and
130 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
"use client"; | ||
|
||
import Image from "next/image"; | ||
import type { NextPage } from "next"; | ||
import { useAccount } from "wagmi"; | ||
import { Address } from "~~/components/scaffold-eth"; | ||
import { FaucetButton, RainbowKitCustomConnectButton } from "~~/components/scaffold-eth"; | ||
|
||
const Home: NextPage = () => { | ||
const { address: connectedAddress } = useAccount(); | ||
|
||
return ( | ||
<> | ||
<div className="flex items-center flex-col flex-grow pt-10 relative min-h-screen w-full overflow-x-hidden "> | ||
<div className="absolute top-0 left-0 w-full h-full -z-10"> | ||
<Image src="/Ninjabg.png" alt="Ninja Strike Background" layout="fill" objectFit="cover" /> | ||
</div> | ||
<div className="flex flex-col sm:flex-row gap-4 sm:gap-10 items-center w-full px-4 sm:px-8 max-w-screen-xl"> | ||
<div className="flex justify-center items-center space-x-2 flex-col sm:flex-row"> | ||
<p className="my-2 font-medium">Connected Address:</p> | ||
<Address address={connectedAddress} /> | ||
</div> | ||
<div className="flex-grow flex justify-end"> | ||
<RainbowKitCustomConnectButton /> | ||
<FaucetButton /> | ||
</div> | ||
</div> | ||
</div> | ||
</> | ||
); | ||
}; | ||
|
||
export default Home; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.