Added sample UI to config
This commit is contained in:
parent
66795a29b2
commit
401a2921c8
@ -6,6 +6,7 @@
|
||||
<link rel="stylesheet" href="styles.css">
|
||||
<link rel="stylesheet" href="lib/bootstrap.min.css">
|
||||
<link rel="stylesheet" href="lib/animate.min.css">
|
||||
<link rel="stylesheet" href="lib/toggle.css">
|
||||
<script src="lib/jquery-3.7.1.min.js"></script>
|
||||
<script src="index.js"></script>
|
||||
|
||||
|
67
src/lib/toggle.css
Normal file
67
src/lib/toggle.css
Normal file
@ -0,0 +1,67 @@
|
||||
.toggle-switch {
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
width: 80px;
|
||||
height: 40px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.toggle-switch input[type="checkbox"] {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.toggle-switch-background {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background-color: #ddd;
|
||||
border-radius: 20px;
|
||||
box-shadow: inset 0 0 0 2px #ccc;
|
||||
transition: background-color 0.3s ease-in-out;
|
||||
}
|
||||
|
||||
.toggle-switch-handle {
|
||||
position: absolute;
|
||||
top: 5px;
|
||||
left: 5px;
|
||||
width: 30px;
|
||||
height: 30px;
|
||||
background-color: #fff;
|
||||
border-radius: 50%;
|
||||
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
|
||||
transition: transform 0.3s ease-in-out;
|
||||
}
|
||||
|
||||
.toggle-switch::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
top: -25px;
|
||||
right: -35px;
|
||||
font-size: 12px;
|
||||
font-weight: bold;
|
||||
color: #aaa;
|
||||
text-shadow: 1px 1px #fff;
|
||||
transition: color 0.3s ease-in-out;
|
||||
}
|
||||
|
||||
.toggle-switch input[type="checkbox"]:checked + .toggle-switch-handle {
|
||||
transform: translateX(45px);
|
||||
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2), 0 0 0 3px #05c46b;
|
||||
}
|
||||
|
||||
.toggle-switch input[type="checkbox"]:checked + .toggle-switch-background {
|
||||
background-color: #05c46b;
|
||||
box-shadow: inset 0 0 0 2px #04b360;
|
||||
}
|
||||
|
||||
.toggle-switch input[type="checkbox"]:checked + .toggle-switch:before {
|
||||
content: "On";
|
||||
color: #05c46b;
|
||||
right: -15px;
|
||||
}
|
||||
|
||||
.toggle-switch input[type="checkbox"]:checked + .toggle-switch-background .toggle-switch-handle {
|
||||
transform: translateX(40px);
|
||||
}
|
@ -7,6 +7,54 @@
|
||||
<p class="lead mb-5">Create and manage filtering rules</p>
|
||||
|
||||
<!-- CONTENT -->
|
||||
<div class="d-flex justify-content-center">
|
||||
<button class="btn btn-success mx-2">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-plus-lg" viewBox="0 0 16 16">
|
||||
<path fill-rule="evenodd" d="M8 2a.5.5 0 0 1 .5.5v5h5a.5.5 0 0 1 0 1h-5v5a.5.5 0 0 1-1 0v-5h-5a.5.5 0 0 1 0-1h5v-5A.5.5 0 0 1 8 2"/>
|
||||
</svg>
|
||||
Create new rule</button>
|
||||
<button class="btn btn-secondary mx-2">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-trash" viewBox="0 0 16 16">
|
||||
<path d="M5.5 5.5A.5.5 0 0 1 6 6v6a.5.5 0 0 1-1 0V6a.5.5 0 0 1 .5-.5m2.5 0a.5.5 0 0 1 .5.5v6a.5.5 0 0 1-1 0V6a.5.5 0 0 1 .5-.5m3 .5a.5.5 0 0 0-1 0v6a.5.5 0 0 0 1 0z"/>
|
||||
<path d="M14.5 3a1 1 0 0 1-1 1H13v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V4h-.5a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1H6a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1h3.5a1 1 0 0 1 1 1zM4.118 4 4 4.059V13a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1V4.059L11.882 4zM2.5 3h11V2h-11z"/>
|
||||
</svg>
|
||||
Clear rules</button>
|
||||
</div>
|
||||
<table class="table mt-5 table-borderless">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">#</th>
|
||||
<th scope="col">String to Replace</th>
|
||||
<th scope="col">Replace With</th>
|
||||
<th scope="col">Enabled by default</th>
|
||||
<th scope="col">Action</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr class="border-bottom">
|
||||
<td scope="row" class="align-middle"><p class="mb-0">1</p></td>
|
||||
<td class="align-middle"><input type="text" class="form-control" placeholder="String to replace"></td>
|
||||
<td class="align-middle"><input type="text" class="form-control" placeholder="Replace with"></td>
|
||||
<td class="align-middle">
|
||||
<label class="toggle-switch">
|
||||
<input type="checkbox" checked>
|
||||
<div class="toggle-switch-background">
|
||||
<div class="toggle-switch-handle"></div>
|
||||
</div>
|
||||
</label>
|
||||
</td>
|
||||
<td class="align-middle">
|
||||
<button class="btn btn-danger">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-trash" viewBox="0 0 16 16">
|
||||
<path d="M5.5 5.5A.5.5 0 0 1 6 6v6a.5.5 0 0 1-1 0V6a.5.5 0 0 1 .5-.5m2.5 0a.5.5 0 0 1 .5.5v6a.5.5 0 0 1-1 0V6a.5.5 0 0 1 .5-.5m3 .5a.5.5 0 0 0-1 0v6a.5.5 0 0 0 1 0z"/>
|
||||
<path d="M14.5 3a1 1 0 0 1-1 1H13v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V4h-.5a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1H6a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1h3.5a1 1 0 0 1 1 1zM4.118 4 4 4.059V13a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1V4.059L11.882 4zM2.5 3h11V2h-11z"/>
|
||||
</svg>
|
||||
</button>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<!-- Additional rows can be added here -->
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
Loading…
x
Reference in New Issue
Block a user