-
Notifications
You must be signed in to change notification settings - Fork 52
/
general-header.html
142 lines (129 loc) · 3.74 KB
/
general-header.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
133
134
135
136
137
138
139
140
141
142
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Header</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<link rel="icon" type="img/png" href="images/favicon.png">
<link href="https://fonts.googleapis.com/css?family=Nunito&display=swap" rel="stylesheet">
</head>
<style type="text/css">
html
{
box-sizing: border-box;
}
body
{
font-family: 'Nunito', segoe UI, sans-serif;
}
#header
{
width: 100%;
padding: 0;
}
#header #navbar
{
padding: 0;
}
#header .logo img
{
width: 150px;
}
#header .navbar p
{
font-size: 2rem;
color: #6D9BF1;
}
#header .menu .nav-link
{
font-size: 1.1rem;
color: rgba(0, 0, 0, 0.7);
transition: 0.4s ease-out;
}
#header .menu .nav-link:hover
{
color: blue;
}
#header .menu #nav-register
{
background-color: #1257AE;
align-self: center;
color: white;
padding: 0.4rem 1.5rem;
}
#header .menu #nav-register:hover
{
box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
}
#header .menu li
{
margin-left: 2.2rem;
}
#header .fa-bars
{
color: #000000;
}
@media (max-width: 860px)
{
#header .fa-bars
{
margin-bottom: 1rem;
}
#header .menu
{
border-bottom: 1px solid rgba(0, 0, 0, 0.1);
padding-bottom: 1rem;
}
#header .menu .nav-link
{
font-size: 1rem;
padding: 0.3rem 1rem;
}
#header .menu #nav-register
{
padding: 0.3rem 1rem;
}
#header .menu li
{
margin-left: 0.5rem;
}
}
</style>
<body>
<!--
TO USE THIS HEADER, MAKE SURE YOU INCLUDE ALL THE TAGS/LINKS/CDNS AT THE <head></head>,
AS WELL AS THE CDNS IMPORTED AT THE BOTTOM
-->
<header id="header" class="container-fluid">
<div class="container">
<nav class="navbar navbar-expand-lg" id="navbar">
<a href="index.html" class="navbar-brand logo">
<img src="https://res.cloudinary.com/fabianuzukwu/image/upload/v1571749198/c09e9odiqy2cvkosfubl.png" alt="WikiPoli Logo">
</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<i class="fa fa-bars" aria-hidden="true"></i>
</button>
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="nav navbar-nav ml-auto menu">
<li class="nav-item active">
<a class="nav-link " href="index.html"><strong>Posts</strong></a>
</li>
<li class="nav-item">
<a class="nav-link" href="postpage1.html"><strong>Login</strong></a>
</li>
<li class="nav-item">
<a class="nav-link" href="error joor" id="nav-register">Register</a>
</li>
</ul>
</div>
</nav>
</div>
</header>
</body>
</html>
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>