Updated collapse of menus

This commit is contained in:
maximstewart 2021-02-05 20:51:11 -06:00
parent 97562394ce
commit 052967aef1
2 changed files with 130 additions and 115 deletions

View File

@ -1,29 +1,37 @@
<nav class="navbar navbar-expand-lg bg-dark navbar-dark justify-content-center text-center fixed-bottom"> <nav class="navbar navbar-expand-lg bg-dark navbar-dark justify-content-center text-center fixed-bottom">
<div class="col col-lg-auto"> <button class="navbar-toggler" type="button" data-toggle="collapse"
<ul class="navbar-nav"> data-target="#navbarTogglerFooter" aria-controls="navbarTogglerFooter"
<li class="nav-item"> aria-expanded="false" aria-label="Toggle Footer Navigation">
<a class="nav-link" href="mailto:"> <span class="navbar-toggler-icon"></span>
<i title="Send Us an Email" class="fas fa-envelope"></i> </button>
Mail
</a> <div id="navbarTogglerFooter" class="row collapse navbar-collapse">
</li> <div class="col col-lg-auto">
<li class="nav-item"> <ul class="navbar-nav">
<a class="nav-link" href="https://twitter.com/"> <li class="nav-item">
<i title="Find Us on Twitter" class="fab fa-twitter"></i> <a class="nav-link" href="mailto:">
Twitter <i title="Send Us an Email" class="fas fa-envelope"></i>
</a> Mail
</li> </a>
<li class="nav-item"> </li>
<a class="nav-link" href="https://www.linkedin.com/"> <li class="nav-item">
<i title="Find Us on LinkedIn" class="fab fa-linkedin"></i> <a class="nav-link" href="https://twitter.com/">
linkedIn <i title="Find Us on Twitter" class="fab fa-twitter"></i>
</a> Twitter
</li> </a>
<li class="nav-item"> </li>
<span class="nav-link"> <li class="nav-item">
<i class="fas fa-map-marker-alt">US, Earth</i> <a class="nav-link" href="https://www.linkedin.com/">
</span> <i title="Find Us on LinkedIn" class="fab fa-linkedin"></i>
</li> linkedIn
</ul> </a>
</li>
<li class="nav-item">
<span class="nav-link">
<i class="fas fa-map-marker-alt">US, Earth</i>
</span>
</li>
</ul>
</div>
</div> </div>
</nav> </nav>

View File

@ -1,96 +1,103 @@
<nav class="navbar navbar-expand-lg bg-dark navbar-dark sticky-top"> <nav class="navbar navbar-expand-lg bg-dark navbar-dark sticky-top justify-content-center text-center">
<div class="col-sm"> <button class="navbar-toggler" type="button" data-toggle="collapse"
<!-- Branding --> data-target="#navbarTogglerHeader" aria-controls="navbarTogglerHeader"
<div class="navbar-brand justify-content-center text-center"> aria-expanded="false" aria-label="Toggle Header Navigation">
<div class="site-branding"> <span class="navbar-toggler-icon"></span>
<h1 class="site-title"> </button>
<a href="{{ url_for('home') }}" title="{{TITLE}} Home" rel="home">
Hello World! <div id="navbarTogglerHeader" class="row collapse navbar-collapse">
</a> <div class="col-sm">
</h1> <!-- Branding -->
<h2 class="site-description">Your Slogan...</h2> <div class="navbar-brand justify-content-center text-center">
<div class="site-branding">
<h1 class="site-title">
<a href="{{ url_for('home') }}" title="{{TITLE}} Home" rel="home">
Hello World!
</a>
</h1>
<h2 class="site-description">Your Slogan...</h2>
</div>
</div> </div>
</div> </div>
</div>
<div class="col col-lg-auto"> <div class="col col-lg-auto">
<!-- Links --> <!-- Links -->
<ul class="navbar-nav"> <ul class="navbar-nav">
<li class="nav-item">
<a class="nav-link" href="{{ url_for('home') }}">
<i class="fas fa-home"></i>&nbsp;&nbsp;Home</a>
</li>
<!-- Dropdowns -->
<!-- Others Dropdown -->
{% if not current_user.is_authenticated %}
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="navbardrop" data-toggle="dropdown">
Account
</a>
<div class="dropdown-menu">
<a class="dropdown-item" href="{{ url_for('login') }}">
<i title="Login" class="fas fa-user"></i>&nbsp;&nbsp;Login</a>
<a class="dropdown-item" href="{{ url_for('register') }}">
<i title="Register A User..." class="fas fa-user-plus"></i>&nbsp;&nbsp;Register</a>
</div>
</li>
{% endif %}
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="navbardrop" data-toggle="dropdown">
Projects
</a>
<div class="dropdown-menu">
<a class="dropdown-item" href="#">
<i class="fas fa-code"></i>&nbsp;&nbsp;Code</a>
</div>
</li>
<!-- Socials Dropdown -->
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="navbardrop" data-toggle="dropdown">
Social
</a>
<div class="dropdown-menu">
<a class="dropdown-item" href="mailto:">
<i title="Send Us an Email" class="fas fa-envelope"></i>&nbsp;&nbsp;Email</a>
<a class="dropdown-item" href="#">
<i title="Find Us on Twitter" class="fab fa-twitter"></i>&nbsp;&nbsp;Twitter</a>
<a class="dropdown-item" href="#">
<i title="Find Us on LinkedIn" class="fab fa-linkedin"></i>&nbsp;&nbsp;LinkedIn</a>
</div>
</li>
<!-- Donation Dropdown -->
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="navbardrop" data-toggle="dropdown">
<i class="fa fa-coin"></i>
Donate
</a>
<div class="dropdown-menu">
<a class="dropdown-item" href="#">
<i title="Donate via Patreon" class="fab fa-patreon"></i> Patreon</a>
<a class="dropdown-item" href="#">
<i title="Donate via Paypal" class="fab fa-paypal"></i> Paypal</a>
</div>
</li>
<!-- End Dropdowns -->
<li class="nav-item">
<a class="nav-link" href="{{ url_for('about') }}">
<i class="far fa-address-card"></i> About</a>
</li>
{% if current_user.is_authenticated or oidc_loggedin() %}
<li class="nav-item"> <li class="nav-item">
<a class="nav-link" href="{{ url_for('logout') }}"> <a class="nav-link" href="{{ url_for('home') }}">
<i class="fas fa-sign-out-alt"></i> Logout</a> <i class="fas fa-home"></i>&nbsp;&nbsp;Home</a>
</li> </li>
{% endif %}
</ul>
</div>
<!-- Dropdowns -->
<!-- Others Dropdown -->
{% if not current_user.is_authenticated %}
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="navbardrop" data-toggle="dropdown">
Account
</a>
<div class="dropdown-menu">
<a class="dropdown-item" href="{{ url_for('login') }}">
<i title="Login" class="fas fa-user"></i>&nbsp;&nbsp;Login</a>
<a class="dropdown-item" href="{{ url_for('register') }}">
<i title="Register A User..." class="fas fa-user-plus"></i>&nbsp;&nbsp;Register</a>
</div>
</li>
{% endif %}
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="navbardrop" data-toggle="dropdown">
Projects
</a>
<div class="dropdown-menu">
<a class="dropdown-item" href="#">
<i class="fas fa-code"></i>&nbsp;&nbsp;Code</a>
</div>
</li>
<!-- Socials Dropdown -->
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="navbardrop" data-toggle="dropdown">
Social
</a>
<div class="dropdown-menu">
<a class="dropdown-item" href="mailto:">
<i title="Send Us an Email" class="fas fa-envelope"></i>&nbsp;&nbsp;Email</a>
<a class="dropdown-item" href="#">
<i title="Find Us on Twitter" class="fab fa-twitter"></i>&nbsp;&nbsp;Twitter</a>
<a class="dropdown-item" href="#">
<i title="Find Us on LinkedIn" class="fab fa-linkedin"></i>&nbsp;&nbsp;LinkedIn</a>
</div>
</li>
<!-- Donation Dropdown -->
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="navbardrop" data-toggle="dropdown">
<i class="fa fa-coin"></i>
Donate
</a>
<div class="dropdown-menu">
<a class="dropdown-item" href="#">
<i title="Donate via Patreon" class="fab fa-patreon"></i> Patreon</a>
<a class="dropdown-item" href="#">
<i title="Donate via Paypal" class="fab fa-paypal"></i> Paypal</a>
</div>
</li>
<!-- End Dropdowns -->
<li class="nav-item">
<a class="nav-link" href="{{ url_for('about') }}">
<i class="far fa-address-card"></i> About</a>
</li>
{% if current_user.is_authenticated or oidc_loggedin() %}
<li class="nav-item">
<a class="nav-link" href="{{ url_for('logout') }}">
<i class="fas fa-sign-out-alt"></i> Logout</a>
</li>
{% endif %}
</ul>
</div>
</div>
</nav> </nav>