From 3ec684b5c93854474070f6bf0b8a9330bffc1860 Mon Sep 17 00:00:00 2001 From: David Thyresson Date: Wed, 16 Nov 2022 12:23:57 -0500 Subject: [PATCH] Adds footer with code example --- .../web/src/components/Footer/Footer.tsx | 58 +++++++++++++++++++ .../web/src/layouts/MainLayout/MainLayout.tsx | 5 +- 2 files changed, 62 insertions(+), 1 deletion(-) create mode 100644 2022-11-13-custom-md5-auth/web/src/components/Footer/Footer.tsx diff --git a/2022-11-13-custom-md5-auth/web/src/components/Footer/Footer.tsx b/2022-11-13-custom-md5-auth/web/src/components/Footer/Footer.tsx new file mode 100644 index 00000000..764bbf9e --- /dev/null +++ b/2022-11-13-custom-md5-auth/web/src/components/Footer/Footer.tsx @@ -0,0 +1,58 @@ +const Footer = () => { + const navigation = [ + { + name: 'Twitter', + href: 'https://twitter.com/RedwoodJS', + icon: (props) => ( + + + + ), + }, + { + name: 'GitHub', + href: 'https://github.com/redwoodjs/redwood-office-hours/tree/main/2022-11-13-custom-md5-auth', + icon: (props) => ( + + + + ), + }, + ] + + return ( + + ) +} + +export default Footer diff --git a/2022-11-13-custom-md5-auth/web/src/layouts/MainLayout/MainLayout.tsx b/2022-11-13-custom-md5-auth/web/src/layouts/MainLayout/MainLayout.tsx index cb665e54..f22abf01 100644 --- a/2022-11-13-custom-md5-auth/web/src/layouts/MainLayout/MainLayout.tsx +++ b/2022-11-13-custom-md5-auth/web/src/layouts/MainLayout/MainLayout.tsx @@ -7,7 +7,9 @@ import { toast, Toaster } from '@redwoodjs/web/toast' import { useAuth } from 'src/auth' -function classNames(...classes) { +import Footer from 'src/components/Footer/Footer' + +const classNames = (...classes) => { return classes.filter(Boolean).join(' ') } @@ -255,6 +257,7 @@ const MainLayout = ({ children }: MainLayoutProps) => { +