From 7312fbfe505962e7c822084de9af22c1db5f8d7e Mon Sep 17 00:00:00 2001 From: James Hunt <10615884+thetwopct@users.noreply.github.com> Date: Sun, 16 Jun 2024 13:14:29 +0700 Subject: [PATCH] Move CNCF information below hero for takeovers Signed-off-by: James Hunt <10615884+thetwopct@users.noreply.github.com> --- .../lf-mu/admin/partials/sync-kcds.php | 4 +- .../components/home-cncf-about.php | 122 ++++++++++++++++++ .../cncf-twenty-two/components/home-hero.php | 2 +- .../themes/cncf-twenty-two/front-page.php | 2 + .../patterns/pjr-section-header.php | 2 +- .../source/scss/components/_front-page.scss | 7 +- 6 files changed, 132 insertions(+), 7 deletions(-) create mode 100644 web/wp-content/themes/cncf-twenty-two/components/home-cncf-about.php diff --git a/web/wp-content/mu-plugins/wp-mu-plugins/lf-mu/admin/partials/sync-kcds.php b/web/wp-content/mu-plugins/wp-mu-plugins/lf-mu/admin/partials/sync-kcds.php index 35d336a41..44e429ff4 100644 --- a/web/wp-content/mu-plugins/wp-mu-plugins/lf-mu/admin/partials/sync-kcds.php +++ b/web/wp-content/mu-plugins/wp-mu-plugins/lf-mu/admin/partials/sync-kcds.php @@ -108,8 +108,8 @@ return false; } -$remote_body = json_decode( wp_remote_retrieve_body( $data ) ); -$events = $remote_body->results; +$remote_body = json_decode( wp_remote_retrieve_body( $data ) ); +$events = $remote_body->results; $background_colors = array( '#14496c', '#641e16', '#5e2d72', '#0b5329', '#1a267d' ); $background_color = 0; diff --git a/web/wp-content/themes/cncf-twenty-two/components/home-cncf-about.php b/web/wp-content/themes/cncf-twenty-two/components/home-cncf-about.php new file mode 100644 index 000000000..140b756c2 --- /dev/null +++ b/web/wp-content/themes/cncf-twenty-two/components/home-cncf-about.php @@ -0,0 +1,122 @@ + + + + +
+
+ + + +
+
+

Make cloud native + ubiquitous +

+ + + +

CNCF is the open source, + vendor-neutral + hub of cloud native computing, hosting + projects like Kubernetes and Prometheus to make cloud native + universal and sustainable.

+ +
    +
  • + + Projects +
  • +
  • + K + Contributors +
  • +
  • + M + Contributions +
  • +
  • + + Countries +
  • +
  • + +
  • +
+
+
+ +
+
+ +
+
+ +
+
+ +
+
diff --git a/web/wp-content/themes/cncf-twenty-two/components/home-hero.php b/web/wp-content/themes/cncf-twenty-two/components/home-hero.php index 251d37f6b..202d3795b 100644 --- a/web/wp-content/themes/cncf-twenty-two/components/home-hero.php +++ b/web/wp-content/themes/cncf-twenty-two/components/home-hero.php @@ -77,4 +77,4 @@ class="home-hero__poster" style="width: 100%; height: 100%;" - \ No newline at end of file + diff --git a/web/wp-content/themes/cncf-twenty-two/front-page.php b/web/wp-content/themes/cncf-twenty-two/front-page.php index ce45da784..3b2389cf3 100644 --- a/web/wp-content/themes/cncf-twenty-two/front-page.php +++ b/web/wp-content/themes/cncf-twenty-two/front-page.php @@ -15,6 +15,8 @@ ?>
Start here

- \ No newline at end of file + diff --git a/web/wp-content/themes/cncf-twenty-two/source/scss/components/_front-page.scss b/web/wp-content/themes/cncf-twenty-two/source/scss/components/_front-page.scss index 8a2b175ea..4287c09c2 100644 --- a/web/wp-content/themes/cncf-twenty-two/source/scss/components/_front-page.scss +++ b/web/wp-content/themes/cncf-twenty-two/source/scss/components/_front-page.scss @@ -91,6 +91,7 @@ } } &__metric_wrapper { + list-style: none; margin-top: min(8%, 30px); @media (min-width: 600px) { margin-top: min(8%, 50px); @@ -344,9 +345,9 @@ } .home-intro-box { - background: $white; - box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.08); - border-radius: 10px; + background: $white; + box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.08); + border-radius: 10px; border: 1px solid $gray-300; letter-spacing: 0.02em; line-height: 150%;