-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
91 lines (78 loc) · 3.33 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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>Bootstrap Callouts</title>
<!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz" crossorigin="anonymous"></script>
<link rel="stylesheet" href="./src/bs-callout.css">
<!-- Simple script to switch bootstrap theme -->
<script>
if (window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches) {
document.documentElement.setAttribute('data-bs-theme', 'dark');
console.log('switching to dark theme');
}
if (window.matchMedia && window.matchMedia('(prefers-color-scheme: light)').matches) {
document.documentElement.setAttribute('data-bs-theme', 'light');
console.log('switching to light theme');
}
</script>
</head>
<body class="mt-3">
<main class="container">
<h1 class="h2">Bootstrap Callouts Demo</h1>
<div>
<h4>Information</h4>
<ul>
<li>
GitHub Repo: <a href="https://github.com/kolappannathan/bootstrap-callouts">
https://github.com/kolappannathan/bootstrap-callouts
</a>
</li>
<li>
Bootstrap version: 5.3.3
</li>
</ul>
</div>
<h4>Examples</h4>
<div class="bs-callout bs-callout-success">
<div class="bs-callout-heading">
✅ Success
</div>
<ul class="mb-0">
<li>This is a success callout.</li>
<li>The color code used is #5cb85c</li>
</ul>
</div>
<div class="bs-callout bs-callout-danger">
<div class="bs-callout-heading">
🛑 Danger
</div>
<ul class="mb-0">
<li>This is a danger callout.</li>
<li>The color code used is #d9534f</li>
</ul>
</div>
<div class="bs-callout bs-callout-warning">
<div class="bs-callout-heading">
⚠ Warning
</div>
<ul class="mb-0">
<li>This is a warning callout.</li>
<li>The color code used is #f0ad4e</li>
</ul>
</div>
<div class="bs-callout bs-callout-info">
<div class="bs-callout-heading">
🛈 Info
</div>
<ul class="mb-0">
<li>This is a info callout.</li>
<li>The color code used is #5bc0de</li>
</ul>
</div>
</main>
</body>
</html>