forked from cmigz/nozama-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
executable file
·180 lines (170 loc) · 7.81 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
<!DOCTYPE html>
<html>
<head>
<title>Peach Produce</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Do not add `link` tags-->
<!-- Font Awesome -->
<link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico">
<link rel="stylesheet" type="text/scss" href="./assets/styles/index.scss">
<link href="https://fonts.googleapis.com/css?family=Berkshire+Swash|News+Cycle|PT+Sans+Narrow|Sacramento" rel="stylesheet">
<!-- Do not add `script` tags-->
<script src="public/vendor.js" type="text/javascript" charset="utf-8" defer></script>
<script src="public/application.js" type="text/javascript" charset="utf-8" defer></script>
</head>
<body class="container-fluid">
<nav>
<!-- User authorization -->
<div class="navbar-auth" id="user-action-container">
<h6 id="login-prompt">Log in to get shopping!</h6>
<button class="btn-success" type="button" name="show-signup-button" id="show-signup">Create an Account</button>
<p id="already-prompt">Already have an account? </p>
<button class="btn-success" type="button" name="show-signin-button" id="show-signin">Sign in</button>
<h5 id="shopping-prompt"></h5>
<!-- Sign up Field -->
<form class="user-signup">
<h4>Sign Up</h4>
<div id="sign-up-alert"></div>
<input name="credentials[email]" type="text" value="" placeholder="Email">
<input name="credentials[password]" type="password" value="" placeholder="Password">
<input name="credentials[password_confirmation]" type="password" value="" placeholder="Re-enter Password">
<button class="btn-success" type="submit" name="submit" value="Sign Up!" id="create-button">Create Account</button>
</form>
<!-- Sign in Field -->
<form class="user-signin" id="user-signin">
<h4>Sign In</h4>
<input name="credentials[email]" type="text" value="" placeholder="Email">
<input name="credentials[password]" type="password" value="" placeholder="Password">
<button class="btn-success" type="submit" name="submit" value="Sign In!" id="sign-in-button">Sign In</button>
</form>
<!-- Logout form -->
<form class="user-signout" id="user-signout">
<button class="btn-success" type="submit" value="Sign Out!" id="sign-out-button">Sign Out</button>
</form>
<!-- Change password form -->
<button class="btn-success" type="button" id="show-change-pw">Change Password</button>
<form class="change-password" id="change-pw">
<h4>Change Password</h4>
<input name="credentials[password]" type="password" value="" placeholder="Password">
<input name="credentials[newpassword]" type="password" value="" placeholder="New Password">
<button class="btn-success" type="submit" value="Change Password" id="change-pw-button">Change Password</button>
</form>
<!-- Show shopping cart -->
<br>
<div class="dropdown right">
<button id="show-my-cart" type="button" class="btn btn-primary dropdown-toggle" data-toggle="dropdown"><i id="shopBtn" class="fa fa-shopping-cart fa-2x">My Cart</i></button>
<!-- Shopping cart -->
<div class="user-cart dropdown-menu dropdown-menu-right" id="cartContainer">
<script id="cart-template" type="text/x-handlebars-template">
<table class="user-cart" id="user-cart-table">
<thead>
<tr>
<!-- <th>Quantity</th> -->
<!-- <th>Remove</th> -->
<!-- <th>Change Quantity</th> -->
</tr>
</thead>
<tbody>
{{#each cart}}
<tr id="{{data-id}}">
<td>{{title}}</td>
<td>{{price}}</td>
</tr>
{{/each}}
</tbody>
<tfoot>
</tfoot>
</table>
</script>
<button id="empty-cart-btn" class="user-cart btn-success" type="button">Empty Cart</button>
</div>
</div>
<div id="create-field" class="btn-group">
<button type="button" class="btn btn-primary dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
Create Product
</button>
<div class="dropdown-menu">
<div id='create-alert'></div>
<form id="create-product">
<fieldset>
<input id='pTitle' type="text" name="credentials[title]" value="" placeholder="Product Title">
<input id='pPrice' type="text" name="credentials[price]" value="" placeholder="Product Price (ex. 1.99)">
<input id='pLink' type="text" name="credentials[imageLink]" value="" placeholder="Link to Image">
<button id="add-product" class="sub-button" type="submit" name="submit" value="Add Product">Submit</button>
</fieldset>
</form>
</div>
</div>
<div id="delete-field" class="btn-group">
<button type="button" class="btn btn-primary dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
Delete Product
</button>
<div class="dropdown-menu">
<div id="btn-primary"></div>
<form id="remove-product">
<fieldset>
<input id='pId' type="text" name="credentials[pId]" value="" placeholder="Product Id">
<button id="delete-product" title="Delete" class="sub-button" type="submit" name="submit" value="Delete Product">delete</button>
</fieldset>
</form>
</div>
</div>
</nav>
<main>
<div id="header-container">
<a href="https://i.imgur.com/m0V7vOr.png" target="_blank">
<img id="pageLogo" src="https://i.imgur.com/m0V7vOr.png" alt="logo">
</a>
<h1>Peach</h1>
<h2>The sweetest experience in online groceries</h2>
</div>
<!-- Body of landing page -->
<!-- TODO Add feature product carousel -->
<!-- TODO Add grid structure for product icons
<img id="landing-image" src="https://i.imgur.com/dDqADPe.jpg" style="z-index: -1" alt="GitHub" title="source: imgur.com" /> -->
</div>
<div id="productList" class="row">
</div>
</main>
<footer>
<div class="footer navbar-fixed-bottom">
<div class="row">
<div class= col-xs-3>
<a href="https://github.com/ashtrull" target="_blank">
<p class="name">
<img alt="GitHub Logo" id="gitLogo" src="https://i.imgur.com/I7icsdR.png">
Ash Trull
</p>
</a>
</div>
<div class= col-xs-3>
<a href="https://github.com/aimeelynnramirez" target="_blank">
<p class="name">
<img alt="GitHub Logo" id="gitLogo" src="https://i.imgur.com/I7icsdR.png">
<b>Aimee Ramirez</b>
</p>
</a>
</div>
<div class= col-xs-3>
<a href="https://github.com/cmigz" target="_blank">
<p class="name">
<img alt="GitHub Logo" id="gitLogo" src="https://i.imgur.com/I7icsdR.png">
Christian Mignacca
</p>
</a>
</div>
<div class= col-xs-3>
<a href="https://github.com/wjbritton" target="_blank">
<p class="name">
<img alt="GitHub Logo" id="gitLogo" src="https://i.imgur.com/I7icsdR.png">
Will Britton
</p>
</a>
</div>
</div>
</div>
</footer>
<script src="assets/handlebars-v4.0.10.js"></script>
</body>
</html>