-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
64 lines (62 loc) · 2.49 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>AsciiPainter</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Draw your own ASCII paintings">
<meta property="og:title" content="AsciiPainter">
<meta property="og:description" content="Draw your own ASCII paintings">
<meta property="og:type" content="website">
<meta property="og:url" content="https://mihaszki.github.io/AsciiPainter/">
<link rel="shortcut icon" href="src/img/favicon.png">
<link rel="stylesheet" href="src/css/normalize.css">
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Roboto+Mono&display=swap" rel="stylesheet">
<link rel="stylesheet" href="src/css/style.css">
</head>
<body>
<div class="header">
<ul>
<li><strong>AsciiPainter</strong></li>
<li class="right"><a href="#code">Code</a></li>
<li class="right"><a href="#preview">Preview</a></li>
<li class="right"><a href="#editor">Editor</a></li>
<li class="right"><a href="#about">About</a></li>
</ul>
</div>
<h2 id="about">About</h2>
<div class="about">
<p>You can draw your own ASCII arts with different colors and characters, the colors are generated by using <a href="https://en.wikipedia.org/wiki/ANSI_escape_code" target="_blank">ANSI escape codes</a>.</p>
</div>
<h2 id="editor">Editor</h2>
<div class="editor">
<div class="panel i1" id="characters-buttons">
<div class="title">Characters</div>
</div>
<canvas id="canvas" width="500" height="500" class='i2' id="canvas"></canvas>
<div class="panel i3">
<div class="title">Colors</div>
<p>Foreground</p>
<div id="fg-colors-buttons"></div>
<p>Background</p>
<div id="bg-colors-buttons"></div>
</div>
</div>
<h2 id="preview">Preview</h2>
<div id="previewCode"><i>### Preview goes here ###</i></div>
<h2 id="code">Generated code</h2>
<div class="code">
<div class="panel i1 auto">
<div class="title">Plain text</div>
<textarea id="plainTextCode" placeholder="Code..." readonly></textarea>
</div>
<div class="panel i2 auto">
<div class="title">Node Terminal (ANSI colors)</div>
<textarea id="jsCode" placeholder="Code..." readonly></textarea>
</div>
</div>
<div class="footer"><a href="https://github.com/Mihaszki/AsciiPainter" target="_blank">Source code</a></div>
<script src="src/js/core.js"></script>
</body>
</html>