rsnext/test/integration/scss-fixtures/with-tailwindcss-and-purgecss/pages/index.js
2020-05-27 17:51:11 -04:00

38 lines
905 B
JavaScript

import Link from 'next/link'
const links = [
{ href: 'https://github.com/vercel/next.js', label: 'GitHub' },
{ href: 'https://nextjs.org/docs', label: 'Docs' },
]
function Nav() {
return (
<nav>
<ul className="flex justify-between items-center p-8">
<li>
<Link href="/">
<a className="text-blue-500 no-underline">Home</a>
</Link>
</li>
<ul className="flex justify-between items-center">
{links.map(({ href, label }) => (
<li key={`${href}${label}`} className="ml-4">
<a href={href} className="btn-blue no-underline">
{label}
</a>
</li>
))}
</ul>
</ul>
</nav>
)
}
export default () => (
<div>
<Nav />
<div className="hero">
<h1 className="title">Next.js + Tailwind CSS + PurgeCSS</h1>
</div>
</div>
)