Facebook
From Melodic Gorilla, 2 Months ago, written in HTML5.
Embed
Download Paste or View Raw
Hits: 48
  1. <nav class="navbar navbar-expand-sm navbar-dark bg-dark justify-content-between">
  2.     <a class="navbar-brand" href="#">4Code</a>
  3.     <ul class="navbar-nav ml-auto mr-5 d-none d-md-flex">
  4.         {% if user.is_authenticated %}
  5.         <li class="nav-item">
  6.             <a href="" class="nav-link">Logged as {{ request.user }}</a>
  7.         </li>
  8.         <li class="nav-item">
  9.             <a href="" class="nav-link"> Logout </a>
  10.         </li>
  11.         {% else %}
  12.         <li class="nav-item">
  13.             <a href="" class="nav-link"> Sign Up </a>
  14.         </li>
  15.         <li class="nav-item">
  16.             <a href="" class="nav-link"> Login </a>
  17.         </li>
  18.         {% endif %}
  19.     </ul>
  20.   <div class="navbar-nav ">
  21.     <a class="nav-item nav-link sun" href="#"><i class="fas fa-sun"></i></a>
  22.     <a class="nav-item nav-link moon" href="#"><i class="fas fa-moon active"></i></a>
  23.   </div>
  24. </nav>