-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
247 lines (227 loc) · 7.08 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>emoji-route</title>
<script src="https://cdn.jsdelivr.net/gh/ArnavK-09/add-github-badge@main/dist/main.js"></script>
<script>
addGithubBadge("ArnavK-09");
</script>
<style>
body {
max-width: 100vw;
overflow-x: hidden !important;
font-family: Arial, sans-serif;
line-height: 1.6;
cursor:
url("https://emoji-route.deno.dev/svg/🎈") 16 16,
auto;
margin: 0;
padding: 0;
background-color: #f4f4f4;
}
h1,
h2 {
text-align: center;
}
p {
text-align: center;
padding: 10px;
max-width: 80%;
display: block;
margin: auto;
}
pre {
background-color: #2d2d2d;
color: white;
padding: 10px;
border-radius: 5px;
overflow-x: auto;
}
.hero-image {
width: 100%;
}
.content {
margin: 20px;
max-width: 900px;
margin-left: auto;
margin-right: auto;
}
.features,
.routes,
.stack {
margin-bottom: 30px;
}
.feature-item,
.route-item,
.stack-item {
margin-bottom: 10px;
}
table {
width: 100%;
margin-top: 20px;
border-collapse: collapse;
}
table td {
text-align: center;
padding: 10px;
}
</style>
</head>
<body>
<h1><a href="//github.com/ArnavK-09/emoji-route">🎈 emoji-route 🎈</a></h1>
<h2>The Ultimate Route for Generating Emoji Images</h2>
<p>
<img
class="hero-image"
alt="hero"
src="https://emoji-route.deno.dev/gif/🎈"
/>
</p>
<p>
<strong>emoji-route</strong> allows users to request images of emojis in
multiple formats including PNG, SVG, and GIF. This is perfect for
applications that need dynamic emoji handling or custom emoji display in
different formats.
</p>
<div class="content">
<h3>🌟 Features</h3>
<ul class="features">
<li class="feature-item">
<strong>SVG Emoji Generation</strong> - Generates an SVG image
containing the requested emoji.
</li>
<li class="feature-item">
<strong>PNG Emoji Generation</strong> - Creates a PNG image using the
canvas module with custom fonts for emojis.
</li>
<li class="feature-item">
<strong>GIF Emoji Fetching</strong> - Fetches and serves emoji GIFs
directly from a reliable source.
</li>
<li class="feature-item">
<strong>Random Format Response</strong> - Allows users to get a random
emoji format (SVG, PNG, or GIF) with just one request.
</li>
<li class="feature-item">
<strong>Fallbacks for Missing Emojis</strong> - In case an emoji isn't
found, the app uses a default emoji (💩) to ensure smooth operation.
</li>
</ul>
<h3>🔄 Routes</h3>
<ul class="routes">
<li class="route-item">
<strong>/svg/:emoji</strong> - Generates an SVG image of the requested
emoji. Example: /svg/❤️
</li>
<li class="route-item">
<strong>/png/:emoji</strong> - Generates a PNG image of the requested
emoji. Example: /png/💻
</li>
<li class="route-item">
<strong>/gif/:emoji</strong> - Fetches the emoji GIF from a reliable
source. Example: /gif/😂
</li>
<li class="route-item">
<strong>/:emoji</strong> - Returns a random image format (SVG, PNG, or
GIF) for the requested emoji. Example: /😊
</li>
</ul>
<h3>🧑💻 Stack</h3>
<ul class="stack">
<li class="stack-item">
<strong>Hono</strong> - A minimal web framework for building APIs.
</li>
<li class="stack-item">
<strong>Deno</strong> - JavaScript and TypeScript runtime.
</li>
<li class="stack-item">
<strong>Canvas</strong> - For generating PNG images with custom fonts.
</li>
<li class="stack-item">
<strong>Emoji Regex</strong> - To detect and extract emojis from
strings.
</li>
<li class="stack-item">
<strong>NotoColorEmoji-Regular.ttf</strong> - Font for rendering
emojis.
</li>
</ul>
<h3>🛠 Installation</h3>
<p>You can add <strong>emoji-route</strong> with one command via:</p>
<pre><code>npm i</code></pre>
<h3>💻 Contributing</h3>
<p>
We welcome contributions to improve <strong>emoji-route</strong>! If you
have suggestions, bug fixes, or new feature ideas, follow these steps:
</p>
<ol>
<li>
<strong>Fork the Repository</strong> - Click the Fork button at the
top-right of the repo page.
</li>
<li>
<strong>Clone Your Fork</strong> - Clone the repo locally:
<pre><code>git clone https://github.com/ArnavK-09/emoji-route.git</code></pre>
</li>
<li>
<strong>Create a Branch</strong> - Create a new branch for your
changes:
<pre><code>git checkout -b your-feature-branch</code></pre>
</li>
<li>
<strong>Make Changes</strong> - Implement your changes (bug fixes,
features, etc.).
</li>
<li>
<strong>Commit and Push</strong> - Commit your changes and push the
branch:
<pre><code>git commit -m "feat(scope): description"</code></pre>
</li>
<li>
<strong>Open a Pull Request</strong> - Open a PR with a detailed
description of your changes.
</li>
<li>
<strong>Collaborate and Merge</strong> - The maintainers will review
your PR, request changes if needed, and merge it once approved.
</li>
</ol>
<h3>🙋♂️ Issues</h3>
<p>
Found a bug or need help? Please create an issue on the
<a href="https://github.com/ArnavK-09/emoji-route/issues"
>GitHub repository</a
>
with a detailed description.
</p>
<h3>👤 Author</h3>
<table>
<tbody>
<tr>
<td align="center" valign="top" width="14.28%">
<a href="https://github.com/ArnavK-09">
<img
src="https://github.com/ArnavK-09.png?s=100"
width="130px;"
alt="Arnav K"
/> </a
><br />
<a href="https://github.com/ArnavK-09">
<h4><b>Arnav K</b></h4>
</a>
</td>
</tr>
</tbody>
</table>
<h3 align="center">💖 Thanks for Using emoji-route!</h3>
<p align="center">
<strong
>If you find this project helpful, please give it a ⭐ on
GitHub!</strong
>
</p>
</div>
</body>
</html>