33 lines
900 B
JavaScript
33 lines
900 B
JavaScript
import Link from 'next/link'
|
|
import Head from 'next/head'
|
|
|
|
import Nav from '../components/Nav'
|
|
|
|
export default function Layout({ children, title = 'Home' }) {
|
|
return (
|
|
<>
|
|
<Head>
|
|
<title>Portal.JS - {title}</title>
|
|
<link rel="icon" href="/favicon.ico" />
|
|
<meta charSet="utf-8" />
|
|
<meta name="viewport" content="initial-scale=1.0, width=device-width" />
|
|
</Head>
|
|
<Nav />
|
|
<div className="mx-auto p-6">
|
|
{children}
|
|
</div>
|
|
<footer className="flex items-center justify-center w-full h-24 border-t">
|
|
<a
|
|
className="flex items-center justify-center"
|
|
href="https://datopian.com/"
|
|
target="_blank"
|
|
rel="noopener noreferrer"
|
|
>
|
|
Built by{' '}
|
|
<img src="/datopian-logo.png" alt="Datopian Logo" className="h-6 ml-2" />
|
|
</a>
|
|
</footer>
|
|
</>
|
|
)
|
|
}
|