* Nav bar and layout * Main catch all route that loads material from content * Data Literate: demo plus all associated components * content/data-literate/demo.mdx * components/* (pretty much all are related to demo) * lib/markdown.js, lib/mdxUtils.js * api/proxy.js to proxy remote urls (to handle CORs) * content/data-literate.md (DL home page - old data literate home page converted to markdown) * excel-viewer.js: excel viewer demo from data literate * package.json / yarn.lock * Nav: @headlessui/react @heroicons/react/outline @heroicons/react * CSV support for table: papaparse * Excel support for tables etc: xlsx * Vega: react-vega vega vega-lite * MDX: next-mdx-remote (yarn rm @next/mdx)
33 lines
906 B
JavaScript
33 lines
906 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="prose 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>
|
|
</>
|
|
)
|
|
}
|