mirror of https://github.com/sgoudham/carbon.git
Implement PWA functionality (#455)
* implement PWA functionality * disable tweet button when offline * just remove tweet button insteadmain
parent
95f0a27111
commit
f018c454bf
@ -1,3 +1,4 @@
|
||||
const withCSS = require('@zeit/next-css')
|
||||
/* Without CSS Modules, with PostCSS */
|
||||
module.exports = withCSS()
|
||||
const withOffline = require('next-offline')
|
||||
|
||||
module.exports = withOffline(withCSS())
|
||||
|
@ -0,0 +1,18 @@
|
||||
{
|
||||
"name": "Carbon",
|
||||
"short_name": "Carbon",
|
||||
"background_color": "#121212",
|
||||
"theme_color": "#121212",
|
||||
"description": "Carbon is the easiest way to create and share beautiful images of your source code.",
|
||||
"display": "standalone",
|
||||
"start_url": "/",
|
||||
"icons": [{
|
||||
"src": "/static/brand/icon.png",
|
||||
"type": "image/png",
|
||||
"sizes": "448x448"
|
||||
}, {
|
||||
"src": "/static/brand/logo-square.png",
|
||||
"type": "image/png",
|
||||
"sizes": "1024x1024"
|
||||
}]
|
||||
}
|
Loading…
Reference in New Issue