|
<!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="style.css"> |
|
</head> |
|
<body> |
|
<div class="container"> |
|
|
|
<header> |
|
<div class="logo"> |
|
<img src="logo.png" alt="Logo"> |
|
</div> |
|
<h1>Currency Converter</h1> |
|
<p>Check Live Foreign Currency Exchange Rate</p> |
|
</header> |
|
|
|
|
|
<div class="content"> |
|
<div class="currency-container"> |
|
<div class="currency-labels"> |
|
<label for="amount">Amount</label> |
|
<input type="number" id="amount" placeholder="Enter amount"> |
|
</div> |
|
|
|
<div class="currency-labels"> |
|
<label for="from-currency">From</label> |
|
<select id="from-currency"> |
|
<option value="USD">USD</option> |
|
<option value="EUR">EUR</option> |
|
<option value="GBP">GBP</option> |
|
</select> |
|
</div> |
|
|
|
<button id="swap-btn" onclick="swapCurrencies()">↕</button> |
|
|
|
<div class="currency-labels"> |
|
<label for="to-currency">To</label> |
|
<select id="to-currency"> |
|
<option value="EUR">EUR</option> |
|
<option value="USD">USD</option> |
|
<option value="GBP">GBP</option> |
|
</select> |
|
</div> |
|
|
|
<button id="convert-btn" onclick="convertCurrency()">Convert</button> |
|
<p id="result"></p> |
|
</div> |
|
</div> |
|
|
|
|
|
<footer> |
|
<p><strong>About:</strong> Currency Converter App</p> |
|
<p><strong>Follow us:</strong> <a href="#">Facebook</a> | <a href="#">Twitter</a></p> |
|
<p>© 2025 Currency Converter App. All rights reserved.</p> |
|
</footer> |
|
</div> |
|
|
|
<script src="script.js"></script> |
|
</body> |
|
</html> |