Skip to content
This repository was archived by the owner on Jun 19, 2020. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"react-bootstrap": "^1.0.0-beta.17",
"react-dom": "^16.13.0",
"react-leaflet": "^2.6.3",
"react-router-bootstrap": "^0.25.0",
"react-router-dom": "^5.1.2",
"react-scripts": "3.4.0"
},
Expand Down
Binary file added public/android-icon-144x144.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/android-icon-192x192.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/android-icon-36x36.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/android-icon-48x48.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/android-icon-72x72.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/android-icon-96x96.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/apple-icon-114x114.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/apple-icon-120x120.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/apple-icon-144x144.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/apple-icon-152x152.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/apple-icon-180x180.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/apple-icon-57x57.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/apple-icon-60x60.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/apple-icon-72x72.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/apple-icon-76x76.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/apple-icon-precomposed.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/apple-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions public/browserconfig.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<?xml version="1.0" encoding="utf-8"?>
<browserconfig><msapplication><tile><square70x70logo src="/ms-icon-70x70.png"/><square150x150logo src="/ms-icon-150x150.png"/><square310x310logo src="/ms-icon-310x310.png"/><TileColor>#ffffff</TileColor></tile></msapplication></browserconfig>
Binary file added public/favicon-16x16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/favicon-32x32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/favicon-96x96.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/favicon.ico
Binary file not shown.
29 changes: 24 additions & 5 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,29 @@
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<meta
name="description"
content="Web site created using create-react-app"
/>
<meta name="description" content="A collection of easy to navigate resources regarding the COVID-19 (Corona Virus) pandemic for the Greater Baltimore, Maryland area.">

<meta name="title" content="Code for Baltimore - COVID-19 Response">
<meta name="keywords" content="COVID-19, Corona Virus, Baltimore, Maryland, civic, help, resource">
<meta name="robots" content="index, follow">
<meta name="language" content="English">
<link rel="apple-touch-icon" sizes="57x57" href="/apple-icon-57x57.png">
<link rel="apple-touch-icon" sizes="60x60" href="/apple-icon-60x60.png">
<link rel="apple-touch-icon" sizes="72x72" href="/apple-icon-72x72.png">
<link rel="apple-touch-icon" sizes="76x76" href="/apple-icon-76x76.png">
<link rel="apple-touch-icon" sizes="114x114" href="/apple-icon-114x114.png">
<link rel="apple-touch-icon" sizes="120x120" href="/apple-icon-120x120.png">
<link rel="apple-touch-icon" sizes="144x144" href="/apple-icon-144x144.png">
<link rel="apple-touch-icon" sizes="152x152" href="/apple-icon-152x152.png">
<link rel="apple-touch-icon" sizes="180x180" href="/apple-icon-180x180.png">
<link rel="icon" type="image/png" sizes="192x192" href="/android-icon-192x192.png">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="96x96" href="/favicon-96x96.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
<meta name="msapplication-TileColor" content="#ffffff">
<meta name="msapplication-TileImage" content="/ms-icon-144x144.png">
<meta name="theme-color" content="#ffffff">


<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />

Expand All @@ -18,7 +37,7 @@
crossorigin=""
/>

<title>React App</title>
<title>COVID-19 Response App</title>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
Expand Down
40 changes: 39 additions & 1 deletion public/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,43 @@
"start_url": ".",
"display": "standalone",
"theme_color": "#000000",
"background_color": "#ffffff"
"background_color": "#ffffff",
"icons": [
{
"src": "\/android-icon-36x36.png",
"sizes": "36x36",
"type": "image\/png",
"density": "0.75"
},
{
"src": "\/android-icon-48x48.png",
"sizes": "48x48",
"type": "image\/png",
"density": "1.0"
},
{
"src": "\/android-icon-72x72.png",
"sizes": "72x72",
"type": "image\/png",
"density": "1.5"
},
{
"src": "\/android-icon-96x96.png",
"sizes": "96x96",
"type": "image\/png",
"density": "2.0"
},
{
"src": "\/android-icon-144x144.png",
"sizes": "144x144",
"type": "image\/png",
"density": "3.0"
},
{
"src": "\/android-icon-192x192.png",
"sizes": "192x192",
"type": "image\/png",
"density": "4.0"
}
]
}
Binary file added public/ms-icon-144x144.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/ms-icon-150x150.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/ms-icon-310x310.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/ms-icon-70x70.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 7 additions & 6 deletions src/App.css
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
html, body, #root { min-height: 100vh; }

.App {
height: 100vh;
background-color: rgb(245, 243, 243);
min-height: 100vh;
}

/* Container for each page */
.Content-Container {
.flex {
display: flex;
flex-direction: column;
justify-content: center;
height: 100%;
width: 100%;
background-color: rgb(245, 243, 243);
align-items: center;
}

/* Bootstrap NavBar additional CSS */
Expand Down
36 changes: 25 additions & 11 deletions src/App.js
Original file line number Diff line number Diff line change
@@ -1,26 +1,40 @@
import React from 'react';
import { BrowserRouter, Route } from 'react-router-dom';
import { Route, Switch } from 'react-router-dom';
import './App.css';
import NaviBar from './Components/NavBar';
import Home from './Components/Home';
import About from './Components/About';
import Resources from './Components/Resources';
import MapComponent from './Components/MapComponent';
import SomePage from './Components/SomePage';
import 'bootstrap/dist/css/bootstrap.min.css';
import FoodCategory from './Components/FoodNavigation';
import FoodDistribution from './Components/FoodCategory/FoodDistribution';
import RestarauntInfo from './Components/FoodCategory/RestaurantInfo';
import CovidCategory from './Components/CovidNavigation';
import TestingCenters from './Components/CovidCategory/TestingCenters';
import SomeNavigation from './Components/SomeNavigation';

function App() {
return (
<BrowserRouter>
<div className="App">
<NaviBar />
<Route exact path="/" component={Home} />
<Route path="/about" component={About} />
<Route path="/resources" component={Resources} />
<Route path="/map" component={MapComponent} />
<Route path="/somepage" component={SomePage} />
<Switch>
<Route exact path="/" component={Home} />
<Route exact path="/about" component={About} />
<Route exact path="/food-resources" component={FoodCategory} />
<Route exact path="/covid-resources" component={CovidCategory} />
<Route exact path="/some-resources" component={SomeNavigation} />
</Switch>

{/* FoodNavigation */}
<Switch>
<Route exact path="/food-resources/food-distribution" component={FoodDistribution} />
<Route exact path="/food-resources/restaurant-info" component={RestarauntInfo} />
</Switch>
{/* CovidNavigation */}
<Switch>
<Route exact path="/covid-resources/testing-centers" component={TestingCenters} />
</Switch>
{/* SomeNavigation */}
</div>
</BrowserRouter>
);
}

Expand Down
5 changes: 3 additions & 2 deletions src/Components/About.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import React, { Component } from 'react';
import { Container } from 'react-bootstrap';

class About extends Component {
render() {
return (
<div className='Content-Container'>
<Container className='flex'>
<h1>I'm also page.</h1>
</div>
</Container>
);
}
}
Expand Down
36 changes: 36 additions & 0 deletions src/Components/CategoryCard.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
import React, { Component } from 'react';
import { Card, Button } from 'react-bootstrap';
import { LinkContainer } from 'react-router-bootstrap';

class CategoryCard extends Component {
render() {
const { heading, title, description, link } = this.props;
return (
<Card
className="text-center"
border='secondary'
style={{
width: '18rem',
margin: '2rem'
}}>
<Card.Header
style={{fontSize:'20px'}}>
{heading}
</Card.Header>
<Card.Body className='d-flex flex-column'>
<Card.Title>{title}</Card.Title>
<Card.Text>
{description}
</Card.Text>
{/* The LinkContainer is what actually needs CSS applied to be moved/placed at the bottom of the card.
The LinkContainer wraps the bootstrap button to make it function as a Link from React-Router. */}
<LinkContainer to={link} className='mt-auto'>
<Button>Go!</Button>
</LinkContainer>
</Card.Body>
</Card>
);
}
}

export default CategoryCard;
14 changes: 14 additions & 0 deletions src/Components/CovidCategory/TestingCenters.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import React, { Component } from 'react';
import { Container } from 'react-bootstrap';

class TestingCenters extends Component {
render() {
return (
<Container className='flex'>
<h1>Information about testing center locations.</h1>
</Container>
);
}
}

export default TestingCenters;
29 changes: 29 additions & 0 deletions src/Components/CovidNavigation.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
import React, { Component } from 'react';
import CategoryCard from './CategoryCard';
import { Container, CardColumns } from 'react-bootstrap';

class CovidCategory extends Component {
render() {
return (
<Container className='flex'>
<CardColumns style={{
display: 'flex',
flexDirection: 'row',
flexWrap: 'wrap',
justifyContent: 'center',

}}>
<CategoryCard
heading='COVID-19 Testing Sites'
title='Places where COVID-19 Testing is done'
description='Placeholder text: List of locations and facilities that perform testing for COVID-19'
link='/covid-resources/testing-centers'
/>

</CardColumns>
</Container>
);
}
}

export default CovidCategory;
14 changes: 14 additions & 0 deletions src/Components/FoodCategory/FoodDistribution.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import React, { Component } from 'react';
import { Container } from 'react-bootstrap';

class FoodDistribution extends Component {
render() {
return (
<Container className='flex'>
<h1>Information about food distribution sites.</h1>
</Container>
);
}
}

export default FoodDistribution;
14 changes: 14 additions & 0 deletions src/Components/FoodCategory/RestaurantInfo.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import React, { Component } from 'react';
import { Container } from 'react-bootstrap';

class RestarauntInfo extends Component {
render() {
return (
<Container className='flex'>
<h1>Information about restaurants.</h1>
</Container>
);
}
}

export default RestarauntInfo;
38 changes: 38 additions & 0 deletions src/Components/FoodNavigation.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
import React, { Component } from 'react';
import CategoryCard from './CategoryCard';
import { Container, CardColumns } from 'react-bootstrap';

class FoodNavigation extends Component {
render() {
return (
<Container className='flex'>
<CardColumns style={{
display: 'flex',
flexDirection: 'row',
flexWrap: 'wrap',
justifyContent: 'center',

}}>
<CategoryCard
heading='Food Distribution Sites'
title='Places where food is distributed.'
description='Placeholder text: Need to find somewhere for food distribution? Here is a list and location
of places where food is being distributed.'
link='/food-resources/food-distribution'
/>

<CategoryCard
heading='Restaurants'
title='Restaraunts offering services.'
description='Placeholder text: List of restaurants that are still operating,
including offering take out and/or delivery.'
link='/food-resources/restaurant-info'
/>

</CardColumns>
</Container>
);
}
}

export default FoodNavigation;
Loading