Skip to content

Commit

Permalink
Added PWA manifest file
Browse files Browse the repository at this point in the history
  • Loading branch information
shreyas208 committed Mar 2, 2018
1 parent 0a6cee7 commit 8ab610f
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ with the current date and the next changes should go under a **[Next]** header.
* Add changelog. ([@nwalters512](https://github.com/nwalters512) in [#34](https://github.com/illinois/queue/pull/34))
* Add Travis and Prettier support. ([@nwalters512](https://github.com/nwalters512) in [#37](https://github.com/illinois/queue/pull/37))
* Allow course staff to see netids next to student name ([@genevievehelsel](https://github.com/genevievehelsel) in [#32](https://github.com/illinois/queue/pull/32))
* Add web manifest for "Add to Home Screen" on Android. ([@shreyas208](https://github.com/shreyas208) in [#24](https://github.com/illinois/queue/pull/29))

## 27 February 2018

Expand Down
2 changes: 2 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,7 @@ export default class MyDocument extends Document {
integrity="sha384-Zug+QiDoJOrZ5t4lssLdxGhVrurbmBWopoEl+M6BdEfwnCJZtKxi1KgxUyJq13dy"
crossOrigin="anonymous"
/>
<link rel="stylesheet" href="{manifestPath}" />
<style>{FontAwesome.dom.css()}</style>
<title>CS@Illinois Queues</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": "CS@Illinois Queues",
"short_name": "Queues",
"display": "standalone",
"background_color": "#343a40",
"icons": [{
"src": "notif_icon.png",
"sizes": "128x128",
"type": "image/png"
}]
}

0 comments on commit 8ab610f

Please sign in to comment.