-
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
28 changed files
with
667 additions
and
374 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,30 @@ | ||
import React from 'react'; | ||
import PropTypes from 'prop-types'; | ||
|
||
import Seo from './Seo'; | ||
import NavHeader from './NavHeader'; | ||
import Footer from './Footer'; | ||
|
||
export default function Layout({ | ||
children, | ||
pageTitle = '', | ||
children, | ||
pageTitle = '', | ||
}) { | ||
return ( | ||
<div className="container"> | ||
<Seo pageTitle={pageTitle} /> | ||
<NavHeader /> | ||
<div className="main-content"> | ||
{children} | ||
return ( | ||
<div className="container"> | ||
<Seo pageTitle={pageTitle} /> | ||
<NavHeader /> | ||
<div className="main-content"> | ||
{children} | ||
</div> | ||
<Footer /> | ||
</div> | ||
<Footer /> | ||
</div> | ||
) | ||
} | ||
); | ||
} | ||
|
||
Layout.propTypes = { | ||
children: PropTypes.oneOfType([ | ||
PropTypes.arrayOf(PropTypes.node), | ||
PropTypes.node | ||
]), | ||
pageTitle: PropTypes.string, | ||
}; |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,12 @@ | ||
import React from 'react'; | ||
|
||
const Pin = () => ( | ||
<svg height="18" viewBox="0 0 21 21" width="18" xmlns="http://www.w3.org/2000/svg" class="mr-1"> | ||
<g fill="none" fill-rule="evenodd" stroke="#6B7280" stroke-linecap="round" stroke-linejoin="round" transform="translate(4 2)"> | ||
<svg height="18" viewBox="0 0 21 21" width="18" xmlns="http://www.w3.org/2000/svg" className="mr-1"> | ||
<g fill="none" fillRule="evenodd" stroke="#6B7280" strokeLinecap="round" strokeLinejoin="round" transform="translate(4 2)"> | ||
<path d="m6.5 16.5407715c4-4.4500928 6-7.78586659 6-10.00732153 0-3.33218241-2.6862915-6.03344997-6-6.03344997s-6 2.70126756-6 6.03344997c0 2.22145494 2 5.55722873 6 10.00732153z"></path> | ||
<circle cx="6.5" cy="6.5" r="2.5"></circle> | ||
</g> | ||
</svg> | ||
) | ||
); | ||
|
||
export default Pin; |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,22 @@ | ||
import Head from 'next/head' | ||
import React from 'react'; | ||
import Head from 'next/head'; | ||
import PropTypes from 'prop-types'; | ||
|
||
export default function SEO({ pageTitle }) { | ||
return ( | ||
<Head> | ||
<title>{`${pageTitle} | Vaccinate MA`}</title> | ||
<meta charSet="utf-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<meta name="description" content="A site to help Massachusetts residents find a vaccine" /> | ||
<meta name="author" content="MA Volunteers" /> | ||
<link rel="shortcut icon" type="image/x-icon" href="ma_logo.png" /> | ||
<meta property="og:title" content="Helping Massachusetts residents get vaccinated" /> | ||
<meta property="og:image" content="ma_logo.png"/> | ||
</Head> | ||
) | ||
return ( | ||
<Head> | ||
<title>{`${pageTitle} | Vaccinate MA`}</title> | ||
<meta charSet="utf-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<meta name="description" content="A site to help Massachusetts residents find a vaccine" /> | ||
<meta name="author" content="MA Volunteers" /> | ||
<link rel="shortcut icon" type="image/x-icon" href="ma_logo.png" /> | ||
<meta property="og:title" content="Helping Massachusetts residents get vaccinated" /> | ||
<meta property="og:image" content="ma_logo.png"/> | ||
</Head> | ||
); | ||
} | ||
|
||
SEO.propTypes = { | ||
pageTitle: PropTypes.string, | ||
}; |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,37 @@ | ||
import Pin from "./Pin" | ||
import React from 'react'; | ||
import PropType from 'prop-types'; | ||
|
||
import Pin from './Pin'; | ||
|
||
const Site = ({data}) => ( | ||
<li className="list-group-item"> | ||
<h4>{data.locationName}</h4> | ||
<div> | ||
<div className="site_address mb-2 flex flex-row items-center"> | ||
<Pin /> | ||
<a id="site_address_1" className="underline" href={"https://maps.google.com/?q=" + data.address} target="_blank">{data.address}</a> | ||
</div> | ||
<h4>{data.locationName}</h4> | ||
<div> | ||
<div id="latest_report_1">Latest report: {data.lastUpdated}</div> | ||
<dt>Details</dt> | ||
<dd id="details_1">{data.populationsServed}</dd> | ||
<dt>Availability</dt> | ||
<dd id="latest_info_1">{data.vaccineAvailability}</dd> | ||
<dt>Book Now</dt> | ||
<dd id="book_1">{data.bookAppointmentInformation}</dd> | ||
<div className="site_address mb-2 flex flex-row items-center"> | ||
<Pin /> | ||
<a id="site_address_1" className="underline" href={'https://maps.google.com/?q=' + data.address} target="_blank" rel="noreferrer">{data.address}</a> | ||
</div> | ||
<div> | ||
<div id="latest_report_1">Latest report: {data.lastUpdated}</div> | ||
<dt>Details</dt> | ||
<dd id="details_1">{data.populationsServed}</dd> | ||
<dt>Availability</dt> | ||
<dd id="latest_info_1">{data.vaccineAvailability}</dd> | ||
<dt>Book Now</dt> | ||
<dd id="book_1">{data.bookAppointmentInformation}</dd> | ||
</div> | ||
</div> | ||
</div> | ||
</li> | ||
); | ||
|
||
export default Site; | ||
|
||
Site.propTypes = { | ||
data: { | ||
address: PropType.string, | ||
lastUpdated: PropType.string, | ||
populationsServed: PropType.string, | ||
vaccineAvailability: PropType.string, | ||
bookAppointmentInformation: PropType.string, | ||
}, | ||
}; |
Oops, something went wrong.