From a2822017286876c21e64ef736c46daa8a6091c0f Mon Sep 17 00:00:00 2001 From: desmukh Date: Fri, 6 Jan 2023 02:12:55 +0500 Subject: [PATCH] scaffold footer --- src/components/footer.js | 50 +++++++++++++++++++++++++++++++ src/components/layout.js | 11 +++---- src/images/autonomic-monster.png | Bin 0 -> 2602 bytes 3 files changed, 54 insertions(+), 7 deletions(-) create mode 100644 src/components/footer.js create mode 100644 src/images/autonomic-monster.png diff --git a/src/components/footer.js b/src/components/footer.js new file mode 100644 index 0000000..a02d1f7 --- /dev/null +++ b/src/components/footer.js @@ -0,0 +1,50 @@ +import { Box, Container, Grid, Typography } from "@mui/material" +import { StaticImage } from "gatsby-plugin-image" +import React from "react" + +const address={ + name: "Autonomic Co-operative Limited", + line1: "1539 Pershore Road", + city: "Birmingham", + postcode: "B30 2JH", + country: "United Kingdom" +} + +const FooterText = ({ children, bold }) => { + const normalStyle = { fontSize: 10, lineHeight: "14px" } + const boldStyle = { fontSize: 14 } + return {children} +} + +const Footer = () => ( + + + + + + + + {address.name} + {address.line1} + {address.city} + {address.postcode} + {address.country} + + + + We are a Co-operative Society registered with the FCA. + + Registration Number: 4597 + Member of the CoTech Network + + + + +) + +export default Footer \ No newline at end of file diff --git a/src/components/layout.js b/src/components/layout.js index c48fe6f..799f874 100644 --- a/src/components/layout.js +++ b/src/components/layout.js @@ -3,6 +3,7 @@ import { Link as GatsbyLink } from "gatsby" import { AppBar, Container, CssBaseline, Grid, Link, ThemeProvider, Toolbar } from "@mui/material" import NavMenu from "./nav-menu" import theme from "./theme" +import Footer from "./footer" const Layout = ({ location, title, children }) => { // const rootPath = `${__PATH_PREFIX__}/` @@ -26,7 +27,7 @@ const Layout = ({ location, title, children }) => { return ( <> - + { - + @@ -53,12 +54,8 @@ const Layout = ({ location, title, children }) => {
{children}
-
- © {new Date().getFullYear()}, Built with - {` `} - Gatsby -
+