Spaces:
Running
Running
<html><head><link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/full.css" rel="stylesheet" type="text/css" /><script defer src="https://cdn.jsdelivr.net/npm/[email protected]/dist/cdn.min.js"></script><script src="https://cdn.tailwindcss.com?plugins=forms,typography,aspect-ratio"></script><script defer src="https://cdnjs.cloudflare.com/ajax/libs/three.js/0.156.1/three.min.js"></script><script type="module" src="main.js"></script><title>Currency Converter</title></head> | |
<body class="bg-cyan-500"> | |
<div id="app" class="container max-w-sm mx-auto mt-8"> | |
<h1>Currency Converter</h1> | |
<h2>Convert amounts between currencies</h2> | |
<form action="#" method="post" class="bg-white shadow-md rounded px-8 pt-6 pb-8 mb-4"> | |
<label class="block text-gray-700 text-sm font-bold mb-2" for="amount">Amount</label> | |
<input type="number" id="amount" class="block w-full border border-gray-300 bg-gray-50 rounded px-3 py-2 text-gray-700 h-10 focus:outline-none focus:border- brand-orange focus:ring-2 focus:ring-brand-orange focus:ring-opacity-50" name="amount" required min="0" step="0.01" value=""> | |
<label class="block text-gray-700 text-sm font-bold mt-4 mb-2" for="from">From</label> | |
<select id="from" class="block w-full border border-gray-300 bg-gray-50 rounded px-3 py-2 text-gray-700 h-10 focus:outline-none focus:border-brand-orange focus:ring-2 focus:ring-brand-orange focus:ring-opacity-50" name="from"> | |
<option value="USD">United States Dollar (USD)</option> | |
<option value="EUR">Euro (EUR)</option> | |
<option value="GBP">British Pound (GBP)</option> | |
<option value="JPY">Japanese Yen (JPY)</option> | |
<option value="CNY">Chinese Yuan (CNY)</option> | |
</select> | |
<label class="block text-gray-700 text-sm font-bold mt-4 mb-2" for="to">To</label> | |
<select id="to" class="block w-full border border-gray-300 bg-gray-50 rounded px-3 py-2 text-gray-700 h-10 focus:outline-none focus:border-brand-orange focus:ring-2 focus:ring-brand-orange focus:ring-opacity-50" name="to"> | |
<option value="USD">United States Dollar (USD)</option> | |
<option value="EUR">Euro (EUR)</option> | |
<option value="GBP">British Pound (GBP)</option> | |
<option value="JPY">Japanese Yen (JPY)</option> | |
<option value="CNY">Chinese Yuan (CNY)</option> | |
</select> | |
<button type="submit" class="btn btn-brand-orange mt-4">Convert</button> | |
</form> | |
</div> | |
</body> | |
</html> |