Skip to content

Commit

Permalink
First cut PWA
Browse files Browse the repository at this point in the history
  • Loading branch information
datajohnson committed May 29, 2024
1 parent c154c65 commit a0d5cf4
Show file tree
Hide file tree
Showing 6 changed files with 77 additions and 19 deletions.
9 changes: 5 additions & 4 deletions web/index.html
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Courier+Prime:wght@400;700&display=swap" rel="stylesheet">
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link href="https://fonts.googleapis.com/css2?family=Courier+Prime:wght@400;700&display=swap" rel="stylesheet" />
<link rel="manifest" href="/manifest.json" />
<meta charset="UTF-8" />
<link rel="icon" type="image/ico" href="/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>YG Safety</title>
<title>YG Safety Portal</title>
</head>
<body>
<div id="app"></div>
Expand Down
36 changes: 36 additions & 0 deletions web/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"short_name": "YG Safety Portal",
"name": "YG Safety Portal",
"icons": [
{
"src": "/icon-512.png",
"type": "image/png",
"sizes": "512x512"
},
{
"src": "/icon-192.png",
"type": "image/png",
"sizes": "192x192"
}
],
"id": "/?source=pwa",
"start_url": "/?source=pwa",
"background_color": "#3367D6",
"display": "standalone",
"scope": "/",
"theme_color": "#F2A900",
"shortcuts": [
{
"name": "Report an incident",
"short_name": "Report",
"description": "Report an incident",
"url": "/report-an-incident",
"icons": [{ "src": "/icon-192.png", "sizes": "192x192" }]
}
],
"description": "Submit and view hazards and incidents",
"screenshots": [
{ "form_factor": "narrow", "sizes": "512x512", "type": "image/png", "src": "/icon-512.png" },
{ "form_factor": "wide", "sizes": "512x512", "type": "image/png", "src": "/icon-512.png" }
]
}
30 changes: 15 additions & 15 deletions web/package-lock.json

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

Binary file added web/public/icon-192.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 web/public/icon-512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 21 additions & 0 deletions web/public/icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit a0d5cf4

Please sign in to comment.