-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
197 lines (170 loc) Β· 7.82 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
192
193
194
195
196
197
<!DOCTYPE html>
<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">
<link rel="stylesheet" href="index.css">
<link rel="stylesheet" href="style/utils.css">
<link rel="stylesheet" href="style/font.css">
<link rel="stylesheet" href="style/modal.css">
<link rel="shortcut icon" href="assets/img/favicon.ico/favicon-96x96.png">
<title>LOG</title>
</head>
<body class="container">
<nav class="nav-container">
<div id="logo"><a href="#"><span>Log</span></a></div>
<div class="logged-in button-01" id="create-log"><a href="#" class="modal-trigger" data-target="modal-create">Add</a></div>
<div class="logged-in button-01" id="create-project" style="margin-left: 20px; padding: 2px 15px 2px 15px;"><a
href="#" data-target="modal-project">Create Project</a></div><!-- <class="modal-trigger"> -->
<ul class="nav-links">
<li class="logged-in button-02"><a href="#" class="modal-trigger" data-target="modal-account">Account</a></li>
<li class="logged-in button-02"><a href="#" class="modal-trigger" id="logout">Logout</a></li>
<!-- <li class="logged-in"><a href="#" class="modal-trigger" data-target="modal-create">Add+</a></li> -->
<li class="logged-out button-02"><a href="#" class="modal-trigger" data-target="modal-login">Login</a></li>
<li class="logged-out button-02"><a href="#" class="modal-trigger" data-target="modal-signup">Sign up</a></li>
</ul>
</nav>
<!-- ACCOUNT (PROFILE) MODAL -->
<div class="modal" id="modal-account">
<div class="modal-content">
<span class="modal-close">×</span>
<h4>Account Details</h4>
<div class="account-details"></div>
</div>
</div>
<!-- SIGN UP MODAL -->
<div class="modal" id="modal-signup">
<div class="modal-content">
<span class="modal-close">×</span>
<h4>Sign Up</h4>
<form id="signup-form">
<div class="input-field">
<input type="email" id="signup-email" required />
<label for="signup-email">Email address</label>
</div>
<div class="input-field">
<input type="password" id="signup-password" required />
<label for="signup-password">Choose password</label>
</div>
<button class="btn">Sign Up</button>
</form>
</div>
</div>
<!-- LOGIN MODAL -->
<div class="modal" id="modal-login">
<div class="modal-content">
<span class="modal-close">×</span>
<h4>Login</h4>
<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">Choose password</label>
</div>
<button class="btn">Login</button>
</form>
</div>
</div>
<!-- CREATE MODAL -->
<div class="modal" id="modal-create">
<div class="modal-content">
<span class="modal-close">×</span>
<h2 style="text-decoration: underline">Add Log</h2>
<form id="create-form">
<div class="input-field">
<label for="category">Select Category</label>
<select id="category">
<option value="">Select a category</option>
<option value="code">π»</option>
<option value="design">π¨</option>
<option value="read">π</option>
</select>
</div>
<div class="input-field">
<label for="title">Log Title</label>
<input type="text" id="title" required placeholder="Log Title" />
</div>
<div class="input-field">
<label for="url">Url</label>
<input type="text" id="url" placeholder="Add a link to a website" />
</div>
<div class="input-field">
<label for="description">Description</label>
<textarea type="description" id="description" required placeholder="Write your log!" rows="8" cols="50"></textarea>
</div>
<button class="btn button-01">Add</button>
</form>
</div>
</div>
<!-- PROJECT MODAL -->
<div class="modal" id="modal-project">
<div class="modal-content">
<span class="modal-close">×</span>
<h2 style="text-decoration: underline">Add Project</h2>
<p style="color: var(--medium-grey)">Creating a project helps you easily organize and categories work that
you did each day.</p>
<form id="project-form">
<div class="input-field">
<label for="project-name">Project Name</label>
<input type="text" id="project-name" required placeholder="Project Name" />
</div>
<div class="input-field">
<label for="project-url">Url (Optional)</label>
<input type="text" id="project-url" placeholder="Add a link to a website" />
</div>
<div class="input-field">
<label for="project-category">Select Project Category</label>
<select id="project-category">
<option value="">Select Project Category</option>
<option value="code">π»</option>
<option value="design">π¨</option>
<option value="read">π</option>
</select>
</div>
<div class="input-field">
<label for="project-description">Description</label>
<textarea type="project-description" id="project-description" required placeholder="Write a simple description about your project!"
rows="8" cols="50"></textarea>
</div>
<button class="btn button-01">Add</button>
</form>
</div>
</div>
<!-- CONTENT -->
<section class="main-container">
<main class="logs"></main>
<main class="detail"></main>
</section>
<footer>
<div id="footer-copyright">Copyright © 2019 Will Kim</div>
</footer>
<!-- JavaScript -->
<script src="https://www.gstatic.com/firebasejs/5.8.1/firebase.js"></script>
<script>
// Initialize Firebase
var config = {
apiKey: "AIzaSyCHqrs6fh8-nSe4YdYMl-U1KTUWeAJUsnE",
authDomain: "project-log-d2dc8.firebaseapp.com",
databaseURL: "https://project-log-d2dc8.firebaseio.com",
projectId: "project-log-d2dc8",
storageBucket: "project-log-d2dc8.appspot.com",
messagingSenderId: "250818128237"
};
firebase.initializeApp(config);
// Make Auth and firestore references
const auth = firebase.auth();
const db = firebase.firestore();
// Update firestore settings
// db.settings({ timestampsInSnapshots: true });
</script>
<!-- Compiled and minified JavaScript -->
<script src="scripts/utils.js"></script>
<script src="index.js"></script>
<script src="scripts/firebase/auth.js"></script>
<script src="scripts/firebase/create.js"></script>
</body>
</html>