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="style.css"> | |
| </head> | |
| <body> | |
| <!-- Navbar --> | |
| <div class="navbar"> | |
| <div class="logo"> | |
| <img src="logo.png" alt="Logo"> | |
| </div> | |
| <p>Welcome to Currency Converter</p> | |
| </div> | |
| <hr> | |
| <!-- Headline and Explanation --> | |
| <div class="headline"> | |
| <h1>Currency Converter</h1> | |
| <p>Check live foreign exchange rates and convert currencies with ease!</p> | |
| </div> | |
| <!-- Content (Converter) --> | |
| <div class="content"> | |
| <div class="converter"> | |
| <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 (About, Social Media, Copyright) --> | |
| <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> | |
| <script src="script.js"></script> | |
| </body> | |
| </html> |