From 25a2578ab92446425ff2031f87c1f883b242e1e8 Mon Sep 17 00:00:00 2001 From: Priyanshu Singh Date: Mon, 27 Jun 2022 17:01:05 +0000 Subject: [PATCH 01/10] hero and navbar changes Signed-off-by: Priyanshu Singh --- .gitignore | 2 ++ themes/containerd/assets/sass/style.sass | 13 +++++++++ themes/containerd/layouts/index.html | 16 +++++------ .../containerd/layouts/partials/navbar.html | 27 ++++++++++++++----- yarn.lock | 11 +++----- 5 files changed, 47 insertions(+), 22 deletions(-) diff --git a/.gitignore b/.gitignore index 5a8fcbe..af25e77 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,7 @@ # macOS leftovers .DS_Store +.hugo-build.lock +package-lock.json # Node.js-related assets (e.g. for CSS) node_modules/ diff --git a/themes/containerd/assets/sass/style.sass b/themes/containerd/assets/sass/style.sass index ce79753..8a8ba73 100644 --- a/themes/containerd/assets/sass/style.sass +++ b/themes/containerd/assets/sass/style.sass @@ -243,3 +243,16 @@ hr.short-hr a margin-bottom: .5rem + +.has-background-pattern + background-color: #000022 + background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='2000' height='2000' viewBox='0 0 800 800'%3E%3Cg fill='none' %3E%3Cg stroke='%23026' stroke-width='17'%3E%3Cline x1='-8' y1='-8' x2='808' y2='808'/%3E%3Cline x1='-8' y1='792' x2='808' y2='1608'/%3E%3Cline x1='-8' y1='-808' x2='808' y2='8'/%3E%3C/g%3E%3Cg stroke='%23002163' stroke-width='16'%3E%3Cline x1='-8' y1='767' x2='808' y2='1583'/%3E%3Cline x1='-8' y1='17' x2='808' y2='833'/%3E%3Cline x1='-8' y1='-33' x2='808' y2='783'/%3E%3Cline x1='-8' y1='-783' x2='808' y2='33'/%3E%3C/g%3E%3Cg stroke='%23002060' stroke-width='15'%3E%3Cline x1='-8' y1='742' x2='808' y2='1558'/%3E%3Cline x1='-8' y1='42' x2='808' y2='858'/%3E%3Cline x1='-8' y1='-58' x2='808' y2='758'/%3E%3Cline x1='-8' y1='-758' x2='808' y2='58'/%3E%3C/g%3E%3Cg stroke='%23001f5c' stroke-width='14'%3E%3Cline x1='-8' y1='67' x2='808' y2='883'/%3E%3Cline x1='-8' y1='717' x2='808' y2='1533'/%3E%3Cline x1='-8' y1='-733' x2='808' y2='83'/%3E%3Cline x1='-8' y1='-83' x2='808' y2='733'/%3E%3C/g%3E%3Cg stroke='%23001e59' stroke-width='13'%3E%3Cline x1='-8' y1='92' x2='808' y2='908'/%3E%3Cline x1='-8' y1='692' x2='808' y2='1508'/%3E%3Cline x1='-8' y1='-108' x2='808' y2='708'/%3E%3Cline x1='-8' y1='-708' x2='808' y2='108'/%3E%3C/g%3E%3Cg stroke='%23001d56' stroke-width='12'%3E%3Cline x1='-8' y1='667' x2='808' y2='1483'/%3E%3Cline x1='-8' y1='117' x2='808' y2='933'/%3E%3Cline x1='-8' y1='-133' x2='808' y2='683'/%3E%3Cline x1='-8' y1='-683' x2='808' y2='133'/%3E%3C/g%3E%3Cg stroke='%23001c53' stroke-width='11'%3E%3Cline x1='-8' y1='642' x2='808' y2='1458'/%3E%3Cline x1='-8' y1='142' x2='808' y2='958'/%3E%3Cline x1='-8' y1='-158' x2='808' y2='658'/%3E%3Cline x1='-8' y1='-658' x2='808' y2='158'/%3E%3C/g%3E%3Cg stroke='%23001b4f' stroke-width='10'%3E%3Cline x1='-8' y1='167' x2='808' y2='983'/%3E%3Cline x1='-8' y1='617' x2='808' y2='1433'/%3E%3Cline x1='-8' y1='-633' x2='808' y2='183'/%3E%3Cline x1='-8' y1='-183' x2='808' y2='633'/%3E%3C/g%3E%3Cg stroke='%23001a4c' stroke-width='9'%3E%3Cline x1='-8' y1='592' x2='808' y2='1408'/%3E%3Cline x1='-8' y1='192' x2='808' y2='1008'/%3E%3Cline x1='-8' y1='-608' x2='808' y2='208'/%3E%3Cline x1='-8' y1='-208' x2='808' y2='608'/%3E%3C/g%3E%3Cg stroke='%23001949' stroke-width='8'%3E%3Cline x1='-8' y1='567' x2='808' y2='1383'/%3E%3Cline x1='-8' y1='217' x2='808' y2='1033'/%3E%3Cline x1='-8' y1='-233' x2='808' y2='583'/%3E%3Cline x1='-8' y1='-583' x2='808' y2='233'/%3E%3C/g%3E%3Cg stroke='%23001846' stroke-width='7'%3E%3Cline x1='-8' y1='242' x2='808' y2='1058'/%3E%3Cline x1='-8' y1='542' x2='808' y2='1358'/%3E%3Cline x1='-8' y1='-558' x2='808' y2='258'/%3E%3Cline x1='-8' y1='-258' x2='808' y2='558'/%3E%3C/g%3E%3Cg stroke='%23001743' stroke-width='6'%3E%3Cline x1='-8' y1='267' x2='808' y2='1083'/%3E%3Cline x1='-8' y1='517' x2='808' y2='1333'/%3E%3Cline x1='-8' y1='-533' x2='808' y2='283'/%3E%3Cline x1='-8' y1='-283' x2='808' y2='533'/%3E%3C/g%3E%3Cg stroke='%2300163f' stroke-width='5'%3E%3Cline x1='-8' y1='292' x2='808' y2='1108'/%3E%3Cline x1='-8' y1='492' x2='808' y2='1308'/%3E%3Cline x1='-8' y1='-308' x2='808' y2='508'/%3E%3Cline x1='-8' y1='-508' x2='808' y2='308'/%3E%3C/g%3E%3Cg stroke='%2300153c' stroke-width='4'%3E%3Cline x1='-8' y1='467' x2='808' y2='1283'/%3E%3Cline x1='-8' y1='317' x2='808' y2='1133'/%3E%3Cline x1='-8' y1='-333' x2='808' y2='483'/%3E%3Cline x1='-8' y1='-483' x2='808' y2='333'/%3E%3C/g%3E%3Cg stroke='%23001439' stroke-width='3'%3E%3Cline x1='-8' y1='342' x2='808' y2='1158'/%3E%3Cline x1='-8' y1='442' x2='808' y2='1258'/%3E%3Cline x1='-8' y1='-458' x2='808' y2='358'/%3E%3Cline x1='-8' y1='-358' x2='808' y2='458'/%3E%3C/g%3E%3Cg stroke='%23001336' stroke-width='2'%3E%3Cline x1='-8' y1='367' x2='808' y2='1183'/%3E%3Cline x1='-8' y1='417' x2='808' y2='1233'/%3E%3Cline x1='-8' y1='-433' x2='808' y2='383'/%3E%3Cline x1='-8' y1='-383' x2='808' y2='433'/%3E%3C/g%3E%3Cg stroke='%23013' stroke-width='1'%3E%3Cline x1='-8' y1='392' x2='808' y2='1208'/%3E%3Cline x1='-8' y1='-408' x2='808' y2='408'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") + background-attachment: fixed + +.scrolled + background: #1d1c29 !important + transition: background 1000ms + +.subtitle strong + color: white; + font-weight: 600; diff --git a/themes/containerd/layouts/index.html b/themes/containerd/layouts/index.html index c004fce..849afc9 100644 --- a/themes/containerd/layouts/index.html +++ b/themes/containerd/layouts/index.html @@ -6,41 +6,41 @@ {{- $about := .Site.Params.home.about | markdownify }} {{- $diagram := "img/architecture.png" | relURL }} {{- $adopterLogos := .Site.Data.adopters }} -
+

-

+

{{ $subtitle }}


- + - + Getting started - + - + Docs - + - + Downloads diff --git a/themes/containerd/layouts/partials/navbar.html b/themes/containerd/layouts/partials/navbar.html index a0c8b72..2141ec8 100644 --- a/themes/containerd/layouts/partials/navbar.html +++ b/themes/containerd/layouts/partials/navbar.html @@ -7,15 +7,15 @@ {{- $githubUrl := printf "https://github.com/%s" $githubRepo }} {{- $slackChannel := .Site.Params.slackChannel }} {{- $projectPages := where .Site.RegularPages "Section" "" }} -
-
+
@@ -83,7 +83,7 @@ Features

-
+
diff --git a/themes/containerd/layouts/partials/footer.html b/themes/containerd/layouts/partials/footer.html index f684979..e4f0326 100644 --- a/themes/containerd/layouts/partials/footer.html +++ b/themes/containerd/layouts/partials/footer.html @@ -1,4 +1,4 @@ -{{- $logo := "img/logos/footer-logo.png" | relURL }} +{{- $logo := "/img/logos/navbar-light-logo.png" | relURL }} {{- $docs := where .Site.Pages "Section" "docs" }} {{- $year := now.Year }} {{- $twitterHandle := .Site.Params.twitterHandle }} @@ -7,19 +7,19 @@ {{- $githubUrl := printf "https://github.com/%s" $githubRepo }} {{- $slackChannel := .Site.Params.slackChannel }} {{- $projectPages := where .Site.RegularPages "Section" "" }} -