Refactor techradar to subfolder

This commit is contained in:
Mathias Schopmans
2017-04-04 18:10:44 +02:00
parent 461c4e7dda
commit 1323610982
11 changed files with 23 additions and 14 deletions

View File

@@ -1,14 +1,14 @@
import React from 'react';
import classNames from 'classnames';
import Branding from './Branding';
import { getItemPageNames, isMobileViewport } from '../../common/config';
import { assetUrl, getItemPageNames, isMobileViewport } from '../../common/config';
export default function Footer({ items, pageName }) {
return (
<div className={classNames('footer', {'is-hidden': !isMobileViewport() && getItemPageNames(items).includes(pageName)})}>
<Branding
modifier="footer"
logoContent={<img src="/assets/logo.svg" width="150px" height="60px" />}
logoContent={<img src={assetUrl('logo.svg')} width="150px" height="60px" />}
>
<span className="footnote">
AOE is a leading global provider of services for digital transformation and digital business models. AOE relies exclusively on established Enterprise Open Source technologies. This leads to innovative solutions, digital products and portals in agile software projects, and helps build long-lasting, strategic partnerships with our customers.

View File

@@ -9,7 +9,7 @@ function Link({ pageName, children, navigate, className, style = {}}) {
};
return (
<a href={`/${pageName}.html`} onClick={handleClick} style={style} {...{ className }}>
<a href={`/techradar/${pageName}.html`} onClick={handleClick} style={style} {...{ className }}>
{children}
</a>
);

View File

@@ -1,13 +1,14 @@
import React from 'react';
import classNames from 'classnames';
import Link from './Link';
import { assetUrl } from '../../common/config';
export default function LogoLink({ small=false }) {
return (
<Link pageName="index" className={classNames('logo-link', { 'logo-link--small': small })}>
<span className="logo-link__icon icon icon--back"></span>
<span className="logo-link__slide">
<img className="logo-link__img" src="/assets/logo.svg" width="150px" height="60px" />
<img className="logo-link__img" src={assetUrl('logo.svg')} width="150px" height="60px" />
<span className="logo-link__text">
Technology Radar
</span>