-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathadmin.html
125 lines (119 loc) · 4.19 KB
/
admin.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
<link rel="stylesheet" href="admin.css" />
<link
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN"
crossorigin="anonymous"
/>
<link
rel="stylesheet"
href="https://pro.fontawesome.com/releases/v5.10.0/css/all.css"
/>
</head>
<body>
<div class="main-container d-flex">
<div class="sidebar" id="side_nav">
<div class="header-box px-2 pt-3 pb-4 d-flex justify-content-between">
<h1>
<img src="assets/tar.png" width="50px" alt="" />
<span class="text-white" style="font-size: 17px; margin-left: 15px"
>Welcome Admin</span
>
</h1>
<button class="btn d-md-none d-block close-btn px-1 py-0 text-white">
<i class="fal fa-stream"></i>
</button>
</div>
<ul class="list-unstyled px-2">
<li class="active">
<a
href="kelola-berita.html"
class="text-decoration-none px-3 py-2 d-block"
><i class="fal fa-home"></i> Dashboard</a
>
</li>
<li class="">
<a
href="manage-berita.html"
class="text-decoration-none px-3 py-2 d-block"
><i class="far fa-newspaper"></i> Artikel</a
>
</li>
<li class="">
<a href="#" class="text-decoration-none px-3 py-2 d-block"
><i class="fas fa-tasks"></i> Kelola Berita</a
>
</li>
</ul>
<hr class="h-color mx-2" />
</div>
<div class="content">
<nav class="navbar navbar-expand-md navbar-light bg-light">
<div class="container-fluid">
<div class="d-flex justify-content-between d-md-none d-block">
<button class="btn px-1 py-0 open-btn me-2">
<i class="fal fa-stream"></i>
</button>
</div>
<button
class="navbar-toggler p-0 border-0"
type="button"
data-bs-toggle="collapse"
data-bs-target="#navbarSupportedContent"
aria-controls="navbarSupportedContent"
aria-expanded="false"
aria-label="Toggle navigation"
>
<i class="fal fa-bars"></i>
</button>
<div
class="collapse navbar-collapse justify-content-end"
id="navbarSupportedContent"
>
<ul class="navbar-nav mb-2 mb-lg-0">
<li class="nav-item">
<a class="nav-link active" aria-current="page" href="#"
><i class="fas fa-user"></i
></a>
</li>
</ul>
</div>
</div>
</nav>
<div class="dashboard-content px-3 pt-4">
<h2 class="fs-5">Dashboard</h2>
<p>
Lorem ipsum dolor sit amet consectetur adipisicing elit. Nostrum,
totam? Sequi alias eveniet ut quas ullam delectus et quasi incidunt
rem deserunt asperiores reiciendis assumenda doloremque provident,
dolores aspernatur neque.
</p>
</div>
</div>
</div>
<script
src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-C6RzsynM9kWDrMNeT87bh95OGNyZPhcTNXj1NW7RuBCsyN/o0jlpcV8Qyq46cDfL"
crossorigin="anonymous"
></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<script>
$(".sidebar ul li").on("click", function () {
$(".sidebar ul li.active").removeClass("active");
$(this).addClass("active");
});
$(".open-btn").on("click", function () {
$(".sidebar").addClass("active");
});
$(".close-btn").on("click", function () {
$(".sidebar").removeClass("active");
});
</script>
</body>
</html>