Skip to content

Commit ef95b70

Browse files
committed
Add a plan comparison table to the pricing page
1 parent eefe39a commit ef95b70

8 files changed

Lines changed: 364 additions & 11 deletions

File tree

‎assets/css/custom.css‎

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,12 @@ ul.list-primary li::marker {
259259
@apply rounded-sm shadow-sm bg-white;
260260
}
261261

262+
/* The container's overflow-x-clip leaves the y axis visible, so it cannot clip
263+
the opaque corner cells to its own radius — they round themselves. */
264+
.compare-th {
265+
@apply sticky top-[var(--nav-height,48px)] z-10 align-bottom border-b border-gray-200 first:rounded-tl-sm last:rounded-tr-sm;
266+
}
267+
262268
.input-box {
263269
@apply rounded-sm border border-gray-300 focus:ring-0 focus:border-secondary px-3 py-2;
264270
}
@@ -317,9 +323,9 @@ textarea:read-only {
317323
left: 50%;
318324
}
319325

320-
/* offsetting anchor targets to adjust for fixed navbar; the offset grows when the
321-
nav banner strip (.nav-promo-strip) is rendered, detected via :has() below;
322-
tooltips carry an id only for aria-describedby, not as scroll anchors */
326+
/* offsetting anchor targets to adjust for fixed navbar; the offset grows with the
327+
nav banner strip, see the :has() rule below; tooltips carry an id only for
328+
aria-describedby, not as scroll anchors */
323329
[id]:not([role="tooltip"])::before {
324330
content: '';
325331
display: block;
@@ -328,6 +334,9 @@ textarea:read-only {
328334
visibility: hidden;
329335
}
330336

331-
body:has(.nav-promo-strip) {
337+
/* The webinar strip stays in the DOM when Alpine hides it, so the marker class —
338+
not its presence — decides whether the nav is one strip taller. */
339+
body:has(.nav-promo-strip:not(.nav-promo-strip-collapsed)) {
332340
--anchor-offset: 138px;
341+
--nav-height: 72px;
333342
}

‎assets/css/theme.css‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@
114114
--color-secondary: #008a7b;
115115
--color-tertiary: #005e71;
116116
--color-hub: #354960;
117+
--color-hub-l2: #ebedef;
117118
--color-dark: #1e2b33;
118119

119120
--font-*: initial;

‎data/pricing_comparison.yaml‎

Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
# Shared across languages: a plan capability is a product fact, not a
2+
# translation. Booleans render as a check or a dash, numbers render as they are,
3+
# and every other cell is an i18n key.
4+
- SectionKey: "pricing_compare_section_basics"
5+
Rows:
6+
- LabelKey: "pricing_compare_seats"
7+
Cryptomator: 1
8+
Community: 5
9+
Standard: "pricing_compare_unlimited"
10+
Enterprise: "pricing_compare_unlimited"
11+
- LabelKey: "pricing_compare_unlimited_vaults"
12+
Cryptomator: true
13+
Community: true
14+
Standard: true
15+
Enterprise: true
16+
- LabelKey: "pricing_compare_any_cloud"
17+
TooltipKey: "pricing_individual_benefit_2_tooltip"
18+
Cryptomator: true
19+
Community: true
20+
Standard: true
21+
Enterprise: true
22+
- LabelKey: "pricing_compare_desktop_access"
23+
Cryptomator: true
24+
Community: true
25+
Standard: true
26+
Enterprise: true
27+
- SectionKey: "pricing_compare_section_collaboration"
28+
Rows:
29+
- LabelKey: "pricing_compare_user_management"
30+
Cryptomator: false
31+
Community: true
32+
Standard: true
33+
Enterprise: true
34+
- LabelKey: "pricing_compare_key_management"
35+
Cryptomator: false
36+
Community: true
37+
Standard: true
38+
Enterprise: true
39+
- LabelKey: "pricing_compare_mobile_access"
40+
Cryptomator: "pricing_compare_one_time_purchase"
41+
Community: "pricing_compare_one_time_purchase"
42+
Standard: true
43+
Enterprise: true
44+
- SectionKey: "pricing_compare_section_hosting"
45+
Rows:
46+
- LabelKey: "pricing_compare_self_hosted"
47+
Cryptomator: false
48+
Community: true
49+
Standard: true
50+
Enterprise: true
51+
- LabelKey: "pricing_compare_managed_hosting"
52+
TooltipKey: "pricing_compare_managed_hosting_tooltip"
53+
Cryptomator: false
54+
Community: false
55+
Standard: true
56+
Enterprise: true
57+
- SectionKey: "pricing_compare_section_security"
58+
Rows:
59+
- LabelKey: "pricing_compare_audit_logs"
60+
Cryptomator: false
61+
Community: false
62+
Standard: true
63+
Enterprise: true
64+
- LabelKey: "pricing_compare_emergency_access"
65+
Cryptomator: false
66+
Community: false
67+
Standard: false
68+
Enterprise: "pricing_compare_coming_soon"
69+
- SectionKey: "pricing_compare_section_support"
70+
Rows:
71+
- LabelKey: "pricing_compare_community_support"
72+
Cryptomator: true
73+
Community: true
74+
Standard: true
75+
Enterprise: true
76+
- LabelKey: "pricing_compare_email_support"
77+
Cryptomator: false
78+
Community: false
79+
Standard: true
80+
Enterprise: "pricing_compare_priority"
81+
- LabelKey: "pricing_compare_expert_training"
82+
Cryptomator: false
83+
Community: false
84+
Standard: false
85+
Enterprise: true
86+
- LabelKey: "pricing_compare_account_manager"
87+
Cryptomator: false
88+
Community: false
89+
Standard: false
90+
Enterprise: true

‎i18n/de.yaml‎

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1124,6 +1124,8 @@
11241124
translation: "Community"
11251125
- id: pricing_hub_community_subtitle
11261126
translation: "Kostenlos und Open Source für kleine Teams. Auf eigener Infrastruktur deployen mit voller Kontrolle über die Daten."
1127+
- id: pricing_hub_community_price_description
1128+
translation: "Self-Hosted"
11271129
- id: pricing_hub_community_benefit_1
11281130
translation: "Inklusive 5 Sitze"
11291131
- id: pricing_hub_community_benefit_2
@@ -1171,6 +1173,69 @@
11711173
- id: pricing_hub_enterprise_benefit_5
11721174
translation: "Vorrangiger E-Mail-Support"
11731175

1176+
- id: pricing_compare_title
1177+
translation: "Alle Funktionen im Vergleich"
1178+
- id: pricing_compare_subtitle
1179+
translation: "Jeder Plan enthält alles aus den vorherigen Plänen."
1180+
- id: more_information
1181+
translation: "Weitere Informationen"
1182+
- id: pricing_compare_features
1183+
translation: "Funktionen"
1184+
- id: pricing_compare_included
1185+
translation: "Enthalten"
1186+
- id: pricing_compare_not_included
1187+
translation: "Nicht enthalten"
1188+
- id: pricing_compare_managed_hosting_tooltip
1189+
translation: "Gewartet und aktualisiert von unserem Team in einem ISO/IEC 27001:2022-zertifizierten Rechenzentrum in der EU."
1190+
- id: pricing_compare_section_basics
1191+
translation: "Grundlagen"
1192+
- id: pricing_compare_section_collaboration
1193+
translation: "Teamarbeit"
1194+
- id: pricing_compare_section_hosting
1195+
translation: "Hosting"
1196+
- id: pricing_compare_section_security
1197+
translation: "Sicherheit & Compliance"
1198+
- id: pricing_compare_section_support
1199+
translation: "Support"
1200+
- id: pricing_compare_seats
1201+
translation: "Sitze"
1202+
- id: pricing_compare_unlimited_vaults
1203+
translation: "Unbegrenzte Tresore"
1204+
- id: pricing_compare_any_cloud
1205+
translation: "Kompatibel mit jedem Cloud-Speicher"
1206+
- id: pricing_compare_desktop_access
1207+
translation: "Voller Zugriff über Desktop-App"
1208+
- id: pricing_compare_user_management
1209+
translation: "Benutzer- und Gruppenverwaltung"
1210+
- id: pricing_compare_key_management
1211+
translation: "Zero-Knowledge-Schlüsselverwaltung"
1212+
- id: pricing_compare_mobile_access
1213+
translation: "Voller Zugriff über Mobile-Apps für alle Nutzer"
1214+
- id: pricing_compare_self_hosted
1215+
translation: "Self-Hosted-Deployment"
1216+
- id: pricing_compare_managed_hosting
1217+
translation: "Managed Hosting verfügbar"
1218+
- id: pricing_compare_audit_logs
1219+
translation: "Audit-Logs"
1220+
- id: pricing_compare_emergency_access
1221+
translation: "Notfallzugriff"
1222+
- id: pricing_compare_community_support
1223+
translation: "Community-Support"
1224+
- id: pricing_compare_email_support
1225+
translation: "E-Mail-Support"
1226+
- id: pricing_compare_expert_training
1227+
translation: "Beratung und Unterstützung durch Experten"
1228+
- id: pricing_compare_account_manager
1229+
translation: "Dedizierter Kundenbetreuer"
1230+
- id: pricing_compare_unlimited
1231+
translation: "Unbegrenzt"
1232+
- id: pricing_compare_one_time_purchase
1233+
translation: "Einmalkauf"
1234+
- id: pricing_compare_coming_soon
1235+
translation: "Bald verfügbar"
1236+
- id: pricing_compare_priority
1237+
translation: "Vorrangig"
1238+
11741239
- id: pricing_support_us_title
11751240
translation: "Möchtest du unser Open-Source-Projekt unterstützen?"
11761241
- id: pricing_support_us_description

‎i18n/en.yaml‎

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1125,6 +1125,8 @@
11251125
translation: "Community"
11261126
- id: pricing_hub_community_subtitle
11271127
translation: "Free and open source for small teams. Deploy on your own infrastructure with full control over your data."
1128+
- id: pricing_hub_community_price_description
1129+
translation: "self-hosted"
11281130
- id: pricing_hub_community_benefit_1
11291131
translation: "Includes 5 seats"
11301132
- id: pricing_hub_community_benefit_2
@@ -1172,6 +1174,69 @@
11721174
- id: pricing_hub_enterprise_benefit_5
11731175
translation: "Priority email support"
11741176

1177+
- id: pricing_compare_title
1178+
translation: "Compare All Features"
1179+
- id: pricing_compare_subtitle
1180+
translation: "Every plan includes everything from the plans before it."
1181+
- id: more_information
1182+
translation: "More information"
1183+
- id: pricing_compare_features
1184+
translation: "Features"
1185+
- id: pricing_compare_included
1186+
translation: "Included"
1187+
- id: pricing_compare_not_included
1188+
translation: "Not included"
1189+
- id: pricing_compare_managed_hosting_tooltip
1190+
translation: "Maintained and updated by our team in an ISO/IEC 27001:2022 certified data center in the EU."
1191+
- id: pricing_compare_section_basics
1192+
translation: "Basics"
1193+
- id: pricing_compare_section_collaboration
1194+
translation: "Team Collaboration"
1195+
- id: pricing_compare_section_hosting
1196+
translation: "Hosting"
1197+
- id: pricing_compare_section_security
1198+
translation: "Security & Compliance"
1199+
- id: pricing_compare_section_support
1200+
translation: "Support"
1201+
- id: pricing_compare_seats
1202+
translation: "Seats"
1203+
- id: pricing_compare_unlimited_vaults
1204+
translation: "Unlimited vaults"
1205+
- id: pricing_compare_any_cloud
1206+
translation: "Works with any cloud storage"
1207+
- id: pricing_compare_desktop_access
1208+
translation: "Full access via Desktop app"
1209+
- id: pricing_compare_user_management
1210+
translation: "User and group management"
1211+
- id: pricing_compare_key_management
1212+
translation: "Zero-knowledge key management"
1213+
- id: pricing_compare_mobile_access
1214+
translation: "Full access via Mobile apps for all users"
1215+
- id: pricing_compare_self_hosted
1216+
translation: "Self-hosted deployment"
1217+
- id: pricing_compare_managed_hosting
1218+
translation: "Managed hosting available"
1219+
- id: pricing_compare_audit_logs
1220+
translation: "Audit logs"
1221+
- id: pricing_compare_emergency_access
1222+
translation: "Emergency Access"
1223+
- id: pricing_compare_community_support
1224+
translation: "Community support"
1225+
- id: pricing_compare_email_support
1226+
translation: "Email support"
1227+
- id: pricing_compare_expert_training
1228+
translation: "Expert training and assistance"
1229+
- id: pricing_compare_account_manager
1230+
translation: "Dedicated account manager"
1231+
- id: pricing_compare_unlimited
1232+
translation: "Unlimited"
1233+
- id: pricing_compare_one_time_purchase
1234+
translation: "One-time purchase"
1235+
- id: pricing_compare_coming_soon
1236+
translation: "Coming Soon"
1237+
- id: pricing_compare_priority
1238+
translation: "Priority"
1239+
11751240
- id: pricing_support_us_title
11761241
translation: "Want to support our open-source project?"
11771242
- id: pricing_support_us_description

‎layouts/partials/info-tooltip.html‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{{- /* Context:
2+
id — must be unique per page
3+
content — already-translated body, may contain markup
4+
context — page context for i18n */ -}}
5+
<div class="has-tooltip">
6+
<i class="fa-solid fa-info-circle text-gray-600" tabindex="0" role="img" aria-label="{{ i18n "more_information" .context }}" aria-describedby="{{ .id }}"></i>
7+
<div id="{{ .id }}" role="tooltip" class="tooltip tooltip-center rounded-sm shadow-md bg-white text-xs w-40 p-2">{{ .content | safeHTML }}</div>
8+
</div>

‎layouts/partials/nav.html‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
</div>
1212
{{- else if .Scratch.Get "webinarBannerActive" -}}
1313
{{- $webinarPath := printf "%s/webinar/" .Site.LanguagePrefix -}}
14-
<div class="nav-promo-strip w-full bg-primary text-center text-sm text-white p-0.5" x-show="webinar.state !== 'none'">
14+
{{- /* x-show keeps the strip in the DOM, so mark it collapsed for the :has() nav-offset rule in custom.css. */ -}}
15+
<div class="nav-promo-strip w-full bg-primary text-center text-sm text-white p-0.5" x-show="webinar.state !== 'none'" :class="webinar.state === 'none' && 'nav-promo-strip-collapsed'">
1516
<p>
1617
<span x-show="webinar.state !== 'upcoming' && webinar.state !== 'live'">{{ i18n "webinar_banner" | safeHTML }}</span>
1718
<span x-show="webinar.state === 'upcoming'" x-cloak>

0 commit comments

Comments
 (0)