This repository has been archived by the owner on Dec 5, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
133 lines (111 loc) · 5.48 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
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
<!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>Drawer Style Bootstrap 5 Modal</title>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet">
<link href="./dist/style.css" rel="stylesheet">
</head>
<body class="bg-light.bg-gradient">
<h1 class="text-center py-5">Drawer Style Bootstrap 5 Modal</h1>
<div class="col-8 mx-auto bg-white">
<h2>About project</h2>
<p>
Read more about project info and installation guide at
<a href="https://github.com/phyozawtun/Drawer-Style-Bootstrap-5-Modal">Github Repo</a>.
</p>
<h2>Examples</h2>
<!-- Drawer Style Right Modal -->
<button type="button" class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#rightModal">
Drawer Style Right Modal
</button>
<div class="modal right" id="rightModal" tabindex="-1" aria-labelledby="rightModalLabel" aria-hidden="true">
<div class="modal-dialog modal-sm w-100">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="rightModalLabel">Modal title</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
...
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>
<button type="button" class="btn btn-primary">Save changes</button>
</div>
</div>
</div>
</div>
<!-- End Drawer Style Right Modal -->
<!-- Drawer Style Left Modal -->
<button type="button" class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#leftModal">
Drawer Style Left Modal
</button>
<div class="modal left" id="leftModal" tabindex="-1" aria-labelledby="leftModalLabel" aria-hidden="true">
<div class="modal-dialog modal-sm w-100">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="leftModalLabel">Modal title</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
...
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>
<button type="button" class="btn btn-primary">Save changes</button>
</div>
</div>
</div>
</div>
<!-- End Drawer Style Left Modal -->
<!-- Drawer Style Right Modal -->
<button type="button" class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#rightModal2">
Modal MD
</button>
<div class="modal right" id="rightModal2" tabindex="-1" aria-labelledby="rightModalLabel" aria-hidden="true">
<div class="modal-dialog modal-md w-100">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="rightModalLabel">Modal title</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
...
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>
<button type="button" class="btn btn-primary">Save changes</button>
</div>
</div>
</div>
</div>
<!-- End Drawer Style Right Modal -->
<!-- Drawer Style Right Modal -->
<button type="button" class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#rightModal3">
Modal LG
</button>
<div class="modal right" id="rightModal3" tabindex="-1" aria-labelledby="rightModalLabel" aria-hidden="true">
<div class="modal-dialog modal-lg w-100">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="rightModalLabel">Modal title</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
...
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>
<button type="button" class="btn btn-primary">Save changes</button>
</div>
</div>
</div>
</div>
<!-- End Drawer Style Right Modal -->
</div>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script>
</body>
</html>