Skip to content

Commit

Permalink
feat: Add favicons, webmanifest, browserconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
wottpal committed Jan 25, 2023
1 parent 02e6913 commit ae7bf9c
Show file tree
Hide file tree
Showing 11 changed files with 93 additions and 1 deletion.
9 changes: 9 additions & 0 deletions packages/frontend/public/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="/favicons/mstile-150x150.png"/>
<TileColor>#7e5da8</TileColor>
</tile>
</msapplication>
</browserconfig>
Binary file added packages/frontend/public/favicon.ico
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added packages/frontend/public/favicons/favicon-16x16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
53 changes: 53 additions & 0 deletions packages/frontend/public/favicons/safari-pinned-tab.svg
Loading
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 packages/frontend/public/site.webmanifest
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"name": "ink!athon",
"short_name": "ink!athon",
"icons": [
{
"src": "/favicons/android-chrome-192x192.png",
"sizes": "192x192",
"type": "image/png"
},
{
"src": "/favicons/android-chrome-384x384.png",
"sizes": "384x384",
"type": "image/png"
}
],
"theme_color": "#ffffff",
"background_color": "#ffffff",
"display": "standalone"
}
13 changes: 12 additions & 1 deletion packages/frontend/src/pages/_document.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,19 @@ export default class MyDocument extends Document<NewDocumentInitialProps> {
dangerouslySetInnerHTML={{ __html: this.props.css }}
/>

{/* TODO Fonts, Manifest, and Favicons */}
{/* TODO Manifest & Favicons */}
{/* TIP: Generate it at https://realfavicongenerator.net/ */}
<link rel="apple-touch-icon" sizes="180x180" href="/favicons/apple-touch-icon.png" />
<link rel="icon" type="image/png" sizes="32x32" href="/favicons/favicon-32x32.png" />
<link rel="icon" type="image/png" sizes="16x16" href="/favicons/favicon-16x16.png" />
<link rel="manifest" href="/site.webmanifest" />
<link rel="mask-icon" href="/favicons/safari-pinned-tab.svg" color="#7e5da8" />
<link rel="shortcut icon" href="/favicon.ico" />
<meta name="msapplication-TileColor" content="#7e5da8" />
<meta name="msapplication-config" content="/browserconfig.xml" />
<meta name="theme-color" content="#000000" />

{/* TODO Import Fonts */}
{/* TIP: Generate locally served font-face rules & subsets at https://transfonter.org/ */}
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossOrigin="anonymous" />
Expand Down

0 comments on commit ae7bf9c

Please sign in to comment.