Skip to content

Commit

Permalink
Generate and add proper favicons
Browse files Browse the repository at this point in the history
Use https://realfavicongenerator.net to support iOS, Android, Windows, MacOS, and standard desktop browsers
  • Loading branch information
krishnans2006 committed Mar 31, 2024
1 parent 7013f72 commit 92c3258
Show file tree
Hide file tree
Showing 13 changed files with 134 additions and 1 deletion.
2 changes: 1 addition & 1 deletion tin/static/img/favicon.ico
Binary file added tin/static/img/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 tin/static/img/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 tin/static/img/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 tin/static/img/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="/static/img/favicon/mstile-150x150.png"/>
<TileColor>#4fab4f</TileColor>
</tile>
</msapplication>
</browserconfig>
Binary file added tin/static/img/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.
Binary file added tin/static/img/favicon/favicon-32x32.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 tin/static/img/favicon/favicon.ico
Binary file not shown.
Binary file added tin/static/img/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.
75 changes: 75 additions & 0 deletions tin/static/img/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 tin/static/img/favicon/site.webmanifest
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"name": "Turn-In",
"short_name": "Turn-In",
"icons": [
{
"src": "/static/img/favicon/android-chrome-192x192.png",
"sizes": "192x192",
"type": "image/png"
},
{
"src": "/static/img/favicon/android-chrome-512x512.png",
"sizes": "512x512",
"type": "image/png"
}
],
"theme_color": "#4fab4f",
"background_color": "#4fab4f",
"display": "standalone"
}
15 changes: 15 additions & 0 deletions tin/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,26 @@
<head>
<meta charset="utf-8">
<title>{% block title %}Turn-In{% endblock %}</title>

<!-- Favicon Tags (https://realfavicongenerator.net/) -->
<link rel="apple-touch-icon" sizes="180x180" href="{% static 'img/favicon/apple-touch-icon.png' %}">
<link rel="icon" type="image/png" sizes="32x32" href="{% static 'img/favicon/favicon-32x32.png' %}">
<link rel="icon" type="image/png" sizes="16x16" href="{% static 'img/favicon/favicon-16x16.png' %}">
<link rel="manifest" href="{% static 'img/favicon/site.webmanifest' %}">
<link rel="mask-icon" href="{% static 'img/favicon/safari-pinned-tab.svg' %}" color="#4fab4f">
<link rel="shortcut icon" href="{% static 'img/favicon/favicon.ico' %}">
<meta name="msapplication-TileColor" content="#4fab4f">
<meta name="msapplication-config" content="{% static 'img/favicon/browserconfig.xml' %}">
<meta name="theme-color" content="#4fab4f">

{% comment "Old Favicon Tags" %}
<link rel="icon" href="{% static 'img/logos/logo-mark-black.svg' %}" type="image/svg+xml" sizes="any">
<link rel="icon" href="{% static 'img/logos/logo-mark-black-50.png' %}" type="image/png" sizes="50x50">
<link rel="icon" href="{% static 'img/logos/logo-mark-black-25.png' %}" type="image/png" sizes="25x25">
<link rel="icon" href="{% static 'img/logos/logo-mark-black-50.ico' %}" type="image/x-icon" sizes="50x50">
<link rel="icon" href="{% static 'img/logos/logo-mark-black-25.ico' %}" type="image/x-icon" sizes="25x25">
{% endcomment %}

<link rel="stylesheet" href="{% static 'css/base.css' %}">
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet"/>
<link rel="stylesheet" type="text/css"
Expand Down
15 changes: 15 additions & 0 deletions tin/templates/base_wo_head.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,26 @@
<head>
<meta charset="utf-8">
<title>{% block title %}Turn-In{% endblock %}</title>

<!-- Favicon Tags (https://realfavicongenerator.net/) -->
<link rel="apple-touch-icon" sizes="180x180" href="{% static 'img/favicon/apple-touch-icon.png' %}">
<link rel="icon" type="image/png" sizes="32x32" href="{% static 'img/favicon/favicon-32x32.png' %}">
<link rel="icon" type="image/png" sizes="16x16" href="{% static 'img/favicon/favicon-16x16.png' %}">
<link rel="manifest" href="{% static 'img/favicon/site.webmanifest' %}">
<link rel="mask-icon" href="{% static 'img/favicon/safari-pinned-tab.svg' %}" color="#4fab4f">
<link rel="shortcut icon" href="{% static 'img/favicon/favicon.ico' %}">
<meta name="msapplication-TileColor" content="#4fab4f">
<meta name="msapplication-config" content="{% static 'img/favicon/browserconfig.xml' %}">
<meta name="theme-color" content="#4fab4f">

{% comment "Old Favicon Tags" %}
<link rel="icon" href="{% static 'img/logos/logo-mark-black.svg' %}" type="image/svg+xml" sizes="any">
<link rel="icon" href="{% static 'img/logos/logo-mark-black-50.png' %}" type="image/png" sizes="50x50">
<link rel="icon" href="{% static 'img/logos/logo-mark-black-25.png' %}" type="image/png" sizes="25x25">
<link rel="icon" href="{% static 'img/logos/logo-mark-black-50.ico' %}" type="image/x-icon" sizes="50x50">
<link rel="icon" href="{% static 'img/logos/logo-mark-black-25.ico' %}" type="image/x-icon" sizes="25x25">
{% endcomment %}

<link rel="stylesheet" href="{% static 'css/base.css' %}">
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet"/>
<link rel="stylesheet" type="text/css"
Expand Down

0 comments on commit 92c3258

Please sign in to comment.