Skip to content

Commit b19e3a1

Browse files
committed
made the site a PWA
1 parent a180cb5 commit b19e3a1

File tree

10 files changed

+5615
-46
lines changed

10 files changed

+5615
-46
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
4444

4545
### Added
4646

47+
- Made the site a Progressive Web App (PWA)
4748
- About page content (first section)
4849

4950
### Fixed

next.config.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
const withPWA = require('next-pwa');
2+
3+
module.exports = withPWA({
4+
pwa: {
5+
dest: 'public',
6+
register: true,
7+
skipWaiting: true,
8+
},
9+
});

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"dependencies": {
1414
"html-entities": "^2.3.2",
1515
"next": "^12.0.10",
16+
"next-pwa": "^5.5.4",
1617
"react": "17.0.1",
1718
"react-dom": "17.0.1",
1819
"react-google-recaptcha": "^2.1.0",

public/favicon/maskable192.png

5.12 KB
Loading

public/favicon/site.webmanifest

Lines changed: 23 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,27 @@
11
{
2-
"name": "Web Dev Path",
2+
"name": "web-dev-path",
33
"short_name": "Web Dev Path",
4+
"start_url": "https://webdevpath.co/",
45
"icons": [
5-
{
6-
"src": "/android-chrome-192x192.png",
7-
"sizes": "192x192",
8-
"type": "image/png"
9-
},
10-
{
11-
"src": "/android-chrome-512x512.png",
12-
"sizes": "512x512",
13-
"type": "image/png"
14-
}
6+
{
7+
"src": "/favicon/android-chrome-192x192.png",
8+
"sizes": "192x192",
9+
"type": "image/png"
10+
},
11+
{
12+
"src": "/favicon/android-chrome-512x512.png",
13+
"sizes": "512x512",
14+
"type": "image/png"
15+
},
16+
{
17+
"src": "/favicon/maskable192.png",
18+
"sizes": "192x192",
19+
"type": "image/png",
20+
"purpose": "maskable"
21+
}
1522
],
16-
"theme_color": "#ffffff",
17-
"background_color": "#ffffff",
18-
"display": "standalone"
19-
}
23+
"theme_color": "#FFFFFF",
24+
"background_color": "#FFFFFF",
25+
"display": "standalone",
26+
"orientation": "portrait"
27+
}

public/sw.js

Lines changed: 114 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/sw.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)