-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnavbar.php
More file actions
134 lines (116 loc) · 4.77 KB
/
Copy pathnavbar.php
File metadata and controls
134 lines (116 loc) · 4.77 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Navbar Example</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css">
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.bundle.min.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css">
<link rel="stylesheet" href="https://cdn.datatables.net/1.10.25/css/dataTables.bootstrap4.min.css">
<script src="https://cdn.datatables.net/1.10.25/js/jquery.dataTables.min.js"></script>
<script src="https://cdn.datatables.net/1.10.25/js/dataTables.bootstrap4.min.js"></script>
<style>
/* Navigation Bar Styles */
.navbar {
background-color: #000;
margin-bottom: 0; /* Remove margin-bottom to eliminate space above navbar */
}
.navbar-brand {
margin-right: 50px;
display: flex;
align-items: center;
margin-left: 20px; /* Add left margin as per your preference */
}
.navbar-brand img {
height: auto;
width: auto;
max-height: 40px; /* Set the maximum height as per your preference */
max-width: 150px; /* Set the maximum width as per your preference */
margin-right: 10px;
}
.navbar-toggler {
color: red;
border-color: red;
}
.navbar-toggler-icon {
background-image: url('toggle-icon.png');
}
.navbar-nav .nav-link {
color: red;
margin-right: 20px;
transition: color 0.3s;
}
.navbar-nav .nav-link:hover {
color: red !important;
font-weight: bold;
}
/* Adjust space between table and navigation */
.py-5 {
padding-top: 0 !important;
padding-bottom: 0 !important;
}
/* Responsive Styles */
@media (max-width: 767px) {
.navbar-brand {
margin-right: 0;
}
.navbar-brand img {
max-width: 100px; /* Adjust the maximum width for mobile view */
}
.navbar-nav .nav-link {
margin-right: 0;
}
.navbar-collapse {
justify-content: flex-end;
}
.navbar-nav {
flex-direction: column;
align-items: flex-end;
}
.navbar-nav .nav-item {
margin-bottom: 10px;
}
}
.py-5 {
padding-top: 50px !important;
padding-bottom: 20px !important;
}
</style>
</head>
<body>
<nav class="navbar navbar-expand-lg navbar-dark">
<a class="navbar-brand" href="#">
<img src="asset/logo.png" alt="Company Logo">
ISB Security
</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav"
aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav ml-auto">
<li class="nav-item <?php echo ($activePage == 'home') ? 'active' : ''; ?>">
<a class="nav-link" href="home.php">Home</a>
</li>
<li class="nav-item <?php echo ($activePage == 'company') ? 'active' : ''; ?>">
<a class="nav-link" href="company.php">Company</a>
</li>
<li class="nav-item <?php echo ($activePage == 'employee') ? 'active' : ''; ?>">
<a class="nav-link" href="employee.php">Employee</a>
</li>
<li class="nav-item <?php echo ($activePage == 'payment') ? 'active' : ''; ?>">
<a class="nav-link" href="payment.php">Payment</a>
</li>
<li class="nav-item <?php echo ($activePage == 'settings') ? 'active' : ''; ?>">
<a class="nav-link" href="settings.php">Setting</a>
</li>
<li class="nav-item <?php echo ($activePage == 'logout') ? 'active' : ''; ?>">
<a class="nav-link" href="index.php">Logout</a>
</li>
</ul>
</div>
</nav>
</body>
</html>