forked from natescode/project-1-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
191 lines (172 loc) · 8.77 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Finance Tracker</title>
<link rel="stylesheet" href="./css/reset.css">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
<link rel="stylesheet" href="./css/styles.css">
</head>
<body class="light-scheme"> <!-- Default to light scheme -->
<header class="bg-dark text-light py-3">
<nav>
<h1>Finance Tracker</h1>
</nav>
</header>
<div class="container-fluid">
<aside id="nav_sidebar" class="bg-dark text-light py-3">
<a href="#home" data-page="home" class="icon-home">Home</a>
<a href="#income" data-page="income" class="icon-income">Income</a>
<a href="#expense" data-page="expense" class="icon-expense">Expense</a>
<a href="#subscription" data-page="subscription" class="icon-subscription">Subscription</a>
</aside>
<main>
<!-- Home Page -->
<!-- input form -->
<section id="home-page" class="page">
<!-- cards suppose to be here -->
<div class="cards">
<div class="card" id="us-bank-card">
<p>Us Bank</p>
<span id="usBankAccountAmount"></span>
</div>
<div class="card" id="wells-fargo-card">
<p>Wells Fargo</p>
<span id="wfBankAccountAmount"></span>
</div>
<div class="card" id="cash-account-card">
<p>Cash Account</p>
<span id="cashAccountAmount"></span>
</div>
<div class="card" id="wifes-account-card">
<p>Wife`s Account</p>
<span id="wifesAccountAmount"></span>
</div>
<div class="card" id="saving-account-card">
<p>Saving Account</p>
<span id="savingAccountAmount"></span>
</div>
</div>
<h2 class="input-p">Input data here:</h2>
<div class="inputs">
<div class="input">
<label for="select" class="select-header">Income:</label>
<label for="date">Date:</label>
<input type="date" id="incomeDate" name="date" required minlength="4" maxlength="8" size="10" />
<label for="income-source">Source:</label>
<input type="text" id="incomeSource" name="income-source" required minlength="" maxlength=""
size="10" />
<label for="amount">Amount:</label>
<input type="text" id="incomeAmount" name="amount" required minlength="4" maxlength="8"
size="10" />
<label for="option-select">Choose your account:</label>
<select name="options" id="optionselectIncome">
<option value="Us Bank">US Bank</option>
<option value="Wells Fargo">Wells Fargo</option>
<option value="Cash Account">Cash Account</option>
<option value="Wife`s Account">Wife`s Account</option>
<option value="Savings Account">Saving Account</option>
</select>
<button type="submit" class="submit" id="income">Submit</button>
</div>
<dialog id="incomeDialog">
<form method="dialog">
<p>Please complete the form!</p>
<div class="dialog-buttons">
<button id="ok" type="submit">YES</button>
<button id="cancel" type="reset">NO</button>
</div>
</form>
</dialog>
<div class="input">
<label for="select" class="select-header">Expense:</label>
<label for="date">Date:</label>
<input type="date" id="expenseDate" name="date" required minlength="4" maxlength="8"
size="10" />
<label for="expense-source">Source:</label>
<input type="text" id="expenseSource" name="expense-source" required minlength="" maxlength=""
size="10" />
<label for="amount">Amount:</label>
<input type="text" id="expenseAmount" name="amount" required minlength="4" maxlength="8"
size="10" />
<label for="option-select">Choose your account:</label>
<select name="options" id="optionselectExpense">
<option value="Us Bank">US Bank</option>
<option value="Wells Fargo">Wells Fargo</option>
<option value="Cash Account">Cash Account</option>
<option value="Wife`s Account">Wife`s Account</option>
<option value="Savings Account">Saving Account</option>
</select>
<button type="submit" class="submit" id="expense">Submit</button>
</div>
</div>
</section>
<!-- Income Page -->
<section id="income-page" class="page">
<h2>Income</h2>
<button id="download-income-csv" class="btn btn-secondary">Download Income CSV</button>
<div class="table table-bordered table-striped mt-3 styled-table" id="income-table">
<table class="styled-table">
<thead>
<tr class="table-columns">
<th>Date</th>
<th>Income Source</th>
<th>Amount $</th>
<th>Account</th>
</tr>
</thead>
<tbody id="income-elements">
<tr>
<td id="date"></td>
<td id="salary"></td>
<td id="amount"></td>
<td id="account"></td>
</tr>
</tbody>
</table>
</div>
</section>
<!-- Expense Page -->
<section id="expense-page" class="page">
<h2>Expense</h2>
<button id="download-expense-csv" class="btn btn-secondary">Download Expense CSV</button>
<div class="table table-bordered table-striped mt-3 styled-table" id="expense-table">
<table class="styled-table">
<thead>
<tr class="table-columns">
<th>Date</th>
<th>Expense Source</th>
<th>Amount $</th>
<th>Account</th>
</tr>
</thead>
<tbody id="expense-elements">
<tr>
<td id="date"></td>
<td id="salary"></td>
<td id="amount"></td>
<td id="account"></td>
</tr>
</tbody>
</table>
</div>
</section>
<!-- Subscription Page (Placeholder) -->
<section id="subscription-page" class="page">
<h2>Subscription</h2>
<p>Manage your subscriptions here.</p>
</section>
</main>
</div>
<footer id="footer" class="bg-dark text-light py-3 text-center">
<p>Project 1 | Group 4 | Bee Vang, Kevin Perez, Leonid Shapirov</p>
<a href="#" id="toggle-scheme" class="text-light">Switch to Dark Mode</a>
</footer>
<!-- Bootstrap JS and dependencies -->
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@popperjs/[email protected]/dist/umd/popper.min.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script>
<script src="./js/script.js"></script>
</body>
</html>