Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BEAM-14010] [Website] Add Playground section to the Home page #16976

Merged
merged 6 commits into from
Mar 9, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion website/www/site/assets/scss/_global.sass
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ body
.body
background: #fff
margin: 0 auto
.body__contained
h1
text-align: center
.no__padding
padding: 0
&:not(.body--index)
Expand All @@ -34,7 +37,6 @@ body
padding: 0
padding: 0 30px
max-width: 1280px

figure
img
width: 100%
Expand Down
2 changes: 2 additions & 0 deletions website/www/site/i18n/home/en.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
translation: "Python Quickstart"
- id: home-go-quickstart
translation: "Go Quickstart"
- id: home-playground
translation: "Try Playground"
- id: home-hero-blog-title
translation: "The latest from the blog"
- id: home-cards-title
Expand Down
1 change: 1 addition & 0 deletions website/www/site/layouts/_default/baseof.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
21 changes: 21 additions & 0 deletions website/www/site/layouts/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,24 @@ <h2 class="pillars-title">
</div>
{{ end }}

{{ define "playground-section" }}
<div class="body__contained body__section-nav">
<h1>Try Beam Playground</h1>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we move it to the central part of the page? Like it works with another section.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

<p>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 <a href="https://play.beam.apache.org/">Beam Playground (Beta)</a>.
</p>
<br>
<br>
<iframe
src="https://play.beam.apache.org/embedded?enabled=true&example=SDK_JAVA/PRECOMPILED_OBJECT_TYPE_EXAMPLE/MinimalWordCount&code="
width="100%"
height="700px"
class="code-snippet playground"
allow="clipboard-write">
</iframe>
</div>
{{ end }}

{{ define "graphic-section" }}
<div class="graphic">
<div class="quotes">
Expand Down Expand Up @@ -232,5 +250,8 @@ <h2 class="calendar-title">
<div class='ctas_row'>
<a class="ctas_button" href={{ "/get-started/quickstart-go/" | relLangURL }}>{{ T "home-go-quickstart" }}</a>
</div>
<div class='ctas_row'>
<a class="ctas_button" href={{ "https://play.beam.apache.org/" | relLangURL }}>{{ T "home-playground" }}</a>
</div>
</div>
{{ end }}