Flask-Project-Template/src/core/templates/body-header.html

104 lines
4.7 KiB
HTML
Raw Normal View History

2021-02-06 03:27:29 +00:00
<nav class="navbar navbar-expand-lg bg-dark navbar-dark justify-content-center text-center sticky-top">
2021-02-06 02:51:11 +00:00
<button class="navbar-toggler" type="button" data-toggle="collapse"
data-target="#navbarTogglerHeader" aria-controls="navbarTogglerHeader"
aria-expanded="false" aria-label="Toggle Header Navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div id="navbarTogglerHeader" class="row collapse navbar-collapse">
<div class="col-sm">
<!-- Branding -->
<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>
2020-01-13 00:17:55 +00:00
</div>
2020-01-12 21:08:45 +00:00
</div>
2020-01-13 00:17:55 +00:00
2021-02-06 02:51:11 +00:00
<div class="col col-lg-auto">
<!-- Links -->
<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>
2020-03-14 08:43:04 +00:00
2021-02-06 02:51:11 +00:00
<!-- Dropdowns -->
<!-- Others Dropdown -->
2021-02-06 02:51:11 +00:00
{% 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 %}
2020-01-13 00:17:55 +00:00
2021-02-06 02:51:11 +00:00
<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>
2020-01-13 00:17:55 +00:00
2021-02-06 02:51:11 +00:00
<!-- 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>
2020-01-13 00:17:55 +00:00
2021-02-06 02:51:11 +00:00
<!-- 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>
2020-01-13 00:17:55 +00:00
2021-02-06 02:51:11 +00:00
<!-- End Dropdowns -->
2020-03-14 08:43:04 +00:00
<li class="nav-item">
2021-02-06 02:51:11 +00:00
<a class="nav-link" href="{{ url_for('about') }}">
<i class="far fa-address-card"></i> About</a>
2020-03-14 08:43:04 +00:00
</li>
2020-01-13 00:17:55 +00:00
2021-02-06 02:51:11 +00:00
{% 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>
2020-01-13 00:17:55 +00:00
</nav>