From 6875d6aea638da3a630f3548582be542c00ea5b0 Mon Sep 17 00:00:00 2001 From: timurgordon Date: Mon, 7 Mar 2022 19:14:21 +0300 Subject: [PATCH] desktop header design improvements --- content/header/_index.md | 38 ++++++++++++++++++-------------- css/index.css | 19 +++++++++++++--- css/layout.css | 2 +- tailwind.config.js | 17 ++++++++++++++ templates/shortcodes/button.html | 2 +- templates/shortcodes/menu.html | 13 ++++------- 6 files changed, 60 insertions(+), 31 deletions(-) diff --git a/content/header/_index.md b/content/header/_index.md index 3a1c349..5e8fe62 100644 --- a/content/header/_index.md +++ b/content/header/_index.md @@ -12,11 +12,11 @@ extra: {% menu() %} -##### PURPOSE +#### PURPOSE {% button() %} -###### [The Internot](/apage) +##### [The Internot](/apage) Whats wrong with the [internet](/apage) @@ -26,7 +26,7 @@ Whats wrong with the [internet](/apage) {% button() %} -###### Our Internet +##### Our Internet Vision for the new internet @@ -34,11 +34,11 @@ Vision for the new internet ||| -##### ECOSYSTEM +#### ECOSYSTEM {% button() %} -#### OurWorld DAO +##### OurWorld DAO Be a part of governance @@ -46,7 +46,7 @@ Be a part of governance {% button() %} -#### Communities +##### Communities Explore communities in OurWorld @@ -54,7 +54,7 @@ Explore communities in OurWorld {% button() %} -#### DAOs +##### DAOs Decentralized autonomous organizations @@ -62,32 +62,36 @@ Decentralized autonomous organizations ||| -### APPLICATIONS +#### APPLICATIONS -
-
+{% button() %} -#### DAPPs +##### DAPPs Decentralized applications -
+{%% end %%} -#### Projects +{% button() %} + +##### Projects Projects in OurWorld +{%% end %%} + ||| -### FEATURED +#### FEATURED -
-
+{% button() %} -#### OurWorld is Live +##### OurWorld is Live Be a part of the new internet +{%% end %%} + {% end %} - [Join us]("/join-us") diff --git a/css/index.css b/css/index.css index 954611a..f31f5ce 100644 --- a/css/index.css +++ b/css/index.css @@ -51,13 +51,13 @@ img[src*="#large"] { @apply text-2xl lg:text-4xl font-light; } h4 { - @apply text-lg lg:text-xl font-light; + @apply text-md tracking-widest text-zinc-500 font-semibold; } h5 { - @apply text-base not-italic font-light leading-8; + @apply text-md not-italic font-normal leading-8; } h6 { - @apply text-sm lg:text-sm font-normal; + @apply text-sm lg:text-base font-normal; } nav p { @apply hidden sm:block md:block lg:block xl:block 2xl:block; @@ -73,6 +73,19 @@ img[src*="#large"] { } } +button:hover :is(:where(a)) { + color: #3b82f6; +} + +button :is(:where(p)) { + color: #3d3b39; + font-weight: 400; +} + +button a { + color: black; +} + h3 { font-size: 1em; font-style: normal; diff --git a/css/layout.css b/css/layout.css index a61abb2..7232509 100644 --- a/css/layout.css +++ b/css/layout.css @@ -82,7 +82,7 @@ a:active { } h5 a { - @apply text-gray-600 font-light; + @apply text-gray-900 font-normal; } /* diff --git a/tailwind.config.js b/tailwind.config.js index a033655..443b458 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -9,6 +9,21 @@ module.exports = { }, darkMode: false, theme: { + fontSize: { + 'xs': '.75rem', + 'sm': '.875rem', + 'tiny': '.875rem', + 'base': '1rem', + 'md': '1.05rem', + 'lg': '1.125rem', + 'xl': '1.25rem', + '2xl': '1.5rem', + '3xl': '1.875rem', + '4xl': '2.25rem', + '5xl': '3rem', + '6xl': '4rem', + '7xl': '5rem', + }, colors: { transparent: 'transparent', white: '#ffffff', @@ -16,8 +31,10 @@ module.exports = { gray: colors.gray, slate: colors.slate, stone: colors.stone, + zinc: colors.zinc, yellow: colors.yellow, orange: colors.orange, + sky: colors.sky, blue: { '100': '#bbeeff', '200': '#00aaff', diff --git a/templates/shortcodes/button.html b/templates/shortcodes/button.html index e319fb8..c49a6e3 100644 --- a/templates/shortcodes/button.html +++ b/templates/shortcodes/button.html @@ -1,3 +1,3 @@ \ No newline at end of file diff --git a/templates/shortcodes/menu.html b/templates/shortcodes/menu.html index 86d061a..c087e6d 100644 --- a/templates/shortcodes/menu.html +++ b/templates/shortcodes/menu.html @@ -14,18 +14,13 @@ Parameters: -{% set classes = "relative flex flex-col lg:flex-row items-baseline -mx-8 sm:-mx-12 md:-mx-16 lg:-mx-20" %} -{% set column_classes = "flex-1 m-4 lg:m-4" %} +{% set classes = "relative flex flex-col lg:flex-row items-baseline -mx-8 sm:-mx-12 md:-mx-16 lg:-mx-8" %} +{% set column_classes = "flex-1 m-8 lg:m-4" %} -{% set styles = "" %} -{% if bgPath %} - {% set styles = "background: url('" ~ bgPath ~ "'); background-size: cover" %} - {% set classes = classes ~ "w-screen -mx-8 sm:-mx-12 md:-mx-16 lg:-mx-20 lg:py-40 p-8 sm:p-12 md:p-16 lg:p-20" %} -{% endif %} -
+
{% for column in columns%} {% if column | as_str | length < 10 %} @@ -40,7 +35,7 @@ Parameters: {% else %}
{{column | split(pat="{% button() %}") | slice(end=1) | first | safe}} -
+