Skip to content

Commit 6544c0a

Browse files
committed
Add app icon
* Reorganize files -- no longer using github pages * Add OTF font asset to repo * Add deployment script
1 parent 3f179ef commit 6544c0a

23 files changed

+112
-14
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
.*.swp
2+
3+
.env*

android-chrome-192x192.png

7.31 KB
Loading

android-chrome-512x512.png

25.7 KB
Loading

apple-touch-icon.png

6.33 KB
Loading

components.js assets/components.js

File renamed without changes.

assets/fonts/xkcd.otf

112 KB
Binary file not shown.

lib.js assets/lib.js

File renamed without changes.

main.js assets/main.js

File renamed without changes.
File renamed without changes.

styles.css assets/styles.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ input#import_json {
431431

432432
@font-face {
433433
font-family: 'xkcd';
434-
src: url('https://www.geckox.mx/assets/fonts/xkcd.otf');
434+
src: url('fonts/xkcd.otf');
435435
font-weight: normal;
436436
font-style: normal;
437437
}

bin/deploy

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
#!/bin/sh
2+
# Get a list of files by running:
3+
#
4+
# $ ls *.{html,ico,png,xml,svg,webmanifest} >> bin/deploy
5+
6+
if [ -z "$DEPLOY_HOST" -o -z "$DEPLOY_PATH" ]; then
7+
echo 1>&2 "ERROR: deploy host or path not set"
8+
exit 1
9+
fi
10+
11+
scp -r \
12+
android-chrome-192x192.png \
13+
android-chrome-512x512.png \
14+
apple-touch-icon.png \
15+
assets/ \
16+
browserconfig.xml \
17+
favicon-16x16.png \
18+
favicon-32x32.png \
19+
favicon.ico \
20+
index.html \
21+
mstile-144x144.png \
22+
mstile-150x150.png \
23+
mstile-310x150.png \
24+
mstile-310x310.png \
25+
mstile-70x70.png \
26+
safari-pinned-tab.svg \
27+
site.webmanifest \
28+
styles.css \
29+
$DEPLOY_HOST:"$DEPLOY_PATH"

browserconfig.xml

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<browserconfig>
3+
<msapplication>
4+
<tile>
5+
<square150x150logo src="/mstile-150x150.png"/>
6+
<TileColor>#353535</TileColor>
7+
</tile>
8+
</msapplication>
9+
</browserconfig>

favicon-16x16.png

823 Bytes
Loading

favicon-32x32.png

1.18 KB
Loading

favicon.ico

14.7 KB
Binary file not shown.

index.html

+20-13
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,20 @@
66
<meta http-equiv="X-UA-Compatible" content="IE=edge">
77
<title>My List</title>
88

9-
<link rel=stylesheet href=styles.css>
10-
<script src=lib.js></script>
11-
<script src=components.js></script>
12-
<script src=main.js></script>
13-
<script src=sortable.min.js></script>
9+
<link rel=stylesheet href=assets/styles.css>
10+
<script src=assets/lib.js></script>
11+
<script src=assets/components.js></script>
12+
<script src=assets/main.js></script>
13+
<script src=assets/sortable.min.js></script>
14+
15+
<!-- favicon generated with https://realfavicongenerator.net/ -->
16+
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
17+
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
18+
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
19+
<link rel="manifest" href="/site.webmanifest">
20+
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5">
21+
<meta name="msapplication-TileColor" content="#353535">
22+
<meta name="theme-color" content="#353535">
1423
</head>
1524
<body>
1625
<header>
@@ -139,20 +148,18 @@ <h4>JSON</h4>
139148
<p class="mb-0">
140149
Written with curiosity by
141150
<a href="https://juankman94.github.io">juankman94</a>.
142-
<br>
143-
<span class="x-small mt-0">
144-
Check the link, there may be another privacy-focused web app there.
145-
</span>
146151
</p>
147152

148153
<p class="italic mt-0">
149-
<a href="https://github.com/ipython/xkcd-font">
150-
xkcd font
151-
</a>,
154+
<a href="https://github.com/ipython/xkcd-font">xkcd font</a>,
152155
<a class="mx-2" href="https://creativecommons.org/licenses/by-sa/3.0/deed.en">
153156
CC by,
154157
</a>
155-
ipython/xkcd-font team
158+
ipython/xkcd-font team;
159+
160+
<a class="ml-2" href="https://commons.wikimedia.org/wiki/File:Afkrydsningsboks_(_check_box_)_1.svg">checkbox</a>,
161+
<a class="mx-2" href="http://creativecommons.org/licenses/sa/1.0/">CC SA 1.0,</a>
162+
via Wikimedia Commons
156163
</p>
157164
</footer>
158165

mstile-144x144.png

5.21 KB
Loading

mstile-150x150.png

4.96 KB
Loading

mstile-310x150.png

5.42 KB
Loading

mstile-310x310.png

12.4 KB
Loading

mstile-70x70.png

3.43 KB
Loading

safari-pinned-tab.svg

+32
Loading

site.webmanifest

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"name": "",
3+
"short_name": "",
4+
"icons": [
5+
{
6+
"src": "/android-chrome-192x192.png",
7+
"sizes": "192x192",
8+
"type": "image/png"
9+
},
10+
{
11+
"src": "/android-chrome-512x512.png",
12+
"sizes": "512x512",
13+
"type": "image/png"
14+
}
15+
],
16+
"theme_color": "#353535",
17+
"background_color": "#353535",
18+
"display": "standalone"
19+
}

0 commit comments

Comments
 (0)