Skip to content

Commit

Permalink
[Website] update additional case studies layout and scss (#23555)
Browse files Browse the repository at this point in the history
  • Loading branch information
bullet03 authored Oct 31, 2022
1 parent d4fd174 commit e808182
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 8 deletions.
8 changes: 8 additions & 0 deletions website/www/site/assets/scss/_case_study.scss
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,14 @@
}
}

.case-study-used-by-card--with-link {
&:hover {
.case-study-used-by-card-img {
display: block;
}
}
}

.case-study-card {
padding: 16px;
display: flex;
Expand Down
2 changes: 1 addition & 1 deletion website/www/site/content/en/case-studies/akvelon.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: "Akvelon"
icon: /images/logos/powered-by/akvelon.png
hasNav: true
cardDescription: "Akvelon is a software engineering company that helps start-ups, SMBs, and Fortune 500 companies unlock the full potential of cloud, data, and AI/ML to empower their strategic advantage. Akvelon team has deep expertise in integrating Apache Beam with diverse data processing ecosystems and is an enthusiastic Apache Beam community contributor."
cardDescription: "<p><a href='https://akvelon.com/' target='_blank' rel='noopener noreferrer'>Akvelon</a> is a software engineering company that helps start-ups, SMBs, and Fortune 500 companies unlock the full potential of cloud, data, and AI/ML to empower their strategic advantage. Akvelon team has deep expertise in integrating Apache Beam with diverse data processing ecosystems and is an enthusiastic Apache Beam community contributor.</p>"
---
<!--
Licensed under the Apache License, Version 2.0 (the "License");
Expand Down
22 changes: 15 additions & 7 deletions website/www/site/layouts/case-studies/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,22 @@ <h3 class="case-study-card-title">{{ .Params.cardTitle }}</h3>
<h2 class="case-study-h2">Also used by</h2>
<div class="case-study-list case-study-list--additional">
{{ range where $pages "Params.category" "ne" "study" }}
<div class="case-study-used-by-card case-study-used-by-card--responsive">
<div class="case-study-used-by-card-img">
<img src="{{.Params.icon}}"></i>
</div>
<div class="case-study-used-by-card-description">
{{ .Params.cardDescription | safeHTML }}
{{ if .Params.hasLink }}
<a class="case-study-used-by-card--responsive case-study-used-by-card case-study-used-by-card--with-link" href="{{ .Params.hasLink }}" target="_blank" rel="noopener noreferrer">
<div class="case-study-used-by-card-img">
<img src="{{.Params.icon}}"></i>
</div>
</a>
{{ else }}
<div class="case-study-used-by-card case-study-used-by-card--responsive">
<div class="case-study-used-by-card-img">
<img src="{{.Params.icon}}"></i>
</div>
<div class="case-study-used-by-card-description">
{{ .Params.cardDescription | safeHTML }}
</div>
</div>
</div>
{{ end }}
{{ end }}
</div>
<div class="case-study-row-button-container">
Expand Down

0 comments on commit e808182

Please sign in to comment.