Spaces:
Running
Running
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Currency Converter</title> | |
<link rel="stylesheet" href="styles.css"> | |
</head> | |
<body> | |
<!-- Navbar --> | |
<header id="navbar"> | |
<div class="container"> | |
<h1>Currency Converter</h1> | |
<p>Welcome to the Currency Converter!</p> | |
</div> | |
</header> | |
<!-- Headline and Explanation --> | |
<section id="headline"> | |
<div class="container"> | |
<h2>Convert Your Currencies</h2> | |
<p>Enter the amount and select currencies to convert. Get the current exchange rate instantly!</p> | |
</div> | |
</section> | |
<!-- Currency Converter Section --> | |
<section id="converter"> | |
<div class="container"> | |
<div class="currency-container"> | |
<!-- Amount Input --> | |
<div class="currency-input"> | |
<label for="amount">Amount</label> | |
<input type="number" id="amount" placeholder="Enter amount"> | |
</div> | |
<!-- From Currency --> | |
<div class="currency-input"> | |
<label for="from-currency">From Currency</label> | |
<select id="from-currency"> | |
<option value="USD">USD</option> | |
<option value="EUR">EUR</option> | |
<!-- Add more currencies here --> | |
</select> | |
</div> | |
<!-- To Currency --> | |
<div class="currency-input"> | |
<label for="to-currency">To Currency</label> | |
<select id="to-currency"> | |
<option value="EUR">EUR</option> | |
<option value="USD">USD</option> | |
<!-- Add more currencies here --> | |
</select> | |
</div> | |
<!-- Swap Button --> | |
<button id="swap-btn" onclick="swapCurrencies()">↔️</button> | |
<!-- Convert Button --> | |
<button id="convert-btn" onclick="convertCurrency()">Convert</button> | |
<!-- Conversion Result --> | |
<div id="result"></div> | |
</div> | |
</div> | |
</section> | |
<!-- Step-by-step Guide --> | |
<section id="how-to"> | |
<div class="container"> | |
<h3>How to Convert</h3> | |
<div class="steps"> | |
<div class="step"> | |
<h4>Step 1</h4> | |
<div class="step-box"> | |
<p>Enter the amount you want to convert in the input field.</p> | |
</div> | |
</div> | |
<div class="step"> | |
<h4>Step 2</h4> | |
<div class="step-box"> | |
<p>Select the currencies you want to convert from and to.</p> | |
</div> | |
</div> | |
<div class="step"> | |
<h4>Step 3</h4> | |
<div class="step-box"> | |
<p>Click "Convert" to see the exchange rate and converted amount.</p> | |
</div> | |
</div> | |
</div> | |
</div> | |
</section> | |
<!-- Footer --> | |
<footer> | |
<div class="container"> | |
<p>About | <a href="#">Social Media</a> | © 2025 Currency Converter</p> | |
</div> | |
</footer> | |
<script src="script.js"></script> | |
</body> | |
</html> |