2
0
mirror of https://github.com/inventree/inventree-website.git synced 2025-04-28 05:26:44 +00:00

refactor features

This commit is contained in:
Matthias Mair 2021-11-09 01:34:12 +01:00
parent a6ae8a54fd
commit fe6c1830a8
5 changed files with 28 additions and 27 deletions

View File

@ -1,12 +1,10 @@
header: ref: business
ref: business link:
title: For Business internal: business
text: | title: For Business
This pipe does something a little different. text: |
It preserves the breaks. This pipe does something a little different. It preserves the breaks.
This is really helpful for code samples, This is really helpful for code samples, since you can format the code samples with the appropriate
since you can format the code samples with
the appropriate
features: features:
- title: mountain bikes - title: mountain bikes

View File

@ -1,7 +1,8 @@
header: ref: edu
ref: edu link:
title: For Education internal: edu
text: | title: For Education
text: |
Electronic Labs are creative places. Whether your institution works with K12 or post-grads - organisation and tooling is challenging. Let InvenTree help you calm the storm! Electronic Labs are creative places. Whether your institution works with K12 or post-grads - organisation and tooling is challenging. Let InvenTree help you calm the storm!
features: features:

View File

@ -1,7 +1,8 @@
header: ref: maker
ref: maker link:
title: For Maker internal: maker
text: | title: For Maker
text: |
This pipe does something a little different. This pipe does something a little different.
It preserves the breaks. It preserves the breaks.

View File

@ -2,16 +2,17 @@
<div class="container px-5 py-24 mx-auto"> <div class="container px-5 py-24 mx-auto">
<div class="flex flex-wrap w-full mb-4"> <div class="flex flex-wrap w-full mb-4">
<div class="lg:w-1/2 w-full mb-6 lg:mb-0"> <div class="lg:w-1/2 w-full mb-6 lg:mb-0">
<a class="anchor" id="{{ include.data.header.ref }}"></a> <a class="anchor" id="{{ include.data.ref }}"></a>
<div class="inline-flex items-center"> <div class="inline-flex items-center">
<h1 class="sm:text-3xl text-2xl font-medium title-font mb-2 cm-gray-1">{{ include.data.header.title }}</h1> <h1 class="sm:text-3xl text-2xl font-medium title-font mb-2 cm-gray-1">{{ include.data.title }}</h1>
{% if include.link %} {% if include.link %}
<a href="{% include link.html item=include.link %}">{% include learn_more.html %}</a> {% assign link=include.data.link|default:include.link %}
<a href="{% include link.html item=link %}">{% include learn_more.html %}</a>
{% endif %} {% endif %}
</div> </div>
<div class="h-1 w-20 bg-secondary rounded"></div> <div class="h-1 w-20 bg-secondary rounded"></div>
</div> </div>
<p class="lg:w-1/2 w-full leading-relaxed cm-gray-3">{{ include.data.header.text }}</p> <p class="lg:w-1/2 w-full leading-relaxed cm-gray-3">{{ include.data.text }}</p>
</div> </div>
<div class="flex flex-wrap -m-4"> <div class="flex flex-wrap -m-4">

View File

@ -8,11 +8,11 @@ main_page: True
{% include functions.html data=site.data.general.function %} {% include functions.html data=site.data.general.function %}
{% include features.html data=site.data.for_maker link='/maker' %} {% include features.html data=site.data.for_maker link=true %}
{% include features.html data=site.data.for_business link='/business' %} {% include features.html data=site.data.for_business link=true%}
{% include features.html data=site.data.for_edu link='/education' %} {% include features.html data=site.data.for_edu link=true %}
{% include stats.html data=site.data.general.stats %} {% include stats.html data=site.data.general.stats %}