-
Notifications
You must be signed in to change notification settings - Fork 0
/
7index.html
205 lines (198 loc) · 8.28 KB
/
7index.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
192
193
194
195
196
197
198
199
200
201
202
203
204
205
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Required meta tags always come first -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="node_modules/bootstrap/dist/css/bootstrap.min.css">
<link rel="stylesheet" href="app/styles.css">
<!-- Font Awesome embed code -->
<script src="https://use.fontawesome.com/6b463ea5b4.js"></script>
<title>TastyTracker</title>
</head>
<body>
<div class="container-fluid">
<!-- BEGIN EDIT MEALS MODAL -->
<!-- Bootstrap recommends modals appear at the beginning of the file, not the end. -->
<!-- This placement can minimize visual/functional interference from other components. -->
<div class="modal fade" id="editRestaurants" tabindex="-1" role="dialog" aria-labelledby="editRestaurantsLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true"><i class="fa fa-times-circle"></i></span>
</button>
<h3 class="modal-title" id="editRestaurantsLabel">Edit Restaurants</h3>
</div>
<div class="modal-body">
<form>
<div class="form-group row">
<!-- DISPLAY THIS LABEL TO SCREEN READERS ONLY -->
<label for="edit-restaurant-select" class="sr-only">select restaurant</label>
<div class="col-xs-8">
<select class="form-control custom-select" id="edit-restaurant-select">
<option>- restaurant name -</option>
</select>
</div>
</div>
<div class="form-group form-inline row">
<!-- DISPLAY THIS LABEL TO SCREEN READERS ONLY -->
<label for="edit-restaurant-input" class="sr-only">Edit or delete restaurant name</label>
<div class="col-xs-8">
<input type="text" class="form-control" id="edit-restaurant-input" /> <a href="#" aria-label="Save changes"><i class="fa fa-check large" aria-hidden="true"></i></a><a href="#" aria-label="Delete restaurant" class="red"><i class="fa fa-times large" aria-hidden="true"></i></a>
</div>
</div>
<div class="alert alert-warning row" role="alert">
<div class="col-xs-1">
<i class="fa fa-exclamation-circle large" aria-hidden="true"></i>
</div>
<div class="col-xs-11">
<p>Deleting $RESTAURANTNAME will delete all $RESTAURANTNAME meals you've recorded.</p>
<button type="button" class="btn btn-primary">OK, delete it</button><button type="button" class="btn btn-secondary m-l-1">Nope, keep it</button>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
<!-- END EDIT MEALS MODAL -->
<!-- BEGIN LOGO -->
<section>
<div class="row">
<div class="col-xs-12 text-xs-center tealBG">
<header role="banner">
<h1>TastyTracker</h1>
</header>
</div>
</div>
</section>
<!-- END LOGO -->
<div class="row">
<!-- BEGIN TASTYTRACKING -->
<div class="col-xs-12 col-md-6 mb-2 pl-0">
<section>
<header>
<h2 class="text-xs-center">TastyTracking</h2>
</header>
<form>
<div class="row mb-2">
<div class="col-xs-11 text-xs-right">
<a href="app/edit-meals.html"><i class="fa fa-pencil" aria-hidden="true"></i> edit meals</a>
</div>
</div>
<div class="form-group form-inline row">
<label for="spending-input" class="col-xs-4 col-form-label text-xs-right">I spent</label>
<div class="col-xs-7">
$ <input type="text" class="form-control" id="spending-input" />
</div>
</div>
<div class="form-group form-inline row">
<label for="restaurant-select" class="col-xs-4 col-form-label text-xs-right">at</label>
<div class="col-xs-7 ml-1">
<select class="form-control custom-select" id="restaurant-select">
<option>- restaurant name -</option>
<option value="new-restaurant">Enter new restaurant</option>
</select>
<a href="#" data-toggle="modal" data-target="#editRestaurants" aria-label="Edit restaurants"><i class="fa fa-pencil large-less" aria-hidden="true"></i></a>
</div>
</div>
<div class="form-group form-inline row">
<label for="meal-select" class="col-xs-4 col-form-label text-xs-right">on</label>
<div class="col-xs-7 ml-1">
<select class="form-control custom-select" id="meal-select">
<option>- meal type -</option>
<option value="breakfast">breakfast</option>
<option value="lunch">lunch</option>
<option value="dinner">dinner</option>
<option value="snacks">snacks</option>
</select>
</div>
</div>
<div class="form-group form-inline row">
<label for="date-input" class="col-xs-4 col-form-label text-xs-right">on this day</label>
<div class="col-xs-7 ml-1">
<input type="text" class="form-control" id="date-input" /> <a href="#" aria-label="Choose date"><i class="fa fa-calendar large-less" aria-hidden="true"></i></a>
</div>
</div>
<div class="row">
<div class="col-xs-7 offset-xs-4">
<button type="submit" class="btn btn-primary ml-1">Save</button>
</div>
</div>
</form>
</section>
</div>
<!-- END TASTYTRACKING -->
<!-- BEGIN TASTYTOTALS -->
<div class="col-xs-12 col-md-6 mb-2 pr-0">
<section>
<header class="mb-3">
<h2 class="text-xs-center">TastyTotals</h2>
</header>
<div class="row mx-auto" style="width:30rem;">
<div class="col-xs-6 text-xs-center">
<div class="circle">
<span class="bigNumber"><strong>$0</strong></span><br />spent on meals today
</div>
</div>
<div class="col-xs-6 text-xs-center">
<div class="circle">
<span class="bigNumber"><strong>$0</strong></span><br />spent on meals this week
</div>
</div>
</div>
</section>
</div>
<!-- END TASTYTOTALS -->
</div>
<!-- BEGIN TASTYTRENDS -->
<section>
<header>
<div class="row">
<div class="col-xs-12 text-xs-center pl-0 pr-0">
<h2>TastyTrends</h2>
</div>
</div>
</header>
<div class="row">
<div class="col-xs-12">
<p>TastyTracker keeps track of up to a year's worth of spending.</p>
</div>
</div>
<div class="row">
<div class="col-xs-12 col-md-6">
<header>
<h3>This week compared to last week</h3>
</header>
chart 1 goes here
</div>
<div class="col-xs-12 col-md-6">
<form class="form-inline">
<!-- Both the header and h3 tags need d-inline to force inline display. -->
<header class="d-inline">
<h3 class="d-inline">On average, I spend this amount</h3>
</header>
<div class="form-group">
<label for="time-chart-select" class="sr-only">select time period</label>
<select class="form-control custom-select" id="time-chart-select">
<option value="daily">daily</option>
<option value="weekly">weekly</option>
<option value="monthly">monthly</option>
</select>
</div>
</form>
chart 2 goes here
</div>
</div>
</section>
<!-- END TASTYTRENDS -->
</div>
<!-- This should be at the end of your body section. Load jQuery first, then Tether, then Bootstrap JS. -->
<script src="node_modules/jquery/dist/jquery.min.js"></script>
<script src="node_modules/tether/dist/js/tether.min.js"></script>
<script src="node_modules/bootstrap/dist/js/bootstrap.js"></script>
</body>
</html>