Darkolius

Untitled

Feb 27th, 2021
487
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 3.28 KB | None | 0 0
  1. {% load static %}
  2. <!doctype html>
  3. <html lang="en">
  4.   <head>
  5.     <meta charset="utf-8">
  6.     <meta name="viewport" content="width=device-width, initial-scale=1">
  7.     <meta name="description" content="">
  8.     <meta name="author" content="Dariusz Mysior">
  9.     <title>{% block title %}Dashboard{% endblock %}</title>
  10.  
  11.     <!-- Bootstrap CSS -->
  12.     <link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-giJF6kkoqNQ00vy+HMDP7azOuL0xtbfIcaT9wjKHr8RbDVddVHyTfAAsrekwKmP1" crossorigin="anonymous">
  13.  
  14.     <style>
  15.         html, body, .container-fluid, .row {
  16.         height: 100%;
  17.     }
  18.  
  19.       .sidebar {
  20.         position: fixed;
  21.         top: 0;
  22.         left: 0;
  23.         bottom: 0;
  24.  
  25.       }
  26.       #nav {
  27.       width: 300px;
  28.       }
  29.  
  30.     </style>
  31.   </head>
  32.   <body>
  33.     <nav class="navbar navbar-expand-md navbar-dark fixed-top bg-dark ">
  34.       <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbartop" aria-controls="navbartop" aria-expanded="false" aria-label="Toggle navigation">
  35.         <span class="navbar-toggler-icon"></span>
  36.       </button>
  37.       <div class="collapse navbar-collapse" id="navbartop">
  38.         <ul class="navbar-nav mr-auto">
  39.           <li class="nav-item">
  40.             <a class="nav-link" href="#">Home</a>
  41.           </li>
  42.           <li class="nav-item">
  43.             <a class="nav-link" href="{% url 'accounts:sign_up' %}">Sign up</a>
  44.           </li>
  45.         </ul>
  46.       </div>
  47.     </nav>
  48.  
  49. <div class="d-flex" id="wrapper">
  50.   <!-- Sidebar -->
  51.     <div class="col col-2 border-right">
  52.     <nav class="nav  bg-dark    mt-5 pt-2 sidebar">
  53.  
  54.       <div class="list-group list-group-flush">
  55.         <a href="#" class="list-group-item list-group-item-action bg-light">Dashboard</a>
  56.         <a href="#" class="list-group-item list-group-item-action bg-light">Shortcuts</a>
  57.         <a href="#" class="list-group-item list-group-item-action bg-light">Overview</a>
  58.         <a href="#" class="list-group-item list-group-item-action bg-light">Events</a>
  59.         <a href="#" class="list-group-item list-group-item-action bg-light">Profile</a>
  60.         <a href="#" class="list-group-item list-group-item-action bg-light">Status</a>
  61.       </div>
  62.     </nav>
  63.     </div>
  64.     <!-- /#sidebar-wrapper -->
  65.     <!-- Page Content -->
  66.     <div class="col col-10  mt-5 pt-2">
  67.     <div id="page-content-wrapper">
  68.  
  69.  
  70.       <div class="container-fluid">
  71.         <h1 class="mt-4">Simple Sidebar</h1>
  72.         <p>The starting state of the menu will appear collapsed on smaller screens, and will appear non-collapsed on larger screens. When toggled using the button below, the menu will change.</p>
  73.         <p>Make sure to keep all page content within the <code>#page-content-wrapper</code>. The top navbar is optional, and just for demonstration. Just create an element with the <code>#menu-toggle</code> ID which will toggle the menu when clicked.</p>
  74.       </div>
  75.     </div>
  76.     <!-- /#page-content-wrapper -->
  77.     </div>
  78.   </div>
  79.   </div>
  80.   <!-- /#wrapper -->
  81.   <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-ygbV9kiqUc6oa4msXn9868pTtWMgiQaeYH7/t7LECLbyPA2x65Kgf80OJFdroafW" crossorigin="anonymous"></script>
  82.   </body>
  83. </html>
Advertisement
Add Comment
Please, Sign In to add comment