Skip to content

Commit

Permalink
feat: enhance favicon support (#313)
Browse files Browse the repository at this point in the history
  • Loading branch information
flovogt authored Jan 3, 2023
1 parent ac709c7 commit 97ef387
Show file tree
Hide file tree
Showing 13 changed files with 47 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ CNAME
# Ignore files by extension
/**/*.svg
/**/*.png
/**/*.ico
/**/*.md
/**/*.webmanifest

# Ignore files by folders
/src/resources/font-awesome/**
Expand Down
9 changes: 8 additions & 1 deletion src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,14 @@
/>
<meta name="twitter:image" content="https://bestofui5.org/img/B_UI5_V.png" />

<link type="image/x-icon" rel="icon" href="resources/img/favicon.png" />
<link rel="apple-touch-icon" sizes="180x180" href="resources/favicon/apple-touch-icon.png" />
<link rel="icon" type="image/png" sizes="32x32" href="resources/favicon/favicon-32x32.png" />
<link rel="icon" type="image/png" sizes="16x16" href="resources/favicon/favicon-16x16.png" />
<link rel="manifest" href="resources/favicon/site.webmanifest" />
<link rel="mask-icon" href="resources/favicon/safari-pinned-tab.svg" color="#5bbad5" />
<meta name="msapplication-TileColor" content="#ffffff" />
<meta name="theme-color" content="#ffffff" />

<title>Best of UI5</title>

<style>
Expand Down
9 changes: 8 additions & 1 deletion src/mockServer.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,14 @@
/>
<meta name="twitter:image" content="https://bestofui5.org/img/B_UI5_V.png" />

<link type="image/x-icon" rel="icon" href="resources/img/favicon.png" />
<link rel="apple-touch-icon" sizes="180x180" href="resources/favicon/apple-touch-icon.png" />
<link rel="icon" type="image/png" sizes="32x32" href="resources/favicon/favicon-32x32.png" />
<link rel="icon" type="image/png" sizes="16x16" href="resources/favicon/favicon-16x16.png" />
<link rel="manifest" href="resources/favicon/site.webmanifest" />
<link rel="mask-icon" href="resources/favicon/safari-pinned-tab.svg" color="#5bbad5" />
<meta name="msapplication-TileColor" content="#ffffff" />
<meta name="theme-color" content="#ffffff" />

<title>Best of UI5</title>

<style>
Expand Down
Binary file added src/resources/favicon/android-chrome-192x192.png
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 src/resources/favicon/android-chrome-512x512.png
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 src/resources/favicon/apple-touch-icon.png
Loading
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 src/resources/favicon/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>#ffffff</TileColor>
</tile>
</msapplication>
</browserconfig>
Binary file added src/resources/favicon/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.
File renamed without changes
Binary file added src/resources/favicon/favicon.ico
Binary file not shown.
Binary file added src/resources/favicon/mstile-150x150.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/resources/favicon/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 src/resources/favicon/site.webmanifest
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"name": "Best Of UI5 - Website",
"short_name": "Best Of UI5",
"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"
}

0 comments on commit 97ef387

Please sign in to comment.