Commit 85c68633 by KyrieCettyara

Admin

parent 6c310b06
...@@ -4,8 +4,8 @@ ...@@ -4,8 +4,8 @@
<div class="container"> <div class="container">
<div class="buttn"> <div class="buttn">
<a href=" <?= base_url('edit-artikel/' . $value['id_artikel']); ?>" class="btn" id="btn">Edit</a> <a href=" <?= base_url('edit-artikel/' . $value['id_artikel']); ?>" class="btn btn-primary" id="btn">Edit</a>
<a href="<?= base_url('delete-artikel/' . $value['id_artikel']); ?>" class="btn" id="btn">Delete</a> <a href="<?= base_url('delete-artikel/' . $value['id_artikel']); ?>" class="btn btn-primary" id="btn">Delete</a>
</div> </div>
</div> </div>
......
...@@ -2,11 +2,9 @@ ...@@ -2,11 +2,9 @@
<?= $this->section('content'); ?> <?= $this->section('content'); ?>
<div class="container"> <div class="container">
<div class="butn"> <div class="butn">
<a href=" <?= base_url('add-artikel'); ?>" class="btn" id="btn">Tambah Artikel</a> <a href=" <?= base_url('add-artikel'); ?>" class="btn btn-primary" id="btn">Tambah Artikel</a>
</div> </div>
</div> </div>
...@@ -24,7 +22,7 @@ ...@@ -24,7 +22,7 @@
<div class=" card-body"> <div class=" card-body">
<h5 class="card-title"><?= $value['judul_artikel']; ?></h5> <h5 class="card-title"><?= $value['judul_artikel']; ?></h5>
<p class="card-text"><?= $isi_artikel; ?></p> <p class="card-text"><?= $isi_artikel; ?></p>
<a href="<?= base_url('artikel/' . $value['id_artikel']); ?>" class="btn">Baca Artikel...</a> <a href="<?= base_url('artikel/' . $value['id_artikel']); ?>" class="btn btn-primary">Baca Artikel...</a>
</div> </div>
</div> </div>
</div> </div>
......
<!DOCTYPE html> <head>
<html> <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.0/css/bootstrap.min.css" integrity="sha384-9gVQ4dYFwwWSjIDZnLEWnxCjeSWFphJiwGPXr1jddIhOegiu1FwO5qRGvFXOdJZ4" crossorigin="anonymous">
<!-- Our Custom CSS -->
<link rel="stylesheet" href="style.css">
<!-- Font Awesome JS -->
<script defer src="https://use.fontawesome.com/releases/v5.0.13/js/solid.js" integrity="sha384-tzzSw1/Vo+0N5UhStP3bvwWPq+uvzCMfrN1fEFe+xBmv1C/AtVX5K0uZtmcHitFZ" crossorigin="anonymous"></script>
<script defer src="https://use.fontawesome.com/releases/v5.0.13/js/fontawesome.js" integrity="sha384-6OIrr52G08NpOFSZdxxz1xdNSndlD4vdcf/q2myIUVO0VsqaGHJsB0RaBE01VTOY" crossorigin="anonymous"></script>
<head>
<link href="https://fonts.googleapis.com/css?family=Nunito:400,600,700,800,900" rel="stylesheet">
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
<link href="<?php echo base_url('css/admin.css'); ?> " rel="stylesheet"> <link href="<?php echo base_url('css/admin.css'); ?> " rel="stylesheet">
<link rel="preconnect" href="https://fonts.googleapis.com"> <link rel="preconnect" href="https://fonts.googleapis.com">
...@@ -17,34 +16,64 @@ ...@@ -17,34 +16,64 @@
</head> </head>
<body> <body>
<!-- <div class="wrapper"> <div class="wrapper">
<div class="side-menu"> <nav id="sidebar">
<div class="logo"> <div class="sidebar-header">
Hi, Admin! <h3>Halo, Admin!</h3>
</div> </div>
<div class="menu">
<ul>
<li><a href="<?= base_url('admin') ?>"><i class="fa fa-server" aria-hidden="true"></i><span class="text"> Artikel </span></a></li>
<li><a href="<?= base_url('AuthController/logout') ?>"><i class="fa fa-sign-out" aria-hidden="true"></i><span class="text"> Keluar</span></a></li>
</ul> <ul class="list-unstyled components">
</div>
</div>
<div class="main-content">
<div class="main-section"> <li class="active">
<a href="#homeSubmenu" data-toggle="collapse" aria-expanded="false" class="dropdown-toggle">Artikel</a>
<ul class="collapse list-unstyled" id="homeSubmenu">
<li>
<a href="<?= base_url('admin') ?>"> Pariwisata</a>
</li>
<li>
<a href="#">Home 2</a>
</li>
<li>
<a href="#">Home 3</a>
</li>
</ul>
</li>
<li>
<a href="<?= base_url('AuthController/logout') ?>"></i>Keluar</a>
</li>
<?= $this->renderSection('content'); ?>
</div> </ul>
</nav>
<div class="contents">
<nav class="navbar navbar-expand-lg navbar-light bg-light">
<div class="container-fluid">
<button type="button" id="sidebarCollapse" class="btn btn-info" style="width: 20 px;">
<i class="fas fa-align-left"></i>
<span>Menu</span>
</button>
</div>
</nav>
<?= $this->renderSection('content'); ?>
</div> </div>
</div> -->z
<nav> </div>
</nav> <!-- jQuery CDN - Slim version (=without AJAX) -->
</body> <script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
<!-- Popper.JS -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.0/umd/popper.min.js" integrity="sha384-cs/chFZiN24E4KMATLdqdvsezGxaGsi4hLGOzlXwp5UZB1LY//20VyM2taTB4QvJ" crossorigin="anonymous"></script>
<!-- Bootstrap JS -->
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.0/js/bootstrap.min.js" integrity="sha384-uefMccjFJAIv6A+rW+L4AHf99KvxDjWSu1z9VI8SKNVmz4sk7buKt/6v9KI65qnm" crossorigin="anonymous"></script>
</html> <script type="text/javascript">
\ No newline at end of file $(document).ready(function() {
$('#sidebarCollapse').on('click', function() {
$('#sidebar').toggleClass('active');
});
});
</script>
</body>
\ No newline at end of file
html { a,
font-family: "Nunito", sans-serif; a:hover,
height: 100%; a:focus {
color: inherit;
text-decoration: none;
transition: all 0.3s;
} }
body {
margin: 0px; .navbar {
height: 100%; padding: 15px 10px;
background: #fff;
border: none;
border-radius: 0;
margin-bottom: 40px;
box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
} }
.navbar-btn {
box-shadow: none;
outline: none !important;
border: none;
}
.line {
width: 100%;
height: 1px;
border-bottom: 1px dashed #ddd;
margin: 40px 0;
}
/* ---------------------------------------------------
SIDEBAR STYLE
----------------------------------------------------- */
.wrapper { .wrapper {
height: auto; display: flex;
min-height: 100%; width: 100%;
overflow: hidden; align-items: stretch;
} }
.side-menu {
/* min-width: 250px; */ #sidebar {
width: 250px; min-width: 250px;
float: left; max-width: 250px;
background: #32325d; background: #7386d5;
height: auto; color: #fff;
min-height: 100%; transition: all 0.3s;
margin-bottom: -5000px; /* any large number will do */
padding-bottom: 5000px;
}
.topmenu {
height: 60px;
padding: 10px 0px 10px 0px;
background: #6772e5;
color: #e1e2fa;
}
.logo {
background: #3a3a63;
color: #ffffff;
font-size: 24px;
font-weight: bold;
padding: 10px 0px 0px 10px;
height: 45px;
} }
.main-section {
height: 100%; #sidebar.active {
margin-left: -250px;
} }
a {
text-decoration: none; #sidebar .sidebar-header {
padding: 20px;
background: #6d7fcc;
}
#sidebar ul.components {
padding: 20px 0;
border-bottom: 1px solid #47748b;
}
#sidebar ul p {
color: #fff;
padding: 10px;
}
#sidebar ul li a {
padding: 10px;
font-size: 1.1em;
display: block;
}
#sidebar ul li a:hover {
color: #7386d5;
background: #fff;
}
#sidebar ul li.active > a,
a[aria-expanded="true"] {
color: #fff; color: #fff;
background: #6d7fcc;
} }
.menu ul {
list-style-type: none; a[data-toggle="collapse"] {
margin-left: 0px; position: relative;
padding-left: 10px;
} }
.menu ul li a {
font-size: 12px; .dropdown-toggle::after {
font-weight: 800; display: block;
display: inline-block; position: absolute;
padding-top: 10px; top: 50%;
padding-bottom: 10px; right: 20px;
transform: translateY(-50%);
}
ul ul a {
font-size: 0.9em !important;
padding-left: 30px !important;
background: #6d7fcc;
}
a.article,
a.article:hover {
background: #6d7fcc !important;
color: #fff !important;
}
/* ---------------------------------------------------
CONTENT STYLE
----------------------------------------------------- */
.contents {
width: 100%; width: 100%;
margin-left: -5px; padding: 20px;
padding-left: 10px; min-height: 100vh;
} transition: all 0.3s;
.menu ul li a:hover { }
background: #262646;
border-left: solid 5px #6a75eb; /* ---------------------------------------------------
margin-left: -10px; MEDIAQUERIES
width: 98%; ----------------------------------------------------- */
}
.menu ul li ul { @media (max-width: 768px) {
padding-left: 0px; #sidebar {
} margin-left: -250px;
}
.main-section { #sidebar.active {
height: 100%; margin-left: 0;
margin-bottom: -5000px; /* any large number will do */ }
padding-bottom: 5000px; #sidebarCollapse span {
margin-left: 250px; display: none;
} }
.search { }
width: 340px; .containers {
float: left;
margin-top: 3px;
margin-left: 25px;
padding-left: 10px;
background: #5c66cd;
padding-top: 3px;
padding-bottom: 3px;
border-radius: 15px;
color: #8089e8;
}
input.src {
background: none;
border: none;
width: 300px;
font-family: "Nunito", sans-serif;
color: #8089e8;
font-size: 13px;
font-weight: 600;
}
*:focus {
outline: none;
}
::-webkit-input-placeholder {
/* Chrome/Opera/Safari */
font-family: "Nunito", sans-serif;
color: #8089e8;
font-size: 13px;
font-weight: 600;
}
::-moz-placeholder {
/* Firefox 19+ */
font-family: "Nunito", sans-serif;
color: #8089e8;
font-size: 13px;
font-weight: 600;
}
:-ms-input-placeholder {
/* IE 10+ */
font-family: "Nunito", sans-serif;
color: #8089e8;
font-size: 13px;
font-weight: 600;
}
:-moz-placeholder {
/* Firefox 18- */
font-family: "Nunito", sans-serif;
color: #8089e8;
font-size: 13px;
font-weight: 600;
}
.container {
margin: 15px 0px 15px 0px; margin: 15px 0px 15px 0px;
display: block; display: block;
margin-left: auto; margin-left: auto;
...@@ -166,7 +172,8 @@ input.src { ...@@ -166,7 +172,8 @@ input.src {
.card > .card-body > .btn { .card > .card-body > .btn {
float: right; float: right;
border-radius: 25px; border-radius: 25px;
background-color: #32325d; background-color: #17a2b8;
border: none;
} }
.row > .col { .row > .col {
...@@ -200,14 +207,16 @@ h3 { ...@@ -200,14 +207,16 @@ h3 {
border-radius: 20px; border-radius: 20px;
width: 100px; width: 100px;
margin: 0px 5px 15px; margin: 0px 5px 15px;
background-color: #32325d; background-color: #17a2b8;
font-family: "Poppins", sans-serif; font-family: "Poppins", sans-serif;
border: none;
} }
.container > .butn > #btn { .container > .butn > #btn {
border-radius: 20px; border-radius: 20px;
margin: 0px 5px 15px; margin: 0px 5px 15px;
background-color: #32325d; background-color: #17a2b8;
font-family: "Poppins", sans-serif; font-family: "Poppins", sans-serif;
border: none;
} }
/* .row { /* .row {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment