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

@@ -2,6 +2,7 @@ import React from 'react';
import { renderToString } from 'react-dom/server';
import { createStore } from 'redux';
import { Provider } from 'react-redux';
import {assetUrl} from '../common/config'
import App from './components/App';
import appReducer from './reducer';
@@ -36,20 +37,20 @@ const renderFullPage = (html, pageTitle, preloadedState) => {
<head>
<meta charset="utf-8">
<title>${pageTitle} | AOE Technology Radar</title>
<link rel="stylesheet" href="/assets/css/styles.css"/>
<link rel="stylesheet" href="${assetUrl('css/styles.css')}"/>
<link rel="stylesheet" href="https://d1azc1qln24ryf.cloudfront.net/114779/Socicon/style-cf.css?c2sn1i">
<link rel="shortcut icon" href="/assets/favicon.ico" type="image/x-icon">
<link rel="shortcut icon" href="${assetUrl('favicon.ico')}" type="image/x-icon">
<meta name="format-detection" content="telephone=no">
<meta name="viewport" content="width=device-width, maximum-scale=1.0, initial-scale=1.0, user-scalable=0">
<meta property="og:title" content="${pageTitle} | AOE Technology Radar" />
<meta property="og:image" content="/assets/logo.svg" />
<meta property="og:image" content="${assetUrl('logo.svg')}" />
</head>
<body>
<div id="root">${html}</div>
<script>
window.__TECHRADAR__ = ${JSON.stringify(preloadedState)}
</script>
<script src="/bundle.js"></script>
<script src="${assetUrl('js/bundle.js')}"></script>
</body>
</html>
`