[dataset][m]: improved dataset page to have better layout + added more details to the mocks.
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
import { GetServerSideProps } from 'next'
|
||||
import config from '../../../config'
|
||||
import utils from '../../../utils'
|
||||
import Head from 'next/head'
|
||||
import Nav from '../../../components/Nav'
|
||||
import About from '../../../components/dataset/About'
|
||||
import Org from '../../../components/dataset/Org'
|
||||
import Resources from '../../../components/dataset/Resources'
|
||||
@@ -8,9 +10,19 @@ import Resources from '../../../components/dataset/Resources'
|
||||
function Dataset({ datapackage }) {
|
||||
return (
|
||||
<>
|
||||
<About datapackage={datapackage} />
|
||||
<Org org={datapackage.organization} />
|
||||
<Resources resources={datapackage.resources} />
|
||||
<Head>
|
||||
<title>Portal | {datapackage.title || datapackage.name}</title>
|
||||
<link rel="icon" href="/favicon.ico" />
|
||||
</Head>
|
||||
<Nav />
|
||||
<main className="p-6">
|
||||
<h1 className="text-3xl font-semibold text-primary mb-2">
|
||||
{ datapackage.title || datapackage.name }
|
||||
</h1>
|
||||
<Org org={datapackage.organization} />
|
||||
<About datapackage={datapackage} />
|
||||
<Resources resources={datapackage.resources} />
|
||||
</main>
|
||||
</>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user