Add babel polyfill and tweak some styles for firefox
This commit is contained in:
@@ -1,3 +1,4 @@
|
|||||||
|
import 'babel-polyfill';
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { render } from 'react-dom';
|
import { render } from 'react-dom';
|
||||||
import { createStore, applyMiddleware } from 'redux';
|
import { createStore, applyMiddleware } from 'redux';
|
||||||
|
|||||||
@@ -1,13 +1,11 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
import classNames from 'classnames';
|
||||||
import Branding from './Branding';
|
import Branding from './Branding';
|
||||||
import { getItemPageNames } from '../../common/config';
|
import { getItemPageNames } from '../../common/config';
|
||||||
|
|
||||||
export default function Footer({ items, pageName }) {
|
export default function Footer({ items, pageName }) {
|
||||||
if (getItemPageNames(items).includes(pageName)) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
<div className={classNames('footer', {'is-hidden': getItemPageNames(items).includes(pageName)})}>
|
||||||
<Branding
|
<Branding
|
||||||
logoContent={<img src="/assets/logo.svg" width="150px" height="60px" />}
|
logoContent={<img src="/assets/logo.svg" width="150px" height="60px" />}
|
||||||
>
|
>
|
||||||
@@ -18,5 +16,6 @@ export default function Footer({ items, pageName }) {
|
|||||||
solutions for global companies and corporations.
|
solutions for global companies and corporations.
|
||||||
</span>
|
</span>
|
||||||
</Branding>
|
</Branding>
|
||||||
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -21,6 +21,7 @@
|
|||||||
"autoprefixer": "6.7.1",
|
"autoprefixer": "6.7.1",
|
||||||
"babel-cli": "6.22.2",
|
"babel-cli": "6.22.2",
|
||||||
"babel-loader": "6.2.10",
|
"babel-loader": "6.2.10",
|
||||||
|
"babel-polyfill": "6.23.0",
|
||||||
"babel-preset-latest": "6.22.0",
|
"babel-preset-latest": "6.22.0",
|
||||||
"babel-preset-react": "6.23.0",
|
"babel-preset-react": "6.23.0",
|
||||||
"babel-preset-stage-0": "6.22.0",
|
"babel-preset-stage-0": "6.22.0",
|
||||||
|
|||||||
@@ -40,3 +40,7 @@ body {
|
|||||||
color: blue;
|
color: blue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#root {
|
||||||
|
min-height: 100vh;
|
||||||
|
}
|
||||||
|
|||||||
@@ -4,6 +4,8 @@
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
min-height: 60px;
|
min-height: 60px;
|
||||||
|
transition: opacity 450ms cubic-bezier(0.24, 1.12, 0.71, 0.98);
|
||||||
|
opacity: 1;
|
||||||
|
|
||||||
&__backlink {
|
&__backlink {
|
||||||
flex: 0 0 auto;
|
flex: 0 0 auto;
|
||||||
@@ -19,4 +21,8 @@
|
|||||||
&__content {
|
&__content {
|
||||||
flex: 0 1 auto;
|
flex: 0 1 auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&.is-hidden {
|
||||||
|
opacity: 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
9
styles/components/footer.css
Normal file
9
styles/components/footer.css
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
.footer {
|
||||||
|
border-top: 1px solid var(--color-gray-normal);
|
||||||
|
transition: opacity 450ms cubic-bezier(0.24, 1.12, 0.71, 0.98);
|
||||||
|
opacity: 1;
|
||||||
|
|
||||||
|
&.is-hidden {
|
||||||
|
opacity: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -5,6 +5,7 @@
|
|||||||
padding: 0 10px;
|
padding: 0 10px;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
min-height: 100vh;
|
||||||
|
|
||||||
&__header {
|
&__header {
|
||||||
flex: 0 0 auto;
|
flex: 0 0 auto;
|
||||||
@@ -18,7 +19,6 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
&__footer {
|
&__footer {
|
||||||
border-top: 1px solid var(--color-gray-normal);
|
|
||||||
flex: 0 0 auto;
|
flex: 0 0 auto;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user