-
-
Notifications
You must be signed in to change notification settings - Fork 18
/
index.html
186 lines (177 loc) · 5.18 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1, maximum-scale=1,
user-scalable=0"
/>
<title>Virgil — The font that powers Excalidraw</title>
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
<link
href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta2/dist/css/bootstrap.min.css"
rel="stylesheet"
/>
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/open-color@1.8.0/open-color.css"
/>
<style>
@font-face {
font-family: "Virgil";
src: url("Virgil.woff2");
font-display: swap;
}
*,
*:before,
*:after {
box-sizing: border-box;
}
body {
padding-bottom: 64px;
}
a {
text-decoration: none;
font-weight: 400;
color: var(--oc-blue-7);
}
a:hover,
a:active {
color: var(--oc-blue-5);
}
h1 {
background-image: url(public/title.svg);
background-position: 50%;
background-repeat: no-repeat;
background-size: contain;
line-height: 3;
font-size: 4em;
}
h3 {
margin-top: 48px;
color: var(--oc-gray-6);
}
.virgil {
font-family: Virgil, var(--bs-font-sans-serif);
}
.example {
font-size: 1.8em;
font-family: Virgil, var(--bs-font-sans-serif);
margin: 16px 0;
}
.playground {
width: 600px;
max-width: 100%;
border-radius: 6px;
margin: 32px 0;
font-family: Virgil, var(--bs-font-sans-serif);
padding: 8px;
text-align: center;
font-size: 24px;
border: 2px solid var(--oc-blue-7);
color: var(--oc-gray-9);
}
.playground::placeholder {
color: var(--oc-gray-5);
}
.btn {
color: var(--oc-white);
font-size: 22px;
line-height: 3;
background-image: url(public/btn.svg);
background-position: 50%;
background-repeat: no-repeat;
background-size: contain;
min-width: 400px;
max-width: 100%;
}
.btn:hover {
color: var(--oc-blue-1);
}
</style>
<script
async
src="https://www.googletagmanager.com/gtag/js?id=UA-387204-13"
></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag("js", new Date());
gtag("config", "UA-387204-13");
</script>
</head>
<body>
<div class="container mt-5 text-center">
<h1 class="virgil">Virgil</h1>
<p class="lead mt-5">
The font that powers <a href="https://excalidraw.com">Excalidraw</a>,
created by <strong>Ellinor Rapp</strong>, is now open sourced.
</p>
<p>
<a
class="github-button"
href="https://github.com/excalidraw/virgil"
data-size="large"
data-show-count="true"
aria-label="Star excalidraw/virgil on GitHub"
>Stars</a
>
</p>
<p class="lead">
Send us feedback on
<a href="https://github.com/excalidraw/virgil/issues">GitHub</a>.
</p>
<h3>Try it below</h3>
<p>
<textarea
id="playground"
class="playground"
rows="3"
placeholder="The quick brown fox jumps over the lazy dog"
>
Pack my box with five dozen liquor jugs</textarea
>
</p>
<p>
<a class="btn" href="/Virgil.woff2">Download the latest .woff2</a>
</p>
<h3>Latin</h3>
<p class="example">A B C D E F G H I J K L M N O P Q R S T U V W X Y Z</p>
<p class="example">a b c d e f g h i j k l m n o p q r s t u v w x y z</p>
<h3>Greek</h3>
<p class="example">Α Β Γ Δ Ε Ζ Η Θ Ι Κ Λ Μ Ν Ξ Ο Π Ρ Σ Τ Υ Φ Χ Ψ Ω</p>
<p class="example">α β γ δ ε ζ η θ ι κ λ μ ν ξ ο π ρ σ ς τ υ φ χ ψ ω</p>
<h3>Cyrillic</h3>
<p class="example">
А Б В Г Д Е Ё Ж З И Й К Л М Н О П Р С Т У Ф Х Ц Ч Ш Щ Ъ Ы Ь Э Ю Я
</p>
<p class="example">
а б в г д е ё ж з и й к л м н о п р с т у ф х ц ч ш щ ъ ы ь э ю я
</p>
<h3>Numbers</h3>
<p class="example">0 1 2 3 4 5 6 7 8 9</p>
<h3>Symbols</h3>
<p class="example">
[ ] ( ) { } < > ? ! . , ; ' " ~ @ # $ € % ^ & + - * = / \
</p>
</div>
<script async defer src="https://buttons.github.io/buttons.js"></script>
<script>
const playgroundElement = document.getElementById("playground");
const playgroundText = new URLSearchParams(location.hash.slice(1)).get(
"playground",
);
if (playgroundText) {
playgroundElement.value = decodeURIComponent(playgroundText);
}
playgroundElement.addEventListener("input", (event) => {
const params = new URLSearchParams();
params.set("playground", encodeURIComponent(event.target.value));
location.hash = params.toString();
});
</script>
</body>
</html>