200 lines
6.6 KiB
PHP
200 lines
6.6 KiB
PHP
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
|
<title>Monitoring Tumbuhan</title>
|
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
|
|
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css" rel="stylesheet">
|
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css">
|
|
<style>
|
|
body {
|
|
font-family: Arial, sans-serif;
|
|
background-color: #f5f5f5;
|
|
}
|
|
.sidebar {
|
|
height: 100%;
|
|
width: 250px;
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
background-color: #343a40;
|
|
padding-top: 20px;
|
|
color: #ffffff;
|
|
}
|
|
.sidebar ul {
|
|
list-style-type: none;
|
|
padding: 0;
|
|
}
|
|
.sidebar li {
|
|
padding: 15px 10px;
|
|
font-size: 16px;
|
|
}
|
|
.sidebar li.active {
|
|
background-color: #495057;
|
|
}
|
|
.sidebar li a {
|
|
text-decoration: none;
|
|
color: #ffffff;
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
.sidebar li a i {
|
|
margin-right: 10px;
|
|
}
|
|
.content {
|
|
margin-left: 250px; /* Same as the width of the sidebar */
|
|
padding: 20px;
|
|
}
|
|
.iframe-container {
|
|
width: 100%;
|
|
height: 80vh; /* Adjust this height as needed */
|
|
border: none;
|
|
}
|
|
.navbar {
|
|
margin-left: 250px;
|
|
background-color: #DCDCDC;
|
|
}
|
|
.moisture-info {
|
|
background-color: #ffffff;
|
|
border-radius: 5px;
|
|
padding: 20px;
|
|
margin-top: 20px;
|
|
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
|
|
}
|
|
.moisture-info h2 {
|
|
text-align: center;
|
|
margin-bottom: 20px;
|
|
}
|
|
.moisture-table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
}
|
|
.moisture-table th, .moisture-table td {
|
|
padding: 10px;
|
|
border: 1px solid #ddd;
|
|
text-align: center;
|
|
}
|
|
.moisture-table th {
|
|
background-color: #343a40;
|
|
color: #ffffff;
|
|
}
|
|
.plant-image {
|
|
width: 60px;
|
|
height: 60px;
|
|
border-radius: 50%;
|
|
object-fit: cover;
|
|
}
|
|
@media (max-width: 768px) {
|
|
.sidebar {
|
|
width: 100%;
|
|
height: auto;
|
|
position: relative;
|
|
}
|
|
.sidebar ul {
|
|
display: flex;
|
|
flex-direction: row;
|
|
justify-content: space-around;
|
|
}
|
|
.sidebar li {
|
|
text-align: center;
|
|
padding: 10px;
|
|
}
|
|
.content, .navbar {
|
|
margin-left: 0;
|
|
padding: 20px;
|
|
}
|
|
.navbar {
|
|
margin-bottom: 20px;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 576px) {
|
|
.moisture-info h2 {
|
|
font-size: 18px;
|
|
}
|
|
.moisture-table th, .moisture-table td {
|
|
padding: 5px;
|
|
font-size: 12px;
|
|
}
|
|
.plant-image {
|
|
width: 40px;
|
|
height: 40px;
|
|
}
|
|
.pagination {
|
|
text-align: center;
|
|
}
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
|
|
<div class="sidebar">
|
|
<ul>
|
|
@if(Auth::check() && Auth::user()->is_admin == 1)
|
|
<li><a href="/dashboard"><i class="fas fa-cogs"></i>Riwayat Data</a></li>
|
|
@endif
|
|
<li class="active"><a href="http://127.0.0.1:1880/ui/"><i class="fas fa-tachometer-alt"></i>Dashboard</a></li>
|
|
<li><a href="/blog"><i class="fas fa-blog"></i>Blog</a></li>
|
|
<li><a href="{{ route('logout') }}" class="fas fa-sign-out-alt">Logout</a></li>
|
|
</ul>
|
|
</div>
|
|
|
|
<nav class="navbar navbar-expand-lg">
|
|
<div class="container-fluid">
|
|
<a class="navbar-brand fw-bold" href="#">GrowWatch</a>
|
|
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
|
|
<span class="navbar-toggler-icon"></span>
|
|
</button>
|
|
<form class="d-flex ms-auto" role="search">
|
|
<span class="navbar-text fw-bold"><i class="fas fa-user-circle fa-lg me-1"></i>Selamat Datang, {{ Auth::user()->name }}</span>
|
|
</form>
|
|
</div>
|
|
</nav>
|
|
|
|
<div class="content">
|
|
<div class="iframe-container">
|
|
<iframe src="http://127.0.0.1:1880/ui/" class="iframe-container"></iframe>
|
|
</div>
|
|
|
|
<div class="moisture-info">
|
|
<h2>Informasi Kelembapan Tanah Dari Beberapa Tanaman</h2>
|
|
<table class="moisture-table">
|
|
<thead>
|
|
<tr>
|
|
<th>Nama Tanaman</th>
|
|
<th>Gambar</th>
|
|
<th>Kelembapan Tanah (%)</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td>Cabai</td>
|
|
<td><img src="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQgNPqKDV_NqYJsDxCrULGv46PVNjN_glXZBg&s" class="plant-image"></td>
|
|
<td>60-80%</td>
|
|
</tr>
|
|
<tr>
|
|
<td>Selada</td>
|
|
<td><img src="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSY-jvvQsJxuPLx7fmmtATOt5taehheA1pjGg&s" class="plant-image"></td>
|
|
<td>65-78%</td>
|
|
</tr>
|
|
<tr>
|
|
<td>Terong</td>
|
|
<td><img src="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQKQD1TrWuRaRk7ERJ37tmV9ITVdZayPs70jQ&s" class="plant-image"></td>
|
|
<td>80-90%</td>
|
|
</tr>
|
|
<tr>
|
|
<td>Sawi</td>
|
|
<td><img src="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcR3q2PGXtYeOz90SsYMFfw7_K-T-d_G1320Xg&s" class="plant-image"></td>
|
|
<td>60-90%</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
|
|
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-kQTaT5aQ1KbV1TOdWxO0E4Vii+4JwMw5cr0ljl+YbgRjN63I4JTOxF7Z8OcyotL2" crossorigin="anonymous"></script>
|
|
</body>
|
|
</html>
|