From 585b17db992c86b91a4dccaf5077720fe9c9579e Mon Sep 17 00:00:00 2001 From: M Sarmad Qadeer Date: Fri, 19 Aug 2022 17:00:18 +0500 Subject: [PATCH] change desktop header style --- website/src/_includes/layouts/article.html | 32 +---------------- website/src/_includes/nav.html | 36 +++++++++++++++++++ website/src/blog.html | 40 +--------------------- website/src/contact/index.html | 30 +--------------- website/src/css/blog.css | 13 ------- website/src/css/style.css | 20 ++--------- website/src/index.html | 40 +--------------------- website/src/invitation/index.html | 38 +------------------- website/src/js/script.js | 16 ++++----- 9 files changed, 52 insertions(+), 213 deletions(-) create mode 100644 website/src/_includes/nav.html diff --git a/website/src/_includes/layouts/article.html b/website/src/_includes/layouts/article.html index aa151810e4..3dc24d2d48 100644 --- a/website/src/_includes/layouts/article.html +++ b/website/src/_includes/layouts/article.html @@ -14,37 +14,7 @@ -
- -
-
- Whitepaper - Comparison - Blog -
+ {% include "nav.html" %}
{{ content | safe }}
diff --git a/website/src/_includes/nav.html b/website/src/_includes/nav.html new file mode 100644 index 0000000000..242a1b2f14 --- /dev/null +++ b/website/src/_includes/nav.html @@ -0,0 +1,36 @@ +
+ +
+ \ No newline at end of file diff --git a/website/src/blog.html b/website/src/blog.html index 4f7747cb8b..0cdec138a1 100644 --- a/website/src/blog.html +++ b/website/src/blog.html @@ -12,43 +12,7 @@ -
- -
- + {% include "nav.html" %}
{% for blog in collections.blogs %} @@ -80,7 +44,5 @@ - - \ No newline at end of file diff --git a/website/src/contact/index.html b/website/src/contact/index.html index 4ecfd0d8f5..7f68d4f3be 100644 --- a/website/src/contact/index.html +++ b/website/src/contact/index.html @@ -21,35 +21,7 @@ -
- -
- + {% include "nav.html" %}
diff --git a/website/src/css/blog.css b/website/src/css/blog.css index 30d49f836a..fc99561729 100644 --- a/website/src/css/blog.css +++ b/website/src/css/blog.css @@ -73,17 +73,4 @@ h3::before { height: 80px; visibility: hidden; pointer-events: none; -} - -@media screen and (max-width: 1024px) { - h1::before, - h2::before, - h3::before { - display: block; - content: " "; - margin-top: -125px; - height: 125px; - visibility: hidden; - pointer-events: none; - } } \ No newline at end of file diff --git a/website/src/css/style.css b/website/src/css/style.css index a11ae709d1..cdea1ca5a4 100644 --- a/website/src/css/style.css +++ b/website/src/css/style.css @@ -4,7 +4,7 @@ html { h1::before, h2::before, -h3::before +h3::before, #comparison::before { display: block; content: " "; @@ -14,21 +14,7 @@ h3::before pointer-events: none; } -@media screen and (max-width: 1024px) { - h1::before, - h2::before, - h3::before - #comparison::before { - display: block; - content: " "; - margin-top: -125px; - height: 205px; - visibility: hidden; - pointer-events: none; - } -} - -.nav-button-active{ +/* .nav-button-active{ background-color: #00C8FB; color: #fff; -} \ No newline at end of file +} */ \ No newline at end of file diff --git a/website/src/index.html b/website/src/index.html index 4ebf12f586..7d0403a5c4 100644 --- a/website/src/index.html +++ b/website/src/index.html @@ -28,43 +28,7 @@ -
- -
- + {% include "nav.html" %}
@@ -458,8 +422,6 @@
- - diff --git a/website/src/invitation/index.html b/website/src/invitation/index.html index 6c755ae634..baa092e50b 100644 --- a/website/src/invitation/index.html +++ b/website/src/invitation/index.html @@ -21,43 +21,7 @@ -
- -
- + {% include "nav.html" %}
diff --git a/website/src/js/script.js b/website/src/js/script.js index 84ede67c05..6d91af37a9 100644 --- a/website/src/js/script.js +++ b/website/src/js/script.js @@ -1,8 +1,8 @@ -console.log(window.location.href) -if(window.location.href.includes('comparison')){ - console.log('Comparison'); - document.querySelector('.comparison-nav-btn').classList.add('nav-button-active'); -} -else if(window.location.href.includes('blog')){ - document.querySelector('.blog-nav-btn').classList.add('nav-button-active'); -} \ No newline at end of file +// console.log(window.location.href) +// if(window.location.href.includes('comparison')){ +// console.log('Comparison'); +// document.querySelector('.comparison-nav-btn').classList.add('nav-button-active'); +// } +// else if(window.location.href.includes('blog')){ +// document.querySelector('.blog-nav-btn').classList.add('nav-button-active'); +// } \ No newline at end of file