Split out CSS into separate files

This commit is contained in:
Michael Jackson
2018-04-03 22:16:09 -07:00
parent 6e37129ec5
commit f53e99a066
10 changed files with 148 additions and 105 deletions

View File

@ -1,7 +1,10 @@
import "./Layout.css";
import React from "react";
import PropTypes from "prop-types";
import { Motion, spring } from "react-motion";
import { Switch, Route, Link, withRouter } from "react-router-dom";
import WindowSize from "./WindowSize";
import About from "./About";
import Stats from "./Stats";
@ -78,14 +81,14 @@ class Layout extends React.Component {
};
return (
<div>
<div className="layout">
<WindowSize onChange={this.adjustUnderline} />
<div className="wrapper">
<header>
<h1 className="layout-title">unpkg</h1>
<nav className="layout-nav">
<ol
className="layout-nav-list"
className="layout-navList"
ref={node => (this.listNode = node)}
>
<li>
@ -103,7 +106,7 @@ class Layout extends React.Component {
style={style}
children={style => (
<div
className="layout-nav-underline"
className="layout-navUnderline"
style={{
WebkitTransform: `translate3d(${style.left}px,0,0)`,
transform: `translate3d(${style.left}px,0,0)`,