8
8
<form action =" /register" method =" POST" >
9
9
<div class =" card" style =" padding-top : 20px ; border-radius : 10px ;" >
10
10
<div class =" card-content" >
11
- <!-- -- EDIT CODE FOR SIGN UP FORM HERE-- - -->
11
+ <!-- -- EDIT CODE FOR SIGN UP/LOGIN FORM HERE-- - -->
12
12
<div class =" field" >
13
13
<label class =" label" >Username</label >
14
14
<div class =" control" >
25
25
</div >
26
26
<footer class =" card-footer" >
27
27
<p class =" card-footer-item" >
28
- <button class =" button is-primary is-outlined" style =" width : 100% ;" >Sign Up </button >
28
+ <button formaction = " /login " class =" button is-primary is-outlined btn-grad " style =" width : 100% ;" >Login </button >
29
29
</p >
30
30
<p class =" card-footer-item" >
31
- <button formaction = " /login " class =" button is-primary is-outlined" style =" width : 100% ;" >Login </button >
31
+ <button class =" button is-primary is-outlined" style =" width : 100% ;" >Sign Up </button >
32
32
</p >
33
33
</footer >
34
34
</div >
@@ -47,7 +47,7 @@ HOMEPAGE COPIED FROM GITHUB-------------
47
47
<div class =" header-nav" >
48
48
<nav class =" nav" >
49
49
<div class =" nav-center" >
50
- <a class =" nav-item" href =" index.html " >
50
+ <a class =" nav-item" href =" / " >
51
51
<b >Home</b >
52
52
</a >
53
53
<% if (! currentUser){% >
@@ -62,7 +62,7 @@ HOMEPAGE COPIED FROM GITHUB-------------
62
62
< b> Sign Out< / b>
63
63
< / a>
64
64
< a class = " nav-item -end" >
65
- < b> Welcome < / b>
65
+ < b> Welcome < %= currentUser . username % >< / b>
66
66
< / a>
67
67
< % }%>
68
68
</div >
@@ -90,87 +90,50 @@ HOMEPAGE COPIED FROM GITHUB-------------
90
90
<!-- main body content -->
91
91
<div class =" main-content" >
92
92
<div class =" container" >
93
- <div class =" columns is-centered is-multiline has-text-centered" >
94
- <div class =" column is-8" >
95
- <% blogs .forEach (function (blog ) { % >
96
- < h3 class = " title is-3" >< b>< a href= " post.html" >< %= blog .title % >< / a>< / b>< / h3>
97
- < h4 class = " title is-4 is-spaced" >< %= blog .body % >< / h4>
98
- < h6 class = " subtitle is-6" > Posted by < %= blog .author .username % > on April 7th 2017 at 9 : 33pm < / h6>
99
- < hr/ >
100
- < % })%>
101
- <div class =" post" >
102
- <div class =" content" >
103
- <div class =" content-header" >
104
- <h3 class =" title is-3" ><b ><a href =" post.html" >Crawling Over Sand</a ></b ></h3 >
105
- <h4 class =" title is-4 is-spaced" >Tricks to crawl correctly!</h4 >
106
- <h6 class =" subtitle is-6" >Posted by Author on April 2nd 2017 at 10:41am</h6 >
107
- <hr />
108
- </div >
109
- </div >
110
- </div >
111
-
112
- <div class =" post" >
113
- <!-- post content -->
114
- <div class =" content" >
115
- <div class =" content-header" >
116
- <h3 class =" title is-3" ><b ><a href =" post.html" >Old People Work Hard</a ></b ></h3 >
117
- <h4 class =" title is-4 is-spaced" >At least I believe they do</h4 >
118
- <h6 class =" subtitle is-6" >Posted by Author on April 1st 2017 at 11:00pm</h6 >
119
- <hr />
120
- </div >
121
- </div >
122
- <!-- end of post content -->
123
- </div >
124
-
125
- <div class =" post" >
126
- <!-- post content -->
127
- <div class =" content" >
128
- <div class =" content-header" >
129
- <h3 class =" title is-3" ><b ><a href =" post.html" >Apples Are Real</a ></b ></h3 >
130
- <h4 class =" title is-4 is-spaced" >Apples are born from apples</h4 >
131
- <h6 class =" subtitle is-6" >Posted by Author on March 20th 2017 at 9:00am</h6 >
132
- <hr />
133
- </div >
93
+ <div class =" columns is-centered is-multiline has-text-centered" >
94
+ <div class =" column is-8" >
95
+ <% blogs .forEach (function (blog ) { % >
96
+ < h3 class = " title is-3" >< b>< a href= " post.html" class = " has-text-dark" >< %= blog .title % >< / a>< / b>< / h3>
97
+ <!-- < h4 class = " title is-4 is-spaced" >< %= blog .body % >< / h4> -->
98
+ < h6 class = " subtitle is-6" > Posted by < b>< em>< %= blog .author .username % >< / em>< / b> on April 7th 2017 at 9 : 33pm < / h6>
99
+ < hr/ >
100
+ < % })%>
101
+ <!-- pagingation -->
102
+ <nav class =" has-text-right" >
103
+ <a class =" pagination-next" disabled >Newer Posts</a >
104
+ <a class =" pagination-previous" >Older Posts</a >
105
+ </nav >
106
+ <!-- end of pagination -->
107
+ </div >
134
108
</div >
135
- <!-- end of post content -->
136
- </div >
137
-
138
- <!-- pagingation -->
139
- <nav class =" has-text-right" >
140
- <a class =" pagination-next" disabled >Newer Posts</a >
141
- <a class =" pagination-previous" >Older Posts</a >
142
- </nav >
143
- <!-- end of pagination -->
144
- </div >
145
- </div >
146
109
</div >
147
110
</div >
148
111
<!-- end of main content -->
149
112
150
113
<!-- footer -->
151
114
<div class =" footer" >
152
115
<div class =" container" >
153
- <div class =" has-text-centered" >
154
- <!-- nav icons -->
155
- <div class =" nav-center" >
156
- <a class =" nav-item" >
157
- <span class =" icon" >
158
- <i class =" fa fa-twitter" ></i >
159
- </span >
160
- </a >
161
- <a class =" nav-item" >
162
- <span class =" icon" >
163
- <i class =" fa fa-facebook" ></i >
164
- </span >
165
- </a >
166
- <a class =" nav-item" >
167
- <span class =" icon" >
168
- <i class =" fa fa-github" ></i >
169
- </span >
170
- </a >
171
- </div >
172
- <!-- end of nav icons -->
173
- </div >
116
+ <div class =" has-text-centered" >
117
+ <!-- nav icons -->
118
+ <div class =" nav-center" >
119
+ <a class =" nav-item" >
120
+ <span class =" icon" >
121
+ <i class =" fa fa-twitter" ></i >
122
+ </span >
123
+ </a >
124
+ <a class =" nav-item" >
125
+ <span class =" icon" >
126
+ <i class =" fa fa-facebook" ></i >
127
+ </span >
128
+ </a >
129
+ <a class =" nav-item" >
130
+ <span class =" icon" >
131
+ <i class =" fa fa-github" ></i >
132
+ </span >
133
+ </a >
134
+ </div >
135
+ <!-- end of nav icons -->
136
+ </div >
174
137
</div >
175
138
</div >
176
139
<!-- ---------------------------------- -
0 commit comments