From 6d74cf200f3f63c99567fa12c81ceb648118b39e Mon Sep 17 00:00:00 2001 From: 35C4n0r Date: Sat, 4 Nov 2023 16:42:32 +0530 Subject: [PATCH 01/14] feat: add a new footer which replaces the existing one - The footer data and links are stored in hugo.toml - css has been added to _content_projects.scss. - Breakpoints have been added. Signed-off-by: Jay --- assets/scss/_content_project.scss | 499 +++++++++++++++++++++++++++++- hugo.toml | 159 ++++++++-- layouts/partials/footer.html | 88 ++++++ 3 files changed, 711 insertions(+), 35 deletions(-) create mode 100644 layouts/partials/footer.html diff --git a/assets/scss/_content_project.scss b/assets/scss/_content_project.scss index 02f6fb1a..039db1ad 100644 --- a/assets/scss/_content_project.scss +++ b/assets/scss/_content_project.scss @@ -109,4 +109,501 @@ h1, h2, h3, h4, h5, h6 { @include media-breakpoint-up(sm) { font-size: 3rem; } - } \ No newline at end of file + } + +.footer { + background-color: $black; + color: white; + line-height: 28px; + padding: 2.5rem 3rem 1.5rem; + z-index: 100; + + + h5 { + font-weight: 300; + font-family: $td-fonts-serif; + } + + .d-header { + height: 6rem; + background-color: #f3fffd; + } + + .custom-header-links { + .headerLink { + a { + --font-up-1: 15px; + margin: 0 10px; + color: red; + + &:hover { + color: $secondary; + } + } + } + } + + .search-widget { + display: none; + } + + .custom-search-banner { + margin: -1em 0 2em 0; + background-color: $primary; + + .custom-search-banner-wrap { + max-height: 250px; + padding-top: 4em; + + h1 { + color: white; + font-size: 50px; + } + + p { + color: white; + font-size: 28px; + margin: 1rem 0 3rem 0; + } + } + } + + .list-controls { + .combo-box { + .combo-box-header { + border: none; + font-size: 1.25em; + text-transform: capitalize; + } + } + } + + .select-kit.combo-box { + .select-kit-header { + border: none; + font-size: 1.25em; + } + } + + .categories-and-latest { + div.column.categories { + flex: 1 1 55%; + } + + div.column { + flex: 0 1 40%; + } + } + + .category-list { + border-collapse: separate; + border-spacing: 0 1em; + + thead { + display: none; + } + + tr { + display: flex; + box-sizing: border-box; + padding: 1em; + margin-bottom: 2.5em; + border: none; + background: #fbfbfd; + } + + tbody { + .category { + border: none; + + .category-logo.aspect-image { + --max-height: 75px; + max-width: 90px; + height: auto; + } + } + } + } + + .latest-topic-list-item { + border-bottom: none; + margin-bottom: 20px; + } + + .table-heading { + border-bottom: none; + } + + .latest-topic-list-item.visited { + a.title { + &:not(.badge-notification) { + color: $dark; + } + } + } + + .latest-topic-list { + .table-heading { + margin-left: 10px; + color: $dark; + font-size: 20px; + } + } + + .twiiter-sidebar { + margin-top: 20px; + } + + .container { + max-width: 90%; + margin: auto; + } + + .footer { + background-color: $dark; + z-index: 100; + color: white; + line-height: 28px; + //padding: 0rem 0rem 1.5rem; + + h5 { + font-weight: 300; + font-family: $td-fonts-serif; + } + } + + .row { + width: 100%; + } + + .footer-top { + display: flex; + margin-bottom: 1rem; + } + + .footer-info { + display: flex; + flex-wrap: nowrap; + justify-content: space-between; + align-items: flex-start; + } + + .footer-info2 { + display: flex; + flex-direction: column; + } + + .col-lg-6 { + width: 50%; + } + + .footer-logo { + margin-left: -10px; + max-width: 200px; + height: auto; + } + + .col-lg-3 { + width: 22%; + } + + .col-lg-9 { + display: flex; + flex-direction: column; + } + + .footer-desc { + padding-right: 1rem; + font-style: italic; + font-weight: 100; + font-size: 16px; + color: $body-color; + } + + .section-title { + font-size: 1.25rem; + font-weight: 400; + color: rgba(255, 255, 255, 0.8); + --heading-font-family: "Qanelas Soft", "Open Sans", sans-serif; + } + + .footer-h5 { + padding: 0px; + font-size: 1rem; + margin-top: 10px; + color: $body-color; + } + + .footer-sections { + flex: auto; + padding: 0 1rem; + //margin-top: 15px; + + a { + color: white; + //color: $color_7; + + &:hover { + color: $primary; + } + } + } + + .footer-icons { + justify-content: flex-end; + + img { + padding: 0.1rem; + height: 30px; + width: 32px; + } + + a { + padding-right: 15px; + filter: grayscale(1) invert(0.25); + + &:hover { + filter: grayscale(0) invert(0); + } + } + } + + .github { + a { + &:hover { + filter: brightness(100%); + } + } + } + + .footer-resources { + margin-left: 60px; + } + + .subscribe { + margin: 3rem 0px 2rem 0px; + + p { + margin-bottom: 0; + } + + .footer-end { + display: flex; + align-items: flex-end; + justify-content: flex-end; + } + + form { + margin: 0; + } + } + + input.footer-input { + padding: 1rem; + margin-right: 0.25rem; + width: 20rem; + height: 3.5rem; + border: 0.5px solid white; + background: transparent; + border-radius: 0.5rem; + outline: none; + color: white; + + &:focus { + padding: 1rem; + margin-right: 0.25rem; + width: 24rem; + height: 3.5rem; + border: 0.5px solid white; + background: transparent; + border-radius: 0.5rem; + outline-width: 0; + color: white; + } + } + + .footer-button { + height: 3.5rem; + background: $primary; + width: 160px; + border-radius: 0.25rem; + border: none; + } + + .footer-hr { + color: white; + margin: 0; + } + + .footer-bottom { + p { + margin: 0 0 1rem; + font-size: 0.8rem; + } + + a { + color: white; + } + } + + .footer-bottom-left { + float: left; + } + + .footer-bottom-right { + float: right; + } + + /* Media Query for Mobile */ + @media (max-width: 480px) { + .footer-info { + flex-wrap: wrap !important; + justify-content: center !important; + } + .footer-resources { + margin: 0 !important; + } + .footer-sections { + padding: 20px !important; + } + .col-lg-3 { + width: 100% !important; + } + .footer-desc { + padding: 0px 10px 0px 10px !important; + text-align: center !important; + } + .col-lg-9 { + width: 100% !important; + } + .footer-top { + flex-direction: column-reverse !important; + } + .col-lg-6 { + width: 100% !important; + text-align: center !important; + } + .footer-icons { + justify-content: center !important; + } + .footer-logo { + padding: 10px 10px 0px 10px !important; + } + .subscribe { + justify-content: center !important; + } + input.footer-input { + width: 13rem !important; + } + .footer-button { + width: 120px !important; + } + .footer-bottom-right { + margin: 1.5% !important; + } + .footer-bottom-left { + padding: 2% !important; + } + } + + /* Media Query for low resolution Tablets, Ipads */ + @media (min-width: 481px) and (max-width: 767px) { + .footer-info { + flex-wrap: wrap !important; + } + .footer-resources { + margin: 0 !important; + } + .footer-sections { + padding: 20px !important; + } + .col-lg-3 { + width: 100% !important; + } + .footer-desc { + padding: 0px 10px 0px 10px !important; + text-align: center !important; + } + .col-lg-9 { + width: 100% !important; + } + .footer-top { + flex-direction: column-reverse !important; + } + .col-lg-6 { + width: 100% !important; + text-align: center !important; + } + .footer-icons { + justify-content: center !important; + } + .footer-logo { + padding: 10px 10px 0px 10px !important; + } + .subscribe { + justify-content: center !important; + } + input.footer-input { + width: 13rem !important; + } + .footer-button { + width: 120px !important; + } + .footer-bottom-right { + margin: 1.5% !important; + } + .footer-bottom-left { + padding: 2% !important; + } + } + + /* Media Query for Tablets Ipads portrait mode */ + @media (min-width: 768px) and (max-width: 1024px) { + .footer-info { + flex-wrap: wrap !important; + justify-content: center !important; + } + .footer-resources { + margin: 0 !important; + } + .footer-sections { + padding: 20px !important; + } + .footer-sections a { + font-weight: 400; + } + .col-lg-3 { + width: 100% !important; + } + .footer-desc { + padding: 0px 10px 0px 10px !important; + text-align: center !important; + } + .footer-top { + flex-direction: column-reverse !important; + } + .col-lg-6 { + width: 100% !important; + text-align: center !important; + } + .footer-icons { + justify-content: center !important; + } + .footer-logo { + padding: 10px 10px 0px 10px !important; + } + .subscribe { + justify-content: center !important; + } + .footer-button { + width: 120px !important; + } + .footer-bottom-right { + margin: 1.5% !important; + } + .footer-bottom-left { + padding: 2% !important; + } + } + +} \ No newline at end of file diff --git a/hugo.toml b/hugo.toml index dcd14a25..57ad6135 100644 --- a/hugo.toml +++ b/hugo.toml @@ -62,7 +62,7 @@ id = "UA-00000000-0" [languages] [languages.en] -languageName ="English" +languageName = "English" # Weight used for sorting. weight = 1 [languages.en.params] @@ -123,7 +123,7 @@ github_project_repo = "https://github.com/layer5io/docs" # Uncomment this if your GitHub repo does not have "main" as the default branch, # or specify a new value if you want to reference another branch in your GitHub links -github_branch= "master" +github_branch = "master" # Google Custom Search Engine ID. Remove or comment out to disable search. gcs_engine_id = "f475448a7bc1d43a4" @@ -177,38 +177,129 @@ no = 'Sorry to hear that. Please +
+ + + +
+ \ No newline at end of file From f5fbf5e773a0da70f0c80aa1d85972ab844450cc Mon Sep 17 00:00:00 2001 From: 35C4n0r Date: Sat, 4 Nov 2023 17:16:26 +0530 Subject: [PATCH 02/14] update: remove unnecessary div after footer - made the subscribe section more responsive. - centered all the items. Signed-off-by: Jay --- assets/scss/_content_project.scss | 7 ++++++- layouts/partials/footer.html | 2 -- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/assets/scss/_content_project.scss b/assets/scss/_content_project.scss index 039db1ad..76f88127 100644 --- a/assets/scss/_content_project.scss +++ b/assets/scss/_content_project.scss @@ -117,6 +117,10 @@ h1, h2, h3, h4, h5, h6 { line-height: 28px; padding: 2.5rem 3rem 1.5rem; z-index: 100; + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; h5 { @@ -496,7 +500,8 @@ h1, h2, h3, h4, h5, h6 { width: 13rem !important; } .footer-button { - width: 120px !important; + margin-top: 5px; + width: 7.5rem !important; } .footer-bottom-right { margin: 1.5% !important; diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index d1da198a..e5097d8c 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -1,5 +1,4 @@ \ No newline at end of file From 5eba29d13fd297b7a8be8d5c0e906614396b2232 Mon Sep 17 00:00:00 2001 From: 35C4n0r Date: Sun, 5 Nov 2023 00:35:39 +0530 Subject: [PATCH 03/14] update: update to new logo Signed-off-by: Jay --- assets/scss/_content_project.scss | 3 ++- layouts/partials/footer.html | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/assets/scss/_content_project.scss b/assets/scss/_content_project.scss index 76f88127..223fc379 100644 --- a/assets/scss/_content_project.scss +++ b/assets/scss/_content_project.scss @@ -299,11 +299,12 @@ h1, h2, h3, h4, h5, h6 { .col-lg-6 { width: 50%; + padding: 15px; } .footer-logo { margin-left: -10px; - max-width: 200px; + max-width: 300px; height: auto; } diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index e5097d8c..84b0c82d 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -2,8 +2,8 @@ -