-
Notifications
You must be signed in to change notification settings - Fork 0
/
index2.html
executable file
·291 lines (264 loc) · 12.5 KB
/
index2.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
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
<!-- TUONG CHU IS WORKING ON THIS FILE -->
<html lang="en">
<head>
<meta charset="UTF-8">
<!-- <meta name="viewport" content="width=device-width, initial-scale=1.0"> -->
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0">
<!-- <meta charset="UTF-8"> -->
<meta http-equiv="X-UA-Compatible" content="IE=edge;" />
<link href="https://cdn.jsdelivr.net/npm/cirrus-ui@0.5.4/dist/cirrus.min.css" rel="stylesheet">
<link href="https://unpkg.com/cirrus-ui" type="text/css" rel="stylesheet" />
<link href="https://fonts.googleapis.com/css?family=Nunito+Sans:200,300,400,600,700" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Montserrat:400,700" rel="stylesheet">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.2.0/css/all.css" integrity="sha384-hWVjflwFxL6sNzntih27bfxkr27PmbbK/iSvJ+a4+0owXq79v+lsFkW54bOGbiDQ" crossorigin="anonymous">
<script src="https://code.jquery.com/jquery-2.2.4.min.js" integrity="sha256-BbhdlvQf/xTY9gja0Dq3HiwQF8LaCRTXxZKRutelT44=" crossorigin="anonymous"></script>
<!-- <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/css/materialize.min.css"> -->
<link rel="stylesheet" type="text/css" href="fonts/font-awesome-4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" type="text/css" href="fonts/iconic/css/material-design-iconic-font.min.css">
<!-- Custom stylesheets -->
<link rel="stylesheet" type="text/css" href="css/index2.css">
<!-- icon -->
<link rel = "icon" href = "img/ravenCircle.png" type = "image/x-icon">
<title>Raven</title>
</head>
<body>
<div class="hero fullscreen">
<div class="hero-body">
<div class="content">
<form id="login-form" class="frame u-no-padding u-text-center" method="post" autocomplete="off">
<div class="frame__body u-no-padding">
<div class="row u-no-padding level fill-height">
<div class="col-12">
<space class="x-large"></space>
<div class="padded">
<a href="index2.html"><img src=img/ravenCircle.png alt="raven" class="u-text-center hover-grow"></a>
<space class="medium"></space>
<h7>Real People. Real Reviews.</h7>
<h3>Login</h3>
<div class="form-section">
<div class="input-control">
<input id="login-email" class="input-contains-icon" placeholder="Email"
type="text" value="" autocomplete="false" required>
<span class="icon"><i class="fa fa-envelope-open small"></i></span>
</div>
<div class="input-control">
<input id="login-password" class="input-contains-icon" placeholder="Password"
type="password" value="" autocomplete="new-password" required>
<span class="icon"><i class="fa fa-lock small"></i></span>
</div>
</div>
<!-- error msg -->
<div id="error" class="toast toast--error" style="display:none;">
<!-- <button class="btn-close"></button> -->
</div>
<button id="login-button" class="btn btn-info u-pull-right btn-animated" type="submit">
Login
</button>
<span class="fg-danger info"></span>
<span class="info"><a href="#" class="link">Forgot your password?</a>
</span>
<span class="info"><a href="signup2.html" class="link">Sign up</a>
</span>
</div>
<space class="x-large"></space>
</div>
</div>
</div>
</form>
<!-- <header class="header-container">
<a href="index.html" ><img src=img/ravenCircle.png alt="raven" class="header-img"></a>
<p>Real people. Real reviews.</p>
</header>
<div class="login-wrap">
<form id="login-form" class="login-form" autocomplete="off">
<secion class="input-field ">
<input style="display:none;" id="fake-login-email">
<input class="form-control" type="text" id="login-email" autocomplete="false" required>
<label for="login-email">Email</label>
</secion>
<secion class="input-field">
<input style="display:none;" id="fake-login-password">
<input class="form-control" type="password" id="login-password" autocomplete="new-password" required>
<label for="login-password">Password</label>
</secion>
<section class="link-wrap">
<a href="#" class="link">Forgot your password?</a>
</section>
<section class="button-wrap">
<button class="login-button" id="login-button">Login</button>
<p class="error pink-text center-align"></p>
</section>
</form>
</div>
<footer class="footer-container">
<p>Don't have an account?
<a href="signup.html" class="link">Sign up</a></p>
</footer>-->
</div>
</div>
<!-- login -->
<!-- <div class="header">
<a href="index.html" ><img src=img/ravenCircle.png alt="raven" width="80px"></a>
<img src="img/ravenCircle.png" alt="raven" width="100px">
<p>Real people. Real reviews.</p>
</div>
<div class="container-login">
<div class="login-wrap">
<form class="login-form">
<div class="field-wrap input-field" data-validate="Valid email is: a@b.c">
<label for="login-email">Email</label>
<input type="email" id="login-email" required>
</div>
<div class="field-wrap input-field" data-validate="Enter password">
<label for="login-password">Password</label>
<input type="password" id="login-password" required>
</div>
<div class="link-wrap">
<a href="#" class="underline">Forgot your password?</a>
</div>
<div class="button-wrap">
<button class="login-signup-button">Login</button>
<p class="error pink-text center-align"></p>
</div>
</form>
</div>
<div class="footer">
<span><p>Don't have an account?
<a href="signup.html" class="underline"> Sign up</a></p></span>
</div>
</div>
</div> --->
<!-- NAVBAR - user will see this bar after logging in -->
<!-- <nav class="z-depth-0 grey darken-4">
<div class="nav-wrapper container">
<a href="#" class="brand-logo">
<img src="img/ravenCircle.png" style="width: 50px; margin-top: 5px;">
<img src="img/transparent.png" style="width: 170px; margin-top: 0px;">
</a>
<ul id="nav-mobile" class="right hide-on-med-and-down">
<li class="logged-in" style="display: none;">
<a href="#" class="grey-text modal-trigger" data-target="modal-account">Account</a>
</li>
<li class="logged-in" style="display: none;">
<a href="#" class="grey-text" id="logout">Logout</a>
</li>
<li class="logged-in" style="display: none;">
<a href="#" class="grey-text modal-trigger" data-target="modal-create">Create Vendor</a>
</li>
<li class="logged-out" style="display: none;">
<a href="#" class="grey-text modal-trigger" data-target="modal-login">Login</a>
</li>
<li class="logged-out" style="display: none;">
<a href="#" class="grey-text modal-trigger" data-target="modal-signup">Sign up</a>
</li>
</span>
</ul>
</div>
</nav> -->
<!-- SIGN UP MODAL
<div id="modal-signup" class="modal">
<div class="modal-content">
<h4>Sign up</h4><br />
<form id="signup-form">
<div class="input-field">
<input type="email" id="signup-email" required />
<label for="signup-email">Email address (@sjsu.edu)</label>
</div>
<div class="input-field">
<input type="password" id="signup-password" required />
<label for="signup-password">Choose password</label>
</div>
<div class="input-field">
<input type="username" id="user-name" required />
<label for="username">user name</label>
</div>
<button class="btn yellow darken-2 z-depth-0">Sign up</button>
<p class="error pink-text center-align"></p>
</form>
</div>
</div> -->
<!-- LOGIN MODAL -->
<!-- <div id="modal-login" class="modal">
<div class="modal-content">
<h4>Login</h4><br />
<form id="login-form">
<div class="input-field">
<input type="email" id="login-email" required />
<label for="login-email">Email address</label>
</div>
<div class="input-field">
<input type="password" id="login-password" required />
<label for="login-password">Your password</label>
</div>
<button class="btn yellow darken-2 z-depth-0">Login</button>
<p class="error pink-text center-align"></p>
</form>
</div>
</div> -->
<!-- ACCOUNT MODAL -->
<!-- <div id="modal-account" class="modal">
<div class="modal-content center-align">
<h4>Account details</h4><br />
<div class="account-details"></div>
</div>
</div> -->
<!-- CREATE VENDOR MODAL -->
<!-- <div id="modal-create" class="modal">
<div class="modal-content">
<h4>Create Vendor</h4><br />
<form id="create-form">
<div class="input-field">
<input type="text" id="title" required>
<label for="title">Vendor-Name</label>
</div>
<div class="input-field">
<textarea id="content" class="materialize-textarea" required></textarea>
<label for="content">Location</label>
</div>
<button class="btn yellow darken-2 z-depth-0">Create</button>
</form>
</div>
</div> -->
<!-- VENDOR LIST -->
<!-- <div class="container" style="margin-top: 40px;">
<ul class="collapsible z-depth-0 guides" style="border: none;">
</ul>
</div> -->
<!-- The core Firebase JS SDK is always required and must be listed first -->
<script src="https://www.gstatic.com/firebasejs/7.11.0/firebase-app.js"></script>
<script src="https://www.gstatic.com/firebasejs/7.11.0/firebase-auth.js"></script>
<script src="https://www.gstatic.com/firebasejs/7.11.0/firebase-firestore.js"></script>
<!-- TODO: Add SDKs for Firebase products that you want to use
https://firebase.google.com/docs/web/setup#available-libraries -->
<script src="https://www.gstatic.com/firebasejs/7.11.0/firebase-analytics.js"></script>
<script>
// Your web app's Firebase configuration
var firebaseConfig = {
apiKey: "AIzaSyB8edToE3CAv33r6qTD7Lp-A62HWq7P-Sk",
authDomain: "raven-c24a9.firebaseapp.com",
databaseURL: "https://raven-c24a9.firebaseio.com",
projectId: "raven-c24a9",
storageBucket: "raven-c24a9.appspot.com",
messagingSenderId: "943246302988",
appId: "1:943246302988:web:a9f8a382e223fc71b23329",
measurementId: "G-051571D12T"
};
// Initialize Firebase
firebase.initializeApp(firebaseConfig);
firebase.analytics();
//make auth and firestore reference
const auth = firebase.auth();
const db = firebase.firestore();
</script>
<!-- Compiled and minified JavaScript -->
<!-- <script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/js/materialize.min.js"></script> -->
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@9"></script>
<script async="" src="https://www.googletagmanager.com/gtag/js?id=UA-40470494-2"></script>
<!-- <script src="scripts/auth.js"></script> -->
<!-- <script src="scripts/index.js"></script> -->
<script src="scripts/validate.js"></script>
<script src="scripts/login.js"></script>
<script src="scripts/alert.js"></script>
</body>
</html>