chore: additional theming implementation

This commit is contained in:
Kyle Gill
2019-03-27 22:30:07 -06:00
parent 49bb678bfa
commit b2ad7d544d
7 changed files with 79 additions and 56 deletions

View File

@@ -1,31 +1,38 @@
import React from "react";
import styled from "@emotion/styled";
import { withTheme } from "emotion-theming";
import { SIZES } from "../../styles/constants";
import Icon from "../Icon";
const SeekHeader = styled.header`
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: center;
border-bottom-width: 1px;
border-bottom-style: solid;
border-color: ${props => props.theme.colors.quarternary};
`;
const SeekH1 = styled.h1`
display: block;
font-size: ${SIZES.normal};
color: ${props => props.theme.colors.secondary};
`;
const SeekArrows = styled.div``;
const SeekHr = styled.hr`
margin: 0;
const SeekArrows = styled.div`
display: grid;
grid-template-columns: auto auto;
grid-gap: 10px;
`;
const Seek = ({ title = "", prev = "", next = "" }) => (
<React.Fragment>
<SeekHeader>
<SeekH1>{title}</SeekH1>
<SeekArrows>asdf</SeekArrows>
</SeekHeader>
<SeekHr />
</React.Fragment>
<SeekHeader>
<SeekH1>{title}</SeekH1>
<SeekArrows>
<Icon name="ChevronLeft" />
<Icon name="ChevronRight" />
</SeekArrows>
</SeekHeader>
);
export default Seek;
export default withTheme(Seek);