Extract footer navigation

This commit is contained in:
Maria Rushkova 2021-08-04 17:48:52 +02:00
parent 1a74515be3
commit db6a41c04d
5 changed files with 36 additions and 109 deletions

View File

@ -0,0 +1,6 @@
---
- title: "Waku"
link: https://status.im/
- title: "DApp Connect"
link: https://status.im/

12
_data/footer-research.yml Normal file
View File

@ -0,0 +1,12 @@
---
- title: "Log"
link: https://status.im/
- title: "Forum"
link: https://forum.vac.dev/
- title: "Media"
link: https://status.im/
- title: "Careers"
link: https://status.im/our_team/jobs.html

9
_data/footer-socials.yml Normal file
View File

@ -0,0 +1,9 @@
---
- title: "Twitter"
link: https://twitter.com/vacp2p
- title: "Discord"
link: https://discord.com/
- title: "Telegram"
link: https://t.me/vacp2p

View File

@ -39,96 +39,15 @@
<div class="flex flex-col mr-5 sl:mr-14">
<p class="text-base text-white mb-5 lg:mb-4">Research</p>
<ul class="">
<li
class="
text-xxs
lg:text-base
text-white
opacity-75
hover:opacity-50
mb-5
"
>
<a href="https://status.im/" target="_blank">Log</a>
</li>
<li
class="
text-xxs
lg:text-base
text-white
opacity-75
hover:opacity-50
mb-5
"
>
<a href="https://forum.vac.dev/" target="_blank">Forum</a>
</li>
<li
class="
text-xxs
lg:text-base
text-white
opacity-75
hover:opacity-50
mb-5
"
>
<a href="https://status.im/" target="_blank">Media</a>
</li>
<li
class="
text-xxs
lg:text-base
text-white
opacity-75
hover:opacity-50
mb-5
"
>
<a href="https://status.im/our_team/jobs.html" target="_blank"
>Careers</a
>
</li>
{% for nav in site.data.footer-research %} {% include
nav-item.html %} {% endfor %}
</ul>
</div>
<div class="flex flex-col sl:mr-14">
<p class="text-base text-white mb-5 lg:mb-4 mr-5">Socials</p>
<ul class="">
<li
class="
text-xxs
lg:text-base
text-white
opacity-75
hover:opacity-50
mb-5
"
>
<a href="https://twitter.com/vacp2p" target="_blank">Twitter</a>
</li>
<li
class="
text-xxs
lg:text-base
text-white
opacity-75
hover:opacity-50
mb-5
"
>
<a href="https://discord.com/" target="_blank">Discord</a>
</li>
<li
class="
text-xxs
lg:text-base
text-white
opacity-75
hover:opacity-50
"
>
<a href="https://t.me/vacp2p" target="_blank">Telegram</a>
</li>
{% for nav in site.data.footer-socials %} {% include nav-item.html
%} {% endfor %}
</ul>
</div>
</div>
@ -136,30 +55,8 @@
<div class="flex flex-col sl:mr-5">
<p class="text-base text-white mb-5 lg:mb-4">Projects</p>
<ul class="">
<li
class="
text-xxs
lg:text-base
text-white
opacity-75
hover:opacity-50
mb-5
"
>
<a href="https://status.im/" target="_blank">Waku</a>
</li>
<li
class="
text-xxs
lg:text-base
text-white
opacity-75
hover:opacity-50
mb-5
"
>
<a href="https://status.im/" target="_blank">DApp Connect</a>
</li>
{% for nav in site.data.footer-projects %} {% include
nav-item.html %} {% endfor %}
</ul>
</div>
</div>

3
_includes/nav-item.html Normal file
View File

@ -0,0 +1,3 @@
<li class="text-xxs lg:text-base text-white opacity-75 hover:opacity-50 mb-5">
<a href="{{ nav.link }}" target="_blank">{{ nav.title }}</a>
</li>