2
0
mirror of https://github.com/inventree/inventree-website.git synced 2025-04-27 21:16:45 +00:00

rearange header links and add deploy

This commit is contained in:
Matthias Mair 2022-07-25 23:57:27 +02:00 committed by GitHub
parent f2de4c21c4
commit b6522ef4dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 21 additions and 19 deletions

View File

@ -3,6 +3,8 @@ title: InvenTree
tagline: Intuitive Inventory Management
demo-link: https://inventree.readthedocs.io/en/latest/demo/
doc-link: https://inventree.readthedocs.io/en/latest/
deploy-link:
internal: deploy/index.md
blog-link:
internal: blog.html
plugin-link:

View File

@ -1,27 +1,27 @@
<header class="cm-gray-2 body-font sticky top-0 z-50 bg-gradient-to-r from-white to-secondary">
<div class="container mx-auto flex flex-wrap p-5 flex-row items-center">
<a class="flex title-font font-medium items-center cm-gray-1 mb-0 mr-2" href="{{ '/' | relative_url }}">
<img src="{{ '/assets/logo.png' | relative_url }}" alt="logo" height="32" width="32" class="h-8">
<span class="ml-3 text-xl">{{ site.title }}</span>
</a>
<a class="flex title-font font-medium items-center cm-gray-1 mb-0 mr-2" href="{{ '/' | relative_url }}">
<img src="{{ '/assets/logo.png' | relative_url }}" alt="logo" height="32" width="32" class="h-8">
<span class="ml-3 text-xl">{{ site.title }}</span>
</a>
<div class="flex-grow xs:flex-none"></div>
<div class="flex-grow xs:flex-none"></div>
<nav class="md:mr-auto md:py-1 xs:ml-4 xs:pl-4 xs:border-l xs:border-gray-400 flex flex-wrap items-center text-base justify-center">
<a class="mr-5 hover:cm-gray-1" href="{% include fnc/link.html item=site.blog-link %}">Blog</a>
<a class="mr-5 hover:cm-gray-1" href="{% include fnc/link.html item=site.plugin-link %}">Plugins</a>
<a class="mr-5 hover:cm-gray-1" href="{% include fnc/link.html item=site.doc-link %}">Docs</a>
</nav>
<nav class="md:mr-auto md:py-1 xs:ml-4 xs:pl-4 xs:border-l xs:border-gray-400 flex flex-wrap items-center text-base justify-center">
<a class="mr-5 hover:cm-gray-1" href="{% include fnc/link.html item=site.deploy-link %}">Deploy</a>
<a class="mr-5 hover:cm-gray-1" href="{% include fnc/link.html item=site.doc-link %}">Docs</a>
<a class="mr-5 hover:cm-gray-1" href="{% include fnc/link.html item=site.blog-link %}">Blog</a>
<a class="mr-5 hover:cm-gray-1" href="{% include fnc/link.html item=site.plugin-link %}">Plugins</a>
</nav>
{% if page.main_page %}
<nav class="md:ml-auto flex flex-wrap items-center text-base justify-center rounded border-2 border-primary">
<a class="ml-2 mr-2 hover:cm-gray-1" href="#maker">for <strong>maker</strong></a>
<a class="mr-2 hover:cm-gray-1" href="#business">for <strong>business</strong></a>
<a class="mr-2 hover:cm-gray-1" href="#edu">for <strong>edu</strong></a>
</nav>
<a href="{{site.demo-link}}" class="inline-flex items-center bg-gray-100 ml-2 border-0 py-1 px-3 focus:outline-none hover:bg-gray-200 rounded text-base mt-4 md:mt-0">
{% if page.main_page %}
<nav class="md:ml-auto flex flex-wrap items-center text-base justify-center rounded border-2 border-primary">
<a class="ml-2 mr-2 hover:cm-gray-1" href="#maker">for <strong>maker</strong></a>
<a class="mr-2 hover:cm-gray-1" href="#business">for <strong>business</strong></a>
<a class="mr-2 hover:cm-gray-1" href="#edu">for <strong>edu</strong></a>
</nav>
<a href="{{site.demo-link}}" class="inline-flex items-center bg-gray-100 ml-2 border-0 py-1 px-3 focus:outline-none hover:bg-gray-200 rounded text-base mt-4 md:mt-0">
Open demo
</a>
{% endif %}
</a> {% endif %}
</div>
</header>