-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: alignments with uikit, projects, navbar
- Loading branch information
Showing
4 changed files
with
43 additions
and
92 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,51 +1,33 @@ | ||
{% load wagtailcore_tags navigation_tags %} | ||
|
||
<header> | ||
<nav class="bg-white border-gray-200 px-4 lg:px-6 py-2.5 dark:bg-gray-800"> | ||
<div class="flex flex-wrap justify-between items-center mx-auto max-w-screen-xl"> | ||
|
||
<!-- brand / logo --> | ||
<a href="/" class="flex items-center"> | ||
<span class="self-center text-xl font-semibold whitespace-nowrap dark:text-white">hanz</span> | ||
</a> | ||
<!-- end brand / logo --> | ||
<div class="uk-navbar-container"> | ||
<div class="uk-container"> | ||
<nav uk-navbar> | ||
{% get_site_root as site_root %} | ||
<div class="uk-navbar-left"> | ||
<a href="{% pageurl site_root %}" class="uk-navbar-item uk-logo">hanz</a> | ||
</div> | ||
|
||
<!-- hamburger menu --> | ||
<div class="flex items-center "> | ||
<button data-collapse-toggle="mobile-menu-2" type="button" class="inline-flex items-center p-2 ml-1 text-sm text-gray-500 rounded-lg lg:hidden hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-gray-200 dark:text-gray-400 dark:hover:bg-gray-700 dark:focus:ring-gray-600" aria-controls="mobile-menu-2" aria-expanded="false"> | ||
<span class="sr-only">Open main menu</span> | ||
<svg class="w-6 h-6" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" d="M3 5a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 10a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 15a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1z" clip-rule="evenodd"></path></svg> | ||
<svg class="hidden w-6 h-6" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" d="M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z" clip-rule="evenodd"></path></svg> | ||
</button> | ||
<!-- menu links --> | ||
<div class="uk-navbar-right"> | ||
<ul class="uk-navbar-nav"> | ||
{% for menuitem in site_root.get_children.live.in_menu %} | ||
<li> | ||
<a class="uk-text-lowercase" href="{% pageurl site_root %}"> | ||
home | ||
</a> | ||
</li> | ||
<li> | ||
<a class="uk-text-lowercase" href="{% pageurl menuitem %}"> | ||
{{ menuitem.title }} | ||
</a> | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
</div> | ||
<!-- / end menu links --> | ||
</nav> | ||
</div> | ||
<!-- end hamburger menu --> | ||
|
||
<!-- menu --> | ||
{% get_site_root as site_root %} | ||
<nav class="hidden justify-between items-center w-full lg:flex lg:w-auto" id="mobile-menu-2"> | ||
<ul class="flex flex-col mt-4 font-medium lg:flex-row lg:space-x-8 lg:mt-0"> | ||
<!-- links --> | ||
<li> | ||
<a | ||
href="{% pageurl site_root %}" | ||
class="block py-2 pr-4 pl-3 text-white rounded bg-primary-700 lg:bg-transparent lg:text-primary-700 lg:p-0 dark:text-white" aria-current="page"> | ||
home | ||
</a> | ||
</li> | ||
{% for menuitem in site_root.get_children.live.in_menu %} | ||
<li> | ||
<a | ||
href="{% pageurl menuitem %}" | ||
class="block py-2 pr-4 pl-3 text-gray-700 border-b border-gray-100 hover:bg-gray-50 lg:hover:bg-transparent lg:border-0 lg:hover:text-primary-700 lg:p-0 dark:text-gray-400 lg:dark:hover:text-white dark:hover:bg-gray-700 dark:hover:text-white lg:dark:hover:bg-transparent dark:border-gray-700"> | ||
{{ menuitem.title }} | ||
</a> | ||
</li> | ||
{% endfor %} | ||
<!-- end links --> | ||
</ul> | ||
</nav> | ||
<!-- end menu --> | ||
|
||
</div> | ||
</nav> | ||
</header> | ||
</div> | ||
</header> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters