From 4e49eb5e383d25f3d43d7fb4ce2880f7c0e1e800 Mon Sep 17 00:00:00 2001 From: Tim Bannister Date: Tue, 6 Aug 2024 19:44:54 +0100 Subject: [PATCH] Refactory KubeWeekly signup form Turn it into a shortcode. --- assets/scss/_custom.scss | 20 +++++++++++++++++++ content/en/_index.html | 2 ++ layouts/index.html | 29 ---------------------------- layouts/partials/hooks/head-end.html | 10 ++++++++++ layouts/shortcodes/kubeweekly.html | 18 +++++++++++++++++ 5 files changed, 50 insertions(+), 29 deletions(-) create mode 100644 layouts/shortcodes/kubeweekly.html diff --git a/assets/scss/_custom.scss b/assets/scss/_custom.scss index e5ebb597f8969..c7d451b2916e4 100644 --- a/assets/scss/_custom.scss +++ b/assets/scss/_custom.scss @@ -87,6 +87,26 @@ body.td-home main[role="main"] > section:first-of-type .content p:first-child { } } +.section-feature#kubeweekly { + + .kubeweekly-signup { + color: #3371E3; + font-weight: 400; + font-size: 1.8rem; + } + > .kubeweekly-inner { + form p { + text-align: center; + font-size: 1.2rem; + color: $blue; + } + margin-left: auto; + margin-right: auto; + width: 100vw; + padding-bottom: 2rem; + } +} + body.td-404 main .error-details { max-width: 1100px; margin-left: auto; diff --git a/content/en/_index.html b/content/en/_index.html index 143b3b9798b1d..103e217fe19b4 100644 --- a/content/en/_index.html +++ b/content/en/_index.html @@ -66,3 +66,5 @@

The Challenges of Migrating 150+ Microservices to Kubernetes

{{< blocks/kubernetes-features >}} {{< blocks/case-studies >}} + +{{< kubeweekly id="kubeweekly" >}} diff --git a/layouts/index.html b/layouts/index.html index 0845663be7399..c2304488c5077 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -7,35 +7,6 @@ - -
-
- - - -
-
-
-
-

{{ T "main_kubeweekly_baseline" }}

- - - - -
-
-
-
{{ T "main_kubeweekly_past_link" }}
-
- - -
-
{{ end }} diff --git a/layouts/partials/hooks/head-end.html b/layouts/partials/hooks/head-end.html index f80c71826a97f..d21d939d562ee 100644 --- a/layouts/partials/hooks/head-end.html +++ b/layouts/partials/hooks/head-end.html @@ -1,5 +1,15 @@ +{{- if .HasShortcode "kubeweekly" -}} + + +{{- end -}} + {{- if or (.HasShortcode "table") (.HasShortcode "feature-gate-table") -}} {{- if hugo.IsProduction -}} {{- $sortableTableJs := resources.Get "js/sortable-table.js" | minify | fingerprint -}} diff --git a/layouts/shortcodes/kubeweekly.html b/layouts/shortcodes/kubeweekly.html new file mode 100644 index 0000000000000..707bb34eb6ff1 --- /dev/null +++ b/layouts/shortcodes/kubeweekly.html @@ -0,0 +1,18 @@ +{{- $id := .Get "id" | default (printf "kubeweekly-%d" .Ordinal) -}} +
+
+
+
+
+

{{ T "main_kubeweekly_baseline" }}

+ + + + +
+
+
+
+
+
+