This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Stat> | |
<div> | |
<TeamRank marginRight={10}>#{away.team_rank}</TeamRank> | |
<StatValue>{away.stat_value}</StatValue> | |
</div> | |
<StatName>{away.stat_name}</StatName> | |
<div> | |
<StatValue>{home.stat_value}</StatValue> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const TeamRank = styled.span` | |
color: #333; | |
margin-left: ${(props) => props.marginLeft || 0}px; | |
margin-right: ${(props) => props.marginRight || 0}px; | |
font-family: "Noto Sans JP", sans-serif; | |
color: #777; | |
`; | |
const StatValue = styled.span` | |
color: white; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Stat> | |
<div> | |
<TeamRank>#{away.team_rank}</TeamRank> | |
<StatValue>{away.stat_value}</StatValue> | |
</div> | |
<StatName>{away.stat_name}</StatName> | |
<div> | |
<StatValue>{home.stat_value}</StatValue> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const Stat = styled.div` | |
display: flex; | |
flex-direction: row; | |
align-items: center; | |
justify-content: space-between; | |
width: 100%; | |
`; | |
const TeamRank = styled.span` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const TeamRank = styled.span``; | |
const StatValue = styled.span``; | |
const StatName = styled.span``; | |
const StatRow = ({ stat }) => { | |
const { away, home } = stat; | |
return ( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const TeamRank = styled.span``; | |
const StatValue = styled.span``; | |
const StatName = styled.span``; | |
const StatRow = ({ stat }) => { | |
const { away, home } = stat; | |
return <div></div> | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
stat_name: "opponent score", | |
stat_value: 473, | |
league_high: 519, | |
team_rank: 5 | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const StatRow = ({ stat }) => { | |
const { away, home } = stat; | |
return <div></div> | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
away: { | |
stat_name: "score", | |
stat_value: 395, | |
league_high: 509, | |
team_rank: 17 | |
}, | |
home: { | |
stat_name: "score", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** @jsx jsx */ | |
import React from 'react' | |
import { css, jsx } from '@emotion/core' | |
const Playbar = ({ children }) => ( | |
<div | |
className="Playbar" | |
css={css` | |
position: absolute; | |
bottom: 0; |