From 9f5c23f5eaeac38ca97a2b707bfb0dcc0375900c Mon Sep 17 00:00:00 2001 From: David McKelvey Date: Tue, 26 Nov 2024 14:28:31 -0800 Subject: [PATCH 1/4] update seedclub url --- components/composed/partners/partners.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/composed/partners/partners.tsx b/components/composed/partners/partners.tsx index b4aeb7d..b7bc33a 100644 --- a/components/composed/partners/partners.tsx +++ b/components/composed/partners/partners.tsx @@ -18,7 +18,7 @@ const partnerHref: Record = { differential: 'https://www.differential.vc/', algovera: 'https://www.algovera.ai/', 'white-star-capital': 'https://whitestarcapital.com/digital-asset-fund/', - 'seed-club-ventures': 'https://www.seedclub.xyz/getfunded/ventures', + 'seed-club-ventures': 'https://seedclub.ventures/', 'thomas-howell': 'https://x.com/seethomasowl', } From 7eacdd1ff38a8e947a61e6532d294b09381c9845 Mon Sep 17 00:00:00 2001 From: David McKelvey Date: Tue, 26 Nov 2024 14:42:09 -0800 Subject: [PATCH 2/4] handle domnode issue; defer setting darggability; flip initial value --- components/composed/products/products.tsx | 4 ++-- components/interactive/links/link-product/link-product.tsx | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/components/composed/products/products.tsx b/components/composed/products/products.tsx index 3732fe9..db465f2 100644 --- a/components/composed/products/products.tsx +++ b/components/composed/products/products.tsx @@ -39,7 +39,7 @@ const initialArea: Area = { height: 0, width: 0 } export const Products: React.FC = props => { const productsRef = useRef(null) const [area, setArea] = useState(initialArea) - const [isDraggable, setIsDraggable] = useState(false) + const [isDraggable, setIsDraggable] = useState(true) useEffect(() => { const handleResize = () => { @@ -56,7 +56,7 @@ export const Products: React.FC = props => { } window.addEventListener('resize', handleResize) - handleResize() + setTimeout(handleResize, 100) // defer initial set return () => window.removeEventListener('resize', handleResize) }, [area, isDraggable]) diff --git a/components/interactive/links/link-product/link-product.tsx b/components/interactive/links/link-product/link-product.tsx index 86f732e..d59d571 100644 --- a/components/interactive/links/link-product/link-product.tsx +++ b/components/interactive/links/link-product/link-product.tsx @@ -1,6 +1,6 @@ 'use client' -import { MouseEvent, useEffect, useState } from 'react' +import { MouseEvent, useEffect, useRef, useState } from 'react' import Draggable, { DraggableData, DraggableEvent, @@ -102,6 +102,7 @@ export const LinkProduct: React.FC = ({ y = 0, ...props }) => { + const productRef = useRef(null) const [previousPosition, setPreviousPosition] = useState({ x, y, @@ -137,6 +138,7 @@ export const LinkProduct: React.FC = ({ @@ -147,6 +149,7 @@ export const LinkProduct: React.FC = ({ onClick={handlePress} rel="noopener" target="_blank" + ref={productRef} $inverse={inverse} > {`Enter ${product}`} From c1d6325d602586e6cfb25f8d28e7ab3ba21b29e3 Mon Sep 17 00:00:00 2001 From: David McKelvey Date: Tue, 26 Nov 2024 14:46:03 -0800 Subject: [PATCH 3/4] partner links should default open in new tab/window --- components/interactive/links/link-partner/link-partner.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/interactive/links/link-partner/link-partner.tsx b/components/interactive/links/link-partner/link-partner.tsx index e7f912c..e663d32 100644 --- a/components/interactive/links/link-partner/link-partner.tsx +++ b/components/interactive/links/link-partner/link-partner.tsx @@ -83,7 +83,7 @@ export const LinkPartner: React.FC = ({ const { imageScale, imageSrc, name } = PARTNERS[partnerName] return ( - + {imageSrc ? ( ) : ( From 7ebfadb34c83f4be430bbb4542a25664559405b8 Mon Sep 17 00:00:00 2001 From: David McKelvey Date: Tue, 26 Nov 2024 14:47:28 -0800 Subject: [PATCH 4/4] team member links should default open in a new tab/window --- .../interactive/links/link-team-member/link-team-member.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/interactive/links/link-team-member/link-team-member.tsx b/components/interactive/links/link-team-member/link-team-member.tsx index f8d82d2..240a456 100644 --- a/components/interactive/links/link-team-member/link-team-member.tsx +++ b/components/interactive/links/link-team-member/link-team-member.tsx @@ -71,7 +71,7 @@ export const LinkTeamMember: React.FC = ({ TEAM_MEMBERS[teamMemberName] return ( - +