-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTestnavbar.php
More file actions
126 lines (112 loc) · 3.99 KB
/
Testnavbar.php
File metadata and controls
126 lines (112 loc) · 3.99 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>NavBar</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.0/dist/css/bootstrap.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.0/css/all.min.css">
<link rel="stylesheet" href="./script.css">
</head>
<!-- DropDown CSS -->
<style>
.dropbtn {
background-color: #484848;
color: white;
padding: 10px;
font-size: 16px;
border: none;
}
/* The container <div> - needed to position the dropdown content */
.dropdown {
position: relative;
display: inline-block;
}
/* Dropdown Content (Hidden by Default) */
.dropdown-content {
display: none;
position: absolute;
background-color: #f1f1f1;
min-width: 160px;
box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
z-index: 1;
}
/* Links inside the dropdown */
.dropdown-content a {
color: black;
padding: 12px 16px;
text-decoration: none;
display: block;
}
/* Change color of dropdown links on hover */
.dropdown-content a:hover {
background-color: #484848;
}
/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {
display: block;
}
/* Change the background color of the dropdown button when the dropdown content is shown */
.dropdown:hover .dropbtn {
background-color: #212121;
}
.search_bar {
margin-left: 1rem;
}
.search_bar input {
padding: 0.7rem;
border-radius: 20px;
border: none;
background-color: #eee;
width: 400px;
margin-right: 15px;
font-size: 0.9rem;
color: #333;
}
.search_bar input:hover {
background-color: #fff;
}
</style>
<body>
<!-- First Navbar -->
<nav class="navbar navbar-expand-lg bg-dark">
<div class="container-fluid ">
<div class="collapse navbar-collapse" id="navbarSupportedContent" style="margin-left:20%;">
<ul class="navbar-nav me-auto mb-2 mb-lg-0 " style="margin-left:300px;">
<li class="nav-item">
<a href="./home.php" style="text-decoration: none; color:white;">
<h5> <i class="fa-solid fa-camera-retro"></i> ShareME</h5>
</a>
</li>
</ul>
<!-- <div class="search_bar">
<form action="">
<input type="text" name="search" id="search" class="search_bar" placeholder="Search Here">
</form>
</div> -->
<div class="dropdown">
<a href="home.php" style="margin-right: 10px;"><button class="dropbtn">Browse</button></a>
</div>
<div class="dropdown">
<a href="./template.php" style="margin-right: 10px;"><button class="dropbtn">Templates</button></a>
</div>
<div class="dropdown">
<a href="./upload.php" style="margin-right: 10px;"><button class="dropbtn"><i
class="fa-solid fa-cloud-arrow-up"></i> Upload</button></a>
</div>
<div class="dropdown">
<a href="./editors//index.php" style="margin-right: 10px;"><button class="dropbtn">Open
Editor</button></a>
</div>
<div class="dropdown">
<a href="logout.php" style="margin-right: 10px;"><button class="dropbtn">Logout</button></a>
</div>
</div>
</div>
</nav>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.0/dist/js/bootstrap.bundle.min.js"></script>
</body>
</html>