From 7ec4b085e53aca29c15a3f411d1806329fe13ea3 Mon Sep 17 00:00:00 2001 From: timurgordon Date: Wed, 23 Feb 2022 07:16:14 +0300 Subject: [PATCH] mobile header functional --- content/header/_index.md | 3 + css/index.css | 15 +-- templates/blog/blog.html | 4 +- templates/partials/header.html | 236 ++++++++++++++------------------- 4 files changed, 114 insertions(+), 144 deletions(-) diff --git a/content/header/_index.md b/content/header/_index.md index a69786d..ce625db 100644 --- a/content/header/_index.md +++ b/content/header/_index.md @@ -78,4 +78,7 @@ Projects in OurWorld Be a part of the new internet +- [Careers]("/careers") +- [Blog]("/blog") + {% end %} diff --git a/css/index.css b/css/index.css index b47080a..cf7783e 100644 --- a/css/index.css +++ b/css/index.css @@ -44,13 +44,14 @@ img[src*="#large"] { h2 { @apply text-2xl lg:text-4xl font-light; } - + h4 { + @apply text-lg lg:text-xl font-light; + } h5 { @apply text-base lg:text-base font-light leading-8 my-2; } - - h5 { - @apply text-base lg:text-base leading-8 my-2; + nav p { + @apply hidden sm:block md:block lg:block xl:block 2xl:block; } } @@ -59,11 +60,7 @@ h3 { font-style: normal; font-weight: 600; color: rgba(0, 0, 0, 0.5); -} - -h4 { - font-size: 1.3em; - font-weight: 400; + margin: 10px 0px; } p { diff --git a/templates/blog/blog.html b/templates/blog/blog.html index e480fee..63162a6 100644 --- a/templates/blog/blog.html +++ b/templates/blog/blog.html @@ -25,4 +25,6 @@ and a side nav for category and featured post navigation {% include "partials/blogPosts.html" %} {% include "partials/blogSidebar.html" %} - {% endblock content %} + + + {% endblock content %} diff --git a/templates/partials/header.html b/templates/partials/header.html index dbcc8b6..0065919 100644 --- a/templates/partials/header.html +++ b/templates/partials/header.html @@ -4,6 +4,7 @@ --> @@ -33,7 +67,7 @@ {%- set section = get_section(path="header/_index.md") %} {% set header_items = section.content | safe | split(pat="
  • ") %} - +
    @@ -43,12 +77,18 @@
    - +
  • ") %} {% set header_label = header_arr[0] %} -
    - - -
    - - Careers - - - Blog - - + {% if ' + {{link_label}} + + {% else %} +
    + + +
    + + {% endif %} {% endif %} - {% endfor %} +{% endfor %} @@ -89,15 +131,15 @@ {% set header_label = header_arr[0] %} {% set header_menu = header_arr[1] %} -
    -