2021-11-24 16:48:06 +00:00
|
|
|
<!-- This example requires Tailwind CSS v2.0+ -->
|
2021-11-29 06:50:48 +00:00
|
|
|
<nav class="fixed top-0 w-full bg-gray-700" style="z-index: 1030;">
|
2021-12-01 02:59:26 +00:00
|
|
|
<div class="w-full max-w-screen-2xl mx-auto grid grid-cols-12 px-4">
|
|
|
|
<div class="relative col-span-full flex items-center justify-between h-16 px-4 snowcaps">
|
2021-11-24 16:48:06 +00:00
|
|
|
<div class="absolute inset-y-0 left-0 flex items-center sm:hidden">
|
|
|
|
<!-- Mobile menu button-->
|
2021-12-01 17:04:52 +00:00
|
|
|
<button type="button" class="inline-flex items-center justify-center p-2 rounded-md text-gray-400 hover:text-white hover:bg-gray-700 focus:outline-none focus:ring-2 focus:ring-inset focus:ring-white" data-bs-toggle="offcanvas" data-bs-target="#offcanvasNavbar" aria-controls="offcanvasNavbar">
|
2021-11-24 16:48:06 +00:00
|
|
|
<span class="sr-only">Open main menu</span>
|
|
|
|
<!--
|
|
|
|
Icon when menu is closed.
|
|
|
|
|
|
|
|
Heroicon name: outline/menu
|
|
|
|
|
|
|
|
Menu open: "hidden", Menu closed: "block"
|
|
|
|
-->
|
|
|
|
<svg class="block h-6 w-6" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true">
|
|
|
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6h16M4 12h16M4 18h16" />
|
|
|
|
</svg>
|
|
|
|
<!--
|
|
|
|
Icon when menu is open.
|
|
|
|
|
|
|
|
Heroicon name: outline/x
|
|
|
|
|
|
|
|
Menu open: "block", Menu closed: "hidden"
|
|
|
|
-->
|
|
|
|
<svg class="hidden h-6 w-6" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true">
|
|
|
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12" />
|
|
|
|
</svg>
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
<div class="flex-1 flex items-center justify-center sm:items-stretch sm:justify-start">
|
|
|
|
<div class="flex-shrink-0 flex items-center">
|
|
|
|
<a href="{{ '/' if v else '/logged_out'}}">
|
2021-12-01 03:39:41 +00:00
|
|
|
<img class="block lg:hidden w-32 object-contain" src="/assets/images/logos/winter/logo-{{ range(1, 13)|random() }}.png" alt="logo">
|
|
|
|
<img class="hidden lg:block w-32 object-contain" src="/assets/images/logos/winter/logo-{{ range(1, 13)|random() }}.png" alt="logo">
|
2021-11-24 16:48:06 +00:00
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
<div class="relative hidden sm:flex flex-shrink-0 sm:ml-6">
|
|
|
|
<form action="/search/posts/" method="get" class="mb-0">
|
2021-12-01 16:24:34 +00:00
|
|
|
<input placeholder="Search" class="w-full text-gray-500 focus:text-black rounded border border-gray-800 bg-black/20 focus:bg-white hover:bg-black/30 shadow-inner w-full px-2 py-1.5 pr-7" aria-label="Search" name="q" value="{{request.args.get('q', '')}}">
|
2021-11-24 16:48:06 +00:00
|
|
|
<i class="fas fa-search text-gray-600 absolute top-3 right-2"></i>
|
|
|
|
</form>
|
|
|
|
</div>
|
2021-12-01 17:27:05 +00:00
|
|
|
<div class="hidden lg:flex items-center space-x-2 sm:ml-4">
|
2021-11-24 16:48:06 +00:00
|
|
|
<!-- Current: "bg-gray-900 text-white", Default: "text-gray-300 hover:bg-gray-700 hover:text-white" -->
|
2021-12-01 17:34:09 +00:00
|
|
|
<a href="/" class="relative px-3 py-2.5 rounded text-sm leading-normal {{ 'text-gray-200 font-bold text-shadow' if request.path == '/' else 'text-gray-500 hover:text-gray-400' }}" aria-current="page">
|
2021-11-24 16:48:06 +00:00
|
|
|
<i class="fas fa-home-lg-alt fa-fw mr-2"></i>
|
|
|
|
Home
|
|
|
|
</a>
|
|
|
|
|
2021-12-01 17:34:09 +00:00
|
|
|
<a href="/comments" class="relative px-3 py-2.5 rounded text-sm leading-normal {{ 'text-gray-200 font-bold text-shadow' if request.path == '/comments' else 'text-gray-500 hover:text-gray-400' }}" aria-current="page">
|
2021-11-24 16:48:06 +00:00
|
|
|
<i class="fas fa-comments-alt fa-fw mr-2"></i>
|
|
|
|
Comments
|
|
|
|
</a>
|
|
|
|
|
|
|
|
{% include "/dropdowns/NavbarExtraLinks.html" %}
|
|
|
|
|
|
|
|
<!-- <a href="/shop" class="relative px-3 py-2.5 rounded text-sm {{ 'text-gray-200 font-bold text-shadow' if request.path == '/shop' else 'text-gray-500 hover:text-gray-400' }}">
|
|
|
|
<i class="fas fa-store fa-fw mr-2"></i>
|
|
|
|
Shop
|
|
|
|
</a> -->
|
|
|
|
|
2021-12-01 17:34:09 +00:00
|
|
|
<a href="/country-club" class="hidden xl:flex items-center relative px-3 py-2.5 rounded text-sm leading-normal {{ 'text-gray-200 font-bold text-shadow' if request.path == '/country-club' else 'text-yellow-500 font-medium' }}">
|
2021-11-24 16:48:06 +00:00
|
|
|
<img src="https://i.ibb.co/xFgG6yf/Coinfixed.gif" width="15px" height="12px" class="object-contain mr-2.5"/>
|
|
|
|
Country Club
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="absolute inset-y-0 right-0 flex items-center space-x-3 pr-2 sm:static sm:inset-auto sm:ml-6 sm:pr-0">
|
|
|
|
<!-- Profile dropdown -->
|
2021-12-01 17:29:54 +00:00
|
|
|
<div class="ml-3 relative hidden sm:block">
|
2021-11-24 16:48:06 +00:00
|
|
|
{% include "/dropdowns/NavbarProfile.html" %}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- Notifications -->
|
|
|
|
<a href="/submit" class="bg-transparent p-1 rounded-full text-gray-500 hover:text-white focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-gray-800 focus:ring-white">
|
|
|
|
<span class="sr-only">Submit post</span>
|
|
|
|
<i class="fas fa-plus fa-fw"></i>
|
|
|
|
</a>
|
|
|
|
|
|
|
|
<!-- Notifications -->
|
|
|
|
<a href="/notifications{% if v.notifications_count and v.notifications_count == v.post_notifications_count %}?posts=true{% endif %}" class="block bg-transparent p-1 rounded-full text-gray-500 hover:text-white focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-gray-800 focus:ring-white">
|
|
|
|
<span class="sr-only">View notifications</span>
|
|
|
|
<div class="relative">
|
|
|
|
<i class="fas fa-envelope fa-fw"></i>
|
|
|
|
<!-- Counter -->
|
|
|
|
{% if v.notifications_count %}
|
|
|
|
<div class="absolute -top-1.5 -right-3 {{ 'w-10' if v.notifications_count > 99 else 'w-6' }} h-6 rounded-full border-2 border-gray-900 flex items-center justify-center bg-red-500">
|
|
|
|
<span class="text-xs text-gray-100 font-bold leading-none">{{ v.notifications_count }}</span>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
</a>
|
|
|
|
|
2021-12-01 17:36:21 +00:00
|
|
|
<!-- Members, Friends, etc -->
|
|
|
|
<!-- <button type="button" class="bg-transparent p-1 rounded-full text-gray-500 hover:text-white focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-gray-800 focus:ring-white">
|
2021-11-24 16:48:06 +00:00
|
|
|
<span class="sr-only">View notifications</span>
|
|
|
|
<i class="fas fa-user-friends fa-fw"></i>
|
2021-12-01 17:36:21 +00:00
|
|
|
</button> -->
|
2021-11-24 16:48:06 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- Mobile menu, show/hide based on menu state. -->
|
2021-12-01 17:31:24 +00:00
|
|
|
<div class="offcanvas offcanvas-end bg-gray-200" tabindex="-1" id="offcanvasNavbar" aria-labelledby="offcanvasNavbarLabel">
|
2021-12-01 17:04:52 +00:00
|
|
|
<div class="offcanvas-header">
|
|
|
|
<h5 class="offcanvas-title" id="offcanvasNavbarLabel">Offcanvas</h5>
|
|
|
|
<button type="button" class="btn-close text-reset" data-bs-dismiss="offcanvas" aria-label="Close"></button>
|
|
|
|
</div>
|
|
|
|
<div class="offcanvas-body">
|
2021-12-01 18:31:11 +00:00
|
|
|
<!-- Search box -->
|
2021-12-01 18:31:42 +00:00
|
|
|
<form action="/search/posts/" method="get" class="relative mb-4">
|
2021-12-01 18:34:11 +00:00
|
|
|
<input placeholder="Search" class="block w-full rounded shadow-inner py-2 pl-2 pr-8 bg-white border border-gray-300 hover:border-gray-400 focus:border-blue-300 focus:ring focus:ring-blue-200 focus:ring-opacity-50" aria-label="Search" name="q" value="{{request.args.get('q', '')}}">
|
2021-12-01 18:32:43 +00:00
|
|
|
<i class="fas fa-search text-gray-400 absolute top-3 right-3"></i>
|
2021-12-01 18:31:11 +00:00
|
|
|
</form>
|
|
|
|
<!-- Submit post link -->
|
2021-12-01 18:14:16 +00:00
|
|
|
<button class="w-full btn btn-red">
|
2021-12-01 17:51:54 +00:00
|
|
|
<i class="fas fa-pen fa-sm fa-fw mr-2"></i>
|
|
|
|
Create post
|
|
|
|
</button>
|
2021-12-01 18:31:11 +00:00
|
|
|
<!-- Meta links -->
|
2021-12-01 17:31:24 +00:00
|
|
|
<ul class="navbar-nav justify-end flex-grow-1 pe-3">
|
2021-12-01 17:04:52 +00:00
|
|
|
<li class="nav-item">
|
|
|
|
<a class="nav-link active" aria-current="page" href="#">Home</a>
|
|
|
|
</li>
|
|
|
|
<li class="nav-item">
|
|
|
|
<a class="nav-link" href="#">Link</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
2021-11-24 16:48:06 +00:00
|
|
|
</nav>
|