@@ -4,57 +4,35 @@ export default function InputCurrencyConversion() {
44 < div
55 className = "w-full place-items-center"
66 dangerouslySetInnerHTML = { {
7- __html : `<div class="w-full max-w-sm min-w-[200px] mt-4">
8- <label class="block mb-1 text-sm text-slate-600 ">
7+ __html : ` <div class="w-full max-w-sm min-w-[200px] mt-4">
8+ <label class="block mb-2 text-sm font-semibold antialiased text-slate-800 ">
99 Cardholder Name
1010 </label>
11- <input
12- type="text"
13- class="w-full bg-transparent placeholder:text-slate-400 text-slate-700 text-sm border border-slate-200 rounded-md pl-3 pr-20 py-2 transition duration-300 ease focus:outline-none focus:border-slate-400 hover:border-slate-300 shadow-sm focus:shadow"
14- placeholder="e.g John Doe"
15- />
11+ <input class="w-full bg-transparent placeholder:text-slate-400 text-slate-700 text-sm border border-slate-200 rounded-md pl-3 pr-20 py-2 transition duration-300 ease focus:outline-none focus:border-slate-400 ring ring-transparent hover:ring-slate-800/10 focus:ring-slate-800/10 hover:border-slate-800 shadow-sm focus:shadow" type="text" placeholder="e.g John Doe" />
1612
17- <label class="block mb-1 text-sm text-slate-600 mt-4">
13+ <label class="block mb-2 text-sm font-semibold antialiased text-slate-800 mt-4">
1814 Card Number
1915 </label>
20- <input
21- type="text"
22- id="cardNumber"
23- class="w-full bg-transparent placeholder:text-slate-400 text-slate-700 text-sm border border-slate-200 rounded-md pl-3 pr-20 py-2 transition duration-300 ease focus:outline-none focus:border-slate-400 hover:border-slate-300 shadow-sm focus:shadow"
24- placeholder="1234 5678 9012 3456"
25- maxlength="19"
26- oninput="formatCardNumber(this)"
27- />
16+ <input class="w-full bg-transparent placeholder:text-slate-400 text-slate-700 text-sm border border-slate-200 rounded-md pl-3 pr-20 py-2 transition duration-300 ease focus:outline-none focus:border-slate-400 ring ring-transparent hover:ring-slate-800/10 focus:ring-slate-800/10 hover:border-slate-800 shadow-sm focus:shadow" type="text" id="cardNumber" placeholder="1234 5678 9012 3456" maxlength="19" oninput="formatCardNumber(this)" />
2817
2918 <div class="flex">
3019 <div class="w-full md:w-8/12 mr-4">
31- <label class="block mb-1 text-sm text-slate-600 mt-4">
20+ <label class="block mb-2 text-sm font-semibold antialiased text-slate-800 mt-4">
3221 Expiration Date
3322 </label>
34- <input
35- type="text"
36- class="w-full bg-transparent placeholder:text-slate-400 text-slate-700 text-sm border border-slate-200 rounded-md pl-3 pr-20 py-2 transition duration-300 ease focus:outline-none focus:border-slate-400 hover:border-slate-300 shadow-sm focus:shadow"
37- placeholder="MM/YY"
38- maxlength="5"
39- pattern="\d{2}/\d{2}"
40- oninput="this.value = this.value.replace(/[^0-9]/g, '').replace(/(\d{2})(\d{1,2})/, '$1/$2').substring(0, 5);"
41- />
23+ <input class="w-full bg-transparent placeholder:text-slate-400 text-slate-700 text-sm border border-slate-200 rounded-md pl-3 pr-20 py-2 transition duration-300 ease focus:outline-none focus:border-slate-400 ring ring-transparent hover:ring-slate-800/10 focus:ring-slate-800/10 hover:border-slate-800 shadow-sm focus:shadow" type="text" placeholder="MM/YY" maxlength="5" pattern="\d{2}/\d{2}" oninput="this.value = this.value.replace(/[^0-9]/g, '').replace(/(\d{2})(\d{1,2})/, '$1/$2').substring(0, 5);" />
4224 </div>
4325 <div class="w-full md:w-4/12">
44- <label class="block mb-1 text-sm text-slate-600 mt-4">
26+ <label class="block mb-2 text-sm font-semibold antialiased text-slate-800 mt-4">
4527 CVV
4628 </label>
47- <input
48- type="text"
49- class="w-full bg-transparent placeholder:text-slate-400 text-slate-700 text-sm border border-slate-200 rounded-md pl-3 pr-20 py-2 transition duration-300 ease focus:outline-none focus:border-slate-400 hover:border-slate-300 shadow-sm focus:shadow"
50- placeholder="123"
51- maxlength="3"
52- pattern="\d{3}"
53- oninput="this.value = this.value.replace(/[^0-9]/g, '').replace(/(\..*)\./g, '$1');"/>
29+ <input class="w-full bg-transparent placeholder:text-slate-400 text-slate-700 text-sm border border-slate-200 rounded-md pl-3 pr-20 py-2 transition duration-300 ease focus:outline-none focus:border-slate-400 ring ring-transparent hover:ring-slate-800/10 focus:ring-slate-800/10 hover:border-slate-800 shadow-sm focus:shadow" type="text" placeholder="123" maxlength="3" pattern="\d{3}" oninput="this.value = this.value.replace(/[^0-9]/g, '').replace(/(\..*)\./g, '$1');" />
5430 </div>
5531 </div>
5632
57- <button class="w-full mt-4 rounded-md bg-slate-800 py-2 px-4 border border-transparent text-center text-sm text-white transition-all shadow-md hover:shadow-lg focus:bg-slate-700 focus:shadow-none active:bg-slate-700 hover:bg-slate-700 active:shadow-none disabled:pointer-events-none disabled:opacity-50 disabled:shadow-none">Purchase Now</button>
33+ <button class="w-full mt-4 rounded-md bg-slate-800 py-2 px-4 border border-transparent text-center text-sm text-white transition-all shadow-md hover:shadow-lg focus:bg-slate-700 focus:shadow-none active:bg-slate-700 hover:bg-slate-700 active:shadow-none disabled:pointer-events-none disabled:opacity-50 disabled:shadow-none">
34+ Purchase Now
35+ </button>
5836</div>
5937
6038<script>
0 commit comments