ElessarST commented on a change in pull request #16702:
URL: https://github.com/apache/beam/pull/16702#discussion_r804630569
##########
File path: website/www/site/layouts/case-studies/list.html
##########
@@ -1,112 +1,72 @@
{{/*
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
- http://www.apache.org/licenses/LICENSE-2.0
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License. See accompanying LICENSE file.
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+http://www.apache.org/licenses/LICENSE-2.0
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License. See accompanying LICENSE file.
*/}}
{{ define "main" }}
<div class="blog-content">
- <h1>Case Studies</h1>
- <p>Check out how the projects are using Apache Beam.</p>
- {{ $pages := .Pages }}
- {{ $.Scratch.Set "categories" (slice ) }}
- {{ $.Scratch.Set "noCategories" 0 }}
-
- {{ range .Pages}}
- {{ with .Params.categories }}
- {{ if eq ( printf "%T" . ) "string" }}
- {{ if ( not ( in ($.Scratch.Get "categories") . ) ) }}
- {{ $.Scratch.Add "categories" . }}
- {{ end }}
- {{ else if eq ( printf "%T" . ) "[]string" }}
- {{ range . }}
- {{ if ( not ( in ($.Scratch.Get "categories") . ) ) }}
- {{ $.Scratch.Add "categories" . }}
- {{ end }}
- {{ end }}
- {{ end }}
- {{ else }}
- {{ $.Scratch.Add "noCategories" 1 }}
- {{ end }}
- {{ end }}
-
- <div class="category-buttons category-buttons_poweredBy">
- {{ range $.Scratch.Get "categories" }}
- <button xx class="category-button" id='category-{{ . | replaceRE "[.]"
"_" | urlize }}' onclick="applyFilter(this)">
- {{ . }}
- </button>
- {{ end }}
- {{ if gt ( $.Scratch.Get "noCategories") 0 }}
- <button xx class="category-button" id="category-no-author"
onclick='ptf.checkFilter("no-author", "category-")'>
- without category
- </button>
- {{ end }}
- </div>
-
- <div class="use_cases">
- {{ range $pages.ByPublishDate.Reverse }}
- <a href="{{ .RelPermalink }}">
- <div class="use-card remove" data-categories='{{ with
.Params.categories }}{{ if eq ( printf "%T" . ) "string" }}{{ . | replaceRE
"[.]" "_" | urlize }}{{ else if eq ( printf "%T" . ) "[]string" }}{{ range .
}}{{ . | replaceRE "[.]" "_" | urlize }} {{end}}{{end}}{{else}}no-author{{end}}'
- >
- <div class="use-icon">
- <img src="{{.Params.icon}}"></i>
- </div>
- <div class="use-body">
- <div>
- <p class="use-category">
- {{ delimit .Params.categories ", " " & " }}
- </p>
- <h5 class="use-title">{{ .Title }}</h5>
- <p class="use-summary">{{ .Summary | plainify | chomp }}</p>
- </div>
- <a class="read-link" href="{{ .RelPermalink }}">{{ T
"case-studies-read" }}</a>
- </div>
+ <h1>Case Studies</h1>
+ <p class="case-study-about">Apache Beam powers many of today’s leading
projects, industry-specific use cases, and
+ startups</p>
+ {{ $pages := .Pages }}
+ <div>
+ {{ range where $pages "Params.category" "study" }}
+ <div class="case-study-card">
+ <div class="case-study-card-img">
+ <img src="{{.Params.icon}}"></i>
+ </div>
+ <h3 class="case-study-card-title">{{ .Params.cardTitle }}</h3>
+ <p class="case-study-card-description">{{ .Params.cardDescription }}</p>
+ <div class="case-study-quote-block">
+ <div class="case-study-quote-author">
+ <div class="case-study-quote-author-img">
+ <img src="{{ .Params.authorImg }}">
+ </div>
+ <div class="case-study-quote-author-info">
+ <div class="case-study-quote-author-name">
+ {{ .Params.authorName }}
</div>
- </a>
- {{ end }}
+ <div class="case-study-quote-author-position">
+ {{ .Params.authorPosition }}
+ </div>
+ </div>
+ </div>
+ </div>
+ <a class="case-study-card-learn-more" href="{{ .RelPermalink }}">
+ <span>{{ T "case-studies-learn-more" }}</span>
+ <img src="/images/arrow-right.svg" alt="Go to the case study">
+ </a>
</div>
- <div class="category-buttons category-buttons_center">
- <button id="load-button" class="load-button">{{ T "blog-loadmore"
}}</button>
+ {{ end }}
+ </div>
+ <div class="case-study-row-button-container">
+ <a href="" class="case-study-primary-button">Share your story</a>
+ </div>
+ <h2 class="case-study-h2">Also used by</h2>
+ <div class="case-study-list">
+ {{ range where $pages "Params.category" "ne" "study" }}
Review comment:
Updated, thanks
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]