-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
235 lines (205 loc) · 7.67 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
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
<!DOCTYPE html>
<html color-mode="light" lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8" />
<meta
content="width=device-width, initial-scale=1, shrink-to-fit=no"
name="viewport"
/>
<meta content="noindex, nofollow" name="robots" />
<!-- Bootstrap CSS -->
<link href="./assets/vendor/css/bootstrap.min.css" rel="stylesheet" />
<link href="./assets/css/vendors.min.css" rel="stylesheet" />
<link href="./assets/css/index.css" rel="stylesheet" />
<title>Sawacrow HTML Boilerplate</title>
</head>
<body class="container">
<header class="mt-3">
<h1>Sawacrow HTML Boilerplate</h1>
</header>
<main>
<table class="table table-striped">
<thead>
<tr>
<th scope="col">#</th>
<th scope="col">Page</th>
<th scope="col">Type</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">1</th>
<td><a href="./index-main.html" target="_blank">Index HTML</a></td>
<td>Page</td>
</tr>
</tbody>
</table>
</main>
<style>
.comp-container {
display: flex;
gap: 20px;
}
</style>
<section class="mt-5 d-none" id="darktheme">
<hr />
<h2>DarkMode</h2>
<section class="color-mode">
<!--- Light mode button --->
<button
aria-label="Toggle light mode"
class="color-mode__btn light--hidden"
>
Toggle Light Mode
</button>
<!--- Dark mode button --->
<button
aria-label="Toggle dark mode"
class="color-mode__btn dark--hidden"
>
Toggle Dark Mode
</button>
<div class="color-mode__section">
Lorem ipsum dolor sit amet consectetur adipisicing elit. Voluptas, ut,
porro beatae animi ipsa cumque sunt dicta, quae quas ducimus incidunt
dignissimos enim iusto! Id accusamus cupiditate quia voluptatem natus?
</div>
<script>
var toggleColorMode = function toggleColorMode(e) {
// Switch to Light Mode
if (e.currentTarget.classList.contains("light--hidden")) {
// Sets the custom html attribute
document.documentElement.setAttribute("color-mode", "light"); // Sets the user's preference in local storage
localStorage.setItem("color-mode", "light");
return;
}
/* Switch to Dark Mode
Sets the custom html attribute */
document.documentElement.setAttribute("color-mode", "dark"); // Sets the user's preference in local storage
localStorage.setItem("color-mode", "dark");
}; // Get the buttons in the DOM
var toggleColorButtons =
document.querySelectorAll(".color-mode__btn"); // Set up event listeners
toggleColorButtons.forEach(function (btn) {
btn.addEventListener("click", toggleColorMode);
});
</script>
</section>
</section>
<section class="d-none" id="components">
<hr />
<section class="Components d-none">
<div class="mt-5">
<h5>Button</h5>
<hr />
<div class="d-flex comp-container">
<section
class=""
style="gap: 10px; display: flex; flex-direction: column"
>
<a class="custom-btn-primary" href="#">a custom-btn-primary</a>
<button class="custom-btn-primary">
button custom-btn-primary
</button>
<a class="custom-btn-secondary" href="#"
>a custom-btn-secondary</a
>
<button class="custom-btn-secondary">
btn custom-btn-secondary
</button>
<a class="custom-btn-third" href="#">a custom-btn-third</a>
<button class="custom-btn-third">btn custom-btn-third</button>
</section>
</div>
<div class="d-flex comp-container mt-3">
<div>LG Button</div>
<button class="button-lg">Send us!</button>
<button class="button-lg">
Withicon <i class="icon icon-Trash-Icon"></i>
</button>
<button class="button-lg">
<i class="icon icon-Trash-Icon"></i> Withicon
</button>
</div>
</div>
<div class="mt-5">
<h5>Anchor</h5>
<hr />
<div class="d-flex comp-container">
<a class="anchor-1" href="#">normal</a>
<a class="anchor-1 anchor-fail" href="#">warning</a>
<a class="anchor-1 anchor-success" href="#">success</a>
</div>
</div>
<div class="mt-5 mb-5">
<h5>Single Action Button's</h5>
<hr />
<div class="d-flex comp-container mt-3">
<div>SM Anchor</div>
<a class="button-sgb" href="#"
><i class="icon icon-Trash-Icon"></i
></a>
</div>
<div class="d-flex comp-container mt-3">
<div>MD Anchor</div>
<a class="button-sgb" href="#"
><i class="icon icon-Trash-Icon"></i
></a>
</div>
<div class="d-flex comp-container mt-3">
<div>LG Anchor</div>
<a class="button-sgb" href="#"
><i class="icon icon-Trash-Icon"></i
></a>
</div>
</div>
<div class="mt-5 mb-5">
<h5>Input</h5>
<hr />
<div class="d-flex comp-container">
<section class="input-holder">
<span class="input-titler">e-mail adress</span>
<input placeholder="enter your name." type="text" />
<div class="input-holder-absolute"></div>
</section>
<div class="toggler-container">
<label class="switch">
<input type="checkbox" />
<span class="slider round"></span>
</label>
</div>
<div>
<div class="round-checkbox">
<input checked id="checkbox" type="checkbox" />
<label for="checkbox"></label>
</div>
</div>
<div class="ml-3">
<input type="radio" />
</div>
</div>
</div>
</section>
</section>
<section class="mt-5 d-none" id="typo">
<hr />
<h2>Typography</h2>
<h1>h1</h1>
<h2>h2</h2>
<h3>h3</h3>
<h4>h4</h4>
<h5>h5</h5>
<h6>h6</h6>
</section>
<!-- Optional JavaScript; choose one of the two! -->
<!-- Option 1: jQuery and Bootstrap Bundle (includes Popper) -->
<!---<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM" crossorigin="anonymous"></script>-->
<!--<script src="./dist/js/vendor.min.js"></script>-->
<!-- Option 2: Separate Popper and Bootstrap JS -->
<!--
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/jquery.slim.min.js" integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/umd/popper.min.js" integrity="sha384-9/reFTGAW83EW2RDu2S0VKaIzap3H66lZH81PoYlFhbGU+6BZp6G7niu735Sk7lN" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.min.js" integrity="sha384-VHvPCCyXqtD5DqJeNxl2dtTyhF78xXNXdkwX1CZeRusQfRKp+tA7hAShOK/B/fQ2" crossorigin="anonymous"></script>
--></body>
</html>