-
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
19
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.
+1,140
−346
Open
Changes from all commits
Commits
Show all changes
19 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 2e52438
Merge branch 'develop' into feature/product-hero-redesign
tobihagemann 22c180a
Rename the Hub color token to hub and fold in the review fixes for th…
tobihagemann 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
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,94 @@ | ||
| "use strict"; | ||
|
|
||
| /* One interval drives both halves of the effect: the per-element split-flap | ||
| text here, and the `.is-locked` icon and panel swap done in CSS. */ | ||
|
|
||
| class FinderFlap { | ||
| constructor(el) { | ||
| this.el = el; | ||
| this.lockedText = el.dataset.locked; | ||
| this.unlockedText = el.dataset.unlocked; | ||
| this.chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'; | ||
| this.raf = null; | ||
| } | ||
|
|
||
| show(locked) { | ||
| const newText = locked ? this.lockedText : this.unlockedText; | ||
| 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()); | ||
| } | ||
| } | ||
| } | ||
|
|
||
| function initFinderHero() { | ||
| const root = document.querySelector('.finder-hero'); | ||
| if (!root) { | ||
| return; | ||
| } | ||
| const flapElements = root.querySelectorAll('.finder-flap'); | ||
| if (window.matchMedia('(prefers-reduced-motion: reduce)').matches) { | ||
| root.classList.remove('is-locked'); | ||
| flapElements.forEach((el) => { | ||
| el.textContent = el.dataset.unlocked; | ||
| }); | ||
| return; | ||
| } | ||
| const flaps = Array.from(flapElements, (el) => new FinderFlap(el)); | ||
| 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]'); | ||
| let providerIndex = 0; | ||
| let locked = true; | ||
| setInterval(() => { | ||
| locked = !locked; | ||
| if (locked) { | ||
| providerIndex = (providerIndex + 1) % providers.length; | ||
| providerName.textContent = providers[providerIndex].name; | ||
| providerIcon.src = providers[providerIndex].src; | ||
| } | ||
| root.classList.toggle('is-locked', locked); | ||
| flaps.forEach((flap, index) => { | ||
| setTimeout(() => flap.show(locked), index * 140); | ||
| }); | ||
| }, 5000); | ||
| } | ||
|
|
||
| initFinderHero(); |
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win
Fix the Stylelint declaration-spacing error.
Add the required empty line before
transition. Stylelint reportsdeclaration-empty-line-beforeon this line.🧰 Tools
🪛 Stylelint (17.14.0)
[error] 23-23: Expected empty line before declaration (declaration-empty-line-before)
(declaration-empty-line-before)
🤖 Prompt for AI Agents
Source: Linters/SAST tools