From 1fe0f71029b92282e56535b6609aa8a3c0818c6f Mon Sep 17 00:00:00 2001 From: anuveyatsu Date: Fri, 13 Aug 2021 15:51:45 +0600 Subject: [PATCH] [catalog][s]: added simple footer element. --- examples/catalog/components/home/Footer.tsx | 62 +++++++++++++++++++++ examples/catalog/pages/index.tsx | 2 + 2 files changed, 64 insertions(+) create mode 100644 examples/catalog/components/home/Footer.tsx diff --git a/examples/catalog/components/home/Footer.tsx b/examples/catalog/components/home/Footer.tsx new file mode 100644 index 00000000..9428a191 --- /dev/null +++ b/examples/catalog/components/home/Footer.tsx @@ -0,0 +1,62 @@ +const Footer: React.FC = () => { + const navigation = { + main: [ + { name: 'Blog', href: '/blog' }, + { name: 'Search', href: '/search' }, + { name: 'Docs', href: '/docs' }, + ], + social: [ + { + name: 'GitHub', + href: 'https://github.com/datopian/portal.js', + icon: ( + props // eslint-disable-line + ) => ( + + + + ), + }, + ], + }; + + return ( + + ); +}; + +export default Footer; diff --git a/examples/catalog/pages/index.tsx b/examples/catalog/pages/index.tsx index 579c4278..118aedab 100644 --- a/examples/catalog/pages/index.tsx +++ b/examples/catalog/pages/index.tsx @@ -7,6 +7,7 @@ import { loadNamespaces } from './_app'; import useTranslation from 'next-translate/useTranslation'; import NavBar from '../components/home/Nav'; import Hero from '../components/home/Hero'; +import Footer from '../components/home/Footer'; const Home: React.FC<{ locale: any; locales: any }> = ({ locale, @@ -23,6 +24,7 @@ const Home: React.FC<{ locale: any; locales: any }> = ({ +