From 0f510e3fe7e7094e44cc73da120bf635bd36b40a Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Sat, 11 Aug 2018 02:39:18 +0200 Subject: [PATCH] restore footer --- content/meta.yml | 1 + gatsby-config.js | 7 + src/components/Layout.jsx | 58 ++------ src/components/Layout.module.scss | 6 +- src/components/molecules/Head.jsx | 51 ++++--- src/components/organisms/Footer.jsx | 143 ++++++++++++++++++++ src/components/organisms/Footer.module.scss | 137 +++++++++++++++++++ src/images/{avatar.jpeg => avatar.jpg} | Bin 8 files changed, 336 insertions(+), 67 deletions(-) create mode 100644 src/components/organisms/Footer.jsx create mode 100644 src/components/organisms/Footer.module.scss rename src/images/{avatar.jpeg => avatar.jpg} (100%) diff --git a/content/meta.yml b/content/meta.yml index e55b9441..8c557b2a 100644 --- a/content/meta.yml +++ b/content/meta.yml @@ -20,6 +20,7 @@ author: github: kremalicious facebook: matthiaskretschmann googleplus: +MatthiasKretschmann + avatar: ../src/images/avatar.jpg bitcoin: 171qDmKEXm9YBgBLXyGjjPvopP5o9htQ1V ether: "0x339dbC44d39bf1961E385ed0Ae88FC6069b87Ea1" diff --git a/gatsby-config.js b/gatsby-config.js index a4ea7c25..ef7bfaa3 100644 --- a/gatsby-config.js +++ b/gatsby-config.js @@ -30,6 +30,13 @@ module.exports = { path: path.join(__dirname, 'content') } }, + { + resolve: 'gatsby-source-filesystem', + options: { + name: 'images', + path: path.join(__dirname, 'src', 'images') + } + }, { resolve: 'gatsby-transformer-remark', options: { diff --git a/src/components/Layout.jsx b/src/components/Layout.jsx index e13cc5c7..b93c356c 100644 --- a/src/components/Layout.jsx +++ b/src/components/Layout.jsx @@ -1,58 +1,28 @@ import React, { Fragment } from 'react' import PropTypes from 'prop-types' -import { StaticQuery, graphql } from 'gatsby' import Container from './atoms/Container' import Head from './molecules/Head' import Header from './organisms/Header' +import Footer from './organisms/Footer' import styles from './Layout.module.scss' -const Layout = ({ children }) => { - return ( - { - const meta = data.contentYaml +const Layout = ({ children }) => ( + + +
- return ( - - -
+
+
+ {children} +
+
-
-
- {children} -
-
- - ) - }} - /> - ) -} +