-
Notifications
You must be signed in to change notification settings - Fork 9
Redesign the product page heroes and roll out the Hub brand color #184
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
iammajid
wants to merge
17
commits into
develop
Choose a base branch
from
feature/product-hero-redesign
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
ca34a05
Redesign for-individuals and for-teams heros
iammajid ab59af1
Apply hub hero feedback and carry hub colors through the page
iammajid 2d53aba
Replace the integrations tile with a directory node feeding the hub s…
iammajid b6d0679
Merge remote-tracking branch 'origin/develop' into feature/product-he…
iammajid 9296078
Extract shared partials for the Tailwind stylesheet loader and the Hu…
iammajid 9eaba19
Rotate colored cloud-provider logos in the for-individuals finder hero
iammajid d6a20e1
Polish the for-teams hero scene and move its animation styles to a pa…
iammajid 23ab0e6
Sweep Hub surfaces from primary green to the tertiary2 brand color
iammajid 70aa067
Add German translations for the Hub Community Edition registration flow
iammajid 52660bd
Replace approximated cloud logos with the brand marks from the Font A…
iammajid f963348
Use the official OneDrive, SharePoint, and iCloud logos
iammajid 103dbea
Update the for-teams workflow screenshots to the Hub 2.0 UI and add a…
iammajid 0121682
Serve the access-management screenshot per language and drop dashes f…
iammajid 885f376
Align the unlock screenshot's vault names with the Hub vault list
iammajid c8de1d4
Apply review feedback to hero padding, rotator crossfade, and reduced…
iammajid 7581112
Redo the hub workflow screenshots in a consistent frame and drop the …
iammajid 1898d00
Restore the original hub screenshots and drop their stale homepage pr…
iammajid File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,75 @@ | ||
| /* Finder-window hero styles — loaded only by layouts/for-individuals/single.html | ||
| as a separate Tailwind sheet, so other pages do not ship the split-flap rules. | ||
|
|
||
| @reference imports Tailwind and the shared theme/utilities for @apply | ||
| resolution only — nothing from them is re-emitted here. Hugo pipes this file | ||
| to the Tailwind CLI with the project root as cwd and does not rewrite | ||
| @reference like it does @import, so the theme path is root-relative. The | ||
| @layer components wrapper keeps these rules in the same cascade layer they | ||
| would have inside main.css, so utility classes in the markup still win over | ||
| component rules. */ | ||
| @reference "tailwindcss"; | ||
| @reference "./assets/css/theme.css"; | ||
|
coderabbitai[bot] marked this conversation as resolved.
|
||
|
|
||
| /* Re-declare main.css's cascade layer order: layer order is fixed by first | ||
| occurrence per document, so without this a bare `@layer components` block | ||
| would corrupt the order if this sheet were ever loaded before main.css. */ | ||
| @layer properties, theme, base, components, utilities; | ||
|
|
||
| @layer components { | ||
| /* Two stacked icons per slot; `.is-locked` on the .finder-hero root decides | ||
| which face shows. finder-hero.js toggles the class on each flap cycle. */ | ||
| .finder-swap-icon { | ||
| position: relative; | ||
| display: inline-flex; | ||
| flex: 0 0 auto; | ||
| width: 1.25rem; | ||
| height: 1.25rem; | ||
| } | ||
|
|
||
| .finder-swap-icon i, | ||
| .finder-swap-icon img { | ||
| position: absolute; | ||
| inset: 0; | ||
| display: flex; | ||
| align-items: center; | ||
| justify-content: center; | ||
| object-fit: contain; | ||
| transition: opacity 0.4s ease; | ||
| } | ||
|
|
||
| .finder-hero.is-locked .finder-when-unlocked, | ||
| .finder-hero:not(.is-locked) .finder-when-locked { | ||
| opacity: 0; | ||
| } | ||
|
|
||
| .finder-hero.is-locked .finder-flap-name { | ||
| @apply font-mono text-[13px] text-gray-600; | ||
| } | ||
|
|
||
| /* The title-bar path flips as one whole panel (departure-board segment) | ||
| between its locked and unlocked label instead of per-letter flapping. */ | ||
| .finder-path { | ||
| display: inline-flex; | ||
| min-width: 0; | ||
| perspective: 400px; | ||
| } | ||
|
|
||
| .finder-path-inner { | ||
| transform-style: preserve-3d; | ||
| transition: transform 0.6s ease-in-out; | ||
| } | ||
|
|
||
| .finder-path-front, | ||
| .finder-path-back { | ||
| backface-visibility: hidden; | ||
| } | ||
|
|
||
| .finder-path-back { | ||
| transform: rotateX(180deg); | ||
| } | ||
|
|
||
| .finder-hero:not(.is-locked) .finder-path-inner { | ||
| transform: rotateX(180deg); | ||
| } | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,51 @@ | ||
| /* Page-scoped sheet for the for-teams hero, so other pages do not ship these | ||
| rules. See assets/css/finder-hero.css for the @reference/@layer rationale. */ | ||
| @reference "tailwindcss"; | ||
| @reference "./assets/css/theme.css"; | ||
|
coderabbitai[bot] marked this conversation as resolved.
|
||
|
|
||
| @layer properties, theme, base, components, utilities; | ||
|
|
||
| @layer components { | ||
| /* Crossfade rotator for exactly three children: the 12s cycle is carved into | ||
| 4s slots by the :nth-child delays, so a fourth child would never show. */ | ||
| .idp-swap { | ||
| display: inline-grid; | ||
| place-items: center; | ||
| } | ||
|
|
||
| .idp-swap > * { | ||
| grid-area: 1 / 1; | ||
| opacity: 0; | ||
| animation: idp-cycle 12s infinite backwards; | ||
| } | ||
|
|
||
| .idp-swap > :nth-child(2) { | ||
| animation-delay: 4s; | ||
| } | ||
|
|
||
| .idp-swap > :nth-child(3) { | ||
| animation-delay: 8s; | ||
| } | ||
|
|
||
| @keyframes idp-cycle { | ||
| 0% { opacity: 0; } | ||
| 4% { opacity: 1; } | ||
| 33% { opacity: 1; } | ||
| 37% { opacity: 0; } | ||
| 100% { opacity: 0; } | ||
| } | ||
|
|
||
| @media (prefers-reduced-motion: reduce) { | ||
| .ad-pulse { | ||
| display: none; | ||
| } | ||
|
|
||
| .idp-swap > * { | ||
| animation: none; | ||
| } | ||
|
|
||
| .idp-swap > :first-child { | ||
| opacity: 1; | ||
| } | ||
| } | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,87 @@ | ||
| /* Split-flap animation for the for-individuals finder hero: every element with | ||
| a `finder-flap` class cycles between its data-locked and data-unlocked text | ||
| like an airport departure board, while `.is-locked` on the `.finder-hero` | ||
| root swaps the accompanying icons and flips the title-bar path panel (see | ||
| finder-hero.css). */ | ||
|
|
||
| class FinderFlap { | ||
| constructor(el) { | ||
| this.el = el; | ||
| this.chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'; | ||
| this.raf = null; | ||
| } | ||
|
|
||
| setText(newText) { | ||
| const oldText = this.el.textContent; | ||
| const length = Math.max(oldText.length, newText.length); | ||
| this.queue = []; | ||
| for (let i = 0; i < length; i++) { | ||
| const from = oldText[i] || ''; | ||
| const to = newText[i] || ''; | ||
| const start = Math.floor(i * 0.8); | ||
| const end = start + 8 + Math.floor(Math.random() * 8); | ||
| this.queue.push({ from, to, start, end, char: null }); | ||
| } | ||
| cancelAnimationFrame(this.raf); | ||
| this.frame = 0; | ||
| this.update(); | ||
| } | ||
|
|
||
| update() { | ||
| let output = ''; | ||
| let complete = 0; | ||
| for (const item of this.queue) { | ||
| if (this.frame >= item.end) { | ||
| complete++; | ||
| output += item.to; | ||
| } else if (this.frame >= item.start) { | ||
| if (!item.char || Math.random() < 0.35) { | ||
| item.char = this.chars[Math.floor(Math.random() * this.chars.length)]; | ||
| } | ||
| output += item.char; | ||
| } else { | ||
| output += item.from; | ||
| } | ||
| } | ||
| this.el.textContent = output; | ||
| if (complete < this.queue.length) { | ||
| this.frame++; | ||
| this.raf = requestAnimationFrame(() => this.update()); | ||
| } | ||
| } | ||
| } | ||
|
|
||
| document.addEventListener('DOMContentLoaded', () => { | ||
| const root = document.querySelector('.finder-hero'); | ||
| if (!root) { | ||
| return; | ||
| } | ||
| const flaps = Array.from(root.querySelectorAll('.finder-flap')).map((el) => ({ el, flap: new FinderFlap(el) })); | ||
| const reducedMotion = window.matchMedia('(prefers-reduced-motion: reduce)').matches; | ||
| const providers = [ | ||
| { name: 'Google Drive', src: '/img/clouds/google-drive.svg' }, | ||
| { name: 'iCloud Drive', src: '/img/clouds/icloud.svg' }, | ||
| { name: 'OneDrive', src: '/img/clouds/onedrive.svg' }, | ||
| { name: 'Dropbox', src: '/img/clouds/dropbox.svg' }, | ||
| ]; | ||
| const providerName = root.querySelector('[data-finder-provider-name]'); | ||
| const providerIcon = root.querySelector('[data-finder-provider-icon]'); | ||
| if (reducedMotion) { | ||
| return; | ||
| } | ||
| let providerIndex = 0; | ||
| let locked = true; | ||
| setInterval(() => { | ||
| locked = !locked; | ||
| if (locked && providerName && providerIcon) { | ||
| providerIndex = (providerIndex + 1) % providers.length; | ||
| providerName.textContent = providers[providerIndex].name; | ||
| providerIcon.src = providers[providerIndex].src; | ||
| } | ||
| root.classList.toggle('is-locked', locked); | ||
| flaps.forEach(({ el, flap }, index) => { | ||
| const text = locked ? el.dataset.locked : el.dataset.unlocked; | ||
| setTimeout(() => flap.setText(text), index * 140); | ||
| }); | ||
| }, 5000); | ||
|
coderabbitai[bot] marked this conversation as resolved.
|
||
| }); | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,6 @@ | ||
| --- | ||
| title: "Cryptomator" | ||
| type: for-individuals | ||
| darkNav: true | ||
| flushHero: true | ||
| --- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,6 @@ | ||
| --- | ||
| title: "Cryptomator" | ||
| type: for-individuals | ||
| darkNav: true | ||
| flushHero: true | ||
| --- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,6 @@ | ||
| --- | ||
| title: "Cryptomator Hub" | ||
| type: for-teams | ||
| hubNav: true | ||
| aliases: ["/hub"] | ||
| --- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,6 @@ | ||
| --- | ||
| title: "Cryptomator Hub" | ||
| type: for-teams | ||
| hubNav: true | ||
| aliases: ["/hub"] | ||
| --- |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.