Spaces:
Running
Running
Update index.html
Browse files- index.html +57 -46
index.html
CHANGED
@@ -7,60 +7,71 @@
|
|
7 |
<link rel="stylesheet" href="style.css">
|
8 |
</head>
|
9 |
<body>
|
10 |
-
|
11 |
-
|
12 |
-
<
|
13 |
-
<
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
|
42 |
-
|
43 |
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
|
|
|
|
|
|
|
|
51 |
</div>
|
|
|
52 |
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
|
|
|
|
|
|
|
|
|
|
57 |
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
|
|
64 |
|
65 |
<script src="script.js"></script>
|
66 |
</body>
|
|
|
7 |
<link rel="stylesheet" href="style.css">
|
8 |
</head>
|
9 |
<body>
|
10 |
+
<div class="container">
|
11 |
+
<!-- Navbar -->
|
12 |
+
<header class="navbar">
|
13 |
+
<div class="logo">
|
14 |
+
<img src="logo.png" alt="Logo">
|
15 |
+
</div>
|
16 |
+
<p class="welcome-text">Welcome to Currency Converter</p>
|
17 |
+
</header>
|
18 |
|
19 |
+
<!-- Headline and Explanation -->
|
20 |
+
<section class="headline">
|
21 |
+
<h1>Currency Converter</h1>
|
22 |
+
<p>Convert your money into different currencies with ease. Get the most accurate rates!</p>
|
23 |
+
</section>
|
24 |
|
25 |
+
<!-- Currency Converter Section -->
|
26 |
+
<section class="converter-content">
|
27 |
+
<div class="currency-container">
|
28 |
+
<div class="currency-input">
|
29 |
+
<label for="amount">Amount</label>
|
30 |
+
<input type="number" id="amount" placeholder="Enter amount">
|
31 |
+
</div>
|
32 |
|
33 |
+
<div class="currency-input">
|
34 |
+
<label for="from-currency">From</label>
|
35 |
+
<select id="from-currency">
|
36 |
+
<option value="USD">USD</option>
|
37 |
+
<option value="EUR">EUR</option>
|
38 |
+
<option value="GBP">GBP</option>
|
39 |
+
</select>
|
40 |
+
</div>
|
41 |
|
42 |
+
<button id="swap-btn" onclick="swapCurrencies()">↕</button>
|
43 |
|
44 |
+
<div class="currency-input">
|
45 |
+
<label for="to-currency">To</label>
|
46 |
+
<select id="to-currency">
|
47 |
+
<option value="EUR">EUR</option>
|
48 |
+
<option value="USD">USD</option>
|
49 |
+
<option value="GBP">GBP</option>
|
50 |
+
</select>
|
51 |
+
</div>
|
52 |
+
|
53 |
+
<button id="convert-btn" onclick="convertCurrency()">Convert</button>
|
54 |
+
<p id="result"></p>
|
55 |
</div>
|
56 |
+
</section>
|
57 |
|
58 |
+
<!-- Instructions for Using Converter -->
|
59 |
+
<section class="instructions">
|
60 |
+
<div class="instructions-box">
|
61 |
+
<h2>How to Use the Converter</h2>
|
62 |
+
<p>1. Enter the amount you want to convert.</p>
|
63 |
+
<p>2. Select the currency you want to convert from and to.</p>
|
64 |
+
<p>3. Press the 'Convert' button or use the 'Swap' button to reverse currencies.</p>
|
65 |
+
</div>
|
66 |
+
</section>
|
67 |
|
68 |
+
<!-- Footer -->
|
69 |
+
<footer class="footer">
|
70 |
+
<p><strong>About:</strong> Currency Converter App</p>
|
71 |
+
<p><strong>Follow us:</strong> <a href="#">Facebook</a> | <a href="#">Twitter</a></p>
|
72 |
+
<p>© 2025 Currency Converter App. All rights reserved.</p>
|
73 |
+
</footer>
|
74 |
+
</div>
|
75 |
|
76 |
<script src="script.js"></script>
|
77 |
</body>
|