From e35bfa8e7bc60c08416cf0d3971114ccc25f6a2d Mon Sep 17 00:00:00 2001 From: bulat safiullin Date: Tue, 1 Mar 2022 18:25:41 +0300 Subject: [PATCH 1/5] [BEAM-14010] [Website] Add Playground section to the Home page --- website/www/site/i18n/home/en.yaml | 2 ++ website/www/site/layouts/_default/baseof.html | 1 + website/www/site/layouts/index.html | 21 +++++++++++++++++++ 3 files changed, 24 insertions(+) diff --git a/website/www/site/i18n/home/en.yaml b/website/www/site/i18n/home/en.yaml index 2d9157be2c1a..371afeb0efbe 100644 --- a/website/www/site/i18n/home/en.yaml +++ b/website/www/site/i18n/home/en.yaml @@ -22,6 +22,8 @@ translation: "Python Quickstart" - id: home-go-quickstart translation: "Go Quickstart" +- id: home-playground + translation: "Try Beam" - id: home-hero-blog-title translation: "The latest from the blog" - id: home-cards-title diff --git a/website/www/site/layouts/_default/baseof.html b/website/www/site/layouts/_default/baseof.html index 2a75558f5d85..56f5edc47802 100644 --- a/website/www/site/layouts/_default/baseof.html +++ b/website/www/site/layouts/_default/baseof.html @@ -21,6 +21,7 @@ {{ block "hero-section" . }}{{ end }} {{ block "ctas-section" . }}{{ end }} {{ block "pillars-section" . }}{{ end }} + {{ block "playground-section" . }}{{ end }} {{ block "graphic-section" . }}{{ end }} {{ block "calendar-section" . }}{{ end }} {{ block "quotes-section" . }}{{ end }} diff --git a/website/www/site/layouts/index.html b/website/www/site/layouts/index.html index 10a9f213d916..4a0851bc5b9b 100644 --- a/website/www/site/layouts/index.html +++ b/website/www/site/layouts/index.html @@ -60,6 +60,24 @@

{{ end }} +{{ define "playground-section" }} +
+

Try Beam Playground

+

Beam Playground is an interactive environment to try out Beam transforms and examples without having to install Apache Beam in your environment. + You can try an Apache Beam examples at Beam Playground (Beta). +

+
+
+ +
+{{ end }} + {{ define "graphic-section" }}
{{ end }} From 3d9d0f843dc8a6f95b8e65c82d3233e35c257d5a Mon Sep 17 00:00:00 2001 From: Alex Kosolapov Date: Tue, 1 Mar 2022 13:57:22 -0800 Subject: [PATCH 2/5] Update button to "Try Playground" Co-authored-by: Aydar Zainutdinov --- website/www/site/i18n/home/en.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/www/site/i18n/home/en.yaml b/website/www/site/i18n/home/en.yaml index 371afeb0efbe..e44d3374edfd 100644 --- a/website/www/site/i18n/home/en.yaml +++ b/website/www/site/i18n/home/en.yaml @@ -23,7 +23,7 @@ - id: home-go-quickstart translation: "Go Quickstart" - id: home-playground - translation: "Try Beam" + translation: "Try Playground" - id: home-hero-blog-title translation: "The latest from the blog" - id: home-cards-title From 0cad2f8679aa45165109bc3a33113986d2609c4f Mon Sep 17 00:00:00 2001 From: bulat safiullin Date: Wed, 2 Mar 2022 12:39:47 +0300 Subject: [PATCH 3/5] [BEAM-14010] [Website] change button name --- website/www/site/i18n/home/en.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/www/site/i18n/home/en.yaml b/website/www/site/i18n/home/en.yaml index 371afeb0efbe..e44d3374edfd 100644 --- a/website/www/site/i18n/home/en.yaml +++ b/website/www/site/i18n/home/en.yaml @@ -23,7 +23,7 @@ - id: home-go-quickstart translation: "Go Quickstart" - id: home-playground - translation: "Try Beam" + translation: "Try Playground" - id: home-hero-blog-title translation: "The latest from the blog" - id: home-cards-title From 972cb88f64320db3abea260dd3263daa9dc879ac Mon Sep 17 00:00:00 2001 From: bulat safiullin Date: Thu, 3 Mar 2022 16:38:58 +0300 Subject: [PATCH 4/5] [BEAM-14010] [Website] align header to center --- website/www/site/assets/scss/_global.sass | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/website/www/site/assets/scss/_global.sass b/website/www/site/assets/scss/_global.sass index dcbb49f5d1c9..fae897ef3b04 100644 --- a/website/www/site/assets/scss/_global.sass +++ b/website/www/site/assets/scss/_global.sass @@ -26,6 +26,9 @@ body .body background: #fff margin: 0 auto + .body__contained + h1 + text-align: center .no__padding padding: 0 &:not(.body--index) @@ -34,7 +37,6 @@ body padding: 0 padding: 0 30px max-width: 1280px - figure img width: 100% From 9b027e79a7da02179c903c5cb915ef0b5231e126 Mon Sep 17 00:00:00 2001 From: bulat safiullin Date: Fri, 4 Mar 2022 15:00:46 +0300 Subject: [PATCH 5/5] [BEAM-14010] [Website] change link --- website/www/site/layouts/index.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/website/www/site/layouts/index.html b/website/www/site/layouts/index.html index 4a0851bc5b9b..146a21dd2587 100644 --- a/website/www/site/layouts/index.html +++ b/website/www/site/layouts/index.html @@ -64,12 +64,12 @@

Try Beam Playground

Beam Playground is an interactive environment to try out Beam transforms and examples without having to install Apache Beam in your environment. - You can try an Apache Beam examples at Beam Playground (Beta). + You can try an Apache Beam examples at Beam Playground (Beta).