Last active
September 20, 2021 02:24
-
-
Save dabit3/a076c179ed59743ac238aa6004c80ff3 to your computer and use it in GitHub Desktop.
Metaverse Marketplace pages/_app.js
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
/* pages/_app.js */ | |
import '../styles/globals.css' | |
import Link from 'next/link' | |
function Marketplace({ Component, pageProps }) { | |
return ( | |
<div> | |
<nav className="border-b p-6"> | |
<p className="text-4xl font-bold">Metaverse Marketplace</p> | |
<div className="flex mt-4"> | |
<Link href="/"> | |
<a className="mr-4 text-pink-500"> | |
Home | |
</a> | |
</Link> | |
<Link href="/create-item"> | |
<a className="mr-6 text-pink-500"> | |
Sell Digital Asset | |
</a> | |
</Link> | |
<Link href="/my-assets"> | |
<a className="mr-6 text-pink-500"> | |
My Digital Assets | |
</a> | |
</Link> | |
<Link href="/creator-dashboard"> | |
<a className="mr-6 text-pink-500"> | |
Creator Dashboard | |
</a> | |
</Link> | |
</div> | |
</nav> | |
<Component {...pageProps} /> | |
</div> | |
) | |
} | |
export default Marketplace |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Love your tutorial @dabit3! 💯
Final export should probably be
export default Marketplace
?