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