From daaae168f39436d194cd659d46866e283b8055dc Mon Sep 17 00:00:00 2001 From: atanasster Date: Fri, 5 Jun 2020 15:24:39 -0400 Subject: [PATCH] feat: footer --- .../src/components/Footer.tsx | 32 +++++++++++++++++++ .../src/components/Layout.tsx | 29 +++++++++++------ ui/app-components/src/Header/Header.tsx | 1 + 3 files changed, 52 insertions(+), 10 deletions(-) create mode 100644 integrations/gatsby-theme-stories/src/components/Footer.tsx diff --git a/integrations/gatsby-theme-stories/src/components/Footer.tsx b/integrations/gatsby-theme-stories/src/components/Footer.tsx new file mode 100644 index 000000000..7c6e83120 --- /dev/null +++ b/integrations/gatsby-theme-stories/src/components/Footer.tsx @@ -0,0 +1,32 @@ +/** @jsx jsx */ +import { Text, Flex, Link, jsx } from 'theme-ui'; + +export const Footer = () => { + return ( + + + Copyright © {new Date().getFullYear()}. All rights reserved. + + + + component controls + + + + ); +}; diff --git a/integrations/gatsby-theme-stories/src/components/Layout.tsx b/integrations/gatsby-theme-stories/src/components/Layout.tsx index 30153436d..90264b02d 100644 --- a/integrations/gatsby-theme-stories/src/components/Layout.tsx +++ b/integrations/gatsby-theme-stories/src/components/Layout.tsx @@ -11,6 +11,7 @@ import { SEO } from './SEO'; import { Sidebar } from './Sidebar'; import { Header } from './Header'; import { PagesConfig } from './types'; +import { Footer } from './Footer'; interface LayoutProps { title?: string; @@ -39,16 +40,24 @@ export const Layout: FC = ({ /> -
- - - - - + +
+ + + + + + +