diff --git a/src/Assets/android-chrome-192x192.png b/src/Assets/android-chrome-192x192.png new file mode 100644 index 0000000..ee2c3fa Binary files /dev/null and b/src/Assets/android-chrome-192x192.png differ diff --git a/src/Assets/android-chrome-512x512.png b/src/Assets/android-chrome-512x512.png new file mode 100644 index 0000000..2549f02 Binary files /dev/null and b/src/Assets/android-chrome-512x512.png differ diff --git a/src/Assets/apple-touch-icon.png b/src/Assets/apple-touch-icon.png new file mode 100644 index 0000000..4a07ce4 Binary files /dev/null and b/src/Assets/apple-touch-icon.png differ diff --git a/src/Assets/favicon-16x16.png b/src/Assets/favicon-16x16.png new file mode 100644 index 0000000..373f935 Binary files /dev/null and b/src/Assets/favicon-16x16.png differ diff --git a/src/Assets/favicon-32x32.png b/src/Assets/favicon-32x32.png new file mode 100644 index 0000000..5842ad2 Binary files /dev/null and b/src/Assets/favicon-32x32.png differ diff --git a/src/Assets/favicon.ico b/src/Assets/favicon.ico new file mode 100644 index 0000000..883bd53 Binary files /dev/null and b/src/Assets/favicon.ico differ diff --git a/src/Assets/safari-pinned-tab.svg b/src/Assets/safari-pinned-tab.svg new file mode 100644 index 0000000..73eb35f --- /dev/null +++ b/src/Assets/safari-pinned-tab.svg @@ -0,0 +1,38 @@ + + + + +Created by potrace 1.11, written by Peter Selinger 2001-2013 + + + + + diff --git a/src/Assets/site.webmanifest b/src/Assets/site.webmanifest new file mode 100644 index 0000000..8d243e0 --- /dev/null +++ b/src/Assets/site.webmanifest @@ -0,0 +1,19 @@ +{ + "name": "nicco.io", + "short_name": "nicco.io", + "icons": [ + { + "src": "/android-chrome-192x192.png", + "sizes": "192x192", + "type": "image/png" + }, + { + "src": "/android-chrome-512x512.png", + "sizes": "512x512", + "type": "image/png" + } + ], + "theme_color": "#16b4e9", + "background_color": "#16b4e9", + "display": "standalone" +} diff --git a/src/index.html b/src/index.html index 7ccc3ab..dbdd65c 100755 --- a/src/index.html +++ b/src/index.html @@ -5,6 +5,15 @@ Niccolò Borgioli 👋 + + + + + + + + + diff --git a/src/index.tsx b/src/index.tsx index 834172c..8e2872a 100755 --- a/src/index.tsx +++ b/src/index.tsx @@ -1,7 +1,17 @@ import React from 'react' import ReactDOM from 'react-dom' -import App from './App' +import App from './App' import './index.styl' +// Favicons +import './Assets/favicon.ico' +import './Assets/favicon-16x16.png' +import './Assets/favicon-32x32.png' +import './Assets/apple-touch-icon.png' +import './Assets/site.webmanifest' +import './Assets/android-chrome-192x192.png' +import './Assets/android-chrome-512x512.png' +import './Assets/safari-pinned-tab.svg' + ReactDOM.render(, document.getElementById('root')) \ No newline at end of file diff --git a/webpack.config.js b/webpack.config.js index 1d822ae..94ba215 100755 --- a/webpack.config.js +++ b/webpack.config.js @@ -52,12 +52,12 @@ module.exports = { test: /\.styl$/, use: [MiniCssExtractPlugin.loader, 'css-loader', 'stylus-loader'], }, { - test: /\.(jpg|png|gif|svg|woff2?|ttf|eot|svg|otf)$/, + test: /\.(jpg|png|gif|svg|woff2?|ttf|eot|svg|otf|ico|webmanifest)$/, use: [{ loader: 'file-loader', options: { name: '[name].[ext]', - outputPath: './assets/', + outputPath: './', }, }], }]