-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
116 lines (115 loc) · 3.57 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="index.css" />
<title>PixelFedit</title>
</head>
<body>
<svg id="symbols" viewBox="0 0 0 0">
<symbol id="disk" viewBox="0 0 128 128">
<path
stroke="currentColor"
stroke-width="6"
stroke-linecap="square"
stroke-linejoin="bevel"
fill="none"
d="M30 30 l52 0 l16 16 l0 52 l-68 0 l 0 -68 M40 30 l0 24 l36 0 l0 -24 M48 30 l0 16 l6 0 l0 -16 M40 98 l0 -30 l48 0 l0 30"
/>
</symbol>
<symbol id="open" viewBox="0 0 128 128">
<path
stroke="currentColor"
stroke-width="6"
stroke-linecap="square"
stroke-linejoin="bevel"
fill="none"
d="M30,98 l15,-30 l60,0 l-15,30 l-60,0 l0,-45 l8,-8 l8,0 l8,8 l36,0 l0,15"
/>
</symbol>
<symbol id="export" viewBox="0 0 128 128">
<path
stroke="currentColor"
stroke-width="6"
stroke-linecap="square"
stroke-linejoin="bevel"
fill="none"
d="M30,98 q60 0 60 -60 l-16,16 l 32,0 l -16,-16"
/>
</symbol>
</svg>
<header class="header">
<h1 class="header__headline">PixelFedit</h1>
</header>
<input
id="inputFile"
type="file"
class="hidden"
accept="application/octet-stream"
/>
<nav class="navi">
<ul class="navi__list">
<li class="navi__list-item" id="menuOpen">
<a class="navi__anchor">
<svg class="icon">
<title>Open</title>
<use xlink:href="#open" />
</svg>
<span>open</span>
</a>
<ul class="navi__sub" id="subMenuOpen">
<li class="navi__sub-item">
<a class="navi__sub-link" id="menuOpenLocal">local file</a>
</li>
</ul>
</li>
<li class="navi__list-item" id="menuSave">
<a class="navi__anchor">
<svg class="icon">
<title>Save</title>
<use xlink:href="#disk" />
</svg>
<span>save</span>
</a>
</li>
<li class="navi__list-item" id="menuExport">
<a class="navi__anchor">
<svg class="icon">
<title>export</title>
<use xlink:href="#export" />
</svg>
<span>export</span>
</a>
<ul class="navi__sub">
<li class="navi__sub-item">
<a class="navi__sub-link" id="menuExportToPNG">to PNG</a>
</li>
<li class="navi__sub-item">
<a class="navi__sub-link" id="menuExportToSVG">to SVG</a>
</li>
<li class="navi__sub-item">
<a class="navi__sub-link" id="menuExportToTTF">to TTF</a>
</li>
<li class="navi__sub-item">
<a class="navi__sub-link" id="menuExportToC">to C</a>
</li>
</ul>
</li>
</ul>
</nav>
<main class="main">
<div class="char-wrapper">
<canvas class="char-canvas"></canvas>
</div>
<div class="font-wrapper">
<canvas class="font-canvas"></canvas>
</div>
</main>
<script src="font-export/lib/svg-to-ttf.browser.js"></script>
<script src="font-export/create-svg.js"></script>
<script src="font-export/create-png.js"></script>
<script src="font-export/create-c-header.js"></script>
<script src="app.js"></script>
</body>
</html>