Skip to content

Commit 24bf7cc

Browse files
Add fallback for safari
1 parent f361aca commit 24bf7cc

20 files changed

Lines changed: 333 additions & 4690 deletions

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
id: deployment
4343
uses: actions/upload-pages-artifact@v3
4444
with:
45-
path: webapp/dist/
45+
path: dist/
4646
# Deployment job
4747
deploy:
4848
environment:

.prettierrc

Whitespace-only changes.

.puppeteerrc.cjs

Lines changed: 0 additions & 9 deletions
This file was deleted.

downloaded-image.png

-56.6 KB
Binary file not shown.

index.html

Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
<!doctype html>
2+
<html lang="en-US">
3+
<head>
4+
<title>Pokemon Fonts Generator</title>
5+
<meta name="viewport" content="width=device-width,initial-scale=1" />
6+
<meta charset="utf-8" />
7+
<base href="." />
8+
<link rel="stylesheet" href="./src/style.css" />
9+
<link href="assets/favicon.ico" rel="icon" type="image/x-icon" />
10+
<script src="./src/script.js" type="module" defer></script>
11+
<link rel="preconnect" href="https://fonts.googleapis.com" />
12+
<link rel="preconnect" href="https://fonts.gstatic.com" />
13+
<link
14+
href="https://fonts.googleapis.com/css2?family=PT+Serif&display=swap"
15+
rel="stylesheet"
16+
crossorigin="anonymous"
17+
/>
18+
</head>
19+
<body>
20+
<main>
21+
<h1>Pokemon Fonts Generator</h1>
22+
<article>
23+
<details>
24+
<summary>Why make yet another fonts generator?</summary>
25+
<hr />
26+
<p>
27+
There already are a bunch of these
28+
<em>PoKéMoN fonts generators</em>. So why need another one?
29+
</p>
30+
<p>
31+
They are just not good enough. Compare the
32+
<strong>original</strong> fonts:
33+
</p>
34+
<img src="assets/original-fonts.png" alt="Orignal pokemon fonts" />
35+
<p>
36+
Rest of the website just apply borders to the ttf font file. They
37+
don't apply the overlapping effect.
38+
</p>
39+
<p>That tiny detail is bothersome</p>
40+
</details>
41+
42+
<p>
43+
<strong>Note:</strong>
44+
As of May, there seems to be some issue with Safari 18 version that
45+
causes the generated image to render without the blue stroke border. I
46+
am working on a fix, but for now, please use a non-apple device, or a
47+
different browser if you're in EU.
48+
</p>
49+
<p>
50+
This issue is a likely a bug in webkit, and thus, using a different
51+
browser on an apple device, except EU will not work
52+
</p>
53+
</article>
54+
<hr />
55+
<section>
56+
<div class="form">
57+
<label for="text">Text: </label><br />
58+
<label class="hint"
59+
>Enclose a word in **...** for the tilt effect. Space is not
60+
allowed</label
61+
>
62+
<input type="text" id="text" />
63+
<br />
64+
<label for="size">Font size:</label> <br />
65+
<div class="range">
66+
<input
67+
type="range"
68+
min="12"
69+
max="48"
70+
step="2"
71+
id="size"
72+
value="24"
73+
/>
74+
<output for="size"></output>
75+
</div>
76+
<button type="submit">Generate</button>
77+
</div>
78+
<div id="note" class="form"></div>
79+
<div class="font-space"></div>
80+
</section>
81+
</main>
82+
</body>
83+
</html>

netlify.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
[build]
22
command = "npm run build"
33
functions = "netlify/functions"
4-
publish = "webapp/dist"
4+
publish = "dist"

0 commit comments

Comments
 (0)