[Index][s]: Update navMenu error
This commit is contained in:
parent
539b206262
commit
9eeb90dd59
@ -13,12 +13,6 @@ const Home: React.FC<{ locale: any; locales: any }> = ({
|
||||
locales,
|
||||
}) => {
|
||||
const { t } = useTranslation();
|
||||
const navMenu = [
|
||||
{ title: 'Blog', path: '/blog' },
|
||||
{ title: 'Search', path: '/search' },
|
||||
{ title: 'Docs', path: 'http://tech.datopian.com/frontend/' },
|
||||
{ title: 'GitHub', path: 'https://github.com/datopian/portal' },
|
||||
];
|
||||
return (
|
||||
<>
|
||||
<div className="container mx-auto">
|
||||
@ -26,7 +20,7 @@ const Home: React.FC<{ locale: any; locales: any }> = ({
|
||||
<title>{t(`common:title`)}</title>
|
||||
<link rel="icon" href="/favicon.ico" />
|
||||
</Head>
|
||||
<NavBar logo={'/images/logo.svg'} navMenu={navMenu} />
|
||||
<NavBar />
|
||||
<section className="flex justify-center items-center flex-col mt-8 mx-4 lg:flex-row">
|
||||
<div>
|
||||
<h1 className="text-4xl mb-3 font-thin">
|
||||
|
||||
@ -1,4 +1,6 @@
|
||||
module.exports = {
|
||||
purge: ['./pages/**/*.{js,ts,jsx,tsx}', './components/**/*.{js,ts,jsx,tsx}'],
|
||||
mode: 'jit',
|
||||
theme: {
|
||||
fontSize: {
|
||||
tiny: 'var(--font-size-small)',
|
||||
|
||||
@ -48,11 +48,11 @@ export default function Home({ dataset, specs }) {
|
||||
</Head>
|
||||
|
||||
|
||||
<section className="m-8" name="key-info">
|
||||
<section name="key-info">
|
||||
<KeyInfo descriptor={descriptor} resources={resources} />
|
||||
</section>
|
||||
|
||||
<section className="m-8" name="file-list">
|
||||
<section name="file-list">
|
||||
<ResourceInfo resources={resources} />
|
||||
</section>
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user