GarGerry commited on
Commit
8ad3b06
·
verified ·
1 Parent(s): 063176f

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +57 -46
index.html CHANGED
@@ -7,60 +7,71 @@
7
  <link rel="stylesheet" href="style.css">
8
  </head>
9
  <body>
10
- <!-- Navbar -->
11
- <div class="navbar">
12
- <div class="logo">
13
- <img src="logo.png" alt="Logo">
14
- </div>
15
- <p>Welcome to Currency Converter</p>
16
- </div>
17
- <hr>
18
 
19
- <!-- Headline and Explanation -->
20
- <div class="headline">
21
- <h1>Currency Converter</h1>
22
- <p>Check live foreign exchange rates and convert currencies with ease!</p>
23
- </div>
24
 
25
- <!-- Content (Converter) -->
26
- <div class="content">
27
- <div class="converter">
28
- <div class="currency-labels">
29
- <label for="amount">Amount</label>
30
- <input type="number" id="amount" placeholder="Enter amount">
31
- </div>
32
 
33
- <div class="currency-labels">
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-labels">
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
- </div>
 
 
 
 
 
57
 
58
- <!-- Footer (About, Social Media, Copyright) -->
59
- <footer>
60
- <p><strong>About:</strong> Currency Converter App</p>
61
- <p><strong>Follow us:</strong> <a href="#">Facebook</a> | <a href="#">Twitter</a></p>
62
- <p>&copy; 2025 Currency Converter App. All rights reserved.</p>
63
- </footer>
 
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>&copy; 2025 Currency Converter App. All rights reserved.</p>
73
+ </footer>
74
+ </div>
75
 
76
  <script src="script.js"></script>
77
  </body>