-
Notifications
You must be signed in to change notification settings - Fork 0
/
popup.html
198 lines (186 loc) · 4.22 KB
/
popup.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
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
<!DOCTYPE html>
<html>
<head>
<title>EasyLeetSpeak</title>
<link rel="stylesheet" type="text/css" href="popup.css" />
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css"
/>
</head>
<body>
<div class="container">
<div class="header">
<h1>EasyLeetSpeak</h1>
<div class="header-actions">
<button id="resetBtn">Reset</button>
<a
class="github-link"
href="https://github.com/atakantepe/easyleetspeak"
target="_blank"
>
<i class="fa-brands fa-github"></i>
</a>
</div>
</div>
<textarea id="inputText" placeholder="Enter text here"></textarea>
<div class="action-container">
<select id="format">
<option value="Basic">Leet Basic</option>
<option value="Intermediate">Leet Intermediate</option>
<option value="Advanced">Leet Advanced</option>
</select>
<button id="encodeBtn">Encode</button>
<button id="decodeBtn">Decode</button>
</div>
<textarea
id="translatedText"
readonly
placeholder="Translated text will appear here"
value=""
></textarea>
</div>
<script type="module" src="popup.js"></script>
</body>
</html>
<style>
* {
box-sizing: border-box;
transition: all 0.3s ease;
}
body {
min-width: 400px;
margin: 0;
padding: 0;
color: #e2e8f0;
font-family: monospace;
}
.container {
display: flex;
flex-direction: column;
align-items: center;
gap: 10px;
padding: 20px;
background: #0f172a;
}
.action-container {
display: flex;
flex-direction: row;
align-items: center;
gap: 10px;
width: 100%;
padding: 0;
}
.action-container select {
padding: 5px;
width: 100%;
border-radius: 5px;
border: 1px solid #334155;
background-color: #020617;
color: #f1f5f9;
}
.action-container select:focus {
outline: none;
border: 1px solid #22d3ee;
}
.action-container select > option {
padding: 5px;
border-radius: 5px;
border: 1px solid #334155;
background-color: #020617;
color: #f1f5f9;
}
.action-container button {
padding: 5px 10px;
border-radius: 5px;
border: 1px solid #22d3ee;
background-color: #22d3ee;
cursor: pointer;
color: #020617;
}
.action-container button:hover {
background-color: #67e8f9;
}
h1 {
text-align: center;
margin: 0;
font-size: 1.2rem;
font-weight: 500;
}
textarea {
width: 100%;
min-height: 140px;
resize: vertical;
border-radius: 5px;
border: 1px solid #334155;
background-color: #020617;
color: #cbd5e1;
padding: 10px;
font-size: 1rem;
max-height: 198px;
}
textarea:focus {
outline: none;
border: 1px solid #22d3ee;
}
::-webkit-scrollbar {
width: 6px;
background-color: #334155;
}
::-webkit-scrollbar-thumb {
background-color: #b8c6da;
border-radius: 10px;
width: 2px;
height: 4px;
cursor: pointer;
}
::-webkit-scrollbar-track {
padding: 2px;
width: 6px;
background-color: #334155;
}
.header {
display: flex;
justify-content: space-between;
align-items: center;
width: 100%;
padding: 10px;
border-radius: 5px;
background-color: #3341558e;
}
#resetBtn {
padding: 5px 10px;
border-radius: 5px;
border: 1px solid #f87171;
background-color: #f87171;
color: #020617;
cursor: pointer;
width: 58px;
}
#resetBtn:hover {
background-color: #fca5a5;
}
button {
font-weight: 600;
}
.github-link {
padding: 5px;
border-radius: 5px;
border: 1px solid #94a3b8;
background-color: #94a3b8;
cursor: pointer;
color: #020617;
}
.github-link:hover {
background-color: #cbd5e1;
}
.github-link i {
font-size: 1rem;
}
.header-actions {
display: flex;
flex-direction: row;
align-items: center;
gap: 10px;
}
</style>