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 1 commit
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
Next Next commit
[BEAM-14010] [Website] Add Playground section to the Home page
  • Loading branch information
bullet03 committed Mar 1, 2022
commit e35bfa8e7bc60c08416cf0d3971114ccc25f6a2d
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 Beam"
AKosolapov marked this conversation as resolved.
Show resolved Hide resolved
- 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://frontend-beta-dot-apache-beam-testing.appspot.com/">Beam Playground (Beta)</a>.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
You can try an Apache Beam examples at <a href="https://frontend-beta-dot-apache-beam-testing.appspot.com/">Beam Playground (Beta)</a>.
You can try an Apache Beam examples at <a href="http://play.beam.apache.org/">Beam Playground (Beta)</a>.

Let's use the proper url right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

changed

</p>
<br>
<br>
<iframe
src="https://frontend-beta-dot-apache-beam-testing.appspot.com/embedded?enabled=true&example=SDK_JAVA/PRECOMPILED_OBJECT_TYPE_EXAMPLE/MinimalWordCount&code="
Copy link
Member

Choose a reason for hiding this comment

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

can we also use the play.beam.apache.org URL?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

changed

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://frontend-beta-dot-apache-beam-testing.appspot.com/" | relLangURL }}>{{ T "home-playground" }}</a>
Copy link
Member

Choose a reason for hiding this comment

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

same?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

changed

</div>
</div>
{{ end }}