-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
170 lines (140 loc) · 7.51 KB
/
index.html
File metadata and controls
170 lines (140 loc) · 7.51 KB
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
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Bootstrap css -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN" crossorigin="anonymous">
<!-- My css -->
<link rel="stylesheet" href="./assets/css/welcome.css">
<title>Wallet Wizard</title>
</head>
<body>
<!-- Exterior div -->
<div class="container exterior-div mb-5">
<div class="container text-center header-div mb-5 pb-3">
<h1 class="header display-5">Welcome to</h1>
<h1 class="header display-5">Wallet Wizard!</h1>
</div>
<!-- FORM -->
<form id="onboarding-form">
<!-- Username -->
<div class="mb-5" id="username-div">
<label for="username">Username</label>
<input type="text" class="form-control" id="username">
</div>
<!-- HIDDEN. SHOW only for new user -->
<div class="new-user-block hidden" data-display="hidden">
<!-- Welcome Message -->
<div class="text-center pt-5 pb-3 mt-5 mb-5" id="new-user-message">
<p class="p-0 m-0">Seems like you're a new user. Welcome!</p>
<p class="p-0 m-0">Please fill in the form below to get started.</p>
</div>
<div class="mb-5" id="basic-info-section">
<!-- Name / Surname -->
<div class="row mb-2">
<div class="col-12 col-sm-6">
<label for="name">Name</label>
<input type="text" class="form-control" id="first-name" placeholder="e.g. John">
</div>
<div class="col-12 col-sm-6">
<label for="surname">Surname</label>
<input type="text" class="form-control" id="last-name" placeholder="e.g. Smith">
</div>
</div>
<!-- Country / Currency -->
<div class="row mb-2">
<div class="col-8 col-sm-6">
<label for="country">Country</label>
<select class="form-control" id="country">
<option value="GBP" selected>United Kingdom</option>
<option value="USD">United States</option>
<option disabled>...</option>
</select>
</div>
<div class="col-4 col-sm-6">
<label for="currency">Currency</label>
<select class="form-control" id="currency">
<option value="GBP" selected>British pound</option>
<option value="USD">United States dollar</option>
<option value="EUR">Euro</option>
<option disabled>...</option>
</select>
</div>
</div>
</div>
<!-- DYNAMICALLY UPDATED ELEEMENTS BELOW -->
<!-- INCOME -->
<div class="container mb-2 mt-2 income-section dynamic-section">
<p class="">Income</p>
<!-- Updated dynamically -->
<div class="income-blocks mb-2 mt-2 ms-0 me-0">
<div class="income-block row">
<div class="col-12 col-sm-6 p-1">
<input type="text" class="form-control" placeholder="e.g. MyCompany LTD." data-type="desc">
</div>
<div class="col-7 col-sm-3 p-1">
<input type="text" class="form-control" placeholder="Amount" data-type="amount">
</div>
<div class="col-5 col-sm-3 p-1">
<select class="form-control" data-type="freq">
<option value="1">Hourly</option>
<option value="2">Daily</option>
<option value="3">Weekly</option>
<option value="4">Bi-Weekly</option>
<option value="5" selected>Monthly</option>
<option value="6">Yearly</option>
</select>
</div>
</div>
</div>
<!-- + / - Buttons -->
<button class="btn btn-secondary add-remove-btn" type="button" id="add-income">+</button>
<button class="btn btn-secondary add-remove-btn" type="button" id="remove-income">-</button>
</div>
<!-- BUDGETS -->
<div class="container mb-2 mt-2 budget-section dynamic-section">
<p class="">Budgets</p>
<!-- Updated dynamically -->
<div class="budget-blocks mb-2 mt-2">
<div class=" budget-block row">
<div class="col-12 col-sm-6 p-1">
<input type="text" class="form-control" placeholder="e.g. Bills" data-type="desc">
</div>
<div class="col-7 col-sm-3 p-1">
<input type="text" class="form-control" placeholder="Amount" data-type="amount">
</div>
<div class="col-5 col-sm-3 p-1">
<select class="form-control" data-type="freq">
<option value="1">Hourly</option>
<option value="2">Daily</option>
<option value="3">Weekly</option>
<option value="4">Bi-Weekly</option>
<option value="5" selected>Monthly</option>
<option value="6">Yearly</option>
</select>
</div>
</div>
</div>
<!-- + / - Buttons -->
<button class="btn btn-secondary add-remove-btn" type="button" id="add-budget">+</button>
<button class="btn btn-secondary add-remove-btn" type="button" id="remove-budget">-</button>
</div>
<!-- SUBMIT form button -->
</div>
<div class="text-center submit-btn-div m-5">
<button class="btn btn-primary submit-btn" type="submit">Log In</button>
</div>
</form>
</div>
<!-- Bootstrap Script -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"
integrity="sha384-C6RzsynM9kWDrMNeT87bh95OGNyZPhcTNXj1NW7RuBCsyN/o0jlpcV8Qyq46cDfL"
crossorigin="anonymous"></script>
<script src="./assets/js/welcome.js"></script>
<script src="./assets/js/main.js"></script>
<script src="./assets/js/apikey.js"></script>
<script src="./assets/js/api-welcome.js"></script>
</body>
</html>