Skip to content

Commit

Permalink
fix(): assets and text
Browse files Browse the repository at this point in the history
  • Loading branch information
hopetambala committed May 2, 2019
1 parent e51e49f commit 036606d
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 5 deletions.
Binary file added src/assets/medical.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
14 changes: 9 additions & 5 deletions src/js/pages/Home.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ import { Boxx } from '../components/widget/Boxx/Boxx';
import { LeafletMap } from '../components/widget/Map/LeafletMap';

//Assets
import health from '../../assets/health.png';
import env from '../../assets/env.png'
import people from '../../assets/people.png'
import medical from '../../assets/medical.png';
import env from '../../assets/env.png';
import vitals from '../../assets/vitals.png';
import {HomePageText} from '../providers/Text';


Expand Down Expand Up @@ -62,7 +62,7 @@ export class HomePage extends React.Component {
Cardtitle={HomePageText.medical.title}
Cardsubtitle={HomePageText.medical.subtitle}
Cardtext={HomePageText.medical.text}
background={health}/>
background={medical}/>
</StyledLink>

<StyledLink to="/envalanalytics" >
Expand All @@ -73,7 +73,11 @@ export class HomePage extends React.Component {
background={env}/>
</StyledLink>

<Boxx background={people}/>
<Boxx
Cardtitle={HomePageText.vitals.title}
Cardsubtitle={HomePageText.vitals.subtitle}
Cardtext={HomePageText.vitals.text}
background={vitals}/>
</Row>
<Row style={styles.row}>
<Query query={all_records}>
Expand Down
5 changes: 5 additions & 0 deletions src/js/providers/Text.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ const HomePageText = {
title: "Environmental Health",
subtitle: "Analytics",
text: "Visualizations based on the data collected from the Environmental Health and Accessibility form"
},
vitals: {
title: "Vitals",
subtitle: "Analytics",
text: "Visualizations based on the data collected from the Vital form"
}
}

Expand Down

0 comments on commit 036606d

Please sign in to comment.