From b1d3e3bfe3210810c6444b4b3db1ec0c46afbd30 Mon Sep 17 00:00:00 2001 From: bithighlander Date: Thu, 24 Oct 2024 13:33:26 -0500 Subject: [PATCH 1/5] BEX --- components/navbar.tsx | 111 +++++++++++++++++++++++------------------- 1 file changed, 60 insertions(+), 51 deletions(-) diff --git a/components/navbar.tsx b/components/navbar.tsx index 8fec1e4..1868d20 100644 --- a/components/navbar.tsx +++ b/components/navbar.tsx @@ -117,61 +117,70 @@ export default function Navbar() { }; return ( - + + ); } From ae260d85d8a101a9f3cc06ed7c7ba8bf171c34ea Mon Sep 17 00:00:00 2001 From: bithighlander Date: Sat, 2 Nov 2024 13:34:08 -0500 Subject: [PATCH 2/5] warning --- components/SecurityWarning.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/SecurityWarning.tsx b/components/SecurityWarning.tsx index c57d6c8..e8f7d8f 100644 --- a/components/SecurityWarning.tsx +++ b/components/SecurityWarning.tsx @@ -41,7 +41,7 @@ export default function SecurityWarning() {

Security Warning

- The KeepKey Chrome app has been retired, and there are scam versions which can steal your money. NEVER enter a recovery phrase into any software unencrypted. Official clients will always use KeepKeys built-in text cipher. + there are scam versions of browser exensions and wallet which can steal your money. NEVER enter a recovery phrase into any software unencrypted. Official clients will always use KeepKeys built-in text cipher.

From 642456321189c3e45a31d0b9dc1c0256c4c7b46d Mon Sep 17 00:00:00 2001 From: Nathan Moore Date: Fri, 15 Nov 2024 10:36:29 -0700 Subject: [PATCH 3/5] add dismiss icon --- components/navbar.tsx | 147 +++++++++++++++++++++++++----------------- 1 file changed, 88 insertions(+), 59 deletions(-) diff --git a/components/navbar.tsx b/components/navbar.tsx index 1868d20..e6c4955 100644 --- a/components/navbar.tsx +++ b/components/navbar.tsx @@ -72,6 +72,20 @@ export default function Navbar() { const [dropdownOpen, setDropdownOpen] = useState>({}); const dropdownRefs = useRef>({}); const [isMenuOpen, setIsMenuOpen] = useState(false); + const [isMounted, setIsMounted] = useState(false); + const [showBanner, setShowBanner] = useState(false); + + useEffect(() => { + setIsMounted(true); + try { + const isDismissed = localStorage.getItem('bexBannerDismissed'); + if (!isDismissed) { + setShowBanner(true); + } + } catch (error) { + console.warn('localStorage not available'); + } + }, []); useEffect(() => { const initialDropdownState: Record = {}; @@ -108,6 +122,11 @@ export default function Navbar() { }; }, [dropdownOpen]); + const dismissBanner = () => { + setShowBanner(false); + localStorage.setItem('bexBannerDismissed', 'true'); + }; + const toggleDropdown = (id: number) => { setDropdownOpen((prev) => ({ ...prev, @@ -117,70 +136,80 @@ export default function Navbar() { }; return ( - <> - {/* Yellow title bar for browser extension */} -
- - - Try the new KeepKey Browser Extension! Click here to learn more. + <> + + + {/* Navigation bar */} +
+ + ); } From fb9de1a7d65d4003ab6d52c934f390bcacec5e5b Mon Sep 17 00:00:00 2001 From: Nathan Moore Date: Fri, 15 Nov 2024 12:04:35 -0700 Subject: [PATCH 4/5] fix banner overlapping issue --- components/navbar.tsx | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/components/navbar.tsx b/components/navbar.tsx index e6c4955..ef2333f 100644 --- a/components/navbar.tsx +++ b/components/navbar.tsx @@ -136,9 +136,9 @@ export default function Navbar() { }; return ( - <> +
@@ -155,8 +155,7 @@ export default function Navbar() {
- {/* Navigation bar */} -
- + ); } From 7f4ae2229e0504f6d42c0100468aa7926d9f8462 Mon Sep 17 00:00:00 2001 From: Nathan Moore Date: Fri, 15 Nov 2024 13:40:26 -0700 Subject: [PATCH 5/5] mobile updates --- components/hero-simple.tsx | 2 +- components/navbar.tsx | 11 ++++++----- pages/index.tsx | 36 ++++++++++++++++++------------------ 3 files changed, 25 insertions(+), 24 deletions(-) diff --git a/components/hero-simple.tsx b/components/hero-simple.tsx index 4ce2819..79d7c10 100644 --- a/components/hero-simple.tsx +++ b/components/hero-simple.tsx @@ -14,7 +14,7 @@ interface Props { const Hero = ({ heroBgImg, pageTitle, subTitle, assets, blockchains, dapps }: Props) => { return ( -
+
keepkey wallet on desk + {/* banner */}
@@ -166,12 +167,12 @@ export default function Navbar() { -
+
{navLinks.map((link) => (
{link.name === 'Security' ? ( - + {link.name} Security @@ -179,10 +180,10 @@ export default function Navbar() { ) : link.children ? ( - + ) : ( - {link.name} + {link.name} )} {dropdownOpen[link.id] && ( diff --git a/pages/index.tsx b/pages/index.tsx index f0e9da4..0413a35 100644 --- a/pages/index.tsx +++ b/pages/index.tsx @@ -70,7 +70,7 @@ const Hero = () => { } return ( -
+
keepkey wallet on desk {
{platform.macos && ( - + )} {platform.windows && ( - + )} {platform.linux && ( - + )}
@@ -139,7 +139,7 @@ const Hero = () => {
-
+
@@ -331,7 +331,7 @@ const ProductInfo = () => { Get started!
-
+
KeepKey is OSS: to contribute to donate here: bc1qfce6cck3tcy94v8s4q6fpfeusj0g8g27asaakh