-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnavbar.html
More file actions
92 lines (78 loc) · 2.03 KB
/
navbar.html
File metadata and controls
92 lines (78 loc) · 2.03 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
<header>
<nav class="navbar" aria-label="Main navigation">
<a class="navbar-brand" href="/app/dashboard">Caribbean Language Explorers</a>
<button class="navbar-toggler" type="button" 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">
<li class="nav-item">
<a class="nav-link" href="/app/dashboard" aria-current="page">Dashboard</a>
</li>
<li class="nav-item">
<a class="nav-link" href="/app/profile">Profile</a>
</li>
<li class="nav-item">
<a class="nav-link" href="/app/settings">Settings</a>
</li>
</ul>
</div>
</nav>
</header>
<style>
nav ul {
list-style: none;
display: flex;
gap: 1rem;
}
nav a {
color: #333;
text-decoration: none;
font-weight: bold;
padding: 0.5rem 1rem;
border-radius: 0.25rem;
}
nav a:hover,
nav a:focus,
nav a[aria-current="page"] {
background-color: #333;
color: #fff;
}
/* Mobile responsive styles */
.navbar-brand {
font-size: 1.25rem;
font-weight: bold;
}
.navbar-toggler {
border: none;
background-color: transparent;
color: #333;
font-size: 1.5rem;
}
.navbar-toggler:focus {
outline: none;
}
.navbar-nav {
margin-top: 1rem;
}
.navbar-nav .nav-item {
margin: 0.5rem 0;
}
.navbar-collapse {
display: none;
}
@media (max-width: 768px) {
.navbar-nav {
flex-direction: column;
}
.navbar-toggler {
display: block;
}
.navbar-collapse {
display: none;
}
.navbar-collapse.show {
display: block;
}
}
</style>