Skip to content

Commit 0207dfa

Browse files
committed
Move the Hub hero onto the dark sky shared with for-individuals, with a dark nav, light diagram, and primary CTA
1 parent 20e246c commit 0207dfa

10 files changed

Lines changed: 47 additions & 45 deletions

File tree

‎README.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ Using WebP (for smaller images) or AVIF (for >80 kiB due to larger overhead) may
3939
* `brew install libavif` (see [GitHub Project Page](https://github.com/AOMediaCodec/libavif?tab=readme-ov-file#installation) for other installation methods)
4040
* Example (lossless): `avifenc -l input.png output.avif`
4141
* Example (lossy): `avifenc --qcolor 70 --qalpha 100 --depth 8 input.png output.avif`
42+
* Example (lossy, mostly transparent image): `avifenc --qcolor 60 --qalpha 50 --depth 10 -s 0 input.png output.avif`
43+
* Alpha is coded separately. For an image with large transparent areas, `--qalpha 100` can be most of the file, and a lower `--qalpha` (around 50) shrinks it several times over with no visible difference. Speed `-s 0` is slow but gives the smallest file.
4244
* `brew install libwebm`
4345
* Example (lossless): `cwebp -preset drawing -lossless -z 6 -metadata all input.png -o output.webp`
4446
* Example (lossy): `cwebp -preset drawing -q 90 -alpha_q 100 -metadata all input.png -o output.webp`

‎assets/css/custom.css‎

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,6 @@
44
background-size: auto 100%;
55
}
66

7-
.header-bg-hub {
8-
background-image: url(/img/hub/header-clouds.png), url(/img/home/header-background.avif), linear-gradient(to bottom, #ffffff 0%, #eef3f7 55%, #dce8ee 100%);
9-
background-size: auto 240px, auto 620px, 100% 100%;
10-
background-repeat: repeat-x;
11-
background-position: 50% 70px, bottom, center;
12-
}
13-
147
/* Two stacked icons per slot; `.is-locked` on the .finder-hero root, set by
158
script, picks the visible face. */
169
.finder-swap-icon {
@@ -59,18 +52,21 @@
5952
place-items: center;
6053
}
6154

55+
/* Every delay is shifted by -0.48s, the length of the 4% fade-in, so the first
56+
child is already opaque on load instead of fading in. */
6257
.idp-swap > * {
6358
grid-area: 1 / 1;
6459
opacity: 0;
6560
animation: idp-cycle 12s infinite backwards;
61+
animation-delay: -0.48s;
6662
}
6763

6864
.idp-swap > :nth-child(2) {
69-
animation-delay: 4s;
65+
animation-delay: 3.52s;
7066
}
7167

7268
.idp-swap > :nth-child(3) {
73-
animation-delay: 8s;
69+
animation-delay: 7.52s;
7470
}
7571

7672
@keyframes idp-cycle {

‎content/for-teams.de.html‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,7 @@
22
title: "Cryptomator Hub"
33
type: for-teams
44
hubNav: true
5+
darkNav: true
6+
flushHero: true
57
aliases: ["/hub"]
68
---

‎content/for-teams.en.html‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,7 @@
22
title: "Cryptomator Hub"
33
type: for-teams
44
hubNav: true
5+
darkNav: true
6+
flushHero: true
57
aliases: ["/hub"]
68
---

‎layouts/for-individuals/single.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
{{ end }}
1010
{{ define "main" }}
1111
{{- /* baseof emits no padding for flush heroes, so the hero self-clears the fixed nav + banners. */ -}}
12-
<header {{ partial "banner-padding.html" (dict "context" . "classes" "header-bg bg-dark bg-center bg-repeat-x relative" "base" "pt-16 md:pt-20") }}>
12+
<header {{ partial "banner-padding.html" (dict "context" . "classes" "header-bg bg-dark bg-center bg-repeat-x relative" "base" "pt-16") }}>
1313
<div class="container flex flex-col items-center text-center text-white pt-6 md:pt-8">
1414
{{ if .Site.Params.paddleDesktopSalePriceId }}
1515
<div class="px-4 py-1 rounded-full text-xs lg:text-sm font-medium bg-red-600 text-white mb-6">

‎layouts/for-teams/single.html‎

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,52 @@
11
{{ define "preloads" }}
22
<link rel="prefetch" href="{{ .Site.LanguagePrefix }}/hub/managed/">
33
<link rel="prefetch" href="{{ .Site.LanguagePrefix }}/hub/self-hosted/">
4-
<link rel="preload" fetchpriority="high" as="image" href="/img/hub/header-clouds.png" type="image/png">
54
<link rel="preload" fetchpriority="high" as="image" href="/img/home/header-background.avif" type="image/avif">
65
{{ partial "altcha-css.html" . }}
76
{{ end }}
87
{{ define "main" }}
9-
<div class="header-bg-hub relative overflow-x-clip pb-24 md:pb-32">
10-
<header class="container flex flex-col items-center text-center pt-10 md:pt-12">
11-
<h1 class="font-headline font-medium text-4xl md:text-5xl leading-tight tracking-tight text-balance text-gray-800 mb-5">{{ i18n "hub_header_title" . | safeHTML }}</h1>
12-
<p class="text-lg leading-relaxed text-balance text-gray-600 max-w-2xl mb-6">{{ i18n "hub_header_description" . | safeHTML }}</p>
8+
{{- /* baseof emits no padding for flush heroes, so the hero self-clears the fixed nav + banners. */ -}}
9+
<div {{ partial "banner-padding.html" (dict "context" . "classes" "header-bg bg-dark bg-center bg-repeat-x relative overflow-x-clip pb-24 md:pb-32" "base" "pt-16") }}>
10+
<header class="container flex flex-col items-center text-center text-white pt-6 md:pt-8">
11+
<h1 class="font-headline font-medium text-4xl md:text-5xl leading-tight tracking-tight text-balance mb-5">{{ i18n "hub_header_title" . | safeHTML }}</h1>
12+
<p class="text-lg leading-relaxed text-balance text-gray-300 max-w-2xl mb-6">{{ i18n "hub_header_description" . | safeHTML }}</p>
1313
<div class="flex flex-col md:flex-row items-center gap-4 md:gap-6 mb-4">
14-
<a href="{{ .Site.LanguagePrefix }}/hub/managed/" role="button" class="btn btn-hub text-lg min-w-[16rem] py-3" data-umami-event="hub-header-managed-cta">{{ i18n "hub_header_managed_cta" . }}</a>
15-
<a href="#introduction" class="group inline-flex items-center gap-1.5 text-sm text-gray-600 no-underline hover:text-hub" data-umami-event="hub-header-how-it-works">
14+
<a href="{{ .Site.LanguagePrefix }}/hub/managed/" role="button" class="btn btn-primary text-lg min-w-[16rem] py-3" data-umami-event="hub-header-managed-cta">{{ i18n "hub_header_managed_cta" . }}</a>
15+
<a href="#introduction" class="group inline-flex items-center gap-1.5 text-sm text-gray-300 no-underline hover:text-white" data-umami-event="hub-header-how-it-works">
1616
{{ i18n "hub_header_link" . }}
1717
<i class="fa-solid fa-arrow-right text-xs group-hover:translate-x-1 transition-transform duration-200" aria-hidden="true"></i>
1818
</a>
1919
</div>
20+
<p class="text-sm text-gray-400">{{ i18n "hub_header_managed_cta_description" . | safeHTML }}</p>
2021

2122
<div class="relative mt-8 mb-6 h-[200px] md:h-[368px]">
2223
<div class="absolute left-1/2 top-0 -translate-x-1/2 w-[720px] h-[400px] origin-top scale-[0.5] md:scale-100">
23-
<div class="absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 w-[640px] h-[360px] bg-[radial-gradient(ellipse_at_center,color-mix(in_srgb,var(--color-hub)_7%,transparent),transparent_70%)] pointer-events-none" aria-hidden="true"></div>
2424
<svg class="absolute inset-0 w-full h-full pointer-events-none" viewBox="0 0 720 400" aria-hidden="true">
25-
<path d="M360 175 C330 105 288 55 248 40" class="stroke-gray-400" fill="none" stroke-width="1.5"/>
26-
<path d="M360 175 C390 105 432 55 472 40" class="stroke-gray-400" fill="none" stroke-width="1.5"/>
27-
<path d="M360 175 C280 168 175 140 112 118" class="stroke-gray-400" fill="none" stroke-width="1.5"/>
28-
<path d="M360 175 C420 195 470 235 492 272" class="stroke-gray-400" fill="none" stroke-width="1.5"/>
29-
<path d="M360 168 C430 160 490 158 553 160" class="stroke-gray-400" fill="none" stroke-width="2" stroke-dasharray="0.1 7" stroke-linecap="round" opacity="0.8"/>
25+
<path d="M360 175 C330 105 288 55 248 40" class="stroke-white/60" fill="none" stroke-width="1.5"/>
26+
<path d="M360 175 C390 105 432 55 472 40" class="stroke-white/60" fill="none" stroke-width="1.5"/>
27+
<path d="M360 175 C280 168 175 140 112 118" class="stroke-white/60" fill="none" stroke-width="1.5"/>
28+
<path d="M360 175 C420 195 470 235 492 272" class="stroke-white/60" fill="none" stroke-width="1.5"/>
29+
<path d="M360 168 C430 160 490 158 553 160" class="stroke-white/60" fill="none" stroke-width="2" stroke-dasharray="0.1 7" stroke-linecap="round" opacity="0.8"/>
3030
<path d="M332 302 C305 300 275 296 246 292" fill="none" stroke="url(#severed-ad)" stroke-width="2" stroke-dasharray="0.1 7" stroke-linecap="round"/>
31-
<path d="M388 302 C415 300 445 296 474 292" class="stroke-gray-400" fill="none" stroke-width="2" stroke-dasharray="0.1 7" stroke-linecap="round" opacity="0.8"/>
32-
<circle class="ad-pulse" r="2.5" fill="#8fa3b8">
31+
<path d="M388 302 C415 300 445 296 474 292" class="stroke-white/60" fill="none" stroke-width="2" stroke-dasharray="0.1 7" stroke-linecap="round" opacity="0.8"/>
32+
{{- /* opacity="0" hides the dot until its motion animation places it; without it the dot flashes at the SVG origin on load. */ -}}
33+
<circle class="ad-pulse fill-white/70" r="2.5" opacity="0">
3334
<animateMotion dur="3.5s" repeatCount="indefinite" path="M388 302 C415 300 445 296 474 292"/>
3435
<animate attributeName="opacity" values="0;1;1;0" keyTimes="0;0.15;0.8;1" dur="3.5s" repeatCount="indefinite"/>
3536
</circle>
3637
<defs>
37-
{{- /* Tailwind has no stop-color utility, so the stops take the gray via currentColor. */ -}}
38-
<linearGradient id="severed-ad" class="text-gray-400" gradientUnits="userSpaceOnUse" x1="332" y1="302" x2="246" y2="292">
38+
{{- /* Tailwind has no stop-color utility, so the stops take the color via currentColor. */ -}}
39+
<linearGradient id="severed-ad" class="text-white" gradientUnits="userSpaceOnUse" x1="332" y1="302" x2="246" y2="292">
3940
<stop offset="0" stop-color="currentColor" stop-opacity="0.8"/>
4041
<stop offset="0.85" stop-color="currentColor" stop-opacity="0"/>
4142
</linearGradient>
42-
<linearGradient id="severed" gradientUnits="userSpaceOnUse" x1="360" y1="175" x2="238" y2="270">
43-
<stop offset="0" stop-color="#b3bfce" stop-opacity="1"/>
44-
<stop offset="0.85" stop-color="#b3bfce" stop-opacity="0"/>
43+
<linearGradient id="severed" class="text-white" gradientUnits="userSpaceOnUse" x1="360" y1="175" x2="238" y2="270">
44+
<stop offset="0" stop-color="currentColor" stop-opacity="0.6"/>
45+
<stop offset="0.85" stop-color="currentColor" stop-opacity="0"/>
4546
</linearGradient>
4647
</defs>
4748
<path d="M360 175 C305 195 258 232 238 270" fill="none" stroke="url(#severed)" stroke-width="1.5" stroke-dasharray="4 5"/>
48-
<path d="M270 222 L278 230 M278 222 L270 230" stroke="#9ca3af" stroke-width="1.5" stroke-linecap="round"/>
49+
<path d="M270 222 L278 230 M278 222 L270 230" class="stroke-white/60" stroke-width="1.5" stroke-linecap="round"/>
4950
</svg>
5051

5152
<div class="absolute left-[360px] top-[175px] -translate-x-1/2 -translate-y-1/2 flex flex-col items-center z-10">
@@ -79,27 +80,27 @@ <h1 class="font-headline font-medium text-4xl md:text-5xl leading-tight tracking
7980
<img src="/img/hub/avatar-1.svg" class="w-14 h-14 rounded-full ring-4 ring-white shadow-md" alt=""/>
8081
<span class="absolute -bottom-0.5 -right-0.5 flex h-5 w-5 items-center justify-center rounded-full bg-primary text-white text-[10px] ring-2 ring-white"><i class="fa-solid fa-check" aria-hidden="true"></i></span>
8182
</span>
82-
<span class="mt-1.5 text-xs font-medium text-gray-700 leading-tight">Anna</span>
83-
<span class="text-[10px] text-gray-500 leading-tight">{{ i18n "hub_hero_row_owner_desc" }}</span>
84-
<span class="mt-1 rounded border border-hub/40 bg-hub/5 px-1 text-[8px] uppercase tracking-wide text-hub">{{ i18n "hub_hero_tag_owner" }}</span>
83+
<span class="mt-1.5 text-xs font-medium text-white leading-tight">Anna</span>
84+
<span class="text-[10px] text-gray-300 leading-tight">{{ i18n "hub_hero_row_owner_desc" }}</span>
85+
<span class="mt-1 rounded border border-white/40 bg-white/10 px-1 text-[8px] uppercase tracking-wide text-white">{{ i18n "hub_hero_tag_owner" }}</span>
8586
</div>
8687

8788
<div class="absolute left-[500px] top-[55px] -translate-x-1/2 -translate-y-1/2 flex flex-col items-center z-10 w-32 text-center">
8889
<span class="relative">
8990
<img src="/img/hub/avatar-3.svg" class="w-14 h-14 rounded-full ring-4 ring-white shadow-md" alt=""/>
9091
<span class="absolute -bottom-0.5 -right-0.5 flex h-5 w-5 items-center justify-center rounded-full bg-primary text-white text-[10px] ring-2 ring-white"><i class="fa-solid fa-check" aria-hidden="true"></i></span>
9192
</span>
92-
<span class="mt-1.5 text-xs font-medium text-gray-700 leading-tight">Lena</span>
93-
<span class="text-[10px] text-gray-500 leading-tight">{{ i18n "hub_hero_row_external_desc" }}</span>
94-
<span class="mt-1 rounded border border-hub/40 bg-hub/5 px-1 text-[8px] uppercase tracking-wide text-hub">{{ i18n "hub_hero_tag_external" }}</span>
93+
<span class="mt-1.5 text-xs font-medium text-white leading-tight">Lena</span>
94+
<span class="text-[10px] text-gray-300 leading-tight">{{ i18n "hub_hero_row_external_desc" }}</span>
95+
<span class="mt-1 rounded border border-white/40 bg-white/10 px-1 text-[8px] uppercase tracking-wide text-white">{{ i18n "hub_hero_tag_external" }}</span>
9596
</div>
9697

9798
<div class="absolute left-[85px] top-[160px] -translate-x-1/2 -translate-y-1/2 flex flex-col items-center z-10 w-28 text-center">
9899
<span class="relative">
99100
<img src="/img/hub/avatar-2.svg" class="w-14 h-14 rounded-full ring-4 ring-white shadow-md" alt=""/>
100101
<span class="absolute -bottom-0.5 -right-0.5 flex h-5 w-5 items-center justify-center rounded-full bg-primary text-white text-[10px] ring-2 ring-white"><i class="fa-solid fa-check" aria-hidden="true"></i></span>
101102
</span>
102-
<span class="mt-1.5 text-xs font-medium text-gray-700 leading-tight">Jonas</span>
103+
<span class="mt-1.5 text-xs font-medium text-white leading-tight">Jonas</span>
103104
<div class="relative mt-2 w-full rounded-lg bg-white shadow-sm ring-1 ring-gray-200 p-2.5 text-left">
104105
<span class="absolute -top-[5px] left-1/2 -translate-x-1/2 h-2.5 w-2.5 rotate-45 bg-white border-t border-l border-gray-200" aria-hidden="true"></span>
105106
<div class="flex items-center gap-1.5 mb-2 text-[9px] font-semibold uppercase tracking-wide text-gray-400"><i class="fa-solid fa-laptop" aria-hidden="true"></i>Jonas' {{ i18n "hub_hero_tile_devices" }}</div>
@@ -113,23 +114,22 @@ <h1 class="font-headline font-medium text-4xl md:text-5xl leading-tight tracking
113114
<span class="flex w-14 h-14 items-center justify-center rounded-full bg-[#ebedef] text-hub text-lg ring-4 ring-white shadow-md"><i class="fa-solid fa-users" aria-hidden="true"></i></span>
114115
<span class="absolute -bottom-0.5 -right-0.5 flex h-5 w-5 items-center justify-center rounded-full bg-primary text-white text-[10px] ring-2 ring-white"><i class="fa-solid fa-check" aria-hidden="true"></i></span>
115116
</span>
116-
<span class="mt-1.5 text-xs font-medium text-gray-700 leading-tight">{{ i18n "hub_hero_group_name" }}</span>
117-
<span class="text-[10px] text-gray-500 leading-tight">{{ i18n "hub_hero_group_subtitle" }}</span>
117+
<span class="mt-1.5 text-xs font-medium text-white leading-tight">{{ i18n "hub_hero_group_name" }}</span>
118+
<span class="text-[10px] text-gray-300 leading-tight">{{ i18n "hub_hero_group_subtitle" }}</span>
118119
</div>
119120

120121
<div class="absolute left-[360px] top-[320px] -translate-x-1/2 -translate-y-1/2 flex flex-col items-center z-10 w-44 text-center">
121-
<span class="absolute left-1/2 top-6 -translate-x-1/2 -translate-y-1/2 w-[220px] h-[130px] bg-[radial-gradient(ellipse_at_center,color-mix(in_srgb,var(--color-hub)_9%,transparent),transparent_70%)] pointer-events-none" aria-hidden="true"></span>
122122
<span class="flex w-14 h-14 items-center justify-center rounded-full bg-[#ebedef] text-hub text-lg ring-4 ring-white shadow-md"><i class="fa-solid fa-sitemap" aria-hidden="true"></i></span>
123-
<span class="mt-1.5 text-xs font-medium text-gray-700 leading-tight idp-swap"><span>Active Directory</span><span>Entra ID</span><span>Okta</span></span>
124-
<span class="text-[10px] text-gray-500 leading-tight">{{ i18n "hub_hero_ad_row_users" }} · {{ i18n "hub_hero_ad_row_groups" }}</span>
123+
<span class="mt-1.5 text-xs font-medium text-white leading-tight idp-swap"><span>Active Directory</span><span>Entra ID</span><span>Okta</span></span>
124+
<span class="text-[10px] text-gray-300 leading-tight">{{ i18n "hub_hero_ad_row_users" }} · {{ i18n "hub_hero_ad_row_groups" }}</span>
125125
</div>
126126

127127
<div class="absolute left-[215px] top-[310px] -translate-x-1/2 -translate-y-1/2 flex flex-col items-center z-10 w-36 text-center">
128128
<span class="relative">
129129
<img src="/img/hub/avatar-4.svg" class="w-14 h-14 rounded-full ring-4 ring-white shadow-md grayscale opacity-60" alt=""/>
130130
<span class="absolute -bottom-0.5 -right-0.5 flex h-5 w-5 items-center justify-center rounded-full bg-gray-400 text-white text-[10px] ring-2 ring-white"><i class="fa-solid fa-xmark" aria-hidden="true"></i></span>
131131
</span>
132-
<span class="mt-1.5 text-xs font-medium text-gray-400 leading-tight">Michael</span>
132+
<span class="mt-1.5 text-xs font-medium text-gray-300 leading-tight">Michael</span>
133133
<span class="text-[10px] text-gray-400 leading-tight">{{ i18n "hub_hero_node_revoked" }}</span>
134134
</div>
135135

‎layouts/partials/banner-padding.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
{{- $showAnniversaryBanner := .context.Scratch.Get "anniversaryBannerActive" -}}
1010
{{- $showThinStrip := or $showWebinarBanner $showSaleBanner -}}
1111
{{- $thinStrip := .thinStrip | default "pt-28 md:pt-28" -}}
12-
{{- $anniversary := .anniversary | default "pt-28 md:pt-28" -}}
12+
{{- $anniversary := .anniversary | default "pt-40 md:pt-32" -}}
1313
{{- $both := .both | default "pt-40 md:pt-40" -}}
1414
{{- $padding := .base -}}
1515
{{- if and $showThinStrip $showAnniversaryBanner -}}
-2.67 KB
Binary file not shown.
-292 Bytes
Loading

‎static/img/hub/header-clouds.png‎

-9.32 KB
Binary file not shown.

0 commit comments

Comments
 (0)