MarseyWorld/files/templates/mobile_navigation_bar.html

84 lines
3.9 KiB
HTML
Raw Normal View History

2022-05-04 23:09:46 +00:00
<div class="container d-inline-flex d-lg-none">
<div class="row fixed-bottom bg-white border-top p-2" id="mobile-bottom-navigation-bar"
style="z-index: 100; bottom: 0px; transition: bottom cubic-bezier(0, 0, 0.2, 1) 220ms;">
<button class="col px-0 ml-3 btn btn-dead m-0" style="background: None !important; border: None;">
<a href="/" class="text-decoration-none" role="button">
<div class="text-center {% if request.path=='/' and request.full_path!='/?sort=hot&t=all' and request.full_path!='/?sort=new&t=all' %}text-primary{% else %}text-muted{% endif %}">
<i class="fas fa-home-alt text-lg"></i>
<div class="text-small">Home</div>
</div>
</a>
</button>
{% if v and v.defaultsorting == 'new' %}
<button class="col px-0 btn btn-dead m-0" style="background: None !important; border: None;">
<a href="/?sort=hot&t=all" class="text-decoration-none" role="button">
<div class="text-center {% if request.full_path=='/?sort=hot&t=all' %}text-primary{% else %}text-muted{% endif %}">
<i class="fas fa-fire text-lg"></i>
<div class="text-small">Hot</div>
</div>
</a>
</button>
{% else %}
<button class="col px-0 btn btn-dead m-0" style="background: None !important; border: None;">
<a href="/?sort=new&t=all" class="text-decoration-none" role="button">
<div class="text-center {% if request.full_path=='/?sort=new&t=all' %}text-primary{% else %}text-muted{% endif %}">
<i class="fas fa-sparkles text-lg"></i>
<div class="text-small">New</div>
</div>
</a>
</button>
{% endif %}
<button class="col px-2 btn btn-dead m-0" style="background: None !important; border: None;">
<a href="/comments" class="text-decoration-none" role="button">
<div class="text-center {% if request.path=='/comments' %}text-primary{% else %}text-muted{% endif %}">
<i class="fas fa-comment-dots text-lg"></i>
<div class="text-small">Comments</div>
</div>
</a>
</button>
<button class="col px-0 btn btn-dead m-0" style="background: None !important; border: None;">
<a href="/leaderboard" class="text-decoration-none" role="button">
<div class="text-center {% if request.path=='/leaderboard' %}text-primary{% else %}text-muted{% endif %}">
<i class="fas fa-trophy text-lg"></i>
<div class="text-small">Users</div>
</div>
</a>
</button>
{% if v %}
{% if FEATURES['CHAT'] -%}
2022-08-14 03:40:35 +00:00
<button class="col px-0 btn btn-dead m-0 pt-0" style="background: None !important; border: None;">
2022-05-04 23:09:46 +00:00
<a href="/chat" class="text-decoration-none" role="button">
<div class="text-center {% if request.path=='/chat' %}text-primary{% else %}text-muted{% endif %}">
2022-08-21 14:11:58 +00:00
<b class="text-lg" style="padding-top:10px" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Users in chat right now">{{cache.get(ONLINE_STR)}}</b>
2022-08-14 03:40:35 +00:00
<div class="text-small">Chat</div>
2022-05-04 23:09:46 +00:00
</div>
</a>
</button>
{%- endif %}
2022-07-19 23:59:39 +00:00
{% if FEATURES['AWARDS'] -%}
2022-05-04 23:09:46 +00:00
<button class="col px-0 mr-3 btn btn-dead m-0" style="background: None !important; border: None;">
<a href="/shop" class="text-decoration-none" role="button">
<div class="text-center {% if request.path=='/shop' %}text-primary{% else %}text-muted{% endif %}">
<i class="fas fa-store text-lg"></i>
<div class="text-small">Shop</div>
</div>
</a>
</button>
2022-07-19 23:59:39 +00:00
{%- endif %}
2022-05-04 23:09:46 +00:00
{% else %}
<button class="col px-0 mr-3 btn btn-dead m-0" style="background: None !important; border: None;">
<a href="/signup" class="text-decoration-none" role="button">
<div class="text-center text-muted">
<i class="fas fa-user-plus text-lg"></i>
<div class="text-small">Sign Up</div>
</div>
</a>
</button>
{% endif %}
</div>
</div>
<script defer src="{{'js/mobile_navigation_bar.js' | asset}}"></script>