Skip to content

Instantly share code, notes, and snippets.

@dabit3
Last active September 20, 2021 02:24
Show Gist options
  • Save dabit3/a076c179ed59743ac238aa6004c80ff3 to your computer and use it in GitHub Desktop.
Save dabit3/a076c179ed59743ac238aa6004c80ff3 to your computer and use it in GitHub Desktop.
Metaverse Marketplace pages/_app.js
/* 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
@pvhee
Copy link

pvhee commented Sep 19, 2021

Love your tutorial @dabit3! 💯

Final export should probably be export default Marketplace?

@dabit3
Copy link
Author

dabit3 commented Sep 20, 2021

Thanks @pvhee!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment