Spaces:
Running
Running
Update index.html
Browse files- index.html +49 -74
index.html
CHANGED
@@ -8,95 +8,70 @@
|
|
8 |
</head>
|
9 |
<body>
|
10 |
<!-- Navbar -->
|
11 |
-
<
|
12 |
-
<div class="
|
13 |
-
<
|
14 |
-
<p>Welcome to
|
15 |
</div>
|
16 |
-
</
|
17 |
|
18 |
<!-- Headline and Explanation -->
|
19 |
-
<section
|
20 |
-
<
|
21 |
-
|
22 |
-
<p>Enter the amount and select currencies to convert. Get the current exchange rate instantly!</p>
|
23 |
-
</div>
|
24 |
</section>
|
25 |
|
26 |
-
<!-- Currency Converter
|
27 |
-
<section
|
28 |
-
<div class="container">
|
29 |
-
<div class="currency-
|
30 |
-
|
31 |
-
<
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
<
|
39 |
-
|
40 |
-
<option value="USD">USD</option>
|
41 |
-
<option value="EUR">EUR</option>
|
42 |
-
<!-- Add more currencies here -->
|
43 |
-
</select>
|
44 |
-
</div>
|
45 |
-
|
46 |
-
<!-- To Currency -->
|
47 |
-
<div class="currency-input">
|
48 |
-
<label for="to-currency">To Currency</label>
|
49 |
-
<select id="to-currency">
|
50 |
-
<option value="EUR">EUR</option>
|
51 |
-
<option value="USD">USD</option>
|
52 |
-
<!-- Add more currencies here -->
|
53 |
-
</select>
|
54 |
-
</div>
|
55 |
-
|
56 |
-
<!-- Swap Button -->
|
57 |
-
<button id="swap-btn" onclick="swapCurrencies()">↔️</button>
|
58 |
-
|
59 |
-
<!-- Convert Button -->
|
60 |
-
<button id="convert-btn" onclick="convertCurrency()">Convert</button>
|
61 |
-
|
62 |
-
<!-- Conversion Result -->
|
63 |
-
<div id="result"></div>
|
64 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
65 |
</div>
|
|
|
66 |
</section>
|
67 |
|
68 |
-
<!--
|
69 |
-
<section
|
70 |
-
<
|
71 |
-
|
72 |
-
<div class="
|
73 |
-
<
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
</div>
|
84 |
-
</div>
|
85 |
-
<div class="step">
|
86 |
-
<h4>Step 3</h4>
|
87 |
-
<div class="step-box">
|
88 |
-
<p>Click "Convert" to see the exchange rate and converted amount.</p>
|
89 |
-
</div>
|
90 |
-
</div>
|
91 |
</div>
|
92 |
</div>
|
93 |
</section>
|
94 |
|
95 |
<!-- Footer -->
|
96 |
<footer>
|
97 |
-
<
|
98 |
-
<p>About | <a href="#">Social Media</a> | © 2025 Currency Converter</p>
|
99 |
-
</div>
|
100 |
</footer>
|
101 |
|
102 |
<script src="script.js"></script>
|
|
|
8 |
</head>
|
9 |
<body>
|
10 |
<!-- Navbar -->
|
11 |
+
<nav class="navbar">
|
12 |
+
<div class="navbar-content">
|
13 |
+
<img src="logo.png" alt="Logo" class="logo">
|
14 |
+
<p class="welcome-text">Welcome to Currency Converter</p>
|
15 |
</div>
|
16 |
+
</nav>
|
17 |
|
18 |
<!-- Headline and Explanation -->
|
19 |
+
<section class="headline-section">
|
20 |
+
<h1 class="headline">Currency Converter</h1>
|
21 |
+
<p class="explanation">Easily convert between different currencies using the latest exchange rates.</p>
|
|
|
|
|
22 |
</section>
|
23 |
|
24 |
+
<!-- Currency Converter Form -->
|
25 |
+
<section class="converter-container">
|
26 |
+
<div class="currency-container">
|
27 |
+
<div class="currency-input">
|
28 |
+
<label for="amount">Amount:</label>
|
29 |
+
<input type="number" id="amount" placeholder="Enter amount">
|
30 |
+
</div>
|
31 |
+
<div class="currency-input">
|
32 |
+
<label for="from-currency">From:</label>
|
33 |
+
<select id="from-currency">
|
34 |
+
<option value="USD">USD</option>
|
35 |
+
<option value="EUR">EUR</option>
|
36 |
+
<option value="IDR">IDR</option>
|
37 |
+
</select>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
38 |
</div>
|
39 |
+
<div class="currency-input">
|
40 |
+
<label for="to-currency">To:</label>
|
41 |
+
<select id="to-currency">
|
42 |
+
<option value="EUR">EUR</option>
|
43 |
+
<option value="USD">USD</option>
|
44 |
+
<option value="IDR">IDR</option>
|
45 |
+
</select>
|
46 |
+
</div>
|
47 |
+
<button id="swap-btn" onclick="swapCurrencies()">🔄</button>
|
48 |
+
<button id="convert-btn" onclick="convertCurrency()">Convert</button>
|
49 |
</div>
|
50 |
+
<div id="result"></div>
|
51 |
</section>
|
52 |
|
53 |
+
<!-- Steps to use Converter -->
|
54 |
+
<section class="steps-container">
|
55 |
+
<h2>How to Convert</h2>
|
56 |
+
<div class="steps">
|
57 |
+
<div class="step">
|
58 |
+
<h3>1. Enter Amount</h3>
|
59 |
+
<p>Simply type the amount you want to convert into the amount box.</p>
|
60 |
+
</div>
|
61 |
+
<div class="step">
|
62 |
+
<h3>2. Select Your Currency</h3>
|
63 |
+
<p>Select the currency you are converting from and to from the dropdown menus.</p>
|
64 |
+
</div>
|
65 |
+
<div class="step">
|
66 |
+
<h3>3. That's It!</h3>
|
67 |
+
<p>The exchange rate will be calculated and displayed instantly.</p>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
68 |
</div>
|
69 |
</div>
|
70 |
</section>
|
71 |
|
72 |
<!-- Footer -->
|
73 |
<footer>
|
74 |
+
<p>© 2025 Currency Converter. All Rights Reserved.</p>
|
|
|
|
|
75 |
</footer>
|
76 |
|
77 |
<script src="script.js"></script>
|