From 2ea1416b2e299b42f3d77e8e0438646ececabb9e Mon Sep 17 00:00:00 2001 From: LordMathis Date: Fri, 2 Oct 2020 15:30:55 +0200 Subject: [PATCH] Update index layout --- gatsby-config.js | 2 ++ src/components/header.js | 23 +++++++------------ src/components/layout.js | 42 ++++++++++++++--------------------- src/pages/index.js | 29 +++++++++--------------- src/styles/global.scss | 3 +++ src/styles/header.module.scss | 3 ++- src/styles/layout.module.scss | 5 +++-- 7 files changed, 46 insertions(+), 61 deletions(-) diff --git a/gatsby-config.js b/gatsby-config.js index 16c26d2..833244d 100644 --- a/gatsby-config.js +++ b/gatsby-config.js @@ -3,6 +3,8 @@ module.exports = { title: `Matúš Námešný`, description: `Kick off your next, great Gatsby project with this default starter. This barebones starter ships with the main Gatsby configuration files you might need.`, author: `Matúš Námešný`, + user: "guest", + hostname: "namesny.com", email: "matus@namesny.com", social: [ { diff --git a/src/components/header.js b/src/components/header.js index 6539d67..a921561 100644 --- a/src/components/header.js +++ b/src/components/header.js @@ -1,25 +1,24 @@ import { Link } from "gatsby" -import Social from "./social" import PropTypes from "prop-types" import React from "react" import styles from "../styles/header.module.scss" -const Header = ({ path, social, email }) => ( +const Header = ({ user, hostname }) => (
- ~{path} $ + {user}@{hostname} ~ $