-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
74 lines (67 loc) · 2.65 KB
/
index.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
<!doctype html>
<html lang = 'en'>
<head>
<meta charset = 'UTF-8'>
<meta name = 'viewport'
content = 'width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0'
>
<meta http-equiv = 'X-UA-Compatible' content = 'ie=edge'>
<title>Bootstrap-5-offcanvas-navbar-menu</title>
<link rel = 'stylesheet'
href = 'css/bootstrap.min.css'
>
<link rel = 'stylesheet' href = 'css/style.css'>
</head>
<body>
<nav class = 'navbar navbar-expand-lg navbar-light bg-danger'>
<div class = 'container'>
<a class = 'navbar-brand text-white' href = '#'>Navbar</a>
<button class = 'btn btn-danger navbar-toggler border-3 px-2' type = 'button' data-bs-toggle = 'offcanvas'
data-bs-target = '#offcanvasExample' aria-controls = 'offcanvasExample'
>
<img style = 'width: 30px' src = 'image/text-center.svg' alt = 'menu icon'>
</button>
<div class = 'offcanvas offcanvas-start-lg bg-danger' tabindex = '-1' id = 'offcanvasExample'
aria-labelledby = 'offcanvasExampleLabel'
>
<div class = 'offcanvas-header d-flex d-lg-none'>
<h5 class = 'offcanvas-title text-white' id = 'offcanvasExampleLabel'>Navbar</h5>
<a href='javascript:void(0) '
class = 'text-reset p-0'
data-bs-dismiss = 'offcanvas'
aria-label = 'close'
>
<svg xmlns = 'http://www.w3.org/2000/svg'
width = '24'
height = '24'
fill = '#FFFFFF'
class = 'bi bi-x-circle'
viewBox = '0 0 16 16'
>
<path d = 'M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14zm0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16z'/>
<path d = 'M4.646 4.646a.5.5 0 0 1 .708 0L8 7.293l2.646-2.647a.5.5 0 0 1 .708.708L8.707 8l2.647 2.646a.5.5 0 0 1-.708.708L8 8.707l-2.646 2.647a.5.5 0 0 1-.708-.708L7.293 8 4.646 5.354a.5.5 0 0 1 0-.708z'/>
</svg>
</a>
</div>
<div class = 'offcanvas-body p-lg-0'>
<ul class = 'navbar-nav'>
<li class = 'nav-item'>
<a class = 'nav-link active' aria-current = 'page' href = '#'>Home</a>
</li>
<li class = 'nav-item'>
<a class = 'nav-link active' aria-current = 'page' href = '#'>About</a>
</li>
<li class = 'nav-item'>
<a class = 'nav-link active' aria-current = 'page' href = '#'>Skills</a>
</li>
<li class = 'nav-item'>
<a class = 'nav-link active' aria-current = 'page' href = '#'>Contact</a>
</li>
</ul>
</div>
</div>
</div>
</nav>
<script src = 'js/bootstrap.bundle.min.js'></script>
</body>
</html>