-
Notifications
You must be signed in to change notification settings - Fork 212
/
index.html
124 lines (118 loc) · 4.23 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no" />
<!-- General tags -->
<meta
name="description"
content="A directory of public libraries that you can easily add to Excalidraw."
/>
<meta name="image" content="og-image.png" />
<!-- OpenGraph tags -->
<meta property="og:url" content="https://libraries.excalidraw.com" />
<meta property="og:site_name" content="Excalidraw" />
<meta property="og:type" content="website" />
<meta property="og:title" name="twitter:title" content="Excalidraw Libraries" />
<meta
property="og:description"
name="twitter:description"
content="A directory of public libraries that you can easily add to Excalidraw."
/>
<!-- OG tags require an absolute url for images -->
<meta property="og:image" name="twitter:image" content="https://excalidraw.com/og-image.png" />
<meta
property="og:image:secure_url"
name="twitter:image"
content="https://excalidraw.com/og-image.png"
/>
<meta property="og:image:width" content="1280" />
<meta property="og:image:height" content="669" />
<meta property="og:image:alt" content="Excalidraw logo with byline." />
<!-- Twitter Card tags -->
<meta name="twitter:card" content="summary_large_image" />
<title>Excalidraw Libraries</title>
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/open-color/1.7.0/open-color.min.css"
/>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/normalize.css/normalize.min.css" />
<link rel="stylesheet" href="style.css" />
<link rel="icon" href="favicon.ico" />
<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");
window.trackEvent = function (category, name, label, value) {
window.gtag("event", name, {
event_category: category,
event_label: label,
value,
});
};
</script>
</head>
<body>
<div class="content">
<header>
<h1>Excalidraw Libraries</h1>
<p class="lead">
A directory of public libraries that you can easily add to
<a href="https://excalidraw.com">Excalidraw</a>.
</p>
<p>
Follow the
<a href="https://github.com/excalidraw/excalidraw-libs#add-your-own-library-to-the-list"
>instructions</a
>
if you want to <strong>add your own library</strong> into this list.
</p>
<p class="small">
All the following libraries are under
<a
href="https://github.com/excalidraw/excalidraw-libs/blob/main/LICENSE"
target="_license"
>MIT License</a
>.
</p>
</header>
<main>
<div class="library" id="template">
<img src="{preview}" alt="{name}" />
<h2>{name} <a aria-label="Anchor" href="#{libraryId}">#</a></h2>
<p class="authors">{authors}</p>
<p class="downloads"><span title="Downloads ({week} this week)">⬇️ {total}</span></p>
<p class="updated">Updated: {updated}</p>
<p>{description}</p>
<div class="actions">
<a
class="btn primary"
href="{addToLib}"
target="_excalidraw"
onclick="trackEvent('library', 'import', '{libraryId}')"
>➡️ Add to Excalidraw</a
>
<a
class="btn"
href="{source}"
onclick="trackEvent('library', 'download', '{libraryId}')"
>⬇️ Download</a
>
</div>
</div>
</main>
<footer>
<div>
© 2021 <a href="https://excalidraw.com">Excalidraw</a> •
<a href="https://github.com/excalidraw/excalidraw-libraries">Source Code</a>
</div>
</footer>
</div>
<script type="text/javascript" src="libraries.json"></script>
<script src="script.js"></script>
</body>
</html>