-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
224 lines (205 loc) · 8.04 KB
/
index.html
File metadata and controls
224 lines (205 loc) · 8.04 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Feature Font Demos</title>
<style>
html {
color: rgb(17, 24, 39);
background-color: #f4f7ff;
line-height: 1.75rem;
}
main {
max-width: 1000px;
margin: auto;
padding: 16px;
}
section {
border-radius: 1.5rem;
padding: 46px;
box-shadow: rgb(255, 255, 255) 0 0 0 0, rgb(229, 231, 235) 0 0 0 1px,
rgba(0, 0, 0, 0) 0 0 0 0;
}
p {
color: rgb(64, 73, 84);
}
a {
color: #4f46e5;
}
.badge {
text-decoration: none;
}
header {
display: flex;
justify-content: center;
font-weight: bold;
}
@font-face {
font-family: "friendly_font";
src: url("./friendly_font/friendly_font.otf") format("opentype");
}
@font-face {
font-family: "icon_font";
src: url("./icon_font/icon_font.ttf") format("truetype");
}
@font-face {
font-family: "emoji_font";
src: url("./emoji_font/emoji_font.ttf") format("truetype");
}
h2:first-of-type {
margin-top: 8px;
}
h3 {
margin: 10px 0;
}
[class*="input"],
[class*="output"] {
border: dashed lightgrey 3px;
}
.friendly_output {
font-family: "friendly_font";
}
.emoji_output {
font-family: "emoji_font";
}
.icon_output {
font-family: "icon_font";
}
</style>
</head>
<body>
<main>
<header>
<a href="https://github.com/Born2Root/Feature-Fonts">Source Code</a>
</header>
<h1>Feature Font Demos</h1>
<a href="https://github.com/Born2Root/Fast-Font" class="badge">
<img
loading="lazy"
src="https://img.shields.io/badge/Open-%20Source-green"
alt="opensource github"
/>
</a>
<a href="https://www.buymeacoffee.com/born2root" class="badge">
<img
loading="lazy"
height="20"
src="https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png"
alt="Buy Me A Coffee"
/>
</a>
<section>
<h2>Friendly Font</h2>
<h3>without Font:</h3>
<div contenteditable class="friendly_input">
This is a fucking interactive butt demo :D
<br />
<br />
Edit this shit!
</div>
<h3>with Font:</h3>
<div contenteditable class="friendly_output">
This is a fucking interactive butt demo :D
<br />
<br />
Edit this shit!
</div>
<h2>Emoji Font</h2>
<h3>without Font:</h3>
<div contenteditable class="emoji_input">
This is an interactive demo :rocket:<br />
:smiley:<br />
:joy: Edit me!
<br />
<br />
:star_struck<br />
↑ add a colon (:) to convert to icon
</div>
<h3>with Font:</h3>
<div contenteditable class="emoji_output">
This is an interactive demo :rocket:<br />
:smiley:<br />
:joy: Edit me!
<br />
<br />
:star_struck<br />
↑ add a colon (:) to convert to icon
</div>
<h2>Icon Font</h2>
<h3>without Font:</h3>
<div contenteditable class="icon_input">
This is an interactive demo :MapPin:<br />
:WalkSolid:<br />
:Wifi: Edit me!
<br />
<br />
:Fingerprint<br />
↑ add a colon (:) to convert to icon
</div>
<h3>with Font:</h3>
<div contenteditable class="icon_output">
This is an interactive demo :MapPin:<br />
:WalkSolid:<br />
:Wifi: Edit me!
<br />
<br />
:Fingerprint<br />
↑ add a colon (:) to convert to icon
</div>
<h2>How to use?</h2>
<p>
In the
<a href="https://github.com/Born2Root/Fast-Font">READMEs of the repository</a>
you can find examples on how to use the font on several applications supporting
OpenType font features.<br />
Also you can read on how the font was made and how you can create your own font
in the same style.
</p>
<h2>Contribute?</h2>
<p>
YES please ❤️!<br />
Feel free to ask questions,
<a href="https://github.com/Born2Root/Feature-Fonts/issues">answer issues</a> and
<a href="https://github.com/Born2Root/Feature-Fonts/pulls">create pull</a> requests.
<br />
If you like our projects, we would appreciate your support.
<a href="https://www.buymeacoffee.com/born2root" class="badge">
<img
loading="lazy"
height="20"
src="https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png"
alt="Buy Me A Coffee"
/>
</a>
</p>
<script>
const friendly_input = document.querySelector(".friendly_input");
const friendly_output = document.querySelector(".friendly_output");
friendly_input.addEventListener("input", () => {
friendly_output.innerHTML = friendly_input.innerHTML;
});
friendly_output.addEventListener("input", () => {
friendly_input.innerHTML = friendly_output.innerHTML;
});
const emoji_input = document.querySelector(".emoji_input");
const emoji_output = document.querySelector(".emoji_output");
emoji_input.addEventListener("input", () => {
emoji_output.innerHTML = emoji_input.innerHTML;
});
emoji_output.addEventListener("input", () => {
emoji_input.innerHTML = emoji_output.innerHTML;
});
const icon_input = document.querySelector(".icon_input");
const icon_output = document.querySelector(".icon_output");
icon_input.addEventListener("input", () => {
icon_output.innerHTML = icon_input.innerHTML;
});
icon_output.addEventListener("input", () => {
icon_input.innerHTML = icon_output.innerHTML;
});
</script>
</section>
</main>
</body>
</html>