-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
172 lines (149 loc) · 4.47 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
<!-- <!DOCTYPE html> -->
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>UNCICODE CHARACTER IMAGE CREATOR </title>
<script src="index.js" defer></script>
<style>
body {
padding: 0;
margin: 0;
overflow-x: hidden;
display: flex;
justify-content: center;
flex-direction: column;
align-items: center;
height: 100vh;
gap: 30px;
background-color: black;
padding: 10px 30px;
}
td {
width: 40px;
text-align: center;
}
.container {
position: absolute;
/* scale: 0.8; */
transform: scale(0.2);
transform-origin: 0 0;
display: grid;
width: 3000px;
/* Total width of the grid */
height: 3000px;
/* Total height of the grid */
grid-template-columns: repeat(300, 10px);
/* 300 columns, each 1px wide */
grid-template-rows: repeat(300, 10px);
/* 400 rows, each 1px tall */
}
.items {
width: 20px;
height: 20px;
/* color: white; */
font-size: 15px;
/* background-color: blue; */
}
.items:nth-of-type(2n) {
/* background-color: red; */
}
.main {
display: flex;
height: 600px;
}
@media (max-width: 768px) {
body{
overflow: scroll !important;
}
.main {
height: 1200px;
flex-direction: column; /* Change to vertical (column) layout on mobile */
}
}
.unicode {
/* background-color: white; */
overflow: hidden;
/* flex: 50%; */
max-width: 600px;
max-height: 600px;
width: 600px;
aspect-ratio: 1;
flex: 1;
justify-content: center;
align-items: center;
display: flex;
}
.cnvs {
flex: 1;
display: flex;
justify-content: center;
align-items: center;
/* flex: 50%; */
max-width: 600px;
max-height: 600px;
width: 600px;
}
.button {
display: inline-block;
padding: 10px 20px;
font-size: 16px;
font-weight: 500;
color: #222;
/* Dark text for contrast on light background */
background-color: #f1f1f1;
/* Light background for contrast on black */
border: none;
border-radius: 5px;
cursor: pointer;
transition: background-color 0.3s ease, transform 0.2s ease;
box-shadow: 0 4px 6px rgba(255, 255, 255, 0.1);
/* Subtle shadow for depth */
}
.button:hover {
background-color: #e0e0e0;
/* Slightly darker shade on hover */
}
.button:active {
transform: scale(0.98);
/* Slightly shrink on click */
}
.button:focus {
outline: 2px solid #e0e0e0;
/* Focus outline */
outline-offset: 2px;
}
</style>
</head>
<body>
<div style="color: white; text-align: center; font-family: monospace;">
<h1 style="color: white;">UNCICODE CHARACTER IMAGE CREATOR</h1>
<h3>Characters used : ["@", "#", "%", "&", "8", "O", "X", "o", "=", "+", "*", "~", "-", ":", ",", "^", "\"",
"'", ".", " "]</h3>
<p>Use images with an aspect ratio of 1:1</p>
<h4 style="font-style: italic; color: #e0e0e0;">BY BIYON VENUJA</h4>
</div>
<img id="imgEle" src="" alt="" style="display: none;">
<!-- <table border="1">
<tr>
<td style="">X</td>
<td>Y</td>
</tr>
<tr>
<td id="x"></td>
<td id="y"></td>
</tr>
</table> -->
<button id="btn" class="button">ADD IMAGE</button>
<div class="main" style="display: none;">
<div class="unicode">
<img src="loading-gif.gif" alt="" height="30" class="loading">
<div class="container">
</div>
</div>
<div class="cnvs">
<img src="loading-gif.gif" alt="" height="30" class="loading">
</div>
</div>
</body>
</html>