Skip to content

Commit

Permalink
Merge pull request #98 from unizen-io/bugfix/favicon
Browse files Browse the repository at this point in the history
Bugfix/favicon
  • Loading branch information
anton-karlovskiy committed Mar 21, 2021
2 parents 55d3127 + 2d79f36 commit 8b8a892
Show file tree
Hide file tree
Showing 18 changed files with 88 additions and 16 deletions.
Binary file removed assets/favicon.ico
Binary file not shown.
14 changes: 4 additions & 10 deletions nuxt.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,7 @@ export default {
// Auto import components (https://go.nuxtjs.dev/config-components)
components: true,

// Modules for dev and build (recommended) (https://go.nuxtjs.dev/config-modules)
buildModules: [
// https://go.nuxtjs.dev/eslint
['@nuxtjs/dotenv', { filename: '.env' }],
'@nuxtjs/eslint-module',
['@nuxtjs/fontawesome', {
Expand All @@ -54,19 +52,15 @@ export default {
'@nuxtjs/style-resources',
'@nuxtjs/svg',
'@nuxtjs/tailwindcss',
'@nuxt/image'
'@nuxt/image',
'@nuxtjs/pwa',
'@nuxtjs/google-analytics'
],

// Modules (https://go.nuxtjs.dev/config-modules)
modules: [
// https://go.nuxtjs.dev/bootstrap
'@nuxtjs/sitemap',
'@nuxtjs/google-analytics',
'bootstrap-vue/nuxt',
// https://go.nuxtjs.dev/axios
'@nuxtjs/axios',
// https://go.nuxtjs.dev/pwa
'@nuxtjs/pwa'
'@nuxtjs/axios'
],

// Axios module configuration (https://go.nuxtjs.dev/config-axios)
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@
"dependencies": {
"@fortawesome/free-regular-svg-icons": "^5.15.1",
"@nuxtjs/axios": "^5.12.2",
"@nuxtjs/google-analytics": "^2.4.0",
"@nuxtjs/pwa": "^3.0.2",
"@nuxtjs/sitemap": "^2.4.0",
"bootstrap-vue": "^2.17.3",
"chart.js": "^2.9.4",
Expand All @@ -37,6 +35,8 @@
"@nuxtjs/eslint-config": "^3.1.0",
"@nuxtjs/eslint-module": "^2.0.0",
"@nuxtjs/fontawesome": "^1.1.2",
"@nuxtjs/google-analytics": "^2.4.0",
"@nuxtjs/pwa": "^3.3.5",
"@nuxtjs/style-resources": "^1.0.0",
"@nuxtjs/svg": "^0.1.12",
"@nuxtjs/tailwindcss": "^4.0.1",
Expand Down
Binary file added static/android-chrome-192x192.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/android-chrome-512x512.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/apple-touch-icon.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions static/browserconfig.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<browserconfig>
<msapplication>
<tile>
<square150x150logo src="/mstile-150x150.png"/>
<TileColor>#00aba9</TileColor>
</tile>
</msapplication>
</browserconfig>
Binary file added static/favicon-16x16.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/favicon-32x32.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified static/favicon.ico
Binary file not shown.
Binary file added static/icon-16x16.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/icon-32x32.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified static/icon.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/mstile-150x150.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
41 changes: 41 additions & 0 deletions static/safari-pinned-tab.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 19 additions & 0 deletions static/site.webmanifest
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"name": "",
"short_name": "",
"icons": [
{
"src": "/android-chrome-192x192.png",
"sizes": "192x192",
"type": "image/png"
},
{
"src": "/android-chrome-512x512.png",
"sizes": "512x512",
"type": "image/png"
}
],
"theme_color": "#ffffff",
"background_color": "#ffffff",
"display": "standalone"
}
15 changes: 12 additions & 3 deletions utils/helpers/seo.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ const createSEOTags = (data, baseTags) => {
title: data.title,
// meta tags
meta: [
{ charset: data.charset || 'utf-8' },
{ name: 'viewport', content: data.viewport || 'width=device-width, initial-scale=1' },
// default meta tag description
{ hid: 'description', name: 'description', content: data.description },
// open graph tags (used by reddit, facebook, etc.)
Expand All @@ -30,7 +28,18 @@ const createSEOTags = (data, baseTags) => {
{ hid: 'twitter:domain', property: 'twitter:domain', content: 'unizen.io' },
{ hid: 'twitter:url', property: 'twitter:url', content: `https://unizen.io/${(data.url || ' ')}` },
{ hid: 'twitter:title', name: 'twitter:title', content: data.title },
{ hid: 'twitter:description', name: 'twitter:description', content: data.description }
{ hid: 'twitter:description', name: 'twitter:description', content: data.description },
// additional meta tags for icon themes
{ hid: 'msapplication-TileColor', name: 'msapplication-TileColor', content: '#00aba9' },
{ hid: 'theme-color', name: 'theme-color', content: '#ffffff' }
],
link: [
// icons for favicon, pwa etc.
{ hid: 'apple-touch-icon', rel: 'apple-touch-icon', sizes: '180x180', href: '/apple-touch-icon.png' },
{ hid: 'icon32', rel: 'icon', type: 'image/png', sizes: '32x32', href: '/icon-32x32.png' },
{ hid: 'icon16', rel: 'icon', type: 'image/png', sizes: '16x16', href: '/icon-16x16.png' },
{ hid: 'manifest', rel: 'manifest', href: '/site.webmanifest' },
{ hid: 'mask-icon', rel: 'mask-icon', href: '/safari-pinned-tab.svg', color: '#5bbbab5' }
]
}

Expand Down
2 changes: 1 addition & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1416,7 +1416,7 @@
dependencies:
http-proxy-middleware "^1.0.6"

"@nuxtjs/pwa@^3.0.2":
"@nuxtjs/pwa@^3.3.5":
version "3.3.5"
resolved "https://registry.yarnpkg.com/@nuxtjs/pwa/-/pwa-3.3.5.tgz#db7c905536ebe8a464a347b6ae3215810642c044"
integrity sha512-8tTmW8DBspWxlJwTimOHTkwfkwPpL9wIcGmy75Gcmin+c9YtX2Ehxmhgt/TLFOC9XsLAqojqynw3/Agr/9OE1w==
Expand Down

0 comments on commit 8b8a892

Please sign in to comment.