Skip to content
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

Indie Landing Follows #19

Merged
merged 4 commits into from
Nov 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion components/composed/partners/partners.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const partnerHref: Record<PartnerName, string> = {
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',
}

Expand Down
4 changes: 2 additions & 2 deletions components/composed/products/products.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const initialArea: Area = { height: 0, width: 0 }
export const Products: React.FC<ProductsProps> = props => {
const productsRef = useRef<HTMLElement>(null)
const [area, setArea] = useState<Area>(initialArea)
const [isDraggable, setIsDraggable] = useState<boolean>(false)
const [isDraggable, setIsDraggable] = useState<boolean>(true)

useEffect(() => {
const handleResize = () => {
Expand All @@ -56,7 +56,7 @@ export const Products: React.FC<ProductsProps> = props => {
}

window.addEventListener('resize', handleResize)
handleResize()
setTimeout(handleResize, 100) // defer initial set

return () => window.removeEventListener('resize', handleResize)
}, [area, isDraggable])
Expand Down
2 changes: 1 addition & 1 deletion components/interactive/links/link-partner/link-partner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export const LinkPartner: React.FC<LinkPartnerProps> = ({
const { imageScale, imageSrc, name } = PARTNERS[partnerName]

return (
<StyledPartner {...props}>
<StyledPartner target="_blank" rel="noopener" {...props}>
{imageSrc ? (
<StyledImage alt={name} src={imageSrc} $imageScale={imageScale} />
) : (
Expand Down
5 changes: 4 additions & 1 deletion components/interactive/links/link-product/link-product.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use client'

import { MouseEvent, useEffect, useState } from 'react'
import { MouseEvent, useEffect, useRef, useState } from 'react'
import Draggable, {
DraggableData,
DraggableEvent,
Expand Down Expand Up @@ -102,6 +102,7 @@ export const LinkProduct: React.FC<LinkProductProps> = ({
y = 0,
...props
}) => {
const productRef = useRef<HTMLAnchorElement>(null)
const [previousPosition, setPreviousPosition] = useState<Position>({
x,
y,
Expand Down Expand Up @@ -137,6 +138,7 @@ export const LinkProduct: React.FC<LinkProductProps> = ({
<Draggable
bounds="parent"
disabled={!isDraggable}
nodeRef={productRef}
onStop={handleDragStop}
position={previousPosition}
>
Expand All @@ -147,6 +149,7 @@ export const LinkProduct: React.FC<LinkProductProps> = ({
onClick={handlePress}
rel="noopener"
target="_blank"
ref={productRef}
$inverse={inverse}
>
<TitleBar>{`Enter ${product}`}</TitleBar>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export const LinkTeamMember: React.FC<LinkTeamMemberProps> = ({
TEAM_MEMBERS[teamMemberName]

return (
<StyledLinkTeamMember {...props}>
<StyledLinkTeamMember target="_blank" rel="noopener" {...props}>
<StyledFigure>
<StyledImage alt={`${firstName} ${lastName}`} src={imageSrc} />
<StyledMemberDetails>
Expand Down