|
<!DOCTYPE html> |
|
<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"> |
|
<script src="https://kit.fontawesome.com/a076d05399.js"></script> |
|
</head> |
|
<body> |
|
|
|
|
|
<div class="navbar"> |
|
<div class="logo"> |
|
<img src="logo.png" alt="Logo"> |
|
</div> |
|
</div> |
|
|
|
|
|
<div class="headline"> |
|
<h1>Currency Converter</h1> |
|
<p>Convert currencies quickly and easily.</p> |
|
</div> |
|
|
|
|
|
<div class="content"> |
|
<div class="converter-container"> |
|
|
|
<div class="currency-box"> |
|
<label for="amount">Amount</label> |
|
<input type="number" id="amount" placeholder="Enter amount" /> |
|
</div> |
|
|
|
|
|
<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> |
|
|
|
|
|
<button id="convert-btn" onclick="convertCurrency()">Convert</button> |
|
|
|
|
|
<div id="result"></div> |
|
</div> |
|
</div> |
|
|
|
|
|
<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 currency you want to convert from and to.</p> |
|
</div> |
|
<div class="step"> |
|
<h3>3. Hit Convert</h3> |
|
<p>Click the convert button to see the result.</p> |
|
</div> |
|
</div> |
|
</div> |
|
|
|
|
|
<div class="footer"> |
|
<div class="footer-content"> |
|
<p>About</p> |
|
<p>Social Media</p> |
|
<p>Copyright © 2025</p> |
|
</div> |
|
</div> |
|
|
|
<script src="script.js"></script> |
|
</body> |
|
</html> |