Repository navigation
Expand file tree
/
Copy pathgroups.html
More file actions
341 lines (307 loc) · 18.8 KB
/
Copy pathgroups.html
File metadata and controls
341 lines (307 loc) · 18.8 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
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Groups</title>
<link rel="stylesheet" href="./css/main.css">
<link rel="stylesheet" href="./css/bootstrap/css/bootstrap.css">
<link rel="stylesheet" href="./css/bootstrap/css/bootstrap.min.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.css" integrity="sha384-tViUnnbYAV00FLIhhi3v/dWt3Jxw4gZQcNoSCxCIFNJVCx7/D55/wXsrNIRANwdD" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.2/css/all.min.css" integrity="sha512-Evv84Mr4kqVGRNSgIGL/F/aIDqQb7xQ2vcrdIwxfjThSH8CSR7PBEakCr51Ck+w+/U6swU2Im1vVX0SVk9ABhg==" crossorigin="anonymous" referrerpolicy="no-referrer" />
</head>
<body>
<div class="container position-relative">
<div class="addGroupModal">
<!-- Create New Group Modal -->
<div class="modal fade" id="createGroupModal" tabindex="2" aria-labelledby="createGroupModalLabel" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content">
<!-- Modal Header -->
<div class="modal-header">
<h5 class="modal-title" id="createGroupModalLabel">Create New Group</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<!-- Modal Body -->
<div class="modal-body">
<form id="createGroupForm">
<!-- Group Name -->
<div class="mb-3">
<label for="groupName" class="form-label">Group Name</label>
<input type="text" class="form-control" id="groupName" placeholder="Enter group name" required>
</div>
<!-- Add Members -->
<div id="membersList">
<div class="row g-2 mb-2">
<div class="col">
<input type="text" class="form-control" placeholder="Name" required>
</div>
<div class="col">
<input type="email" class="form-control" placeholder="Email" required>
</div>
</div>
<div class="row g-2 mb-2">
<div class="col">
<input type="text" class="form-control" placeholder="Name">
</div>
<div class="col">
<input type="email" class="form-control" placeholder="Email">
</div>
</div>
<div class="row g-2 mb-2">
<div class="col">
<input type="text" class="form-control" placeholder="Name">
</div>
<div class="col">
<input type="email" class="form-control" placeholder="Email">
</div>
</div>
</div>
<div class="mb-3">
<a href="#" id="addMoreMembers" class="text-primary" style="text-decoration: none;">+ Add More Members</a>
</div>
<!-- Category -->
<div class="mb-3">
<label for="category" class="form-label">Category</label>
<select class="form-select" id="category">
<option selected disabled>Select category</option>
<option value="trip">Trip</option>
<option value="party">Party</option>
<option value="office">Office</option>
<option value="others">Others</option>
</select>
</div>
<!-- Description -->
<div class="mb-3">
<label for="description" class="form-label">Description</label>
<textarea class="form-control" id="description" rows="3" placeholder="Add a description for your group"></textarea>
</div>
</form>
</div>
<!-- Modal Footer -->
<div class="modal-footer">
<button type="button" class="btn btn-primary" id="CreateGroupBtn">Create Group</button>
</div>
</div>
</div>
</div>
</div>
<Header>
<div class="header d-flex justify-content-between align-items-center py-3">
<div>
<h3 class="fw-bold">SPLIT PAYMENT APP</h3>
</div>
<div class="userIconContainer d-flex justify-content-center align-items-center rounded-circle p-3" style="background-color: rgb(219 220 244);">
<i class="fa-solid fa-user" style="color: #0049c7;"></i>
</div>
</div>
</Header>
<div class="px-4 py-3 rounded" style="background-color: #f0f8ff; margin-bottom: 100px;">
<div class="goBack">
<div>
<a href="index.html" class="btn fw-bold text-decoration-none fs-5 px-0">
<i class="bi bi-arrow-left"></i>
<span id="groupTitle" >Hawaii Trip</span>
</a>
</div>
</div>
<div class="summary bg-white px-3 py-2 rounded mt-3">
<div class="summaryTitle my-2 d-flex align-items-center justify-content-sm-between justify-content-center">
<h4 class="fw-medium" style="font-size: 1.1rem;">Summary</h4>
</div>
<div class="ammountDetails col-12 d-flex flex-wrap align-items-center justify-content-between">
<div class="totalExpenses col-12 d-flex align-items-center justify-content-center mb-1 col-sm-12 col-md-6 col-lg-4">
<div class="col-11 px-3 py-2 rounded" style="background-color: #f0f8ff;">
<h6 class="m-0 fw-medium text-secondary">Total Expenses</h6>
<p class=" m-0"><span class="totalAmount fw-bold">$1250</span></p>
</div>
</div>
<div class="totalExpenses col-12 d-flex align-items-center justify-content-center mb-1 col-sm-12 col-md-6 col-lg-4">
<div class="col-11 px-3 py-2 rounded" style="background-color: #f0f8ff;">
<h6 class="m-0 fw-medium text-secondary">Your Balance</h6>
<p class="m-0"><span class="totalBalance fw-bold" style="color: #09be09;">+$320</span></p>
</div>
</div>
<div class="totalExpenses col-12 d-flex align-items-center justify-content-center mb-1 col-sm-12 col-md-6 col-lg-4">
<div class="col-11 px-3 py-2 rounded" style="background-color: #f0f8ff;">
<h6 class="m-0 fw-medium text-secondary">Members</h6>
<p class="m-0"><span class="totalMembers fw-bold">3</span></p>
</div>
</div>
</div>
</div>
<div class="membersSection bg-white px-3 py-2 mt-3 rounded">
<div class="membersTitle my-3 d-flex align-items-center justify-content-center justify-content-sm-between">
<h4 class="fw-medium" style="font-size: 1.1rem;">Members</h4>
</div>
<div class="membersData px-sm-3" id="membersList">
<div class="member d-flex align-items-center justify-content-between">
<div class="d-flex align-items-center justify-content-start">
<p class="fw-medium px-3 py-2 me-2 rounded-circle m-0" style="background-color: #e5e5ff" ><span style="color: darkblue;">Y</span></p>
<p class="memberName m-0 fw-medium">Yash</p>
</div>
<div class="amountGot">
<p class="m-0 fw-medium text-danger" style="font-size: 0.9rem;">you owe $400.00</p>
</div>
</div>
<hr>
<div class="member d-flex align-items-center justify-content-between">
<div class="d-flex align-items-center justify-content-start">
<p class="fw-medium px-3 py-2 me-2 rounded-circle m-0" style="background-color: #e5e5ff" ><span style="color: darkblue;">Y</span></p>
<p class="memberName m-0 fw-medium">Yash</p>
</div>
<div class="amountGot">
<p class="m-0 fw-medium" style="font-size: 0.9rem;">owes you $400.00</p>
</div>
</div>
<hr>
<div class="member d-flex align-items-center justify-content-between">
<div class="d-flex align-items-center justify-content-start">
<p class="fw-medium px-3 py-2 me-2 rounded-circle m-0" style="background-color: #e5e5ff" ><span style="color: darkblue;">Y</span></p>
<p class="memberName m-0 fw-medium">Yash</p>
</div>
<div class="amountGot">
<p class="m-0 fw-medium text-danger" style="font-size: 0.9rem;">you owe $400.00</p>
</div>
</div>
<hr>
<div class="member d-flex align-items-center justify-content-between">
<div class="d-flex align-items-center justify-content-start">
<p class="fw-medium px-3 py-2 me-2 rounded-circle m-0" style="background-color: #e5e5ff" ><span style="color: darkblue;">Y</span></p>
<p class="memberName m-0 fw-medium">Yash</p>
</div>
<div class="amountGot">
<p class="m-0 fw-medium" style="font-size: 0.9rem;">owes you $400.00</p>
</div>
</div>
<hr>
</div>
</div>
<div class="expenses bg-white px-3 py-2 mt-3 rounded">
<div class="expensesTitle d-flex flex-wrap justify-content-sm-between align-items-center justify-content-center">
<h4 class="fw-medium my-3" style="font-size: 1.1rem;">Expenses</h4>
<!-- Add New Expense Modal -->
<div class="addExpenseModal">
<div class="modal fade" id="addExpenseModal" tabindex="2" aria-labelledby="addExpenseLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<!-- Modal Header -->
<div class="modal-header">
<h5 class="modal-title" id="addExpenseLabel">Add New Expense</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<!-- Modal Body -->
<div class="modal-body">
<form>
<!-- Description -->
<div class="mb-3">
<label for="expenseDescription" class="form-label">Description</label>
<input type="text" class="form-control" id="expenseDescription" placeholder="What was this expense for?">
</div>
<!-- Amount -->
<div class="mb-3">
<label for="expenseAmount" class="form-label">Amount</label>
<input type="number" class="form-control" id="expenseAmount" placeholder="$ 0.00">
</div>
<!-- Paid By -->
<div class="mb-3">
<label for="paidBy" class="form-label">Paid By</label>
<select class="form-select" id="paidBy">
<option selected>You</option>
<option>Friend 1</option>
<option>Friend 2</option>
</select>
</div>
<!-- Category -->
<div class="mb-3">
<label for="expenseCategory" class="form-label">Category</label>
<select class="form-select" id="expenseCategory">
<option selected>🍽️ Food</option>
<option>🎬 Entertainment</option>
<option>🚗 Travel</option>
<option>🏠 Rent</option>
</select>
</div>
<!-- Split Type -->
<div class="mb-3">
<label for="splitType" class="form-label">Split Type</label>
<select class="form-select" id="splitType">
<option selected>Equal</option>
<option>Custom</option>
</select>
</div>
</form>
</div>
<!-- Modal Footer -->
<div class="modal-footer">
<button type="submit" class="btn btn-primary" id="addExpenseData">Add Expense</button>
</div>
</div>
</div>
</div>
</div>
<button type="button" class="btn btn-primary fw-medium ms-2 mb-sm-0" style="font-size: 0.8rem;" data-bs-toggle="modal" data-bs-target="#addExpenseModal">
+ Add Expense
</button>
</div>
<div class="expensesList px-4" id="expenseListContainer">
<div class="listItem d-flex align-items-center justify-content-between">
<div class="d-flex flex-column justify-content-center">
<p class="m-0 fw-medium" style="font-size: 0.9rem;">Hotel Booking</p>
<p class="m-0 fw-semibold text-secondary" style="font-size: 0.8rem;">May 12, 2025 . Paid by You . Equal split</p>
</div>
<div>
<p class="m-0 fw-bold" style="font-size: 0.9rem;">$650.00</p>
</div>
</div>
<hr>
<div class="listItem d-flex align-items-center justify-content-between">
<div class="d-flex flex-column justify-content-center">
<p class="m-0 fw-medium" style="font-size: 0.9rem;">Hotel Booking</p>
<p class="m-0 fw-semibold text-secondary" style="font-size: 0.8rem;">May 12, 2025 . Paid by You . Equal split</p>
</div>
<div>
<p class="m-0 fw-bold" style="font-size: 0.9rem;">$650.00</p>
</div>
</div>
<hr>
</div>
</div>
</div>
<footer class="footer position-fixed bottom-0 start-0 end-0 bg-white">
<div class="navIcons px-md-5 col-12 d-flex justify-content-center align-items-center py-1 py-md-3">
<div class="col-10 d-flex justify-content-between align-items-center">
<div class="iconContainer ">
<a class="d-flex flex-column justify-content-center align-items-center text-decoration-none text-black" href="index.html">
<i class="bi bi-house-fill"></i>
<p class="m-0 fw-light fs-6">Home</p>
</a>
</div>
<div class="iconContainer ">
<a class="d-flex flex-column justify-content-center align-items-center text-decoration-none text-black" href="groups.html">
<i class="bi bi-people-fill text-primary"></i>
<p class="m-0 fw-light fs-6 text-primary">Groups</p>
</a>
</div>
<!-- <div class="iconContainer ">
<a class="d-flex flex-column justify-content-center align-items-center text-decoration-none text-black" data-bs-toggle="modal" data-bs-target="#createGroupModal" href="#">
<i class="bi bi-plus-circle-fill"></i>
<p class="m-0 fw-light fs-6">Add</p>
</a>
</div> -->
<div class="iconContainer ">
<a class="d-flex flex-column justify-content-center align-items-center text-decoration-none text-black" href="balanceOverview.html">
<i class="fa-solid fa-scale-balanced"></i>
<p class="m-0 fw-light fs-6">Balance</p>
</a>
</div>
</div>
</div>
</footer>
</div>
<!-- <script type="module" src="./js/app.js"></script> -->
<script type="module" src="./js/addNewGroup.js"></script>
<script type="module" src="./js/groups.js"></script>
<script src="css/bootstrap/js/bootstrap.bundle.min.js"></script>
</body>
</html>