Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added PWA manifest file #29

Merged
merged 12 commits into from
Mar 3, 2018
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ with the current date and the next changes should go under a **[Next]** header.
* Allow course staff to see netids next to student name. ([@genevievehelsel](https://github.com/genevievehelsel) in [#32](https://github.com/illinois/queue/pull/32))
* Automatically redirect to a current queue or course page if visiting a closed queue. ([@Muakasan](https://github.com/Muakasan) in [#40](https://github.com/illinois/queue/pull/40))
* Rebrand from CS@Illinois Queues to Queues@Illinois. ([@genevievehelsel](https://github.com/genevievehelsel) in [#42](https://github.com/illinois/queue/pull/42))
* Add web manifest for "Add to Home Screen" on Android. ([@shreyas208](https://github.com/shreyas208) in [#24](https://github.com/illinois/queue/pull/29))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this says #24 but should be #29 ?


## 27 February 2018

Expand Down
6 changes: 6 additions & 0 deletions pages/_document.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export default class MyDocument extends Document {
__html: `window.BASE_URL = '${baseUrl}';`,
}
const faviconPath = `${baseUrl}/static/favicon.ico`
const manifestPath = `${baseUrl}/static/manifest.json`
return (
<html lang="en">
<Head>
Expand All @@ -39,6 +40,11 @@ export default class MyDocument extends Document {
integrity="sha384-Zug+QiDoJOrZ5t4lssLdxGhVrurbmBWopoEl+M6BdEfwnCJZtKxi1KgxUyJq13dy"
crossOrigin="anonymous"
/>
<link
rel="manifest"
crossOrigin="use-credentials"
href={manifestPath}
/>
<style>{FontAwesome.dom.css()}</style>
<title>Queues@Illinois</title>
<link rel="icon" href={faviconPath} type="image/png" />
Expand Down
11 changes: 11 additions & 0 deletions static/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"name": "Queues@Illinois",
"short_name": "Queues",
"display": "standalone",
"background_color": "#fff",
"icons": [{
"src": "notif_icon.png",
"sizes": "128x128",
"type": "image/png"
}]
}