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 --> | |
<div class="navbar"> | |
<div class="logo"> | |
<img src="logo.png" alt="Logo"> | |
</div> | |
</div> | |
<!-- Headline --> | |
<div class="headline"> | |
<h1>Currency Converter</h1> | |
<p>Convert currencies quickly and easily.</p> | |
</div> | |
<!-- Main Content --> | |
<div class="content"> | |
<div class="converter-container"> | |
<!-- Amount input --> | |
<div class="currency-box"> | |
<label for="amount">Amount</label> | |
<input type="number" id="amount" placeholder="Enter amount" /> | |
</div> | |
<!-- Currency selection and swap button --> | |
<div class="currency-select"> | |
<div class="currency-group"> | |
<label for="from-currency">From</label> | |
<select id="from-currency"> | |
<option value="USD">USD</option> | |
<option value="EUR">EUR</option> | |
</select> | |
</div> | |
<div class="swap-btn" id="swap-btn" onclick="swapCurrencies()"> | |
<i class="fas fa-exchange-alt"></i> | |
</div> | |
<div class="currency-group"> | |
<label for="to-currency">To</label> | |
<select id="to-currency"> | |
<option value="EUR">EUR</option> | |
<option value="USD">USD</option> | |
</select> | |
</div> | |
</div> | |
<!-- Convert button --> | |
<button id="convert-btn" onclick="convertCurrency()">Convert</button> | |
<!-- Result --> | |
<div id="result"></div> | |
</div> | |
<!-- How to Use Section --> | |
<div class="how-to-use"> | |
<h2>How to Convert</h2> | |
<div class="steps"> | |
<div class="step"> | |
<h3>1. Enter the Amount</h3> | |
<p>Simply type the amount you want to convert in the input box.</p> | |
</div> | |
<div class="step"> | |
<h3>2. Select Your Currencies</h3> | |
<p>Choose the currencies you want to convert from and to.</p> | |
</div> | |
<div class="step"> | |
<h3>3. Convert!</h3> | |
<p>Click on the Convert button and get your result instantly.</p> | |
</div> | |
</div> | |
</div> | |
</div> | |
<!-- Footer --> | |
<footer class="footer"> | |
<p>© 2025 Your Company</p> | |
<p>About | Social Media | Privacy</p> | |
</footer> | |
<script src="script.js"></script> | |
</body> | |
</html> |