1
-
2
- < div class ="d-flex d-none d-sm-block d-md-block mx-auto ">
1
+ < nav class =" navbar navbar-expand-lg navbar-dark " >
2
+ < div class ="d-flex d-none d-sm-block d-md-block d-lg-none ">
3
3
< div class ="navbar-header ">
4
4
< a class ="navbar-brand " href ="/ "> < img src ="/assets/img/logo/logo.png " style ="height: 70px; width: 70px; background-color: white; " class ="mr-3 "> Py Contributors</ a >
5
5
</ div >
6
6
</ div >
7
- <!-- <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarColor03" aria-controls="navbarColor03" aria-expanded="false" aria-label="Toggle navigation"> -->
8
- < div class ="hamburger ">
9
- < div class ="line1 "> </ div >
10
- < div class ="line2 "> </ div >
11
- < div class ="line3 "> </ div >
12
- </ div >
13
- <!-- </button> -->
7
+ < button class ="navbar-toggler " type ="button " data-toggle ="collapse " data-target ="#navbarColor03 " aria-controls ="navbarColor03 " aria-expanded ="false " aria-label ="Toggle navigation ">
8
+ < span class ="navbar-toggler-icon "> </ span >
9
+ </ button >
14
10
15
- <!-- < div class="collapse navbar-collapse" id="navbarColor03"> -- >
16
- <!-- < div class="container"> -- >
17
- <!-- < div class="ml-auto mr-4"> -- >
18
- < ul >
11
+ < div class ="collapse navbar-collapse " id ="navbarColor03 ">
12
+ < div class ="container ">
13
+ < div class ="ml-auto mr-4 ">
14
+ < ul class =" navbar-nav " >
19
15
{% if page.active == "home" %}
20
- < li class =" active "> < a class ="" href ="/ "> Home</ a > </ li >
16
+ < li class ="nav-item active "> < a class ="nav-link " href ="/ "> Home</ a > </ li >
21
17
{% else %}
22
- < li class =""> < a class ="" href ="/ "> Home</ a > </ li >
18
+ < li class ="nav-item "> < a class ="nav-link " href ="/ "> Home</ a > </ li >
23
19
{% endif %}
24
20
25
21
{% if page.active == "join-us" %}
26
- < li class =" active "> < a class ="" href ="/join-us/index.html "> Join Us</ a > </ li >
22
+ < li class ="nav-item active "> < a class ="nav-link " href ="/join-us/index.html "> Join Us</ a > </ li >
27
23
{% else %}
28
- < li class =""> < a class ="" href ="/join-us/index.html "> Join Us</ a > </ li >
24
+ < li class ="nav-item "> < a class ="nav-link " href ="/join-us/index.html "> Join Us</ a > </ li >
29
25
{% endif %}
30
- <!-- < /ul> -- >
31
- <!-- < /div> -- >
32
- <!-- < div class="navbar-header brandShow">
26
+ </ ul >
27
+ </ div >
28
+ < div class ="navbar-header brandShow ">
33
29
< a class ="navbar-brand " href ="/ "> < img src ="/assets/img/logo/logo.png " style ="height: 70px; width: 70px; background-color: white; " class ="mr-3 "> Py Contributors</ a >
34
- </div> -->
30
+ </ div >
35
31
36
- <!-- < ul class="navbar-nav mr-auto ml-4"> -- >
32
+ < ul class ="navbar-nav mr-auto ml-4 ">
37
33
38
34
{% if page.active == "updates" %}
39
- < li class =" active "> < a class ="" href ="/updates/index.html "> Updates</ a > </ li >
35
+ < li class ="nav-item active "> < a class ="nav-link " href ="/updates/index.html "> Updates</ a > </ li >
40
36
{% else %}
41
- < li class =""> < a class ="" href ="/updates/index.html "> Updates</ a > </ li >
37
+ < li class ="nav-item "> < a class ="nav-link " href ="/updates/index.html "> Updates</ a > </ li >
42
38
{% endif %}
43
39
44
40
{% if page.active == "developers" %}
45
- < li class =" active "> < a class ="" href ="/developers/index.html "> Developers</ a > </ li >
41
+ < li class ="nav-item active "> < a class ="nav-link " href ="/developers/index.html "> Developers</ a > </ li >
46
42
{% else %}
47
- < li class =""> < a class ="" href ="/developers/index.html "> Developers</ a > </ li >
43
+ < li class ="nav-item "> < a class ="nav-link " href ="/developers/index.html "> Developers</ a > </ li >
48
44
{% endif %}
49
45
</ ul >
50
- <!-- </div>
51
- </div> -->
52
-
53
-
54
- < script >
55
- const menu = document . querySelector ( '.hamburger' ) ;
56
- const list = document . querySelectorAll ( 'li' ) ;
57
-
58
- menu . addEventListener ( 'click' , ( ) => {
59
- list . forEach ( item => {
60
- item . classList . toggle ( 'on' ) ;
61
- } )
62
- menu . classList . toggle ( 'cross' ) ;
63
- } )
64
- </ script >
46
+ </ div >
47
+ </ div >
48
+ </ nav >
0 commit comments