1
1
<% - include (' partials/header' ) %>
2
- <div class =" modal animated fadeIn" id =" regmodal" >
3
- <div class =" modal-background" ></div >
4
- <!-- ----------------------------------------
5
- SIGN UP AND LOGIN FORM----------------
6
- ---------------------------------------- -->
7
- <div class =" modal-content" style =" width : 30% ;" >
8
- <form action =" /register" method =" POST" >
9
- <div class =" card" style =" padding-top : 20px ; border-radius : 10px ;" >
10
- <div class =" card-content" >
11
- <!-- -- EDIT CODE FOR SIGN UP/LOGIN FORM HERE-- - -->
12
- <div class =" field" >
13
- <label class =" label" >Username</label >
14
- <div class =" control" >
15
- <input class =" input" type =" text" name =" username" placeholder =" Username" >
16
- </div >
17
- </div >
18
-
19
- <div class =" field" >
20
- <label class =" label" >Password</label >
21
- <div class =" control" >
22
- <input class =" input" type =" password" name =" password" placeholder =" Password" >
23
- </div >
24
- </div >
25
- </div >
26
- <footer class =" card-footer" >
27
- <p class =" card-footer-item" >
28
- <button formaction =" /login" class =" button is-primary is-outlined btn-grad" style =" width : 100% ;" >Login</button >
29
- </p >
30
- <p class =" card-footer-item" >
31
- <button class =" button is-primary is-outlined" style =" width : 100% ;" >Sign Up</button >
32
- </p >
33
- </footer >
34
- </div >
35
- </form >
36
- </div >
37
- <button class =" modal-close is-large" aria-label =" close" ></button >
38
- </div >
39
-
40
- <!-- ---------------------------------- -
41
- HOMEPAGE COPIED FROM GITHUB------------ -
42
- ---------------------------------- - --->
43
- <div class =" header-wrapper" >
44
- <section class =" hero-top" >
45
- <div class =" header" >
46
- <!-- navigation links -->
47
- <div class =" header-nav" >
48
- <nav class =" nav" >
49
- <div class =" nav-center" >
50
- <a class =" nav-item" href =" /" >
51
- <b >Home</b >
52
- </a >
53
- <% if (! currentUser){% >
54
- < a class = " nav-item" id= " regbutton" >
55
- < b> Sign- Up/ Login< / b>
56
- < / a>
57
- < % } else {% >
58
- < a class = " nav-item" href= " /blogs/new" >
59
- < b> New Blog< / b>
60
- < / a>
61
- < a class = " nav-item" href= " /logout" >
62
- < b> Sign Out< / b>
63
- < / a>
64
- < a class = " nav-item -end" >
65
- < b> Welcome < %= currentUser .username % >< / b>
66
- < / a>
67
- < % }%>
68
- </div >
69
- </nav >
70
- </div >
71
- <!-- end of navigation links -->
72
- <!-- header titles -->
73
- <div class =" header-title" >
74
- <section class =" hero is-medium has-text-centered" >
75
- <div class =" hero-body" >
76
- <div class =" container" >
77
- <h1 class =" title is-1" >Ankush Dutt</h1 >
78
- <h3 class =" subtitle is-3" >The Daily Awesome</h3 >
79
- </div >
80
- </div >
81
- </section >
82
- </div >
83
- <!-- end of header titles -->
84
- </div >
85
- </section >
86
- </div >
87
- <!-- end of header -->
88
-
89
- <!-- main body content -->
90
2
<div class =" main-content" >
91
3
<div class =" container" >
92
4
<div class =" columns is-centered is-multiline has-text-centered" >
93
5
<div class =" column is-8" >
94
6
<% blogs .forEach (function (blog ) { % >
95
7
< h3 class = " title is-3" >< b>< a href= " /blog/<%=blog._id %>" class = " has-text-dark" >< %= blog .title % >< / a>< / b>< / h3>
96
8
<!-- < h4 class = " title is-4 is-spaced" >< %= blog .body % >< / h4> -->
97
- < h6 class = " subtitle is-6" style= " padding-top: 10px;" > Posted by < b>< em >< %= blog .author .username % >< / em >< / b> on April 7th 2017 at 9 : 33pm < / h6>
9
+ < h6 class = " subtitle is-6" style= " padding-top: 10px;" > Posted by < b>< %= blog .author .username % >< / b> on April 7th 2017 at 9 : 33pm < / h6>
98
10
< hr/ >
99
11
< % })%>
100
12
<!-- pagingation -->
@@ -107,48 +19,4 @@ HOMEPAGE COPIED FROM GITHUB-------------
107
19
</div >
108
20
</div >
109
21
</div >
110
- <!-- end of main content -->
111
-
112
- <!-- footer -->
113
- <div class =" footer" >
114
- <div class =" container" >
115
- <div class =" has-text-centered" >
116
- <!-- nav icons -->
117
- <div class =" nav-center" >
118
- <a class =" nav-item" >
119
- <span class =" icon" >
120
- <i class =" fa fa-twitter" ></i >
121
- </span >
122
- </a >
123
- <a class =" nav-item" >
124
- <span class =" icon" >
125
- <i class =" fa fa-facebook" ></i >
126
- </span >
127
- </a >
128
- <a class =" nav-item" >
129
- <span class =" icon" >
130
- <i class =" fa fa-github" ></i >
131
- </span >
132
- </a >
133
- </div >
134
- <!-- end of nav icons -->
135
- </div >
136
- </div >
137
- </div >
138
- <!-- ---------------------------------- -
139
- JAVASCRIPT------------------------------
140
- ---------------------------------- - --->
141
- <script >
142
- var button = document .getElementById (" regbutton" )
143
- var modal = document .getElementById (" regmodal" )
144
- var closebtn = document .getElementsByClassName (" modal-close" )[0 ]
145
-
146
- button .onclick = function () {
147
- regmodal .classList .toggle (" is-active" )
148
- }
149
-
150
- closebtn .onclick = function (){
151
- regmodal .classList .toggle (" is-active" )
152
- }
153
- </script >
154
22
<% - include (' partials/footer' ) %>
0 commit comments