-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
132 lines (113 loc) · 3.68 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
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Bloggin</title>
<meta charset="utf-8">
<link href="https://fonts.googleapis.com/css?family=Tajawal:300,400,500,700&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Scope+One&display=swap" rel="stylesheet">
<link rel="stylesheet" href="css/style.css">
<script src="https://kit.fontawesome.com/501798d20d.js"></script>
<!-- firebase must be called in head, not after body -->
<script src="https://www.gstatic.com/firebasejs/6.2.4/firebase-app.js"></script>
<script src="https://www.gstatic.com/firebasejs/6.2.4/firebase-auth.js"></script>
<script src="https://www.gstatic.com/firebasejs/6.2.4/firebase-firestore.js"></script>
</head>
<body>
<div class="onboardState">
<div class="main">
<div class="onboard-login">
<h1>Hello there!</h1>
<h2>To log in, enter your account here:</h2>
<input name="username" type="text" placeholder="Username" id="username" autofocus></input>
<input name="password" type="password" placeholder="Password" id="password"></input>
<button id="onboardButton">login</button>
<p id="error" class="error"></p>
<p id="success" class="success"></p>
<p><a id="onboardSwitch" href="#">Sign Up</a></p>
<h2><a id="anonLogin" class="anon" href="#">or continue anonymously</a></h2>
</div><!--onboard-login-->
</div><!--main-->
<footer>
Copyright © Lucy co.
<ul>
<li><a href="#">Help</a></li>
<li><a href="#">Contact</a></li>
<li><a href="#">About</a></li>
</ul>
</footer>
</div><!--onboard-->
<div class="headerState">
<div class="wrapper">
<header>
<div id="logo">
<h1>Bloggin</h1>
<h2>Post your thoughts.</h2>
</div><!--logo-->
<div class="settings">
<div>
<i id="newentry" class="fas fa-plus"></i>
<i id="logout" class="fas fa-sign-in-alt" alt="Sign Out"></i>
<i class="fas fa-cog"></i>
</div>
<div>
<section id="accountDetails">
<p><b>Username: </b><span id="accountUsername">you</span></p>
</section>
</div>
</div><!--settings-->
</header>
</div><!--wrapper-->
</div><!--header-->
<div class="newEntryState">
<div class="wrapper">
<header>
<div>
<h1>New Entry</h1>
<h2>What's on your mind?</h2>
</div>
</header>
<main>
<p class="title">Title: </p>
<textarea id="title" type="text" name="title" placeholder="Title." maxlength="100" autofocus></textarea>
<p class="title">Content: </p>
<textarea id="content" type="text" name="content" placeholder="Content goes here."></textarea>
<div class="tags">
<ul>
</ul>
</div><!--tags-->
<button id="save">Save</button>
</main>
</div><!--wrapper-->
</div><!--newEntryState-->
<div class="mainState">
<div class="paw"><img src='images/icon_cat_02.svg' width='50px' height='50px'></div>
<div class="wrapper">
<div class="tags">
<ul>
<button id="makeArticles" class="makeArticle"><i class="fas fa-sync-alt"></i></button>
</ul>
</div><!--tags-->
</div><!--wrapper-->
<main id="articleHolder">
</main>
</div><!--mainState-->
<div class="wrapper footerState">
<div id="errorMsg" class="errorMsg"></div>
<footer>
Copyright © Lucy co.
<ul>
<li><a href="#">Help</a></li>
<li><a href="#">Contact</a></li>
<li><a href="#">About</a></li>
</ul>
</footer>
</div><!--wrapper-->
</body>
<!-- Firebase configuration -->
<script src="js/firebase.js"></script>
<!-- handles DOM state -->
<script src="js/main.js"></script>
<!-- handles authentication and database -->
<script src="js/firebasectrl.js"></script>
</html>