1
0
mirror of https://github.com/kremalicious/portfolio.git synced 2024-12-22 17:23:22 +01:00

new favicon script

This commit is contained in:
Matthias Kretschmann 2022-11-16 19:04:06 +00:00
parent 7814e36b65
commit 4bed995812
Signed by: m
GPG Key ID: 606EEEF3C479A91F
19 changed files with 428 additions and 194 deletions

4
.gitignore vendored
View File

@ -37,4 +37,6 @@ yarn-error.log*
.swc .swc
coverage coverage
public/matomo.js public/matomo.js
public/favicon/ # public/favicon*
# public/apple-touch-icon*
# public/manifest*

View File

@ -25,10 +25,12 @@
- [📇 Client-side vCard creation](#-client-side-vcard-creation) - [📇 Client-side vCard creation](#-client-side-vcard-creation)
- [💎 Importing SVG assets](#-importing-svg-assets) - [💎 Importing SVG assets](#-importing-svg-assets)
- [🍬 Typekit component](#-typekit-component) - [🍬 Typekit component](#-typekit-component)
- [🤓 Scripts](#-scripts)
- [🎈 Add a new project](#-add-a-new-project)
- [🌄 Favicon generation](#-favicon-generation)
- [✨ Development](#-development) - [✨ Development](#-development)
- [🔮 Linting](#-linting) - [🔮 Linting](#-linting)
- [👩‍🔬 Testing](#-testing) - [👩‍🔬 Testing](#-testing)
- [🎈 Add a new project](#-add-a-new-project)
- [🚚 Deployment](#-deployment) - [🚚 Deployment](#-deployment)
- [🏛 Licenses](#-licenses) - [🏛 Licenses](#-licenses)
@ -124,6 +126,38 @@ If you want to know how, have a look at the respective component:
- [`src/components/Typekit/index.tsx`](src/components/Typekit/index.tsx) - [`src/components/Typekit/index.tsx`](src/components/Typekit/index.tsx)
## 🤓 Scripts
### 🎈 Add a new project
To add a new project, run the following command. This adds a new item to the top of the `projects.yml` file, creating the title & slug from the argument:
```bash
npm run new -- "Hello"
```
Then continue modifying the new entry in [`_content/projects.yml`](_content/projects.yml).
Finally, add as many images as needed with the file name format and put into `public/images/`:
```text
SLUG-01.png
SLUG-02.png
SLUG-03.png
...
```
### 🌄 Favicon generation
This generates all required favcion sizes from:
- `src/images/favicon-512.png`
- `src/images/favicon.svg`
```bash
npm run favicon
```
## ✨ Development ## ✨ Development
```bash ```bash
@ -165,25 +199,6 @@ npm test
Most test files live beside the respective component. Testing setup, fixtures, and mocks can be found in the `tests/` folder. Most test files live beside the respective component. Testing setup, fixtures, and mocks can be found in the `tests/` folder.
### 🎈 Add a new project
To add a new project, run the following command. This adds a new item to the top of the `projects.yml` file, creating the title & slug from the argument:
```bash
npm run new -- "Hello"
```
Then continue modifying the new entry in [`_content/projects.yml`](_content/projects.yml).
Finally, add as many images as needed with the file name format and put into `public/images/`:
```text
SLUG-01.png
SLUG-02.png
SLUG-03.png
...
```
## 🚚 Deployment ## 🚚 Deployment
Every branch or Pull Request is automatically deployed by [Vercel](https://vercel.com) with their GitHub integration, where the `main` branch is automatically aliased to `matthiaskretschmann.com`. A link to a preview deployment will appear under each Pull Request. Every branch or Pull Request is automatically deployed by [Vercel](https://vercel.com) with their GitHub integration, where the `main` branch is automatically aliased to `matthiaskretschmann.com`. A link to a preview deployment will appear under each Pull Request.

View File

@ -7,7 +7,7 @@
"available": "👔 Available for new projects. <a href=\"mailto:m@kretschmann.io\">Lets talk</a>!", "available": "👔 Available for new projects. <a href=\"mailto:m@kretschmann.io\">Lets talk</a>!",
"unavailable": "Not available for new projects." "unavailable": "Not available for new projects."
}, },
"gpg": "https://kretschmann.io/pub.gpg", "gpg": "/gpg.txt",
"addressbook": "/matthias-kretschmann.vcf", "addressbook": "/matthias-kretschmann.vcf",
"bugs": "https://github.com/kremalicious/portfolio/issues/new", "bugs": "https://github.com/kremalicious/portfolio/issues/new",
"matomoUrl": "https://analytics.kremalicious.com", "matomoUrl": "https://analytics.kremalicious.com",

View File

@ -23,7 +23,9 @@ const next = (phase, { defaultConfig }) => {
return typeof defaultConfig.webpack === 'function' return typeof defaultConfig.webpack === 'function'
? defaultConfig.webpack(config, options) ? defaultConfig.webpack(config, options)
: config : config
} },
// https://nextjs.org/docs/api-reference/next.config.js/react-strict-mode
reactStrictMode: true
} }
return nextConfig return nextConfig

57
package-lock.json generated
View File

@ -42,6 +42,7 @@
"prepend": "^1.0.2", "prepend": "^1.0.2",
"prettier": "^2.7.1", "prettier": "^2.7.1",
"sharp": "^0.31.2", "sharp": "^0.31.2",
"sharp-ico": "^0.1.5",
"slugify": "^1.6.5", "slugify": "^1.6.5",
"stylelint": "^14.14.1", "stylelint": "^14.14.1",
"stylelint-config-prettier": "^9.0.4", "stylelint-config-prettier": "^9.0.4",
@ -1933,6 +1934,12 @@
"integrity": "sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==", "integrity": "sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==",
"dev": true "dev": true
}, },
"node_modules/@canvas/image-data": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/@canvas/image-data/-/image-data-1.0.0.tgz",
"integrity": "sha512-BxOqI5LgsIQP1odU5KMwV9yoijleOPzHL18/YvNqF9KFSGF2K/DLlYAbDQsWqd/1nbaFuSkYD/191dpMtNh4vw==",
"dev": true
},
"node_modules/@cspotcode/source-map-support": { "node_modules/@cspotcode/source-map-support": {
"version": "0.8.1", "version": "0.8.1",
"resolved": "https://registry.npmjs.org/@cspotcode/source-map-support/-/source-map-support-0.8.1.tgz", "resolved": "https://registry.npmjs.org/@cspotcode/source-map-support/-/source-map-support-0.8.1.tgz",
@ -5008,6 +5015,33 @@
"integrity": "sha512-ic1yEvwT6GuvaYwBLLY6/aFFgjZdySKTE8en/fkU3QICTmRtgtSlFn0u0BXN06InZwtfCelR7j8LRiDI/02iGA==", "integrity": "sha512-ic1yEvwT6GuvaYwBLLY6/aFFgjZdySKTE8en/fkU3QICTmRtgtSlFn0u0BXN06InZwtfCelR7j8LRiDI/02iGA==",
"dev": true "dev": true
}, },
"node_modules/decode-bmp": {
"version": "0.2.1",
"resolved": "https://registry.npmjs.org/decode-bmp/-/decode-bmp-0.2.1.tgz",
"integrity": "sha512-NiOaGe+GN0KJqi2STf24hfMkFitDUaIoUU3eKvP/wAbLe8o6FuW5n/x7MHPR0HKvBokp6MQY/j7w8lewEeVCIA==",
"dev": true,
"dependencies": {
"@canvas/image-data": "^1.0.0",
"to-data-view": "^1.1.0"
},
"engines": {
"node": ">=8.6.0"
}
},
"node_modules/decode-ico": {
"version": "0.4.1",
"resolved": "https://registry.npmjs.org/decode-ico/-/decode-ico-0.4.1.tgz",
"integrity": "sha512-69NZfbKIzux1vBOd31al3XnMnH+2mqDhEgLdpygErm4d60N+UwA5Sq5WFjmEDQzumgB9fElojGwWG0vybVfFmA==",
"dev": true,
"dependencies": {
"@canvas/image-data": "^1.0.0",
"decode-bmp": "^0.2.0",
"to-data-view": "^1.1.0"
},
"engines": {
"node": ">=8.6"
}
},
"node_modules/decode-named-character-reference": { "node_modules/decode-named-character-reference": {
"version": "1.0.2", "version": "1.0.2",
"resolved": "https://registry.npmjs.org/decode-named-character-reference/-/decode-named-character-reference-1.0.2.tgz", "resolved": "https://registry.npmjs.org/decode-named-character-reference/-/decode-named-character-reference-1.0.2.tgz",
@ -6797,6 +6831,12 @@
"node": ">=10.17.0" "node": ">=10.17.0"
} }
}, },
"node_modules/ico-endec": {
"version": "0.1.6",
"resolved": "https://registry.npmjs.org/ico-endec/-/ico-endec-0.1.6.tgz",
"integrity": "sha512-ZdLU38ZoED3g1j3iEyzcQj+wAkY2xfWNkymszfJPoxucIUhK7NayQ+/C4Kv0nDFMIsbtbEHldv3V8PU494/ueQ==",
"dev": true
},
"node_modules/iconv-lite": { "node_modules/iconv-lite": {
"version": "0.6.3", "version": "0.6.3",
"resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz", "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz",
@ -11406,6 +11446,17 @@
"url": "https://opencollective.com/libvips" "url": "https://opencollective.com/libvips"
} }
}, },
"node_modules/sharp-ico": {
"version": "0.1.5",
"resolved": "https://registry.npmjs.org/sharp-ico/-/sharp-ico-0.1.5.tgz",
"integrity": "sha512-a3jODQl82NPp1d5OYb0wY+oFaPk7AvyxipIowCHk7pBsZCWgbe0yAkU2OOXdoH0ENyANhyOQbs9xkAiRHcF02Q==",
"dev": true,
"dependencies": {
"decode-ico": "*",
"ico-endec": "*",
"sharp": "*"
}
},
"node_modules/sharp/node_modules/semver": { "node_modules/sharp/node_modules/semver": {
"version": "7.3.8", "version": "7.3.8",
"resolved": "https://registry.npmjs.org/semver/-/semver-7.3.8.tgz", "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.8.tgz",
@ -12202,6 +12253,12 @@
"integrity": "sha512-3f0uOEAQwIqGuWW2MVzYg8fV/QNnc/IpuJNG837rLuczAaLVHslWHZQj4IGiEl5Hs3kkbhwL9Ab7Hrsmuj+Smw==", "integrity": "sha512-3f0uOEAQwIqGuWW2MVzYg8fV/QNnc/IpuJNG837rLuczAaLVHslWHZQj4IGiEl5Hs3kkbhwL9Ab7Hrsmuj+Smw==",
"dev": true "dev": true
}, },
"node_modules/to-data-view": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/to-data-view/-/to-data-view-1.1.0.tgz",
"integrity": "sha512-1eAdufMg6mwgmlojAx3QeMnzB/BTVp7Tbndi3U7ftcT2zCZadjxkkmLmd97zmaxWi+sgGcgWrokmpEoy0Dn0vQ==",
"dev": true
},
"node_modules/to-fast-properties": { "node_modules/to-fast-properties": {
"version": "2.0.0", "version": "2.0.0",
"resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz", "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz",

View File

@ -8,10 +8,10 @@
"author": "Matthias Kretschmann <m@kretschmann.io>", "author": "Matthias Kretschmann <m@kretschmann.io>",
"type": "module", "type": "module",
"scripts": { "scripts": {
"start": "npm run pregenerate && next", "start": "next",
"build": "npm run pregenerate && next build", "build": "next build",
"preview": "npm run build && next start", "preview": "npm run build && next start",
"export": "npm run pregenerate && next export", "export": "next export",
"typecheck": "tsc", "typecheck": "tsc",
"lint:js": "next lint", "lint:js": "next lint",
"lint:css": "stylelint ./src/**/*.css", "lint:css": "stylelint ./src/**/*.css",
@ -21,8 +21,7 @@
"test": "NODE_ENV=test npm run lint && npm run typecheck && npm run jest", "test": "NODE_ENV=test npm run lint && npm run typecheck && npm run jest",
"deploy:s3": "./scripts/deploy-s3.sh", "deploy:s3": "./scripts/deploy-s3.sh",
"new": "ts-node-esm ./scripts/new.ts", "new": "ts-node-esm ./scripts/new.ts",
"favicon": "ts-node-esm ./scripts/favicon.ts", "favicon": "ts-node-esm ./scripts/favicon.ts"
"pregenerate": "npm run favicon"
}, },
"dependencies": { "dependencies": {
"@giphy/js-fetch-api": "^4.4.0", "@giphy/js-fetch-api": "^4.4.0",

BIN
public/apple-touch-icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.6 KiB

BIN
public/favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

27
public/favicon.svg Normal file
View File

@ -0,0 +1,27 @@
<svg
xmlns="http://www.w3.org/2000/svg"
width="512"
height="512"
viewBox="0 0 512 512"
>
<style>
#background {
fill: #e7eef4;
}
#logomark {
fill: #6b7f88;
}
@media (prefers-color-scheme: dark) {
#background {
fill: #161a1b;
}
}
</style>
<g fill="none" fill-rule="evenodd">
<rect id="background" width="512" height="512" />
<path
id="logomark"
d="M397,91 L421,115 L114,421 L91,398 L397,91 Z M397,182 L421,206 L205,421 L182,398 L397,182 Z M307,91 L330,115 L114,330 L91,307 L307,91 Z"
/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 593 B

185
public/gpg.txt Normal file
View File

@ -0,0 +1,185 @@
-----BEGIN PGP PUBLIC KEY BLOCK-----
mQINBFJyh/gBEACg999mhPygxNQkVT8cJBblRyOoXgf3eiDO0q1xtVtjIOV8HWaa
dmrA9kphQ3aQp9giq205m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hWBRYWudY4+E3sTxt0Y
eqoZbLj/gXJjyGCkUFdeSGf2Aphk18IHeGPWLUf53K04cNI8l5slBST09qLtcNBX
/elmHv1FT64jmK+CuNM84Bu8ToWyRuKOruJtvtK5l+x7OtYfScyFOU/GF9nYvJkA
EQEAAYkCNgQYAQgAIBYhBJrA95Du12SgGDjIKb08Hz7deDH8BQJZLzeIAhsgAAoJ
EL08Hz7deDH8tzAP/35QC6N54f10DyP34yp5pzz2LH3IcQJkgvaGx7Ea6hkJCzwK
VKSjnffzYUvrhovis5pnmH3aWqPNf43JtPH2aZWRKuPyMmaggNC+SpMRIsKXKuJF
g2E7Dv8QZQtZZl8dFLYPLIOw26aJHTqBkQ7EeV7mgjMG2N36hlx+7c0ZJUOoL7oE
U996Zo4UqQt8DUqm+Cj9SSX1XIUgFogXFieFcWdfqN/pXiT43F42Sn7mNxW2P2pT
892P+vn931WrYKEzesEmMXD76moGYV7Ya4cTQdj5Dc73qAfF1FV/3fGnv8sMg2xC
c+tDFewzJWsTADj4ffcvCMWIH+P2qxKLUNfUGZu4dYMBVl5oL4LhXtOTlwGBBAhO
HA2tQli0viLL+GLyTZZal8Zw1/Js0N2wG99KqgtpFUR7VySamQ7lgPUQzsLL1qnG
XT6P+nr7TFtGZVteVRaY4pad2P176dXXzA08aR5h7AB8capuiIhua0OhwRVUEPq0
/ugHZ53ozbaf8Tx+kNwsjDlVvMhBAyQFBxMG5w7vl23IkyXpJbXXhT1Uq6Yrc1mf
p1e8M7ejfuVDd0T/A8xYnBhS4hebhBgNr/Y3xq7aMTVq/iTSGclW7seqq7PPSyX4
MT+jge4HlU0+RelVbY4ZzyfJTFslAyl0afJwRCmryBiktu+1GWTaFM4nHkuN
=DXwP
-----END PGP PUBLIC KEY BLOCK-----

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

View File

@ -0,0 +1 @@
{"name":"matthias kretschmann","shortName":"mk","icons":[{"src":"/manifest/favicon-192.png","type":"image/png","sizes":"192x192"},{"src":"/manifest/favicon-512.png","type":"image/png","sizes":"512x512"}]}

View File

@ -1,87 +1,83 @@
import { favicons, FaviconImage } from 'favicons'
import path from 'path' import path from 'path'
import fs from 'fs' import fs from 'fs'
import sharp from 'sharp'
import ico from 'sharp-ico'
const imagesDirectory = path.resolve(path.join(process.cwd(), 'src', 'images')) const imagesSourcePath = path.resolve(path.join(process.cwd(), 'src', 'images'))
const source = `${imagesDirectory}/favicon.png` const faviconSource = `${imagesSourcePath}/favicon-512.png`
const output = path.resolve(path.join(process.cwd(), 'public', 'favicon')) const faviconSourceSvg = `${imagesSourcePath}/favicon.svg`
const configuration = { const outputWebRoot = path.resolve(path.join(process.cwd(), 'public'))
path: '/favicon', // Path for overriding default icons path. `string` const outputManifest = path.resolve(
appName: 'matthias kretschmann', path.join(process.cwd(), 'public', 'manifest')
appShortName: 'mk', )
appDescription: null,
developerName: null, // All the sizes and meta we'll need
developerURL: null, // https://evilmartians.com/chronicles/how-to-favicon-in-2021-six-files-that-fit-most-needs
dir: 'auto', const sizes = [32, 180, 192, 512]
lang: 'en-US', const outputMeta = `
appleStatusBarStyle: 'black-translucent', // Style for Apple status bar: "black-translucent", "default", "black". `string` <link rel="icon" href="/favicon.ico" sizes="any">
display: 'minimal-ui', // Preferred display mode: "fullscreen", "standalone", "minimal-ui" or "browser". `string` <link rel="icon" href="/favicon.svg" type="image/svg+xml">
orientation: 'any', // Default orientation: "any", "natural", "portrait" or "landscape". `string` <link rel="apple-touch-icon" href="/apple-touch-icon.png">
scope: '/', // set of URLs that the browser considers within your app <link rel="manifest" href="/manifest/manifest.webmanifest">
start_url: '/?homescreen=1', `
background_color: '#e7eef4',
theme_color: '#e7eef4', function createManifest(iconsizes: number[]) {
preferRelatedApplications: false, const manifest = {
relatedApplications: undefined, name: 'matthias kretschmann',
version: '1.0', shortName: 'mk',
pixel_art: false, // Keeps pixels "sharp" when scaling up, for pixel art. Only supported in offline mode. icons: iconsizes.map((size) => ({
loadManifestWithCredentials: false, src: `/manifest/favicon-${size}.png`,
manifestMaskable: `${imagesDirectory}/logo.svg`, // Maskable source image(s) for manifest.json. "true" to use default source. More information at https://web.dev/maskable-icon/. `boolean`, `string`, `buffer` or array of `string` type: 'image/png',
icons: { sizes: `${size}x${size}`
android: true, }))
appleIcon: true,
appleStartup: false,
favicons: true,
windows: true,
yandex: false
} }
fs.writeFileSync(
`${outputManifest}/manifest.webmanifest`,
JSON.stringify(manifest)
)
} }
async function buildFavicons() { async function buildFavicons() {
try { try {
const response = await favicons(source, configuration) // Nuke all & create output folder first
const allFilesToWrite = response.images.concat(response.files as any) fs.rmSync(outputManifest, { recursive: true, force: true })
fs.rmSync(`${outputWebRoot}/apple-touch-icon.png`, { force: true })
fs.rmSync(`${outputWebRoot}/favicon.ico`, { force: true })
fs.mkdirSync(outputManifest, { recursive: true })
fs.rmSync(output, { recursive: true, force: true }) // copy over the svg, as it's handcrafted
fs.copyFileSync(faviconSourceSvg, `${outputWebRoot}/favicon.svg`)
allFilesToWrite.forEach((file) => { // generate all the rest
const { name, contents } = file await Promise.all(
const destination = `${output}/${name}` sizes.map(async (size) => {
let destination = `${outputManifest}/favicon-${size}.png`
if (size === 180) destination = `${outputWebRoot}/apple-touch-icon.png`
try { if (size === 32) {
fs.readFileSync(destination, 'utf8') await ico.sharpsToIco(
} catch (error) { [sharp(faviconSource)],
// if there is no file, get data and write a fresh file `${outputWebRoot}/favicon.ico`,
if (error.code === 'ENOENT') { { sizes: [32, 24, 16], resizeOptions: {} }
try { )
fs.mkdirSync(output, { recursive: true }) fs.rmSync(destination, { force: true })
fs.writeFileSync(destination, contents) } else {
} catch (error) { await sharp(faviconSource).resize(size, size).toFile(destination)
throw new Error("Couldn't write favicon file")
}
}
} }
}) })
const destinationHtml = `${output}/_meta.html`
try {
fs.readFileSync(destinationHtml, 'utf8')
} catch (error) {
// if there is no file, get data and write a fresh file
if (error.code === 'ENOENT') {
try {
fs.mkdirSync(output, { recursive: true })
fs.writeFileSync(
destinationHtml,
response.html.reverse().toString().replaceAll(',', '')
) )
} catch (error) {
throw new Error("Couldn't write favicon file") // write out manifest
} createManifest([192, 512])
}
} console.log(`
-----------------------------
Favicon generation complete!
-----------------------------
Add this to src/components/Meta/Favicon.tsx:
${outputMeta}
`)
} catch (error) { } catch (error) {
console.error(error.message) console.error(error.message)
} }

View File

@ -3,100 +3,14 @@ import Head from 'next/head'
const MetaFavicons = () => { const MetaFavicons = () => {
return ( return (
<Head> <Head>
<meta name="msapplication-config" content="/favicon/browserconfig.xml" /> {/*
<meta Stop the favicon madness
name="msapplication-TileImage" https://evilmartians.com/chronicles/how-to-favicon-in-2021-six-files-that-fit-most-needs
content="/favicon/mstile-144x144.png" */}
/> <link rel="icon" href="/favicon.ico" sizes="any" />
<meta name="apple-mobile-web-app-title" content="mk" /> <link rel="icon" href="/favicon.svg" type="image/svg+xml" />
<meta <link rel="apple-touch-icon" href="/apple-touch-icon.png" />
name="apple-mobile-web-app-status-bar-style" <link rel="manifest" href="/favicon/manifest.webmanifest"></link>
content="black-translucent"
/>
<meta name="apple-mobile-web-app-capable" content="yes" />
<link
rel="apple-touch-icon"
sizes="1024x1024"
href="/favicon/apple-touch-icon-1024x1024.png"
/>
<link
rel="apple-touch-icon"
sizes="180x180"
href="/favicon/apple-touch-icon-180x180.png"
/>
<link
rel="apple-touch-icon"
sizes="167x167"
href="/favicon/apple-touch-icon-167x167.png"
/>
<link
rel="apple-touch-icon"
sizes="152x152"
href="/favicon/apple-touch-icon-152x152.png"
/>
<link
rel="apple-touch-icon"
sizes="144x144"
href="/favicon/apple-touch-icon-144x144.png"
/>
<link
rel="apple-touch-icon"
sizes="120x120"
href="/favicon/apple-touch-icon-120x120.png"
/>
<link
rel="apple-touch-icon"
sizes="114x114"
href="/favicon/apple-touch-icon-114x114.png"
/>
<link
rel="apple-touch-icon"
sizes="76x76"
href="/favicon/apple-touch-icon-76x76.png"
/>
<link
rel="apple-touch-icon"
sizes="72x72"
href="/favicon/apple-touch-icon-72x72.png"
/>
<link
rel="apple-touch-icon"
sizes="60x60"
href="/favicon/apple-touch-icon-60x60.png"
/>
<link
rel="apple-touch-icon"
sizes="57x57"
href="/favicon/apple-touch-icon-57x57.png"
/>
<meta name="application-name" content="matthias kretschmann" />
<meta name="mobile-web-app-capable" content="yes" />
<link rel="manifest" href="/favicon/manifest.webmanifest" />
<link
rel="icon"
type="image/png"
sizes="48x48"
href="/favicon/favicon-48x48.png"
/>
<link
rel="icon"
type="image/png"
sizes="32x32"
href="/favicon/favicon-32x32.png"
/>
<link
rel="icon"
type="image/png"
sizes="16x16"
href="/favicon/favicon-16x16.png"
/>
{/* <link
rel="mask-icon"
href="/favicon/safari-pinned-tab.svg"
color="#000000"
/> */}
<link rel="shortcut icon" href="/favicon/favicon.ico" />
</Head> </Head>
) )
} }

BIN
src/images/favicon-512.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.9 KiB

27
src/images/favicon.svg Normal file
View File

@ -0,0 +1,27 @@
<svg
xmlns="http://www.w3.org/2000/svg"
width="512"
height="512"
viewBox="0 0 512 512"
>
<style>
#background {
fill: #e7eef4;
}
#logomark {
fill: #6b7f88;
}
@media (prefers-color-scheme: dark) {
#background {
fill: #161a1b;
}
}
</style>
<g fill="none" fill-rule="evenodd">
<rect id="background" width="512" height="512" />
<path
id="logomark"
d="M397,91 L421,115 L114,421 L91,398 L397,91 Z M397,182 L421,206 L205,421 L182,398 L397,182 Z M307,91 L330,115 L114,330 L91,307 L307,91 Z"
/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 593 B

View File

@ -1,3 +1,12 @@
<svg xmlns="http://www.w3.org/2000/svg" width="146" height="146" viewBox="0 0 146 146"> <svg
<path d="M307.015625,177.53125 L317.421875,188.078125 L182.421875,322.515625 L172.4375,312.390625 L307.015625,177.53125 Z M307.015625,217.328125 L317.421875,227.875 L222.21875,322.515625 L212.234375,312.390625 L307.015625,217.328125 Z M267.359375,177.53125 L277.625,188.078125 L182.421875,282.71875 L172.4375,272.59375 L267.359375,177.53125 Z" transform="translate(-172 -177)"/> xmlns="http://www.w3.org/2000/svg"
width="330"
height="330"
viewBox="0 0 330 330"
>
<path
fill-rule="evenodd"
d="M408,226 L432,250 L125,556 L102,533 L408,226 Z M408,317 L432,341 L216,556 L193,533 L408,317 Z M318,226 L341,250 L125,465 L102,442 L318,226 Z"
transform="translate(-102 -226)"
/>
</svg> </svg>

Before

Width:  |  Height:  |  Size: 476 B

After

Width:  |  Height:  |  Size: 327 B