forked from tomkovich/converter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
140 lines (120 loc) · 4.67 KB
/
index.html
1
2
3
4
5
6
7
8
9
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>SuperPuper Currency Converter</title>
<link rel="stylesheet" href="./styles/styles.css" />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap"
rel="stylesheet"
/>
</head>
<body>
<main>
<div class="container">
<h1>Check live foreign currency exchange rates</h1>
<div class="main">
<div class="wrapper">
<div class="tabs">
<div class="tab active" data-tab="convert">
<div class="tab-icon">
<img src="./images/convert.svg" alt="" />
</div>
<div class="tab-title">Convert</div>
</div>
<div class="tab" data-tab="single">
<div class="tab-icon">
<img src="./images/single.svg" alt="" />
</div>
<div class="tab-title">Single</div>
</div>
</div>
<div class="content show" data-child="convert">
<form class="form">
<div class="form-inputs">
<div class="form-group">
<label for="amount">Amount</label>
<input
type="number"
name="amount"
id="amount"
required
placeholder="1.00"
/>
</div>
<div class="form-selects">
<div class="form-select">
<label for="from">From</label>
<select class="select" name="from" id="from" required>
<option value="" disabled selected hidden>
Choose currency
</option>
</select>
</div>
<div class="form-select__icon switch-currencies">
<img src="./images/arrows.png" alt="" />
</div>
<div class="form-select">
<label for="to">To</label>
<select class="select" name="to" id="to" required>
<option value="" disabled selected hidden>
Choose currency
</option>
</select>
</div>
</div>
</div>
<div class="form-info">
<div class="loader">
<span></span>
<span></span>
<span></span>
</div>
<div class="form-results">
<div class="form-result__item from" id="resultFrom"></div>
<div class="form-result__equals">
<img src="./images/equals.svg" alt="" />
</div>
<div class="form-result__item to" id="resultTo"></div>
</div>
<button type="submit" class="form-submit">Convert</button>
</div>
<div class="rate-information">
<div class="rate-conversion"></div>
<div class="rate-last"></div>
</div>
</form>
</div>
<div class="content" data-child="single">
<div class="currency-wrapper">
<div class="currency-single">
<select class="select" id="singleSelect">
<option value="" disabled selected hidden>
Choose currency
</option>
</select>
<div class="currency-single__item"></div>
</div>
<div class="currency-list"></div>
</div>
<div class="currency-add">
<button class="currency-add__button">Add currency</button>
<select class="select" id="addCurrencySelect">
<option value="" disabled selected hidden>
Choose currency
</option>
</select>
</div>
</div>
</div>
</div>
</div>
</main>
<script type="module" src="./js/index.js"></script>
<script type="module" src="./js/events.js"></script>
</body>
</html>