11
11
<!-- end of styles and fonts -->
12
12
</head >
13
13
<body >
14
- <div class =" header-wrapper" >
15
- <section class =" hero-top" >
16
- <div class =" header" >
17
- <!-- navigation links -->
18
- <div class =" header-nav" >
19
- <nav class =" nav" >
20
- <div class =" nav-center" >
21
- <a class =" nav-item" href =" /" >
22
- <b >Home</b >
23
- </a >
24
- <% if (! currentUser){% >
25
- < a class = " nav-item" id= " regbutton" >
26
- < b> Sign- Up/ Login< / b>
27
- < / a>
28
- < % } else {% >
29
- < a class = " nav-item" href= " /blogs/new" >
30
- < b> New Blog< / b>
31
- < / a>
32
- < a class = " nav-item" href= " /logout" >
33
- < b> Sign Out< / b>
34
- < / a>
35
- < a class = " nav-item -end" >
36
- < b> Welcome < %= currentUser .username % >< / b>
37
- < / a>
38
- < % }%>
39
- </div >
40
- </nav >
41
- </div >
42
- <!-- end of navigation links -->
43
- <!-- header titles -->
44
- <div class =" header-title" >
45
- <section class =" hero is-medium has-text-centered" >
46
- <div class =" hero-body" >
47
- <div class =" container" >
48
- <h1 class =" title is-1" >Ankush Dutt</h1 >
49
- <h3 class =" subtitle is-3" >The Daily Awesome</h3 >
50
- </div >
51
- </div >
52
- </section >
53
- </div >
54
- <!-- end of header titles -->
55
- </div >
56
- </section >
57
- </div >
58
14
<!-- ------------------------------------ MODAL---- -->
59
15
<div class =" modal animated fadeInDown" id =" regmodal" >
60
16
<div class =" modal-background" ></div >
94
50
<button class =" modal-close is-large" aria-label =" close" ></button >
95
51
</div >
96
52
97
- <!-- ---------------------------------- -
98
- JAVASCRIPT------------------------------
99
- ---------------------------------- - --->
100
- <script >
101
- var button = document .getElementById (" regbutton" )
102
- var modal = document .getElementById (" regmodal" )
103
- var closebtn = document .getElementsByClassName (" modal-close" )[0 ]
104
-
105
- button .onclick = function () {
106
- regmodal .classList .toggle (" is-active" )
107
- }
108
-
109
- closebtn .onclick = function (){
110
- regmodal .classList .toggle (" is-active" )
111
- }
112
- </script >
0 commit comments