diff options
author | Jan200101 <sentrycraft123@gmail.com> | 2022-09-07 13:09:39 +0200 |
---|---|---|
committer | Jan200101 <sentrycraft123@gmail.com> | 2022-09-07 13:09:39 +0200 |
commit | 45f1185a2e219923e26bd58d06a1b5130720fa74 (patch) | |
tree | 53d2a333b2dcfc48af3ebc903b7c5be1a380d1a2 /labbot/addons/dashboard/templates/base.html | |
parent | c7c3468f044acb58f8e3e3341c42135a08e0d380 (diff) | |
download | lab-bot-45f1185a2e219923e26bd58d06a1b5130720fa74.tar.gz lab-bot-45f1185a2e219923e26bd58d06a1b5130720fa74.zip |
Implement Dashboard
Diffstat (limited to 'labbot/addons/dashboard/templates/base.html')
-rw-r--r-- | labbot/addons/dashboard/templates/base.html | 153 |
1 files changed, 153 insertions, 0 deletions
diff --git a/labbot/addons/dashboard/templates/base.html b/labbot/addons/dashboard/templates/base.html new file mode 100644 index 0000000..03a5532 --- /dev/null +++ b/labbot/addons/dashboard/templates/base.html @@ -0,0 +1,153 @@ +<!doctype html> +<html lang="en"> + <head> + <meta charset="utf-8"> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>{{ bot.name }} - lab-bot {{ bot.version }}</title> + + <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.0/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-gH2yIJqKdNHPEq0n4Mqa/HGKIhSkIHeL5AyhkYV8i59U5AR6csBvApHHNl/vI1Bx" crossorigin="anonymous"> + <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.0/dist/js/bootstrap.bundle.min.js" integrity="sha384-A3rJD856KowSb7dwlZdYEkO39Gagi7vIsF0jrRAoQmDKKtQBHUuLZ9AsSv4jD4Xa" crossorigin="anonymous"></script> + + + <!-- Custom styles for this template --> + <style type="text/css"> + body { + font-size: .875rem; + } + + .feather { + width: 16px; + height: 16px; + } + + /* + * Sidebar + */ + + .sidebar { + position: fixed; + top: 0; + /* rtl:raw: + right: 0; + */ + bottom: 0; + /* rtl:remove */ + left: 0; + z-index: 100; /* Behind the navbar */ + padding: 48px 0 0; /* Height of navbar */ + box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1); + } + + @media (max-width: 767.98px) { + .sidebar { + top: 5rem; + } + } + + .sidebar-sticky { + height: calc(100vh - 48px); + overflow-x: hidden; + overflow-y: auto; /* Scrollable contents if viewport is shorter than content. */ + } + + .sidebar .nav-link { + font-weight: 500; + color: #333; + } + + .sidebar .nav-link .feather { + margin-right: 4px; + color: #727272; + } + + .sidebar .nav-link:hover .feather { + color: inherit; + } + + .sidebar-heading { + font-size: .75rem; + } + + /* + * Navbar + */ + + .navbar-brand { + padding-top: .75rem; + padding-bottom: .75rem; + background-color: rgba(0, 0, 0, .25); + box-shadow: inset -1px 0 0 rgba(0, 0, 0, .25); + } + + .navbar .navbar-toggler { + top: .25rem; + right: 1rem; + } + + .navbar .form-control { + padding: .75rem 1rem; + } + + .form-control-dark { + color: #fff; + background-color: rgba(255, 255, 255, .1); + border-color: rgba(255, 255, 255, .1); + } + + .form-control-dark:focus { + border-color: transparent; + box-shadow: 0 0 0 3px rgba(255, 255, 255, .25); + } + + .log { + margin-top: 20px; + padding: 15px; + border: 2px solid; + background-color: black; + color: white; + overflow: scroll; + overflow-y: scroll; + max-height: 80vh; + } + + .sidebar-bottom { + position: absolute; + + bottom: 0; + } + + + + </style> + </head> + <body> + +<header class="navbar navbar-dark sticky-top bg-dark flex-md-nowrap p-0 shadow"> + <a class="navbar-brand col-md-3 col-lg-2 me-0 px-3 fs-6" href="#">{{ bot.name }}</a> + <button class="navbar-toggler position-absolute d-md-none collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#sidebarMenu" aria-controls="sidebarMenu" aria-expanded="false" aria-label="Toggle navigation"> + <span class="navbar-toggler-icon"></span> + </button> + <div class="navbar-nav"> + <div class="nav-item text-nowrap"> + <a class="nav-link px-3" href="#">Sign out</a> + </div> + </div> +</header> + +<div class="container-fluid"> + <div class="row"> + {% include "sidebar.html" %} + + <main class="col-md-9 ms-sm-auto col-lg-10 px-md-4"> + {% block content %}{% endblock %} + </main> + </div> +</div> + + + <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script> + <script> + feather.replace(); + </script> + </body> +</html> |