-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
155 lines (152 loc) · 4.46 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Meme Maker</title>
<link rel="stylesheet" href="style.css" />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Black+Han+Sans&family=Gothic+A1:wght@500&family=Kanit&family=Nanum+Gothic:wght@700&family=Noto+Sans+KR:wght@500&family=Noto+Serif+KR:wght@600&family=Phudu&family=Playfair+Display:wght@500&display=swap"
rel="stylesheet"
/>
</head>
<body>
<div class="color-options">
<input type="color" id="color" />
<div
class="color-option"
style="background-color: #d4e2bb"
data-color="#dddE2BB"
></div>
<div
class="color-option"
style="background-color: #bbdce2"
data-color="#Bbdce2"
></div>
<div
class="color-option"
style="background-color: #bbe2da"
data-color="#bbe2da"
></div>
<div
class="color-option"
style="background-color: #bbe2cc"
data-color="#bbe2cc"
></div>
<div
class="color-option"
style="background-color: #bbc9e2"
data-color="#bbc9e2"
></div>
<div
class="color-option"
style="background-color: #bbbeea"
data-color="#bbbeea"
></div>
<div
class="color-option"
style="background-color: #ede6b1"
data-color="#ede6b1"
></div>
<div
class="color-option"
style="background-color: #edd9b1"
data-color="#edd9b1"
></div>
<div
class="color-option"
style="background-color: #edc8b1"
data-color="#edc8b1"
></div>
<div
class="color-option"
style="background-color: #e7bcb5"
data-color="#e7bcb5"
></div>
<div
class="color-option"
style="background-color: #e7b5bf"
data-color="#e7b5bf"
></div>
</div>
<canvas></canvas>
<div class="btns">
<button id="destroy-btn">Destroy</button>
<fieldset id="brush-size">
<legend>Brush Size</legend>
<input
id="line-width"
type="range"
min="1"
,
max="10"
value="5"
step="0.5"
/>
</fieldset>
<fieldset id="brush-modes">
<legend>Brush Mode</legend>
<button id="pen-btn" class="brush-mode activated">Pen</button>
<button id="fill-btn" class="brush-mode">Fill</button>
<button id="eraser-btn" class="brush-mode">Eraser</button>
</fieldset>
<label for="file"> Add Photo </label>
<input type="file" accept="image/*" id="file" />
<fieldset id="text-style">
<legend>Text - Double Click !!</legend>
<select id="font-types">
<option
value="'Black Han Sans'"
style="font-family: 'Black Han Sans'"
>
Black Han Sans
</option>
<option
class="font-option"
value="Kanit"
style="font-family: 'Kanit'"
>
Kanit
</option>
<option value="'Noto Sans KR'" style="font-family: 'Noto Sans KR'">
Noto Sans 한글
</option>
<option value="'Noto Serif KR'" style="font-family: 'Noto Serif KR'">
Noto Serif 한글
</option>
<option
value="'Phudu', cursive"
style="font-family: 'Phudu', cursive"
>
Phodo
</option>
<option
value="'Nanum Gothic', sans-serif"
style="font-family: 'Nanum Gothic', sans-serif"
>
나눔 고딕
</option>
<option
value="'Playfair Display', serif;
"
style="font-family: 'Playfair Display', serif"
>
Playfair Display
</option>
<option
value="'Gothic A1', sans-serif"
style="font-family: 'Gothic A1', sans-serif"
>
고딕
</option>
</select>
<input id="font-size" type="number" value="48" />
<input type="text" placeholder="Add text here... :)" id="text" />
</fieldset>
<button id="save">💾 Save Image</button>
</div>
<script src="app.js"></script>
</body>
</html>