-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
327 lines (293 loc) · 19.5 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
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
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
<head>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-DWM29ZLXR8"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() { dataLayer.push(arguments); }
gtag('js', new Date());
gtag('config', 'G-DWM29ZLXR8');
</script>
<!-- microsoft clarity -->
<script type="text/javascript">
(function (c, l, a, r, i, t, y) {
c[a] = c[a] || function () { (c[a].q = c[a].q || []).push(arguments) };
t = l.createElement(r); t.async = 1; t.src = "https://www.clarity.ms/tag/" + i;
y = l.getElementsByTagName(r)[0]; y.parentNode.insertBefore(t, y);
})(window, document, "clarity", "script", "ml7kc3btye");
</script>
<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=Noto+Sans+Malayalam:wght@705&display=swap" rel="stylesheet">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="https://cdn.tailwindcss.com"></script>
<script>
tailwind.config = {
darkMode: 'class',
}
</script>
<script src="/assets/script/script.js"></script>
<title>Vakdhwani- English to Malayalam Pronunciation</title>
<link rel="stylesheet" type="text/css" href="assets/style/style.css">
</head>
<body>
<main
class="flex flex-col items-center w-full min-h-screen bg-gradient-to-br from-[#F0F4F8] to-[#D9E2EC] dark:from-[#1a202c] dark:to-[#2d3748] relative overflow-hidden">
<div class="malayalam-text2 absolute top-0 left-0 flex flex-wrap justify-center items-center ">
<div
class="text-[#102A43] dark:text-[#D9E2EC] dark:text-[#D9E2EC] text-4xl font-bold unselectable transform rotate-[-10deg] m-5 opacity-50 hover:opacity-100 transition-opacity duration-300 ">
മ
</div>
<div
class="text-[#102A43] dark:text-[#D9E2EC] text-4xl font-bold unselectable transform rotate-[10deg] m-10 ml-10 mt-10 opacity-50 hover:opacity-100 transition-opacity duration-300 ">
അ</div>
<div
class="text-[#102A43] dark:text-[#D9E2EC] text-4xl font-bold unselectable transform rotate-[5deg] m-10 ml-15 mt-15 opacity-50 hover:opacity-100 transition-opacity duration-300 ">
യ</div>
<div
class="text-[#102A43] dark:text-[#D9E2EC] text-4xl font-bold unselectable transform rotate-[7deg] m-16 mr-10 mb-10 opacity-50 hover:opacity-100 transition-opacity duration-300 ">
പ</div>
<div
class="text-[#102A43] dark:text-[#D9E2EC] text-4xl font-bold unselectable transform rotate-[15deg] m-6 mr-15 mb-15 opacity-50 hover:opacity-100 transition-opacity duration-300 ">
ര</div>
<div
class="text-[#102A43] dark:text-[#D9E2EC] text-4xl font-bold unselectable transform rotate-[-8deg] m-12 ml-20 mt-20 opacity-50 hover:opacity-100 transition-opacity duration-300 ">
ല</div>
<div
class="text-[#102A43] dark:text-[#D9E2EC] text-4xl font-bold unselectable transform rotate-[12deg] m-8 ml-25 mt-25 opacity-50 hover:opacity-100 transition-opacity duration-300 ">
വ</div>
<div
class="text-[#102A43] dark:text-[#D9E2EC] text-4xl font-bold unselectable transform rotate-[-3deg] m-15 mr-20 mb-20 opacity-50 hover:opacity-100 transition-opacity duration-300 ">
ന</div>
<div
class="text-[#102A43] dark:text-[#D9E2EC] text-4xl font-bold unselectable transform rotate-[17deg] m-12 mr-25 mb-25 opacity-50 hover:text-green-500 transition-opacity duration-300 ">
ഇ</div>
<div
class="text-[#102A43] dark:text-[#D9E2EC] text-4xl font-bold unselectable transform rotate-[20deg] m-12 mr-30 mb-30 opacity-50 hover:opacity-100 transition-opacity duration-300 ">
ഹ</div>
<div
class="text-[#102A43] dark:text-[#D9E2EC] text-4xl font-bold unselectable transform rotate-[-15deg] m-12 mr-35 mb-35 opacity-50 hover:opacity-100 transition-opacity duration-300 ">
ജ</div>
<div
class="text-[#102A43] dark:text-[#D9E2EC] text-4xl font-bold unselectable transform rotate-[10deg] m-12 mr-40 mb-40 opacity-50 hover:opacity-100 transition-opacity duration-300 ">
ക</div>
<div
class="text-[#102A43] dark:text-[#D9E2EC] text-4xl font-bold unselectable transform rotate-[-5deg] m-12 mr-45 mb-45 opacity-50 hover:opacity-100 transition-opacity duration-300 ">
ത</div>
<div
class="text-[#102A43] dark:text-[#D9E2EC] text-4xl font-bold unselectable transform rotate-[22deg] m-12 mr-50 mb-50 opacity-50 hover:opacity-100 transition-opacity duration-300 ">
ബ</div>
<div
class="text-[#102A43] dark:text-[#D9E2EC] text-4xl font-bold unselectable transform rotate-[-18deg] m-12 mr-55 mb-55 opacity-50 hover:opacity-100 transition-opacity duration-300 ">
ട</div>
<div
class="text-[#102A43] dark:text-[#D9E2EC] text-4xl font-bold unselectable transform rotate-[14deg] m-12 mr-60 mb-60 opacity-50 hover:opacity-100 transition-opacity duration-300 ">
സ</div>
<div
class="text-[#102A43] dark:text-[#D9E2EC] text-4xl font-bold unselectable transform rotate-[-7deg] m-12 mr-65 mb-65 opacity-50 hover:opacity-100 transition-opacity duration-300 ">
ഭ</div>
<div
class="text-[#102A43] dark:text-[#D9E2EC] text-4xl font-bold unselectable transform rotate-[10deg] m-10 ml-0 mt-10 opacity-50 hover:opacity-100 transition-opacity duration-300 ">
ഏ </div>
<div
class="text-[#102A43] dark:text-[#D9E2EC] text-4xl font-bold unselectable transform rotate-[22deg] m-12 ml-20 mt-15 opacity-50 hover:opacity-100 transition-opacity duration-300 ">
ഫ</div>
<div
class="text-[#102A43] dark:text-[#D9E2EC] text-4xl font-bold unselectable transform rotate-[-18deg] m-12 ml-20 mt-8 opacity-50 hover:opacity-100 transition-opacity duration-300 ">
ദ</div>
<div
class="text-[#102A43] dark:text-[#D9E2EC] text-4xl font-bold unselectable transform rotate-[14deg] m-12 ml-20 mt-5 opacity-50 hover:opacity-100 transition-opacity duration-300 ">
ധ</div>
<div
class="text-[#102A43] dark:text-[#D9E2EC] text-4xl font-bold unselectable transform rotate-[10deg] m-12 ml-20 mt-10 opacity-50 hover:opacity-100 transition-opacity duration-300 ">
ന</div>
<div
class="text-[#102A43] dark:text-[#D9E2EC] text-4xl font-bold unselectable transform rotate-[-5deg] m-12 ml-20 mt-18 opacity-50 hover:opacity-100 transition-opacity duration-300 ">
പ</div>
<div
class="text-[#102A43] dark:text-[#D9E2EC] text-4xl font-bold unselectable transform rotate-[22deg] m-12 ml-20 mt-17 opacity-50 hover:opacity-100 transition-opacity duration-300 ">
ജ</div>
<div
class="text-[#102A43] dark:text-[#D9E2EC] text-4xl font-bold unselectable transform rotate-[-18deg] m-12 ml-20 mt-15 opacity-50 hover:opacity-100 transition-opacity duration-300 ">
ച</div>
<div
class="text-[#102A43] dark:text-[#D9E2EC] text-4xl font-bold unselectable transform rotate-[14deg] m-12 ml-20 mt-11 opacity-50 hover:opacity-100 transition-opacity duration-300 ">
ഡ</div>
</div>
<div class="w-full max-w-3xl px-4 py-8 relative z-10 " style=" pointer-events: none; ">
<div class="rounded bg-black/10 p-5 text-white backdrop-blur-sm">
<h1 class="mb-4 text-2xl font-bold unselectable text-[#0a1931] dark:text-[#D9E2EC]">വാക്ധ്വനി - English to
Malayalam Pronunciation
</h1>
<p class="mb-6 text-[#0a1931] dark:text-[#D9E2EC]">
Effortlessly convert English text to its pronunciation in<span class="malayalam-text"> മലയാളം.</span>
</p>
<div class="relative" style=" pointer-events: auto; ">
<textarea
class="flex min-h-[160px] text-sm ring-offset-background placeholder-black dark:placeholder-white focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 w-full px-4 py-2 rounded-lg border-2 border-white/50 focus:outline-none focus:ring-2 focus:ring-[#CBD2D9] focus:border-transparent text-[#334E68] dark:text-[#D9E2EC] bg-transparent resize-none"
placeholder="Enter your text here..." rows="5"></textarea>
<div class="absolute right-3 bottom-3 flex space-x-2 items-center">
<button id="sample"
class="relative inline-block h-10 w-10 cursor-pointer rounded-md bg-white shadow-lg shadow-black/20 transition-all">
<div class="absolute inset-0 flex items-center justify-center">
<div class="absolute top-1 left-1 h-2 w-2 rounded-full bg-red-500"></div>
<div class="absolute top-1 right-1 h-2 w-2 rounded-full bg-red-500"></div>
<div class="absolute bottom-1 left-1 h-2 w-2 rounded-full bg-red-500"></div>
<div class="absolute bottom-1 right-1 h-2 w-2 rounded-full bg-red-500"></div>
</div>
</button>
<button id="submit" class="cursor-pointer transition-all bg-blue-500 text-white px-6 py-2 rounded-lg
border-blue-600
border-b-[4px] hover:brightness-110
active:border-b-[2px] active:brightness-90 active:translate-y-[2px]">
Get Pronunciation
</button>
</div>
</div>
</div>
<div class="mt-8 bg-black/10 rounded-lg p-4">
<div style="display: flex; justify-content: space-between; align-items: flex-start;">
<h2 class="text-xl font-bold unselectable text-[#102A43] dark:text-[#D9E2EC] mb-4">Transliteration</h2>
<button class="theme-toggle" id="theme-toggle" title="Toggles light & dark" aria-label="auto"
aria-live="polite">
<svg style="pointer-events: auto;" class="sun-and-moon" aria-hidden="true" width="24" height="24"
viewBox="0 0 24 24">
<mask class="moon" id="moon-mask">
<rect x="0" y="0" width="100%" height="100%" fill="white" />
<circle cx="24" cy="10" r="6" fill="black" />
</mask>
<circle class="sun" cx="12" cy="12" r="6" mask="url(#moon-mask)" fill="currentColor" />
<g class="sun-beams" stroke="currentColor">
<line x1="12" y1="1" x2="12" y2="3" />
<line x1="12" y1="21" x2="12" y2="23" />
<line x1="4.22" y1="4.22" x2="5.64" y2="5.64" />
<line x1="18.36" y1="18.36" x2="19.78" y2="19.78" />
<line x1="1" y1="12" x2="3" y2="12" />
<line x1="21" y1="12" x2="23" y2="12" />
<line x1="4.22" y1="19.78" x2="5.64" y2="18.36" />
<line x1="18.36" y1="5.64" x2="19.78" y2="4.22" />
</g>
</svg>
</button>
</div>
<div style="pointer-events: auto;"
class="relative flex flex-wrap rounded-md bg-gray-200 dark:bg-gray-800 box-border shadow-sm p-1 w-72 text-sm">
<label for="us" class="flex-auto text-center">
<input id="us" type="radio" name="location" value="US" class="hidden">
<span
class="flex cursor-pointer items-center justify-center rounded-md py-2 text-gray-800 dark:text-gray-200 transition-all duration-150">
US
</span>
</label>
<label for="uk" class="flex-auto text-center">
<input id="uk" type="radio" name="location" value="UK" checked="" class="hidden">
<span
class="flex cursor-pointer items-center justify-center rounded-md py-2 text-gray-800 dark:text-gray-200 transition-all duration-150">
UK
</span>
</label>
</div>
<div class="text-[#102A43] dark:text-[#D9E2EC]">
<div class="space-y-4">
<div>
<div class="bg-gray-100 dark:bg-gray-800 p-4 rounded-md">
<p class="malayalam-text2" id="pronunciation">ഐ വൊസ് ഡ്രിങ്കിങ് എഇ ബൊറ്റൽ ഒവ് വൊറ്റ വിദ് ബ്രെഡ് ഒൻ
ചൂസ്ഡെഇ മൊനിങ്</p>
</div>
</div>
</div>
</div>
<div class="text-white flex justify-end">
<button
class="inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 bg-background hover:bg-accent hover:text-accent-foreground h-10 px-1 py-2"
type="button" onclick="copyToClipboard()">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"
class="icon-md-heavy" style="pointer-events:auto">
<path fill="currentColor" fill-rule="evenodd"
d="M7 5a3 3 0 0 1 3-3h9a3 3 0 0 1 3 3v9a3 3 0 0 1-3 3h-2v2a3 3 0 0 1-3 3H5a3 3 0 0 1-3-3v-9a3 3 0 0 1 3-3h2zm2 2h5a3 3 0 0 1 3 3v5h2a1 1 0 0 0 1-1V5a1 1 0 0 0-1-1h-9a1 1 0 0 0-1 1zM5 9a1 1 0 0 0-1 1v9a1 1 0 0 0 1 1h9a1 1 0 0 0 1-1v-9a1 1 0 0 0-1-1z"
clip-rule="evenodd"></path>
</svg> </button>
<button
class="inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 bg-background hover:bg-accent hover:text-accent-foreground h-10 px-1 py-2"
type="button" onclick="toggleModal()">
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"
class="icon-md-heavy" style="pointer-events:auto">
<path fill-rule="evenodd" clip-rule="evenodd"
d="M11.8727 21.4961C11.6725 21.8466 11.2811 22.0423 10.8805 21.9922L10.4267 21.9355C7.95958 21.6271 6.36855 19.1665 7.09975 16.7901L7.65054 15H6.93226C4.29476 15 2.37923 12.4921 3.0732 9.94753L4.43684 4.94753C4.91145 3.20728 6.49209 2 8.29589 2H18.0045C19.6614 2 21.0045 3.34315 21.0045 5V12C21.0045 13.6569 19.6614 15 18.0045 15H16.0045C15.745 15 15.5054 15.1391 15.3766 15.3644L11.8727 21.4961ZM14.0045 4H8.29589C7.39399 4 6.60367 4.60364 6.36637 5.47376L5.00273 10.4738C4.65574 11.746 5.61351 13 6.93226 13H9.00451C9.32185 13 9.62036 13.1506 9.8089 13.4059C9.99743 13.6612 10.0536 13.9908 9.96028 14.2941L9.01131 17.3782C8.6661 18.5002 9.35608 19.6596 10.4726 19.9153L13.6401 14.3721C13.9523 13.8258 14.4376 13.4141 15.0045 13.1902V5C15.0045 4.44772 14.5568 4 14.0045 4ZM17.0045 13V5C17.0045 4.64937 16.9444 4.31278 16.8338 4H18.0045C18.5568 4 19.0045 4.44772 19.0045 5V12C19.0045 12.5523 18.5568 13 18.0045 13H17.0045Z"
fill="currentColor"></path>
</svg>
</button>
<div class="fixed z-10 overflow-y-auto top-0 w-full left-0 hidden" id="modal" style="pointer-events:auto">
<div class="flex items-center justify-center min-height-100vh pt-4 px-4 pb-20 text-center sm:block sm:p-0">
<div class="fixed inset-0 transition-opacity">
<div class="absolute inset-0 bg-gray-900 opacity-75" />
</div>
<span class="hidden sm:inline-block sm:align-middle sm:h-screen">​</span>
<div
class="inline-block align-center bg-white rounded-lg text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:align-middle w-full sm:max-w-lg"
role="dialog" aria-modal="true" aria-labelledby="modal-headline">
<div class="bg-white px-4 pt-5 pb-4 sm:p-6 sm:pb-4">
<label class="font-medium text-gray-800">Report Issue</label>
<div class="mt-2">
<textarea id="reason" class="w-full px-3 py-2 text-gray-700 border rounded-lg focus:outline-none"
rows="4" placeholder="Describe the issue with the transliteration"></textarea>
</div>
</div>
<div class=" px-4 py-3 text-right">
<button type="button" class="py-2 px-4 bg-gray-500 text-white rounded hover:bg-gray-700 mr-2"
onclick="toggleModal()"><i class="fas fa-times"></i> Cancel</button>
<button type="button" id="report"
class="py-2 px-4 bg-blue-500 text-white rounded font-medium hover:bg-blue-700 mr-2 transition duration-500"><i
class="fas fa-plus"></i>Submit</button>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div id="copied-toast"
class="absolute bg-gray-200 border border-gray-300 bg-opacity-60 pl-2 pr-4 py-1 text-gray-700 top-40 rounded-sm shadow-lg transform -translate-x-1/2 left-1/2 transition-all duration-1000 opacity-0">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" class="h-6 w-6 inline" fill="none"
stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<rect x="9" y="9" width="13" height="13" rx="2" ry="2"></rect>
<path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"></path>
</svg>
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
d="M15 17h5l-1.405-1.405A2.032 2.032 0 0118 14.158V11a6.002 6.002 0 00-4-5.659V5a2 2 0 10-4 0v.341C7.67 6.165 6 8.388 6 11v3.159c0 .538-.214 1.055-.595 1.436L4 17h5m6 0v1a3 3 0 11-6 0v-1m6 0H9" />
</svg>
<span>Copied to Clipboard</span>
</div>
<div id="report-toast"
class="absolute bg-gray-200 border border-gray-300 bg-opacity-60 pl-2 pr-4 py-1 text-gray-700 top-40 rounded-sm shadow-lg transform -translate-x-1/2 left-1/2 transition-all duration-1000 opacity-0">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" class="h-6 w-6 inline" fill="none"
stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M20 6L9 17l-5-5"></path>
</svg>
<span>Reported successfully</span>
</div>
</div>
<footer
class="w-full bg-transparent text-gray-500 dark:text-gray-200 text-sm font-bold font-sans flex justify-between items-center px-4 fixed bottom-0">
<div>
Created by
<a class="hover:text-gray-300 dark:hover:text-gray-400 transition-colors pb-0" href="https://amithv.xyz">
amithv.xyz
</a>
</div>
<div class="flex gap-4">
<a class="hover:text-gray-300 dark:hover:text-gray-400 transition-colors pb-0"
href="https://github.com/amith-vp/english-malayalam-pronunciation">
GitHub
</a>
<a class="hover:text-gray-300 dark:hover:text-gray-400 transition-colors pb-0"
href="https://buymeacoffee.com/amithv">
Buy me a coffee
</a>
</div>
</footer>
</main>
<!-- Cloudflare Web Analytics -->
<script defer src='https://static.cloudflareinsights.com/beacon.min.js'
data-cf-beacon='{"token": "87b2df4ee0384016a47f8ba865159cc4"}'></script><!-- End Cloudflare Web Analytics -->
</body>