Fix styles for responsive footer

This commit is contained in:
Mathias Schopmans
2017-04-03 16:56:40 +02:00
parent b5b20584ef
commit 6c2efdd724
5 changed files with 34 additions and 16 deletions

View File

@@ -1,12 +1,13 @@
import React from 'react';
import classNames from 'classnames';
import Branding from './Branding';
import { getItemPageNames } from '../../common/config';
import { getItemPageNames, isMobileViewport } from '../../common/config';
export default function Footer({ items, pageName }) {
return (
<div className={classNames('footer', {'is-hidden': getItemPageNames(items).includes(pageName)})}>
<div className={classNames('footer', {'is-hidden': !isMobileViewport() && getItemPageNames(items).includes(pageName)})}>
<Branding
modifier="footer"
logoContent={<img src="/assets/logo.svg" width="150px" height="60px" />}
>
<span className="footnote">