-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathnavbar.php
157 lines (140 loc) · 3.56 KB
/
navbar.php
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
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>AgroWave Navbar</title>
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css" rel="stylesheet">
<style>
/* General Navbar Styling */
nav {
background-color: rgba(0, 128, 128, 0.9);
display: flex;
justify-content: space-between;
align-items: center;
padding: 15px 50px;
position: sticky;
top: 0;
z-index: 1000;
color: white;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
nav .logo {
font-size: 26px;
font-weight: bold;
color: white;
text-transform: uppercase;
letter-spacing: 1px;
display: flex;
align-items: center;
}
nav .logo img {
height: 35px;
margin-right: 10px;
}
nav ul {
list-style: none;
display: flex;
margin: 0;
padding: 0;
}
nav ul li {
margin-left: 20px;
position: relative;
}
nav ul li a {
font-size: 18px;
color: white;
padding: 8px 15px;
text-transform: capitalize;
transition: 0.3s;
display: flex;
align-items: center;
border-radius: 30px;
}
nav ul li a i {
margin-right: 8px;
}
nav ul li a:hover {
background-color: rgba(0, 153, 153, 0.8);
color: #ffc107;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
/* Dropdown Menu Styling */
.dropdown-content {
display: none;
position: absolute;
background-color: white;
min-width: 150px;
box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.1);
border-radius: 8px;
overflow: hidden;
top: 30px;
z-index: 1000;
}
.dropdown-content a {
color: #333;
padding: 10px 15px;
text-decoration: none;
display: block;
font-size: 14px;
}
.dropdown-content a:hover {
background-color: rgba(0, 153, 153, 0.8);
color: #ffc107;
}
nav ul li:hover .dropdown-content {
display: block;
}
/* Responsive Menu */
@media (max-width: 768px) {
nav {
flex-direction: column;
align-items: flex-start;
}
nav ul {
flex-direction: column;
width: 100%;
}
nav ul li {
margin: 10px 0;
}
.dropdown-content {
position: static;
box-shadow: none;
}
nav ul li:hover .dropdown-content {
display: none;
}
}
</style>
</head>
<body>
<nav>
<div class="logo">
AgroWave
</div>
<ul>
<li><a href="index.php"><i class="fas fa-home"></i> Home</a></li>
<li><a href="contact.php"><i class="fas fa-envelope"></i> Contact</a></li>
<!-- Login Dropdown -->
<li class="dropdown">
<a href="#"><i class="fas fa-sign-in-alt"></i> Login</a>
<div class="dropdown-content">
<a href="farmer/flogin.php"><i class="fas fa-user"></i> Farmer</a>
<a href="customer/clogin.php"><i class="fas fa-user"></i> Customer</a>
<a href="admin/alogin.php"><i class="fas fa-user-shield"></i> Admin</a>
</div>
</li>
<!-- Signup Dropdown -->
<li class="dropdown">
<a href="#"><i class="fas fa-user-plus"></i> Signup</a>
<div class="dropdown-content">
<a href="farmer/fregister.php"><i class="fas fa-user-plus"></i> Farmer</a>
<a href="customer/cregister.php"><i class="fas fa-user-plus"></i> Customer</a>
</div>
</li>
</ul>
</nav>
</body>
</html>