Skip to content

Commit 8f17bf4

Browse files
Merge pull request #180 from cryptomator/feature/hub-hero-bot-swap
Swap bots in hub hero card
2 parents 4acc4b3 + d6fd311 commit 8f17bf4

8 files changed

Lines changed: 70 additions & 71 deletions

File tree

‎assets/css/hero.css‎

Lines changed: 58 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -209,16 +209,14 @@
209209
white-space: nowrap;
210210
}
211211

212-
/* Logo: identical halo on both scenes; the wobble animation is assigned per
213-
scene (name + clock) next to each scene's other rules. */
212+
/* Logo: the scene's centre bot; the wobble animation is assigned per scene
213+
(name + clock) next to each scene's other rules. */
214214
.hero-scene-logo {
215215
position: absolute;
216216
top: 90px;
217217
left: 160px;
218218
width: 96px;
219219
height: 96px;
220-
border-radius: 50%;
221-
background: radial-gradient(circle, color-mix(in srgb, var(--color-primary) 14%, transparent) 0%, transparent 70%);
222220
transform: translate(-50%, -50%);
223221
display: flex;
224222
align-items: center;
@@ -324,10 +322,10 @@
324322
53%, 100% { transform: rotate(0deg); }
325323
}
326324

327-
/* Hub bot wobble — the same quick ±1.5° rock as the Cryptomator card (0.5%
328-
steps ≈ the cryp scene's 1% steps on its half-length 5s clock), twice per
329-
sequence: when the file lands (25%) and when the key lands (75%). */
330-
@keyframes hero-hub-logo-wobble {
325+
/* Cryptomator (top) wobble — the same quick ±1.5° rock as the Cryptomator
326+
card (0.5% steps ≈ the cryp scene's 1% steps on its half-length 5s clock),
327+
twice per sequence: when the file lands (25%) and when the key lands (75%). */
328+
@keyframes hero-hub-top-wobble {
331329
0%, 25% { transform: rotate(0deg); }
332330
25.5% { transform: rotate(-1.5deg); }
333331
26% { transform: rotate(1.5deg); }
@@ -341,9 +339,9 @@
341339
78%, 100% { transform: rotate(0deg); }
342340
}
343341

344-
/* Hub apex wobble — same rock, once per sequence, when the fingerprint
345-
reaches it (50%). */
346-
@keyframes hero-hub-apex-wobble {
342+
/* Hub bot (bottom) wobble — same rock, once per sequence, when the
343+
fingerprint reaches it (50%). */
344+
@keyframes hero-hub-bot-wobble {
347345
0%, 50% { transform: rotate(0deg); }
348346
50.5% { transform: rotate(-1.5deg); }
349347
51% { transform: rotate(1.5deg); }
@@ -353,41 +351,38 @@
353351
}
354352

355353
/* ───── Hub scene: a diamond/prism of the four nodes ─────
356-
Hub (top), Team (left), Cloud (right) and Cryptomator (bottom) form a
357-
diamond, keeping the same outer width as the Cryptomator card. Data flows
358-
along the lower V (Team → Cryptomator → Cloud); the Hub oversees from the
359-
apex, connected down the top edges and a center axis to all three, and
360-
issues the vault key down that axis to the bot. */
354+
Cryptomator (top), Team (left), Cloud (right) and the Hub bot (bottom)
355+
form a diamond, keeping the same outer width as the Cryptomator card. Data
356+
flows along the upper V (Team → Cryptomator → Cloud); the Hub oversees
357+
from the bottom, connected along the lower edges and the center axis, and
358+
issues the vault key up that axis to the Cryptomator bot. */
361359

362360
.hero-hub-anchor-team { top: 90px; left: 40px; }
363361
.hero-hub-anchor-cloud { top: 90px; left: 280px; }
364-
.hero-hub-anchor-hub { top: 30px; left: 160px; }
362+
.hero-hub-anchor-cryp { top: 30px; left: 160px; }
365363

366-
/* Hub is the subject of this card — its bot sits above the center at a slightly
367-
reduced size (the tight viewBox makes it read large) so it stays balanced
368-
within the scene, with a soft secondary glow + drop-shadow. */
364+
/* The Cryptomator bot sits above the center at a slightly reduced size so it
365+
stays balanced within the scene. */
369366
.hero-hub-anchor-img {
370367
width: 44px;
371368
height: 44px;
372369
object-fit: contain;
373-
filter:
374-
drop-shadow(0 3px 9px rgba(47, 72, 88, 0.30))
375-
drop-shadow(0 0 1px rgba(47, 72, 88, 0.35));
376370
transform-origin: center bottom;
377-
animation: hero-hub-apex-wobble var(--scene-cycle) ease-in-out infinite;
371+
animation: hero-hub-top-wobble var(--scene-cycle) ease-in-out infinite;
378372
}
379373

380-
/* Cryptomator sits at the bottom vertex of the diamond at full size, the same
381-
as the bot on the Cryptomator card (only the position differs). */
374+
/* Hub bot — bottom vertex of the diamond. */
382375
.hero-hub-scene .hero-scene-logo {
383376
top: 150px;
384377
width: 78px;
385378
height: 78px;
386379
}
387380

388381
.hero-hub-scene .hero-scene-logo-img {
389-
width: 52px;
390-
animation: hero-hub-logo-wobble var(--scene-cycle) ease-in-out infinite;
382+
/* 52px like the old unpadded asset would get, scaled up by the canvas's
383+
key-centering padding (988/887) so the drawn bot keeps its size. */
384+
width: 58px;
385+
animation: hero-hub-bot-wobble var(--scene-cycle) ease-in-out infinite;
391386
}
392387

393388
/* Idle breathing — the outer anchor icons scale gently, offset in time so the
@@ -402,33 +397,34 @@
402397
.hero-cryp-anchor-cloud .hero-scene-icon { animation-delay: -4s; }
403398

404399
/* Hub traveler — same shared scaffold as the Cryptomator card, mapped onto
405-
the lower V of the diamond: Team (40,90) → bot (160,150) → Cloud (280,90).
406-
Legs start and end exactly on the anchor centres, so the pops are hidden
407-
behind the discs/logos. */
400+
the upper V of the diamond: Team (40,90) → Cryptomator (160,30) → Cloud
401+
(280,90). Legs start and end exactly on the anchor centres, so the pops
402+
are hidden behind the discs/logos. */
408403
.hero-hub-traveler { animation: hero-hub-travel var(--scene-cycle) ease-in-out infinite; }
409404
.hero-hub-traveler-file { animation: hero-hub-file-arc var(--scene-cycle) ease-in-out infinite; }
410405
.hero-hub-traveler-vault { animation: hero-hub-vault-arc var(--scene-cycle) ease-in-out infinite; }
411406

412407
/* Sequential story — four back-to-back quarter legs, no pause: the container
413-
carries the file Team→bot (0–25%), HOLDS behind the bot through the
414-
fingerprint (25–50%) and key (50–75%) steps, then carries the vault
415-
bot→Cloud (75–100%). The loop's 100%→0% snap back to Team happens while
416-
both faces are invisible behind the Cloud disc / Team disc. */
408+
carries the file Team→Cryptomator (0–25%), HOLDS behind the Cryptomator
409+
logo through the fingerprint (25–50%) and key (50–75%) steps, then carries
410+
the vault Cryptomator→Cloud (75–100%). The loop's 100%→0% snap back to
411+
Team happens while both faces are invisible behind the Cloud disc / Team
412+
disc. */
417413
@keyframes hero-hub-travel {
418-
0% { transform: translate3d(0, 0, 0); } /* Team (40,90) — file sets off immediately */
419-
25%, 75% { transform: translate3d(120px, 60px, 0); } /* bot (160,150) — hold through fingerprint + key */
420-
100% { transform: translate3d(240px, 0, 0); } /* Cloud (280,90) — vault arrives, invisible snap-back */
414+
0% { transform: translate3d(0, 0, 0); } /* Team (40,90) — file sets off immediately */
415+
25%, 75% { transform: translate3d(120px, -60px, 0); } /* Cryptomator (160,30) — hold through fingerprint + key */
416+
100% { transform: translate3d(240px, 0, 0); } /* Cloud (280,90) — vault arrives, invisible snap-back */
421417
}
422418

423-
/* File face — visible from 0% on its Team→bot leg; pops away at 25% while
424-
hidden behind the bot (no fades). */
419+
/* File face — visible from 0% on its Team→Cryptomator leg; pops away at 25%
420+
while hidden behind the Cryptomator logo (no fades). */
425421
@keyframes hero-hub-file-arc {
426-
0%, 25% { opacity: 1; } /* pops in behind the Team disc, travels to the bot */
427-
25.01%, 100% { opacity: 0; } /* absorbed by the bot (encrypt) */
422+
0%, 25% { opacity: 1; } /* pops in behind the Team disc, travels to the Cryptomator logo */
423+
25.01%, 100% { opacity: 0; } /* absorbed by the Cryptomator bot (encrypt) */
428424
}
429425

430-
/* Vault face — pops in behind the bot at 75%, after the key has landed, and
431-
stays visible until the loop ends behind the Cloud disc. */
426+
/* Vault face — pops in behind the Cryptomator logo at 75%, after the key has
427+
landed, and stays visible until the loop ends behind the Cloud disc. */
432428
@keyframes hero-hub-vault-arc {
433429
0%, 75% { opacity: 0; } /* hidden through the file, fingerprint and key steps */
434430
75.01%, 100% { opacity: 1; } /* carries on to the cloud until the loop snaps */
@@ -453,34 +449,36 @@
453449
transition: opacity 0.3s ease;
454450
}
455451

456-
/* Hub key — the Hub issues the vault key down the centre axis to the
457-
Cryptomator bot on the third quarter leg (50–75%), after the fingerprint has
458-
reached the Hub and before the vault sets off. Pops in behind the Hub bot,
459-
pops away behind the Cryptomator bot. */
452+
/* Hub key — the Hub issues the vault key up the centre axis to the
453+
Cryptomator bot on the third quarter leg (50–75%), after the fingerprint
454+
has reached the Hub and before the vault sets off. Pops in behind the Hub
455+
bot, pops away behind the Cryptomator logo. */
460456
.hero-hub-key {
461-
top: 30px;
457+
top: 150px;
462458
left: 160px;
463459
width: 28px;
464460
height: 28px;
465461
margin-top: -14px;
466462
margin-left: -14px;
467-
animation: hero-hub-key-drop var(--scene-cycle) ease-in-out infinite;
463+
animation: hero-hub-key-rise var(--scene-cycle) ease-in-out infinite;
468464
}
469465

470-
@keyframes hero-hub-key-drop {
471-
/* Step 3: only AFTER the fingerprint reaches the Hub does the key drop
472-
Hub (160,30) -> bot (160,150), 50-75%. Constant size, single eased fall. */
466+
@keyframes hero-hub-key-rise {
467+
/* Step 3: only AFTER the fingerprint reaches the Hub does the key rise
468+
Hub (160,150) -> Cryptomator (160,30), 50-75%. Constant size, single
469+
eased climb. */
473470
0%, 50% { opacity: 0; transform: translate3d(0, 0, 0); }
474471
50.01% { opacity: 1; }
475-
75% { opacity: 1; transform: translate3d(0, 120px, 0); }
472+
75% { opacity: 1; transform: translate3d(0, -120px, 0); }
476473
75.01%, 100% { opacity: 0; transform: translate3d(0, 0, 0); }
477474
}
478475

479476
/* Auth request — per the Hub security docs the member authenticates against
480477
Hub, which then issues the key; Hub itself NEVER talks to the cloud storage
481478
(zero knowledge), so the Hub↔Cloud edge deliberately stays static. A small
482479
fingerprint runs Team → Hub along the mgmt edge on the second quarter leg
483-
(25–50%), between the file landing on the bot and the key drop. */
480+
(25–50%), between the file landing on the Cryptomator logo and the key
481+
rise. */
484482
.hero-hub-auth {
485483
top: 90px;
486484
left: 40px;
@@ -492,12 +490,13 @@
492490
}
493491

494492
@keyframes hero-hub-auth-run {
495-
/* Step 2: only AFTER the file reaches the bot does the fingerprint run
496-
Team (40,90) -> Hub (160,30), 25-50%. Pops in behind the Team disc, pops
497-
away behind the Hub bot. Constant size, single eased run. */
493+
/* Step 2: only AFTER the file reaches the Cryptomator logo does the
494+
fingerprint run Team (40,90) -> Hub (160,150), 25-50%. Pops in behind
495+
the Team disc, pops away behind the Hub bot. Constant size, single
496+
eased run. */
498497
0%, 25% { opacity: 0; transform: translate3d(0, 0, 0); }
499498
25.01% { opacity: 1; }
500-
50% { opacity: 1; transform: translate3d(120px, -60px, 0); }
499+
50% { opacity: 1; transform: translate3d(120px, 60px, 0); }
501500
50.01%, 100% { opacity: 0; transform: translate3d(0, 0, 0); }
502501
}
503502

‎layouts/downloads/list.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
</div>
3131
<div class="w-full md:w-2/3 lg:w-3/5">
3232
<div class="flex items-center mb-4">
33-
<img src="/img/zero-knowledge-bot.svg" class="h-7 aspect-square" alt="Logo"/>
33+
<img src="/img/zero-knowledge-bot.svg" class="h-7 aspect-988/877" alt="Logo"/>
3434
<span class="font-headline font-bold text-primary ml-2 pb-px">CRYPTOMATOR HUB</span>
3535
</div>
3636
<h2 class="font-h2 text-white mb-4">{{ i18n "hub_header_title" . | safeHTML }}</h2>

‎layouts/for-teams/single.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<div class="w-full md:w-2/3 lg:w-3/5">
1313
<div class="flex flex-wrap items-center gap-4 mb-4">
1414
<div class="flex items-center">
15-
<img src="/img/zero-knowledge-bot.svg" class="h-8 aspect-square" alt="Logo"/>
15+
<img src="/img/zero-knowledge-bot.svg" class="h-8 aspect-988/877" alt="Logo"/>
1616
<span class="font-headline font-bold text-primary ml-2 pb-px">CRYPTOMATOR HUB</span>
1717
</div>
1818
<div class="px-4 py-1 rounded-full text-xs lg:text-sm font-medium bg-red-600 text-white">

‎layouts/index.html‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,8 @@ <h2 class="text-primary">CRYPTOMATOR</h2>
120120
<circle cx="160" cy="150" r="25" class="anchor-backdrop"/>
121121
</svg>
122122

123-
<div class="hero-scene-anchor hero-hub-anchor-hub">
124-
<img src="/img/zero-knowledge-bot.svg" alt="" class="hero-hub-anchor-img"/>
123+
<div class="hero-scene-anchor hero-hub-anchor-cryp">
124+
<img src="/img/logo.svg" alt="" class="hero-hub-anchor-img"/>
125125
</div>
126126

127127
<div class="hero-scene-anchor hero-hub-anchor-team">
@@ -135,7 +135,7 @@ <h2 class="text-primary">CRYPTOMATOR</h2>
135135
</div>
136136

137137
<div class="hero-scene-logo">
138-
<img src="/img/logo.svg" alt="" class="hero-scene-logo-img"/>
138+
<img src="/img/zero-knowledge-bot.svg" alt="" class="hero-scene-logo-img"/>
139139
</div>
140140

141141
<div class="hero-hub-traveler" aria-hidden="true">
@@ -223,7 +223,7 @@ <h4 class="font-medium lg:text-lg leading-relaxed">
223223
<div class="flex justify-between items-center p-4 border-b border-tertiary2">
224224
<h3>
225225
<div class="flex items-center">
226-
<img src="/img/zero-knowledge-bot.svg" class="hidden md:block h-8 mr-2 aspect-887/877" alt="Logo"/>
226+
<img src="/img/zero-knowledge-bot.svg" class="hidden md:block h-8 mr-2 aspect-988/877" alt="Logo"/>
227227
<span class="font-headline font-bold text-tertiary2 pb-px">CRYPTOMATOR HUB</span>
228228
</div>
229229
</h3>

‎layouts/pricing/single.html‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ <h3>
162162
<div class="flex justify-between items-center p-4 border-b border-primary">
163163
<h3>
164164
<div class="flex items-center">
165-
<img src="/img/zero-knowledge-bot.svg" class="hidden md:block h-8 mr-2 aspect-square" alt="Logo"/>
165+
<img src="/img/zero-knowledge-bot.svg" class="hidden md:block h-8 mr-2 aspect-988/877" alt="Logo"/>
166166
<span class="font-headline font-bold text-primary pb-px">CRYPTOMATOR HUB</span>
167167
</div>
168168
</h3>
@@ -229,7 +229,7 @@ <h3>
229229
<div class="flex justify-between items-center p-4 border-b border-primary">
230230
<h3>
231231
<div class="flex items-center">
232-
<img src="/img/zero-knowledge-bot.svg" class="hidden md:block h-8 mr-2 aspect-square" alt="Logo"/>
232+
<img src="/img/zero-knowledge-bot.svg" class="hidden md:block h-8 mr-2 aspect-988/877" alt="Logo"/>
233233
<span class="font-headline font-bold text-primary pb-px">CRYPTOMATOR HUB</span>
234234
</div>
235235
</h3>
@@ -320,7 +320,7 @@ <h3>
320320
<div class="flex-1">
321321
<div class="flex items-center gap-3 mb-3">
322322
<div class="flex items-center">
323-
<img src="/img/zero-knowledge-bot.svg" class="h-8 mr-2 aspect-square" alt="Logo"/>
323+
<img src="/img/zero-knowledge-bot.svg" class="h-8 mr-2 aspect-988/877" alt="Logo"/>
324324
<span class="font-headline font-bold text-primary pb-px">CRYPTOMATOR HUB</span>
325325
</div>
326326
<div class="inline-flex px-4 py-1 rounded-full text-sm font-medium tracking-wide uppercase bg-primary-l2 text-dark">
@@ -398,7 +398,7 @@ <h3 class="flex items-center gap-3 mb-4">
398398
<div>
399399
<h3 class="flex items-center gap-3 mb-4">
400400
<div class="flex items-center">
401-
<img src="/img/zero-knowledge-bot.svg" class="hidden md:block h-8 mr-2 aspect-square" alt="Logo"/>
401+
<img src="/img/zero-knowledge-bot.svg" class="hidden md:block h-8 mr-2 aspect-988/877" alt="Logo"/>
402402
<span class="font-headline font-bold text-primary pb-px">CRYPTOMATOR HUB</span>
403403
</div>
404404
<div class="inline-flex px-4 py-1 rounded-full text-xs lg:text-sm font-medium tracking-wide uppercase bg-primary-l2 text-dark">

‎layouts/solutions/single.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<div class="max-w-4xl mx-auto">
55
<div class="flex flex-wrap items-center justify-center gap-4 mb-6">
66
<div class="flex items-center">
7-
<img src="/img/zero-knowledge-bot.svg" class="h-8 aspect-square" alt="Logo"/>
7+
<img src="/img/zero-knowledge-bot.svg" class="h-8 aspect-988/877" alt="Logo"/>
88
<span class="font-headline font-bold text-primary ml-2 pb-px">CRYPTOMATOR HUB</span>
99
</div>
1010
<span class="bg-primary text-white px-3 py-1 rounded-full text-sm font-medium">{{ .Title }}</span>

‎static/img/zero-knowledge-bot.png‎

730 Bytes
Loading

‎static/img/zero-knowledge-bot.svg‎

Lines changed: 1 addition & 1 deletion
Loading

0 commit comments

Comments
 (0)