render() {
return (
<>
<Title>Progress Tracker</Title>
<div>
<Section text='M' progress='100%'/>
<Section text='T' progress='80%'/>
<Section text='W' progress='70%'/>
<Section text='T' progress='60%'/>
<Section text='F' progress='40%'/>
<Section text='S' progress='20%'/>
<Section text='S' progress='10%'/>
</div>
</>
);
}
}
ReactDOM.render(<Main />, document.getElementById('root'))
// TO DO:
// make a ProgressBar component
// pass through a progress value
// make width dependant on progress value
// make color dependant on progress value
import React from 'react'
import ReactDOM from 'react-dom'
import styled from 'styled-components'
import Section from './components/Section'
const Title = styled.h1`
color: #b19cd9;
`
class Main extends React.Component {