update it

This commit is contained in:
Sukchan Lee 2017-05-25 10:36:32 +09:00
parent aa386e6287
commit 1cebcdb3cc
4 changed files with 32 additions and 16 deletions

View File

@ -5,9 +5,6 @@ export default ({title}) => (
<div>
<Head>
<title>{title}</title>
<meta charSet='utf-8' />
<meta name='viewport' content='initial-scale=1.0, width=device-witdth' />
<link rel='stylesheet' type='text/css' href='/static/index.css' />
</Head>
</div>
)

View File

@ -2,6 +2,7 @@ import Session from '../lib/session';
import { Component } from 'react';
import Link from 'next/link';
import Head from 'next/head';
import Router from 'next/router';
import PropTypes from 'prop-types';
@ -9,7 +10,6 @@ import styled from 'styled-components';
import oc from 'open-color';
import { media, transitions} from '../lib/style-utils';
import Header from './Header';
import Thumbnail from './Thumbnail';
import Input from './Input';
import Dimmed from './Dimmed';
@ -40,8 +40,8 @@ Wrapper.propTypes = {
const ThumbnailWrapper = styled.div`
// Layout
padding-top: 3rem;
padding-bottom: 3rem;
padding-top: 4rem;
padding-bottom: 4rem;
display: flex;
justify-content: center;
@ -166,8 +166,9 @@ class Login extends Component {
return (
<div>
<Header title='Login'>
</Header>
<Head>
<title>NextEPC - Login</title>
</Head>
<Wrapper width={width}>
<ThumbnailWrapper>
<Thumbnail size='8rem' color={oc['blue'][6]} />

View File

@ -1,6 +1,8 @@
import Document, { Head, Main, NextScript } from 'next/document'
import { ServerStyleSheet } from 'styled-components'
const description = 'an implementation of 3GPP EPC(MME, SGW, PGW, HSS)'
export default class MyDocument extends Document {
render () {
const sheet = new ServerStyleSheet()
@ -9,7 +11,18 @@ export default class MyDocument extends Document {
return (
<html>
<Head>
<title>My page</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>NextEPC</title>
<meta charSet="utf-8" />
<meta httpEquiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" />
<meta name="author" content="NextEPC" />
<meta name="description" content={description} />
<link rel="stylesheet" type="text/css" href="/static/index.css" />
{styleTags}
</Head>
<body>

View File

@ -1,15 +1,20 @@
body {
margin: 0;
padding: 0;
background: #f1f3f5;
}
*,
*:before,
*:after {
box-sizing: inherit;
}
html {
html, body {
padding: 0;
margin: 0;
box-sizing: border-box;
-webkit-font-smoothing: subpixel-antialiased;
background: #f1f3f5;
}
.root {
position: relative;
overflow: auto;
}