Start to separation for CostaPy templates
This commit is contained in:
parent
54fd39617a
commit
40d4acc6bf
3
costapy-templates/prime/html/footer.html
Normal file
3
costapy-templates/prime/html/footer.html
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
<footer class="footer" id="footer">
|
||||||
|
<p>${copyright}</p>
|
||||||
|
</footer>
|
36
costapy-templates/prime/html/index.html
Normal file
36
costapy-templates/prime/html/index.html
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<title>Prime</title>
|
||||||
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
|
||||||
|
<link rel="stylesheet" href="style.css">
|
||||||
|
</head>
|
||||||
|
<body class="d-flex flex-column">
|
||||||
|
${navbar}
|
||||||
|
${sidebar}
|
||||||
|
<div class="content flex-grow-1" id="content">
|
||||||
|
${container}
|
||||||
|
</div>
|
||||||
|
${footer}
|
||||||
|
<button class="sidebar-toggle" id="sidebarToggle">
|
||||||
|
☰<span>Menu</span>
|
||||||
|
</button>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
|
||||||
|
<script>
|
||||||
|
document.getElementById('sidebarToggle').addEventListener('click', function() {
|
||||||
|
var sidebar = document.getElementById('sidebar');
|
||||||
|
var content = document.getElementById('content');
|
||||||
|
var footer = document.getElementById('footer');
|
||||||
|
if (window.innerWidth <= 768) {
|
||||||
|
sidebar.classList.toggle('show');
|
||||||
|
} else {
|
||||||
|
sidebar.classList.toggle('minimized');
|
||||||
|
content.classList.toggle('full-width');
|
||||||
|
footer.classList.toggle('full-width');
|
||||||
|
}
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
|
</html>
|
34
costapy-templates/prime/html/navbar.html
Normal file
34
costapy-templates/prime/html/navbar.html
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
<!-- Navbar -->
|
||||||
|
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
|
||||||
|
<div class="container-fluid">
|
||||||
|
<a class="navbar-brand" href="#">Prime Dashboard</a>
|
||||||
|
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
|
||||||
|
<span class="navbar-toggler-icon"></span>
|
||||||
|
</button>
|
||||||
|
<div class="collapse navbar-collapse" id="navbarNav">
|
||||||
|
<ul class="navbar-nav ms-auto">
|
||||||
|
<li class="nav-item">
|
||||||
|
<a class="nav-link" href="#">Home</a>
|
||||||
|
</li>
|
||||||
|
<li class="nav-item">
|
||||||
|
<a class="nav-link" href="#">Customize</a>
|
||||||
|
</li>
|
||||||
|
<li class="nav-item">
|
||||||
|
<a class="nav-link" href="#">Notification <sup class="badge bg-danger">1</sup> </a>
|
||||||
|
</li>
|
||||||
|
<li class="nav-item dropdown">
|
||||||
|
<a class="nav-link dropdown-toggle d-flex align-items-center" href="#" id="navbarDropdown" role="button" data-bs-toggle="dropdown" aria-expanded="false">
|
||||||
|
<img src="no-profile-donut.png" alt="Profile" class="profile-image me-2">
|
||||||
|
Dita Aji Pratama
|
||||||
|
</a>
|
||||||
|
<ul class="dropdown-menu dropdown-menu-end" aria-labelledby="navbarDropdown">
|
||||||
|
<li><a class="dropdown-item" href="#">Profile</a></li>
|
||||||
|
<li><a class="dropdown-item" href="#">Settings</a></li>
|
||||||
|
<li><hr class="dropdown-divider"></li>
|
||||||
|
<li><a class="dropdown-item" href="#">Logout</a></li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</nav>
|
22
costapy-templates/prime/html/sidebar.html
Normal file
22
costapy-templates/prime/html/sidebar.html
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
<!-- Sidebar -->
|
||||||
|
<div class="sidebar p-3" id="sidebar">
|
||||||
|
<!-- <h5>Sidebar</h5> -->
|
||||||
|
<ul class="nav flex-column pb-5">
|
||||||
|
<li class="nav-item">
|
||||||
|
<a class="nav-link text-white" href="#">Dashboard</a>
|
||||||
|
</li>
|
||||||
|
<li class="nav-item">
|
||||||
|
<a class="nav-link text-white" href="#">Users</a>
|
||||||
|
</li>
|
||||||
|
<li class="nav-item">
|
||||||
|
<a class="nav-link text-white" href="#">Items</a>
|
||||||
|
</li>
|
||||||
|
<li class="nav-item">
|
||||||
|
<a class="nav-link text-white" href="#">Analytics</a>
|
||||||
|
</li>
|
||||||
|
<li class="nav-item">
|
||||||
|
<a class="nav-link text-white" href="#">Reports</a>
|
||||||
|
</li>
|
||||||
|
<!-- Add more items to test scrolling -->
|
||||||
|
</ul>
|
||||||
|
</div>
|
105
html/index.html
Normal file
105
html/index.html
Normal file
@ -0,0 +1,105 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<title>Prime</title>
|
||||||
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
|
||||||
|
<link rel="stylesheet" href="style.css">
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body class="d-flex flex-column">
|
||||||
|
|
||||||
|
<!-- Navbar -->
|
||||||
|
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
|
||||||
|
<div class="container-fluid">
|
||||||
|
<a class="navbar-brand" href="#">Prime Dashboard</a>
|
||||||
|
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
|
||||||
|
<span class="navbar-toggler-icon"></span>
|
||||||
|
</button>
|
||||||
|
<div class="collapse navbar-collapse" id="navbarNav">
|
||||||
|
<ul class="navbar-nav ms-auto">
|
||||||
|
<li class="nav-item">
|
||||||
|
<a class="nav-link" href="#">Home</a>
|
||||||
|
</li>
|
||||||
|
<li class="nav-item">
|
||||||
|
<a class="nav-link" href="#">Customize</a>
|
||||||
|
</li>
|
||||||
|
<li class="nav-item">
|
||||||
|
<a class="nav-link" href="#">Notification <sup class="badge bg-danger">1</sup> </a>
|
||||||
|
</li>
|
||||||
|
<li class="nav-item dropdown">
|
||||||
|
<a class="nav-link dropdown-toggle d-flex align-items-center" href="#" id="navbarDropdown" role="button" data-bs-toggle="dropdown" aria-expanded="false">
|
||||||
|
<img src="no-profile-donut.png" alt="Profile" class="profile-image me-2">
|
||||||
|
Dita Aji Pratama
|
||||||
|
</a>
|
||||||
|
<ul class="dropdown-menu dropdown-menu-end" aria-labelledby="navbarDropdown">
|
||||||
|
<li><a class="dropdown-item" href="#">Profile</a></li>
|
||||||
|
<li><a class="dropdown-item" href="#">Settings</a></li>
|
||||||
|
<li><hr class="dropdown-divider"></li>
|
||||||
|
<li><a class="dropdown-item" href="#">Logout</a></li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</nav>
|
||||||
|
|
||||||
|
<!-- Sidebar -->
|
||||||
|
<div class="sidebar p-3" id="sidebar">
|
||||||
|
<!-- <h5>Sidebar</h5> -->
|
||||||
|
<ul class="nav flex-column pb-5">
|
||||||
|
<li class="nav-item">
|
||||||
|
<a class="nav-link text-white" href="#">Dashboard</a>
|
||||||
|
</li>
|
||||||
|
<li class="nav-item">
|
||||||
|
<a class="nav-link text-white" href="#">Users</a>
|
||||||
|
</li>
|
||||||
|
<li class="nav-item">
|
||||||
|
<a class="nav-link text-white" href="#">Items</a>
|
||||||
|
</li>
|
||||||
|
<li class="nav-item">
|
||||||
|
<a class="nav-link text-white" href="#">Analytics</a>
|
||||||
|
</li>
|
||||||
|
<li class="nav-item">
|
||||||
|
<a class="nav-link text-white" href="#">Reports</a>
|
||||||
|
</li>
|
||||||
|
<!-- Add more items to test scrolling -->
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Content -->
|
||||||
|
<div class="content flex-grow-1" id="content">
|
||||||
|
<h1>Main Content Area</h1>
|
||||||
|
<p>Welcome to the dashboard!</p>
|
||||||
|
<!-- Add more content here -->
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Footer -->
|
||||||
|
<footer class="footer" id="footer">
|
||||||
|
<p>© 2024 Dita Aji Pratama. All rights reserved.</p>
|
||||||
|
</footer>
|
||||||
|
|
||||||
|
<!-- Sidebar Toggle Button -->
|
||||||
|
<button class="sidebar-toggle" id="sidebarToggle">
|
||||||
|
☰<span>Menu</span>
|
||||||
|
</button>
|
||||||
|
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
|
||||||
|
<script>
|
||||||
|
document.getElementById('sidebarToggle').addEventListener('click', function() {
|
||||||
|
var sidebar = document.getElementById('sidebar');
|
||||||
|
var content = document.getElementById('content');
|
||||||
|
var footer = document.getElementById('footer');
|
||||||
|
if (window.innerWidth <= 768) {
|
||||||
|
sidebar.classList.toggle('show');
|
||||||
|
} else {
|
||||||
|
sidebar.classList.toggle('minimized');
|
||||||
|
content.classList.toggle('full-width');
|
||||||
|
footer.classList.toggle('full-width');
|
||||||
|
}
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
|
</html>
|
Before Width: | Height: | Size: 127 KiB After Width: | Height: | Size: 127 KiB |
105
index.html
105
index.html
@ -1,105 +0,0 @@
|
|||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en">
|
|
||||||
|
|
||||||
<head>
|
|
||||||
<meta charset="UTF-8">
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
||||||
<title>Prime</title>
|
|
||||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
|
|
||||||
<link rel="stylesheet" href="style.css">
|
|
||||||
</head>
|
|
||||||
|
|
||||||
<body class="d-flex flex-column">
|
|
||||||
|
|
||||||
<!-- Navbar -->
|
|
||||||
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
|
|
||||||
<div class="container-fluid">
|
|
||||||
<a class="navbar-brand" href="#">Prime Dashboard</a>
|
|
||||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
|
|
||||||
<span class="navbar-toggler-icon"></span>
|
|
||||||
</button>
|
|
||||||
<div class="collapse navbar-collapse" id="navbarNav">
|
|
||||||
<ul class="navbar-nav ms-auto">
|
|
||||||
<li class="nav-item">
|
|
||||||
<a class="nav-link" href="#">Home</a>
|
|
||||||
</li>
|
|
||||||
<li class="nav-item">
|
|
||||||
<a class="nav-link" href="#">Customize</a>
|
|
||||||
</li>
|
|
||||||
<li class="nav-item">
|
|
||||||
<a class="nav-link" href="#">Notification <sup class="badge bg-danger">1</sup> </a>
|
|
||||||
</li>
|
|
||||||
<li class="nav-item dropdown">
|
|
||||||
<a class="nav-link dropdown-toggle d-flex align-items-center" href="#" id="navbarDropdown" role="button" data-bs-toggle="dropdown" aria-expanded="false">
|
|
||||||
<img src="no-profile-donut.png" alt="Profile" class="profile-image me-2">
|
|
||||||
Dita Aji Pratama
|
|
||||||
</a>
|
|
||||||
<ul class="dropdown-menu dropdown-menu-end" aria-labelledby="navbarDropdown">
|
|
||||||
<li><a class="dropdown-item" href="#">Profile</a></li>
|
|
||||||
<li><a class="dropdown-item" href="#">Settings</a></li>
|
|
||||||
<li><hr class="dropdown-divider"></li>
|
|
||||||
<li><a class="dropdown-item" href="#">Logout</a></li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</nav>
|
|
||||||
|
|
||||||
<!-- Sidebar -->
|
|
||||||
<div class="sidebar p-3" id="sidebar">
|
|
||||||
<!-- <h5>Sidebar</h5> -->
|
|
||||||
<ul class="nav flex-column pb-5">
|
|
||||||
<li class="nav-item">
|
|
||||||
<a class="nav-link text-white" href="#">Dashboard</a>
|
|
||||||
</li>
|
|
||||||
<li class="nav-item">
|
|
||||||
<a class="nav-link text-white" href="#">Users</a>
|
|
||||||
</li>
|
|
||||||
<li class="nav-item">
|
|
||||||
<a class="nav-link text-white" href="#">Items</a>
|
|
||||||
</li>
|
|
||||||
<li class="nav-item">
|
|
||||||
<a class="nav-link text-white" href="#">Analytics</a>
|
|
||||||
</li>
|
|
||||||
<li class="nav-item">
|
|
||||||
<a class="nav-link text-white" href="#">Reports</a>
|
|
||||||
</li>
|
|
||||||
<!-- Add more items to test scrolling -->
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- Content -->
|
|
||||||
<div class="content flex-grow-1" id="content">
|
|
||||||
<h1>Main Content Area</h1>
|
|
||||||
<p>Welcome to the dashboard!</p>
|
|
||||||
<!-- Add more content here -->
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- Footer -->
|
|
||||||
<footer class="footer" id="footer">
|
|
||||||
<p>© 2024 Dita Aji Pratama. All rights reserved.</p>
|
|
||||||
</footer>
|
|
||||||
|
|
||||||
<!-- Sidebar Toggle Button -->
|
|
||||||
<button class="sidebar-toggle" id="sidebarToggle">
|
|
||||||
☰<span>Menu</span>
|
|
||||||
</button>
|
|
||||||
|
|
||||||
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
|
|
||||||
<script>
|
|
||||||
document.getElementById('sidebarToggle').addEventListener('click', function() {
|
|
||||||
var sidebar = document.getElementById('sidebar');
|
|
||||||
var content = document.getElementById('content');
|
|
||||||
var footer = document.getElementById('footer');
|
|
||||||
if (window.innerWidth <= 768) {
|
|
||||||
sidebar.classList.toggle('show');
|
|
||||||
} else {
|
|
||||||
sidebar.classList.toggle('minimized');
|
|
||||||
content.classList.toggle('full-width');
|
|
||||||
footer.classList.toggle('full-width');
|
|
||||||
}
|
|
||||||
});
|
|
||||||
</script>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
Loading…
Reference in New Issue
Block a user