Skip to content

Commit 70f364e

Browse files
committed
Shorten the self-hosted CTA in the comparison and rotate the plan menu chevron
1 parent 87e7718 commit 70f364e

4 files changed

Lines changed: 7 additions & 3 deletions

File tree

‎i18n/de.yaml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1193,6 +1193,8 @@
11931193
translation: "Enthalten"
11941194
- id: pricing_compare_not_included
11951195
translation: "Nicht enthalten"
1196+
- id: pricing_compare_hub_self_hosted_cta
1197+
translation: "Einrichten"
11961198
- id: pricing_compare_hub_managed_cta
11971199
translation: "Gratis testen"
11981200
- id: pricing_compare_managed_hosting_tooltip

‎i18n/en.yaml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1194,6 +1194,8 @@
11941194
translation: "Included"
11951195
- id: pricing_compare_not_included
11961196
translation: "Not included"
1197+
- id: pricing_compare_hub_self_hosted_cta
1198+
translation: "Deploy Now"
11971199
- id: pricing_compare_hub_managed_cta
11981200
translation: "Try for Free"
11991201
- id: pricing_compare_managed_hosting_tooltip

‎layouts/partials/pricing/comparison-action.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
{{ i18n "pricing_compare_hub_managed_cta" $page }}
55
</a>
66
<a x-show="hosting === 'self-hosted'" x-cloak href="{{ $page.Site.LanguagePrefix }}/hub/self-hosted/" class="btn btn-hub min-h-12 w-full content-center whitespace-normal break-words hyphens-auto" data-umami-event="pricing-compare-hub-standard-self-hosted-cta">
7-
{{ i18n "pricing_hub_self_hosted_cta" $page }}
7+
{{ i18n "pricing_compare_hub_self_hosted_cta" $page }}
88
</a>
99
{{- else }}
1010
<a href="{{ $page.Site.LanguagePrefix }}{{ .plan.href }}" class="btn {{ if eq .plan.dataKey "Cryptomator" }}btn-outline-primary{{ else }}btn-outline-hub{{ end }} min-h-12 w-full content-center whitespace-normal break-words hyphens-auto" data-umami-event="{{ .plan.event }}">

‎layouts/partials/pricing/comparison.html‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
{{- $hubBrand := dict "logo" "/img/zero-knowledge-bot.svg" "logoAspect" "aspect-988/877" "brandColor" "text-hub" }}
33
{{- $plans := slice
44
(merge $cryptomatorBrand (dict "dataKey" "Cryptomator" "brand" "Cryptomator" "titleKey" "pricing_individual_title" "priceKey" "pricing_free" "priceDescriptionKey" "pricing_individual_price_description" "href" "/downloads/" "ctaKey" "pricing_individual_cta" "event" "pricing-compare-individual-cta"))
5-
(merge $hubBrand (dict "dataKey" "Community" "brand" "Cryptomator Hub" "titleKey" "pricing_hub_community_title" "priceKey" "pricing_free" "priceDescriptionKey" "pricing_hub_community_price_description" "href" "/hub/self-hosted/" "ctaKey" "pricing_hub_self_hosted_cta" "event" "pricing-compare-hub-community-self-hosted-cta"))
5+
(merge $hubBrand (dict "dataKey" "Community" "brand" "Cryptomator Hub" "titleKey" "pricing_hub_community_title" "priceKey" "pricing_free" "priceDescriptionKey" "pricing_hub_community_price_description" "href" "/hub/self-hosted/" "ctaKey" "pricing_compare_hub_self_hosted_cta" "event" "pricing-compare-hub-community-self-hosted-cta"))
66
(merge $hubBrand (dict "dataKey" "Standard" "brand" "Cryptomator Hub" "titleKey" "pricing_hub_standard_title" "priceDescriptionKey" "pricing_hub_standard_price_description"))
77
(merge $hubBrand (dict "dataKey" "Enterprise" "brand" "Cryptomator Hub" "titleKey" "pricing_hub_enterprise_title" "priceKey" "pricing_hub_enterprise_price" "priceDescriptionKey" "pricing_hub_enterprise_price_description" "href" "/contact-sales/" "ctaKey" "pricing_hub_enterprise_cta" "event" "pricing-compare-hub-enterprise-cta"))
88
}}
@@ -31,7 +31,7 @@ <h2 id="pricing-comparison-title" class="font-h2 mb-3 text-balance">{{ i18n "pri
3131
{{- range $plans }}
3232
<span x-show="{{ $side }} === '{{ .dataKey }}'">{{ i18n .titleKey $ }}</span>
3333
{{- end }}
34-
<i class="fa-solid fa-chevron-down shrink-0 text-hub" aria-hidden="true"></i>
34+
<i class="fa-solid fa-chevron-down shrink-0 text-hub" :class="isDropdownOpen && 'rotate-180'" aria-hidden="true"></i>
3535
</button>
3636
<ul id="compare-{{ $side }}-options" x-ref="options" x-show="isDropdownOpen" x-cloak role="menu" aria-labelledby="compare-{{ $side }}" @keydown.down.prevent="$focus.wrap().next()" @keydown.up.prevent="$focus.wrap().previous()" @keydown.home.prevent="$focus.first()" @keydown.end.prevent="$focus.last()" x-effect="if (isDropdownOpen) $nextTick(() => $el.scrollIntoView({ block: 'nearest' }))" class="absolute left-0 top-full z-20 mt-2 max-h-[calc(100dvh-var(--nav-height,48px)-10rem)] w-full overflow-y-auto rounded-sm border border-gray-200 bg-white py-1 shadow-md">
3737
{{- range $plans }}

0 commit comments

Comments
 (0)