Skip to content

Commit

Permalink
replaced senja with own testimonial rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinpapst committed Jul 22, 2024
1 parent 05660b6 commit eb457bd
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 14 deletions.
22 changes: 9 additions & 13 deletions _includes/pages/homepage-hero.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,15 @@
<div class="text-md-start text-center">
<h1 class="display-4 mb-lg-4 mb-3">{{ site.data[page.lang].translation.homepage.title }}</h1>
<p class="mb-4 mx-md-0 mx-auto pb-xl-3 pb-lg-2 fs-lg" style="max-width: 30.5rem;">{{ site.data[page.lang].translation.homepage.intro }}</p>
<p>
{% if page.lang == "de" %}
<div class="senja-embed" data-id="744e7436-f4e0-4c78-b5df-baadb891018a" data-mode="shadow" data-lazyload="false"></div>
<script async type="text/javascript" src="https://widget.senja.io/widget/744e7436-f4e0-4c78-b5df-baadb891018a/platform.js"></script>
{% else %}
<div class="senja-embed" data-id="5f195b5c-de71-43ef-83c8-ec9ca9aa9b9f" data-mode="shadow" data-lazyload="false"></div>
<script async type="text/javascript" src="https://widget.senja.io/widget/5f195b5c-de71-43ef-83c8-ec9ca9aa9b9f/platform.js"></script>
{% endif %}
<a href="{{ page.lang | url_cloud_register }}" class="d-inline-flex align-items-center fw-semibold text-decoration-none border border-primary border-opacity-50 rounded-pill py-1 px-3 mt-5">
<span class="text-gradient-primary lh-lg">{{ site.data[page.lang].translation.cloud-call-to-action }}</span>
<i class="bx bx-right-arrow-alt text-gradient-primary fs-lg ms-2 me-n1"></i>
</a>
</p>
<div class="ps-3">
{% assign testimonials = site.data.testimonials | where_exp: "item", "item.avatar != ''" | sample: 5 %}
{% include testimonials-avatars.html testimonials=testimonials %}
</div>

<a href="{{ page.lang | url_cloud_register }}" class="d-inline-flex align-items-center fw-semibold text-decoration-none border border-primary border-opacity-50 rounded-pill py-1 px-3 mt-5">
<span class="text-gradient-primary lh-lg">{{ site.data[page.lang].translation.cloud-call-to-action }}</span>
<i class="bx bx-right-arrow-alt text-gradient-primary fs-lg ms-2 me-n1"></i>
</a>
</div>
{% include section-list-highlights.html %}
</div>
Expand Down
2 changes: 1 addition & 1 deletion _includes/testimonials-avatars.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div class="d-flex me-3">
<div class="d-flex">
<div class="d-flex me-3">
{% for testimonial in include.testimonials %}
<div class="d-flex align-items-center justify-content-center bg-light rounded-circle ms-n3" style="width: 48px; height: 48px;">
Expand Down

0 comments on commit eb457bd

Please sign in to comment.