forked from androidvitb/Spendwise
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
321 lines (310 loc) · 12.1 KB
/
Copy pathindex.html
File metadata and controls
321 lines (310 loc) · 12.1 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>SpendWise: Expense-Tracker</title>
<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=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap"
rel="stylesheet"
/>
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css" rel="stylesheet">
<script src="https://cdn.tailwindcss.com"></script>
<link rel="stylesheet" href="input.css" />
</head>
<body class="m-0 p-0 overflow-x-hidden">
<!-- Header -->
<header
class="bg-white text-[#7fb0ba] py-[14px] min-h-[50px] flex justify-center items-center"
>
<header-content class="flex w-[1150px] items-center">
<logo-container
class="flex items-center w-[105px] h-[52px] max-w-[135px] px-[15px]"
>
<div class="text-[26px]" style="font-family: 'Playfair Display'">
Logo
</div>
</logo-container>
<div class="w-[70%] lg:w-0"></div>
<navigator
class="flex w-[75%] overflow-hidden max-lg:hidden max-lg:fixed max-lg:z-10 max-lg:top-0 max-lg:right-0 max-lg:w-[300px] max-lg:h-full max-lg:bg-white"
id="Navigator"
>
<ul
class="max-lg:py-20 max-lg:px-5 flex max-lg:block list-none"
id="ul"
>
<li class="p-2">
<a href="#expenses" style="font-weight: 600; color: #96c2db"
>Home</a
>
</li>
<li class="p-2">
<a
href="#expense-tracker"
class="text-[#377f8e] hover:text-[#96c2db] no-underline text-base font-normal"
>Expenses</a
>
</li>
<li class="p-2">
<a
href="#insight-section"
class="text-[#377f8e] hover:text-[#96c2db] no-underline text-base font-normal"
>Graphs</a
>
</li>
<li class="p-2">
<a
href="#expenses"
class="text-[#377f8e] hover:text-[#96c2db] no-underline text-base font-normal"
>About Us</a
>
</li>
</ul>
</navigator>
<div
class="hidden z-10 mx-[20px] max-lg:block max-lg:static max-lg:right-0 max-lg:top-[25px]"
id="hamburger"
onclick="hamburgers()"
>
<div
id="bar1"
class="w-[25px] h-[4px] rounded-full bg-[#377f8e] my-[4px] transition duration-300"
></div>
<div
id="bar2"
class="w-[25px] h-[4px] rounded-full bg-[#377f8e] my-[4px] transition duration-300"
></div>
<div
id="bar3"
class="w-[25px] h-[4px] rounded-full bg-[#377f8e] my-[4px] transition duration-300"
></div>
</div>
<div class="flex space-x-4">
<button
class="mx-auto my-[10px] min-w-[130px] min-h-[45px] bg-[#377f8e] hover:bg-white hover:text-[#377f8e] hover:border hover:border-[#377f8e] text-white text-base font-normal"
>
Contact Us
</button>
<button
id="dark-mode-toggle"
class="px-4 py-2 bg-[#377f8e] text-white rounded-lg hover:bg-[#1f3c42] transition"
>
Dark Mode
</button>
</div>
</header-content>
</header>
<!-- Content -->
<content>
<Content_Image
class="flex justify-center overflow-hidden w-[63.897%] h-[640px] transition duration-500 ease-in-out"
>
<img
src="Images/main-bg.png"
class="object-cover object-center w-full h-full"
alt="#"
/>
</Content_Image>
<!--scroll button-->
<button id="scrollButton" title="Go to top">
<i class="fa-solid fa-arrow-up fa-xl"></i>
</button>
<Main_Text_Container class="absolute w-full h-[420px] top-[240px]">
<Content-Box
class="block p-2 absolute right-[50px] w-[700px] h-[420px] text-center bg-[#e5edf1] max-[760px]:static max-[760px]:block max-[760px]:mx-auto max-[760px]:w-[88%] max-[760px]:h-auto max-[760px]:pb-[60px]"
>
<Content-Heading
class="block pt-[40px] italic text-[50px] max-sm:text-[35px] opacity-65 text-black transition duration-500 ease-in-out"
style="font-family: 'Playfair Display'"
>
<h1>SpendWise - Your personal expense tracker</h1>
</Content-Heading>
<Content-Paragraph
class="block px-[40px] py-[10px] text-[18px] font-light text-gray-600 transition duration-500 ease-in-out"
>
<p>
Track expenses, organize finances, and achieve your goals
effortlessly with SpendWise. Manage budgets and spending trends
with ease!
</p>
</Content-Paragraph>
<Content-Button>
<button
class="mx-auto my-[10px] min-w-[130px] min-h-[45px] bg-[#377f8e] hover:bg-transparent hover:text-[#377f8e] hover:border hover:border-[#377f8e] text-white text-base font-normal"
>
GET STARTED
</button>
</Content-Button>
</Content-Box>
</Main_Text_Container>
<Expense_Tracker
id="expense-tracker"
class="flex flex-col justify-center items-center w-full h-auto"
>
<Text-1
class="block w-1/3 max-sm:w-1/2 mx-auto my-[10px] text-center bg-[#377f8e] rounded-xl text-white text-[30px] transition duration-500 ease-in-out"
style="font-family: 'Playfair Display'"
>Expenses List</Text-1
>
<!-- Main Tracker that contains all the required fields as said in the task along with some extra fields like category. -->
<Main_Tracker
class="flex max-lg:flex-col px-4 py-2 items-center w-[98%] h-full border-2"
>
<div
class="border-[1px] border-[#377f8e] w-[65%] max-lg:w-[100%] rounded-xl overflow-hidden"
>
<table
class="text-2xl max-sm:text-lg font-thin w-full h-[85%] transition-all duration-300"
>
<thead class="text-[#1d454d] bg-slate-100">
<tr class="w-full">
<th
class="px-4 w-[30%] border-[1px] border-r-[#377f8e] border-b-[#377f8e] font-light"
>
Expense Title
</th>
<th
class="px-4 border-[1px] border-r-[#377f8e] border-b-[#377f8e] font-light"
>
Amount
</th>
<th
class="px-4 border-[1px] border-r-[#377f8e] border-b-[#377f8e] font-light"
>
Date
</th>
<th
class="px-4 border-[1px] border-r-[#377f8e] border-b-[#377f8e] font-light"
>
Category
</th>
<th class="px-4 border-[1px] border-b-[#377f8e] font-light">
Delete
</th>
</tr>
</thead>
<tbody id="tableBody"></tbody>
</table>
<div class="p-[10px] text-right">
<strong>Total:</strong>
$<span id="total-amount">0</span>
</div>
</div>
<div
class="m-2 py-2 border-2 border-[#377f8e] w-[35%] max-lg:w-[100%] h-auto rounded-xl"
>
<table class="w-full">
<tr>
<td>
<Text-1
class="block m-2 text-center text-2xl underline"
style="font-family: Playfair Display"
>Add An Expense</Text-1
>
</td>
</tr>
<tr>
<td class="py-2 bg-slate-100 flex justify-center">
<label for="expense-title" class="px-3 text-1xl"
>Expense Title:
</label>
<input
type="text"
id="expense-title"
class="px-3 bg-transparent border-[1px] rounded-xl border-gray-600"
/>
</td>
</tr>
<tr>
<td class="py-2 flex justify-center">
<label for="expense-amount" class="px-3 text-1xl"
>Amount:
</label>
<input
type="number"
id="expense-amount"
class="px-3 bg-transparent border-[1px] rounded-xl border-gray-600"
/>
</td>
</tr>
<tr>
<td class="py-2 bg-slate-100 flex justify-center">
<label for="expense-date" class="px-3 text-1xl">Date: </label>
<input
type="date"
id="expense-date"
class="px-3 bg-transparent border-[1px] rounded-xl border-gray-600"
/>
</td>
</tr>
<tr>
<td class="py-2 flex justify-center">
<label for="expense-time" class="px-3 text-1xl">Time: </label>
<input
type="time"
id="expense-time"
class="px-3 bg-transparent border-[1px] rounded-xl border-gray-600"
/>
</td>
</tr>
<tr>
<td class="py-2 bg-slate-100 flex justify-center">
<label for="expense-category" class="px-3 text-1xl"
>Category:
</label>
<select id="expense-category">
<option value="personal">Personal</option>
<option value="business">Business</option>
<option value="others">Others</option>
</select>
</td>
</tr>
<tr>
<td class="flex justify-center items-center">
<button
id="add"
class="mx-auto my-[10px] min-w-[130px] min-h-[45px] bg-[#377f8e] hover:bg-transparent hover:text-[#377f8e] hover:border hover:border-[#377f8e] text-white text-base font-normal"
>
Add Expense
</button>
</td>
</tr>
</table>
</div>
</Main_Tracker>
<Graphs&Charts id="insight-section" class="block w-svw">
<Text-1
class="block w-1/3 max-sm:w-1/2 mx-auto my-[10px] text-center text-[#377f8e] rounded-xl text-[30px] transition duration-500 ease-in-out"
style="font-family: 'Playfair Display'"
>Insights</Text-1
>
<main class="w-full flex justify-center max-lg:flex-col">
<Bar_Graph id="bar" class="max-w-[50%]"></Bar_Graph>
<Pie_Chart id="pie" class="max-w-[50%] right-0"></Pie_Chart>
</main>
</Graphs&Charts>
</Expense_Tracker>
</content>
<footer class="block relative w-full h-[250px] bg-slate-100">
<Text
class="block absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 w-full text-center"
>
<div class="block w-full">
<div
class="text-[30px] text-[#377f8e] w-[100px] mx-auto text-center"
style="font-family: Playfair Display"
>
Logo
</div>
</div>
<p class="text-[20px] text-[#377f8e]">Copyright By SpendWise</p>
<p class="text-[20px] text-[#377f8e]">All rights reserved</p>
</Text>
</footer>
<script src="https://www.gstatic.com/charts/loader.js"></script>
<script src="script.js" type="module"></script>
</body>
</html>