Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {% load static %}
- <!doctype html>
- <html lang="en">
- <head>
- <meta charset="utf-8">
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <meta name="description" content="">
- <meta name="author" content="Dariusz Mysior">
- <title>{% block title %}Dashboard{% endblock %}</title>
- <!-- Bootstrap CSS -->
- <link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-giJF6kkoqNQ00vy+HMDP7azOuL0xtbfIcaT9wjKHr8RbDVddVHyTfAAsrekwKmP1" crossorigin="anonymous">
- <style>
- html, body, .container-fluid, .row {
- height: 100%;
- }
- .sidebar {
- position: fixed;
- top: 0;
- left: 0;
- bottom: 0;
- }
- #nav {
- width: 300px;
- }
- </style>
- </head>
- <body>
- <nav class="navbar navbar-expand-md navbar-dark fixed-top bg-dark ">
- <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbartop" aria-controls="navbartop" aria-expanded="false" aria-label="Toggle navigation">
- <span class="navbar-toggler-icon"></span>
- </button>
- <div class="collapse navbar-collapse" id="navbartop">
- <ul class="navbar-nav mr-auto">
- <li class="nav-item">
- <a class="nav-link" href="#">Home</a>
- </li>
- <li class="nav-item">
- <a class="nav-link" href="{% url 'accounts:sign_up' %}">Sign up</a>
- </li>
- </ul>
- </div>
- </nav>
- <div class="d-flex" id="wrapper">
- <!-- Sidebar -->
- <div class="col col-2 border-right">
- <nav class="nav bg-dark mt-5 pt-2 sidebar">
- <div class="list-group list-group-flush">
- <a href="#" class="list-group-item list-group-item-action bg-light">Dashboard</a>
- <a href="#" class="list-group-item list-group-item-action bg-light">Shortcuts</a>
- <a href="#" class="list-group-item list-group-item-action bg-light">Overview</a>
- <a href="#" class="list-group-item list-group-item-action bg-light">Events</a>
- <a href="#" class="list-group-item list-group-item-action bg-light">Profile</a>
- <a href="#" class="list-group-item list-group-item-action bg-light">Status</a>
- </div>
- </nav>
- </div>
- <!-- /#sidebar-wrapper -->
- <!-- Page Content -->
- <div class="col col-10 mt-5 pt-2">
- <div id="page-content-wrapper">
- <div class="container-fluid">
- <h1 class="mt-4">Simple Sidebar</h1>
- <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>
- <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>
- </div>
- </div>
- <!-- /#page-content-wrapper -->
- </div>
- </div>
- </div>
- <!-- /#wrapper -->
- <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-ygbV9kiqUc6oa4msXn9868pTtWMgiQaeYH7/t7LECLbyPA2x65Kgf80OJFdroafW" crossorigin="anonymous"></script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment