diff --git a/build.py b/build.py index 63156ea..dd76936 100644 --- a/build.py +++ b/build.py @@ -3,6 +3,7 @@ import errno import os from html import escape from hashlib import sha256 +from shutil import copyfile import yaml from rcssmin import cssmin @@ -12,6 +13,7 @@ SRC_DIR = os.path.join(DIR, 'src') DIST_DIR = os.path.join(DIR, 'dist') ASSETS_SRC = os.path.join(SRC_DIR, 'assets') ASSETS_DIST = os.path.join(DIST_DIR, 'assets') +ICONS_SRC = os.path.join(SRC_DIR, 'icons') def build_assets(): @@ -35,6 +37,11 @@ def build_assets(): return name_map +def build_icons(): + for icon in os.listdir(ICONS_SRC): + copyfile(os.path.join(ICONS_SRC, icon), os.path.join(DIST_DIR, icon)) + + def build_links(links): output = [] for section in links['sections']: @@ -96,6 +103,7 @@ def main(): links = yaml.safe_load(f) name_map = build_assets() + build_icons() build_index(name_map, links) build_redirects(links) diff --git a/icon.svg b/icon.svg new file mode 100644 index 0000000..e640b57 --- /dev/null +++ b/icon.svg @@ -0,0 +1,137 @@ + + + + + + + + + + image/svg+xml + + + + + + + + Based on https://commons.wikimedia.org/wiki/File:Simpleicons_Interface_link-symbol.svg + +Licensed under CC-BY 3.0 Unported. + + + + + + + + + + + + + + + + + + UW + + diff --git a/src/icons/android-chrome-192x192.png b/src/icons/android-chrome-192x192.png new file mode 100644 index 0000000..c7e2801 Binary files /dev/null and b/src/icons/android-chrome-192x192.png differ diff --git a/src/icons/android-chrome-512x512.png b/src/icons/android-chrome-512x512.png new file mode 100644 index 0000000..25d9328 Binary files /dev/null and b/src/icons/android-chrome-512x512.png differ diff --git a/src/icons/apple-touch-icon.png b/src/icons/apple-touch-icon.png new file mode 100644 index 0000000..da1083c Binary files /dev/null and b/src/icons/apple-touch-icon.png differ diff --git a/src/icons/browserconfig.xml b/src/icons/browserconfig.xml new file mode 100644 index 0000000..f9c2e67 --- /dev/null +++ b/src/icons/browserconfig.xml @@ -0,0 +1,9 @@ + + + + + + #2b5797 + + + diff --git a/src/icons/favicon-16x16.png b/src/icons/favicon-16x16.png new file mode 100644 index 0000000..a374ed3 Binary files /dev/null and b/src/icons/favicon-16x16.png differ diff --git a/src/icons/favicon-32x32.png b/src/icons/favicon-32x32.png new file mode 100644 index 0000000..aa248cd Binary files /dev/null and b/src/icons/favicon-32x32.png differ diff --git a/src/icons/favicon.ico b/src/icons/favicon.ico new file mode 100644 index 0000000..92a55bc Binary files /dev/null and b/src/icons/favicon.ico differ diff --git a/src/icons/mstile-150x150.png b/src/icons/mstile-150x150.png new file mode 100644 index 0000000..64fb727 Binary files /dev/null and b/src/icons/mstile-150x150.png differ diff --git a/src/icons/og-image.png b/src/icons/og-image.png new file mode 100644 index 0000000..c86f8eb Binary files /dev/null and b/src/icons/og-image.png differ diff --git a/src/icons/safari-pinned-tab.svg b/src/icons/safari-pinned-tab.svg new file mode 100644 index 0000000..a95db52 --- /dev/null +++ b/src/icons/safari-pinned-tab.svg @@ -0,0 +1,74 @@ + + + + +Created by potrace 1.11, written by Peter Selinger 2001-2013 + + + + + diff --git a/src/icons/site.webmanifest b/src/icons/site.webmanifest new file mode 100644 index 0000000..52c857b --- /dev/null +++ b/src/icons/site.webmanifest @@ -0,0 +1,19 @@ +{ + "name": "uwat.cf", + "short_name": "uwat.cf", + "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" +} diff --git a/src/index.html b/src/index.html index 8c06e33..3706f67 100644 --- a/src/index.html +++ b/src/index.html @@ -5,6 +5,19 @@ Useful UWaterloo Links + + + + + + + + + + + + +