From fa2407803729188a79c9f3062953d625aa226de0 Mon Sep 17 00:00:00 2001 From: Dominic Masters Date: Tue, 23 Oct 2018 17:56:05 +1100 Subject: [PATCH] Cleaned Footer Code, beginning to compontentize SCSS --- public/components/footer/Footer.jsx | 24 ++++--- .../footer/Footer.scss} | 2 +- public/components/header/Header.jsx | 2 +- public/index.jsx | 4 +- public/styles/common.scss | 51 ++++++++++++++ public/styles/{index.scss => global.scss} | 67 +++---------------- webpack.config.js | 3 +- 7 files changed, 81 insertions(+), 72 deletions(-) rename public/{styles/components/_footer.scss => components/footer/Footer.scss} (92%) create mode 100644 public/styles/common.scss rename public/styles/{index.scss => global.scss} (51%) diff --git a/public/components/footer/Footer.jsx b/public/components/footer/Footer.jsx index 1a434a1..32813a3 100644 --- a/public/components/footer/Footer.jsx +++ b/public/components/footer/Footer.jsx @@ -23,27 +23,35 @@ import React from 'react'; import { connect } from 'react-redux'; +import { NavLink } from 'react-router-dom'; + +import FooterStyles from './Footer.scss'; + import Language from '@public/language/Language'; -import { NavLink } from 'react-router-dom' + import { PageBoundary } from '@components/page/Page'; -const FooterLink = function(props) { - let key = "footer.links." + props.title; +const FooterLink = (props) => { + let { title, className } = props; return ( - - { Language.get(key) } + + { Language.get(`footer.links.${title}`) } ); } +const SITE_LAUNCH_TIMESTAMP = 1335830400000; + class Footer extends React.Component { constructor(props) { super(props); } render() { + let { className } = this.props; + return ( -