Spaces:
Running
Running
Update index.html
Browse files- index.html +51 -43
index.html
CHANGED
|
@@ -4,74 +4,82 @@
|
|
| 4 |
<meta charset="UTF-8">
|
| 5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
<title>Currency Converter</title>
|
| 7 |
-
<link rel="stylesheet" href="
|
| 8 |
</head>
|
| 9 |
<body>
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
|
|
|
| 16 |
|
| 17 |
-
|
| 18 |
-
<div class="headline">
|
| 19 |
<h1>Currency Converter</h1>
|
| 20 |
-
<p>Convert currencies easily
|
| 21 |
-
</
|
| 22 |
|
| 23 |
-
|
| 24 |
-
<div class="content">
|
| 25 |
<div class="converter-container">
|
|
|
|
| 26 |
<div class="currency-box">
|
| 27 |
-
<label for="amount">Amount
|
| 28 |
<input type="number" id="amount" placeholder="Enter amount">
|
| 29 |
</div>
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
<
|
| 33 |
-
<
|
| 34 |
-
<
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 43 |
</div>
|
| 44 |
-
|
| 45 |
<button id="convert-btn">Convert</button>
|
| 46 |
-
<
|
| 47 |
</div>
|
| 48 |
-
</
|
| 49 |
|
| 50 |
-
|
| 51 |
-
<div class="how-to-use">
|
| 52 |
<h2>How to Convert</h2>
|
| 53 |
<div class="steps">
|
| 54 |
<div class="step">
|
| 55 |
-
<h3>
|
| 56 |
-
<p>
|
| 57 |
</div>
|
| 58 |
<div class="step">
|
| 59 |
-
<h3>
|
| 60 |
-
<p>
|
| 61 |
</div>
|
| 62 |
<div class="step">
|
| 63 |
-
<h3>
|
| 64 |
-
<p>
|
| 65 |
</div>
|
| 66 |
</div>
|
| 67 |
-
</
|
| 68 |
|
| 69 |
-
|
| 70 |
-
<div class="footer">
|
| 71 |
<div class="footer-content">
|
| 72 |
-
<p>About
|
|
|
|
|
|
|
| 73 |
</div>
|
| 74 |
-
</
|
| 75 |
|
| 76 |
<script src="script.js"></script>
|
| 77 |
</body>
|
|
|
|
| 4 |
<meta charset="UTF-8">
|
| 5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
<title>Currency Converter</title>
|
| 7 |
+
<link rel="stylesheet" href="style.css">
|
| 8 |
</head>
|
| 9 |
<body>
|
| 10 |
+
<header>
|
| 11 |
+
<nav class="navbar">
|
| 12 |
+
<div class="logo">
|
| 13 |
+
<img src="logo.png" alt="Logo">
|
| 14 |
+
</div>
|
| 15 |
+
</nav>
|
| 16 |
+
</header>
|
| 17 |
|
| 18 |
+
<section class="headline">
|
|
|
|
| 19 |
<h1>Currency Converter</h1>
|
| 20 |
+
<p>Convert your money between different currencies easily.</p>
|
| 21 |
+
</section>
|
| 22 |
|
| 23 |
+
<section class="content">
|
|
|
|
| 24 |
<div class="converter-container">
|
| 25 |
+
<!-- Amount -->
|
| 26 |
<div class="currency-box">
|
| 27 |
+
<label for="amount">Amount:</label>
|
| 28 |
<input type="number" id="amount" placeholder="Enter amount">
|
| 29 |
</div>
|
| 30 |
+
<!-- From & To Currency -->
|
| 31 |
+
<div class="currency-select">
|
| 32 |
+
<div class="currency-group">
|
| 33 |
+
<label for="from-currency">From:</label>
|
| 34 |
+
<select id="from-currency">
|
| 35 |
+
<option value="USD">🇺🇸 USD</option>
|
| 36 |
+
<option value="EUR">🇪🇺 EUR</option>
|
| 37 |
+
<!-- Add other currencies here -->
|
| 38 |
+
</select>
|
| 39 |
+
</div>
|
| 40 |
+
|
| 41 |
+
<button id="swap-btn" onclick="swapCurrencies()">⇅</button>
|
| 42 |
+
|
| 43 |
+
<div class="currency-group">
|
| 44 |
+
<label for="to-currency">To:</label>
|
| 45 |
+
<select id="to-currency">
|
| 46 |
+
<option value="EUR">🇪🇺 EUR</option>
|
| 47 |
+
<option value="USD">🇺🇸 USD</option>
|
| 48 |
+
<!-- Add other currencies here -->
|
| 49 |
+
</select>
|
| 50 |
+
</div>
|
| 51 |
</div>
|
| 52 |
+
|
| 53 |
<button id="convert-btn">Convert</button>
|
| 54 |
+
<p id="result"></p>
|
| 55 |
</div>
|
| 56 |
+
</section>
|
| 57 |
|
| 58 |
+
<section class="how-to-use">
|
|
|
|
| 59 |
<h2>How to Convert</h2>
|
| 60 |
<div class="steps">
|
| 61 |
<div class="step">
|
| 62 |
+
<h3>1. Enter the Amount</h3>
|
| 63 |
+
<p>Simply type the amount you want to convert in the input box.</p>
|
| 64 |
</div>
|
| 65 |
<div class="step">
|
| 66 |
+
<h3>2. Select Your Currencies</h3>
|
| 67 |
+
<p>Choose the currency you want to convert from and to.</p>
|
| 68 |
</div>
|
| 69 |
<div class="step">
|
| 70 |
+
<h3>3. That's It</h3>
|
| 71 |
+
<p>Our currency converter will show you the current exchange rate.</p>
|
| 72 |
</div>
|
| 73 |
</div>
|
| 74 |
+
</section>
|
| 75 |
|
| 76 |
+
<footer class="footer">
|
|
|
|
| 77 |
<div class="footer-content">
|
| 78 |
+
<p>About</p>
|
| 79 |
+
<p>Social Media</p>
|
| 80 |
+
<p>Copyright © 2022025</p>
|
| 81 |
</div>
|
| 82 |
+
</footer>
|
| 83 |
|
| 84 |
<script src="script.js"></script>
|
| 85 |
</body>
|