From f8c0aba31818923a28615e2e51288336b02a5568 Mon Sep 17 00:00:00 2001 From: xEsiah Date: Thu, 26 Feb 2026 20:49:25 +0100 Subject: [PATCH] Contact page responsive --- package-lock.json | 41 ++++- package.json | 1 + src/components/CardSwap.tsx | 138 ++++++++------ src/components/FlowingMenu.jsx | 2 +- src/components/Lanyard.css | 30 ---- src/components/Lanyard.tsx | 198 ++++++++++++++------ src/components/LogoLoop.css | 183 ------------------- src/components/LogoLoop.tsx | 320 +++++++++++++++++++++++++-------- src/components/OrbitImages.tsx | 0 src/pages/Contact.css | 13 +- src/pages/Contact.tsx | 12 +- 11 files changed, 518 insertions(+), 420 deletions(-) delete mode 100644 src/components/Lanyard.css delete mode 100644 src/components/LogoLoop.css delete mode 100644 src/components/OrbitImages.tsx diff --git a/package-lock.json b/package-lock.json index 263f230..5e98be9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -20,6 +20,7 @@ "gsap": "^3.14.2", "lucide-react": "^0.564.0", "meshline": "^3.3.1", + "motion": "^12.34.3", "ogl": "^1.0.11", "postcss": "^8.5.6", "radix-ui": "^1.4.3", @@ -5776,12 +5777,12 @@ } }, "node_modules/framer-motion": { - "version": "12.34.0", - "resolved": "https://registry.npmjs.org/framer-motion/-/framer-motion-12.34.0.tgz", - "integrity": "sha512-+/H49owhzkzQyxtn7nZeF4kdH++I2FWrESQ184Zbcw5cEqNHYkE5yxWxcTLSj5lNx3NWdbIRy5FHqUvetD8FWg==", + "version": "12.34.3", + "resolved": "https://registry.npmjs.org/framer-motion/-/framer-motion-12.34.3.tgz", + "integrity": "sha512-v81ecyZKYO/DfpTwHivqkxSUBzvceOpoI+wLfgCgoUIKxlFKEXdg0oR9imxwXumT4SFy8vRk9xzJ5l3/Du/55Q==", "license": "MIT", "dependencies": { - "motion-dom": "^12.34.0", + "motion-dom": "^12.34.3", "motion-utils": "^12.29.2", "tslib": "^2.4.0" }, @@ -7211,10 +7212,36 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/motion": { + "version": "12.34.3", + "resolved": "https://registry.npmjs.org/motion/-/motion-12.34.3.tgz", + "integrity": "sha512-xZIkBGO7v/Uvm+EyaqYd+9IpXu0sZqLywVlGdCFrrMiaO9JI4Kx51mO9KlHSWwll+gZUVY5OJsWgYI5FywJ/tw==", + "license": "MIT", + "dependencies": { + "framer-motion": "^12.34.3", + "tslib": "^2.4.0" + }, + "peerDependencies": { + "@emotion/is-prop-valid": "*", + "react": "^18.0.0 || ^19.0.0", + "react-dom": "^18.0.0 || ^19.0.0" + }, + "peerDependenciesMeta": { + "@emotion/is-prop-valid": { + "optional": true + }, + "react": { + "optional": true + }, + "react-dom": { + "optional": true + } + } + }, "node_modules/motion-dom": { - "version": "12.34.0", - "resolved": "https://registry.npmjs.org/motion-dom/-/motion-dom-12.34.0.tgz", - "integrity": "sha512-Lql3NuEcScRDxTAO6GgUsRHBZOWI/3fnMlkMcH5NftzcN37zJta+bpbMAV9px4Nj057TuvRooMK7QrzMCgtz6Q==", + "version": "12.34.3", + "resolved": "https://registry.npmjs.org/motion-dom/-/motion-dom-12.34.3.tgz", + "integrity": "sha512-sYgFe+pR9aIM7o4fhs2aXtOI+oqlUd33N9Yoxcgo1Fv7M20sRkHtCmzE/VRNIcq7uNJ+qio+Xubt1FXH3pQ+eQ==", "license": "MIT", "dependencies": { "motion-utils": "^12.29.2" diff --git a/package.json b/package.json index 8826b48..aead2b7 100644 --- a/package.json +++ b/package.json @@ -22,6 +22,7 @@ "gsap": "^3.14.2", "lucide-react": "^0.564.0", "meshline": "^3.3.1", + "motion": "^12.34.3", "ogl": "^1.0.11", "postcss": "^8.5.6", "radix-ui": "^1.4.3", diff --git a/src/components/CardSwap.tsx b/src/components/CardSwap.tsx index 833320d..73d70b0 100644 --- a/src/components/CardSwap.tsx +++ b/src/components/CardSwap.tsx @@ -25,8 +25,9 @@ interface CardProps extends HTMLAttributes { } interface CardSwapProps { - width?: number | string; - height?: number | string; + width?: string | number; + maxWidth?: number; + aspectRatio?: number; cardDistance?: number; verticalDistance?: number; delay?: number; @@ -39,28 +40,47 @@ interface CardSwapProps { // --- Composant Card --- export const Card = forwardRef( - ({ customClass, className, ...rest }, ref) => ( + ({ customClass, className, onClick, style, ...rest }, ref) => (
), ); Card.displayName = "Card"; -// --- Helpers de positionnement --- const makeSlot = ( i: number, distX: number, distY: number, total: number, -): Slot => ({ - x: i * distX, - y: -i * distY, - z: -i * distX * 1.5, - zIndex: total - i, -}); + containerWidth: number, +): Slot => { + let factorX = 0.6; + let factorY = 0.5; + + if (containerWidth < 768) { + factorX = 0.25; + factorY = 0.25; + } else if (containerWidth < 1300) { + const progress = (containerWidth - 768) / (1300 - 768); + factorX = 0.3 + progress * 0.3; + factorY = 0.4; + } + + const totalWidth = (total - 1) * distX * factorX; + const centeringOffset = totalWidth / 2; + + return { + x: i * distX * factorX - centeringOffset, + y: -i * distY * factorY, + z: -i * distX * 2 * factorX, + zIndex: total - i, + }; +}; const placeNow = (el: HTMLDivElement | null, slot: Slot, skew: number) => { if (!el) return; @@ -69,7 +89,7 @@ const placeNow = (el: HTMLDivElement | null, slot: Slot, skew: number) => { y: slot.y, z: slot.z, xPercent: -50, - yPercent: -50, + yPercent: -40, skewY: skew, transformOrigin: "center center", zIndex: slot.zIndex, @@ -77,10 +97,10 @@ const placeNow = (el: HTMLDivElement | null, slot: Slot, skew: number) => { }); }; -// --- Composant Principal --- const CardSwap: React.FC = ({ - width = 500, - height = 400, + width = "100%", + maxWidth = 1100, + aspectRatio = 2.2, cardDistance = 60, verticalDistance = 70, delay = 5000, @@ -90,6 +110,20 @@ const CardSwap: React.FC = ({ easing = "elastic", children, }) => { + const container = useRef(null); + const childArr = useMemo(() => Children.toArray(children), [children]); + const refs = useMemo( + () => childArr.map(() => React.createRef()), + [childArr.length], + ); + const order = useRef( + Array.from({ length: childArr.length }, (_, i) => i), + ); + const tlRef = useRef(null); + const intervalRef = useRef(null); + + const [currentWidth, setCurrentWidth] = useState(0); + const config = useMemo( () => easing === "elastic" @@ -112,58 +146,56 @@ const CardSwap: React.FC = ({ [easing], ); - const childArr = useMemo(() => Children.toArray(children), [children]); - - // Correction Erreur 2322 : Typage explicite des refs - const refs = useMemo( - () => childArr.map(() => React.createRef()), - [childArr.length], - ); - - const order = useRef( - Array.from({ length: childArr.length }, (_, i) => i), - ); - const tlRef = useRef(null); - const intervalRef = useRef(null); - const container = useRef(null); - useEffect(() => { const total = refs.length; if (total === 0) return; - // Positionnement initial - refs.forEach((r, i) => { - placeNow( - r.current, - makeSlot(i, cardDistance, verticalDistance, total), - skewAmount, - ); - }); + const updatePositions = () => { + const w = container.current?.clientWidth || window.innerWidth; + + refs.forEach((r, i) => { + placeNow( + r.current, + makeSlot(i, cardDistance, verticalDistance, total, w), + skewAmount, + ); + }); + }; + + updatePositions(); + + const handleResize = () => { + if (container.current) { + setCurrentWidth(container.current.clientWidth); + updatePositions(); + } + }; + window.addEventListener("resize", handleResize); const swap = () => { if (order.current.length < 2) return; - const [front, ...rest] = order.current; const elFront = refs[front].current; if (!elFront) return; + const w = container.current?.clientWidth || window.innerWidth; + const tl = gsap.timeline(); tlRef.current = tl; - // Animation de descente tl.to(elFront, { y: "+=500", + opacity: 0, duration: config.durDrop, ease: config.ease, }); tl.addLabel("promote", `-=${config.durDrop * config.promoteOverlap}`); - // Avancement des autres cartes rest.forEach((idx, i) => { const el = refs[idx].current; if (!el) return; - const slot = makeSlot(i, cardDistance, verticalDistance, total); + const slot = makeSlot(i, cardDistance, verticalDistance, total, w); tl.set(el, { zIndex: slot.zIndex }, "promote"); tl.to( @@ -179,12 +211,12 @@ const CardSwap: React.FC = ({ ); }); - // Retour de la carte de devant vers le fond const backSlot = makeSlot( total - 1, cardDistance, verticalDistance, total, + w, ); tl.addLabel("return", `promote+=${config.durMove * config.returnDelay}`); @@ -195,6 +227,7 @@ const CardSwap: React.FC = ({ x: backSlot.x, y: backSlot.y, z: backSlot.z, + opacity: 1, duration: config.durReturn, ease: config.ease, }, @@ -208,7 +241,6 @@ const CardSwap: React.FC = ({ intervalRef.current = window.setInterval(swap, delay); - // Gestion du Hover const node = container.current; if (pauseOnHover && node) { const pause = () => { @@ -221,7 +253,6 @@ const CardSwap: React.FC = ({ }; node.addEventListener("mouseenter", pause); node.addEventListener("mouseleave", resume); - return () => { node.removeEventListener("mouseenter", pause); node.removeEventListener("mouseleave", resume); @@ -230,6 +261,7 @@ const CardSwap: React.FC = ({ } return () => { + window.removeEventListener("resize", handleResize); if (intervalRef.current) clearInterval(intervalRef.current); }; }, [ @@ -242,19 +274,12 @@ const CardSwap: React.FC = ({ refs, ]); - // Rendu des enfants avec injection des props const rendered = childArr.map((child, i) => { if (!isValidElement(child)) return child; - const typedChild = child as ReactElement; return cloneElement(typedChild, { key: i, ref: refs[i], - style: { - width, - height, - ...(typedChild.props.style ?? {}), - }, onClick: (e: React.MouseEvent) => { typedChild.props.onClick?.(e); onCardClick?.(i); @@ -265,8 +290,13 @@ const CardSwap: React.FC = ({ return (
{rendered}
diff --git a/src/components/FlowingMenu.jsx b/src/components/FlowingMenu.jsx index 552c115..5e816f3 100644 --- a/src/components/FlowingMenu.jsx +++ b/src/components/FlowingMenu.jsx @@ -53,7 +53,7 @@ function FlowingMenu({ ))}
; + meshLineMaterial: ThreeElement; + } +} + const subscribe = () => () => {}; function useIsClient() { return useSyncExternalStore( @@ -39,22 +53,52 @@ function useIsClient() { ); } -export default function Lanyard({ show, gravity = [0, -20, 0], fov = 20 }) { +interface LanyardProps { + show: boolean; + gravity?: [number, number, number]; + fov?: number; + transparent?: boolean; +} + +export default function Lanyard({ + show, + gravity = [0, -20, 0], + fov = 20, + transparent = true, +}: LanyardProps) { const isClient = useIsClient(); + const [isMobile, setIsMobile] = useState(false); + + useEffect(() => { + if (typeof window !== "undefined") { + setIsMobile(window.innerWidth < 768); + const handleResize = () => setIsMobile(window.innerWidth < 768); + window.addEventListener("resize", handleResize); + return () => window.removeEventListener("resize", handleResize); + } + }, []); + if (!show || !isClient) return null; return createPortal( -
+
gl.setClearColor(new THREE.Color(0x000000), 0)} + className="block w-full h-full pointer-events-auto" > - - + + + (null); + const fixed = useRef(null); + const j1 = useRef(null); + const j2 = useRef(null); + const j3 = useRef(null); + const card = useRef(null); - const { nodes, materials } = useGLTF("/3d/card.glb"); + const vec = new THREE.Vector3(); + const dir = new THREE.Vector3(); + const ang = new THREE.Vector3(); + const rot = new THREE.Vector3(); - const texture = useTexture("/3d/lanyard.png", (t) => { - t.wrapS = t.wrapT = THREE.RepeatWrapping; - t.repeat.set(-4, 1); - t.anisotropy = 16; - }); + const { nodes, materials } = useGLTF("/3d/card.glb") as any; + const texture = useTexture("/3d/lanyard.png"); + const badgeTexture = useTexture("/3d/badge_texture.png"); - const cardTexture = useTexture("/3d/badge_texture.png", (t) => { - t.flipY = false; - t.anisotropy = 16; - }); - - const curve = useMemo( + const [curve] = useState( () => new THREE.CatmullRomCurve3( new Array(4).fill(null).map(() => new THREE.Vector3()), ), - [], ); - const [dragged, drag] = useState(false); + const [dragged, drag] = useState(false); + + useEffect(() => { + if (texture) { + texture.wrapS = texture.wrapT = THREE.RepeatWrapping; + texture.repeat.set(-4, 1); + texture.anisotropy = 16; + } + if (badgeTexture) { + badgeTexture.flipY = false; + badgeTexture.anisotropy = 16; + } + }, [texture, badgeTexture]); - // JOINTS PHYSIQUES useRopeJoint(fixed, j1, [[0, 0, 0], [0, 0, 0], 1.2]); useRopeJoint(j1, j2, [[0, 0, 0], [0, 0, 0], 1.2]); useRopeJoint(j2, j3, [[0, 0, 0], [0, 0, 0], 1.2]); - - // CONNEXION PHYSIQUE : L'ancre j3 est soudée au haut du collider de la carte useSphericalJoint(j3, card, [ [0, 0, 0], [0, 1.1, 0], ]); useFrame((state, delta) => { - if (dragged) { + if (dragged && card.current) { vec.set(state.pointer.x, state.pointer.y, 0.5).unproject(state.camera); dir.copy(vec).sub(state.camera.position).normalize(); vec.add(dir.multiplyScalar(state.camera.position.length())); + [card, j1, j2, j3, fixed].forEach((ref) => ref.current?.wakeUp()); - card.current?.setNextKinematicTranslation({ + + card.current.setNextKinematicTranslation({ x: vec.x - dragged.x, y: vec.y - dragged.y, z: vec.z - dragged.z, }); } - if (fixed.current) { + if ( + fixed.current && + card.current && + j1.current && + j2.current && + band.current + ) { [j1, j2].forEach((ref) => { if (!ref.current.lerped) ref.current.lerped = new THREE.Vector3().copy( @@ -141,63 +199,81 @@ function Band() { curve.points[1].copy(j2.current.lerped); curve.points[2].copy(j1.current.lerped); curve.points[3].copy(fixed.current.translation()); - band.current.geometry.setPoints(curve.getPoints(32)); + band.current.geometry.setPoints(curve.getPoints(isMobile ? 16 : 32)); + + ang.copy(card.current.angvel()); + rot.copy(card.current.rotation()); + card.current.setAngvel({ x: ang.x, y: ang.y - rot.y * 0.25, z: ang.z }); } }); const physicsProps = { - type: "dynamic", - linearDamping: 4, + linearDamping: 6, angularDamping: 4, friction: 0.5, }; return ( <> - + - + - + - + { - e.target.setPointerCapture(e.pointerId); + onPointerDown={(e: ThreeEvent) => { + (e.target as HTMLElement).setPointerCapture(e.pointerId); drag( new THREE.Vector3() .copy(e.point) .sub(vec.copy(card.current.translation())), ); }} - onPointerUp={(e) => ( - e.target.releasePointerCapture(e.pointerId), - drag(false) - )} + onPointerUp={(e: ThreeEvent) => { + (e.target as HTMLElement).releasePointerCapture(e.pointerId); + drag(false); + }} > - {/* renderOrder={2} : La carte passe DEVANT la lanière */} @@ -213,14 +289,18 @@ function Band() { - {/* renderOrder={1} : Dessiné en premier (derrière) */} +export interface LogoLoopProps { + logos: LogoItem[]; + speed?: number; + direction?: "left" | "right" | "up" | "down"; + width?: number | string; + logoHeight?: number; + gap?: number; + pauseOnHover?: boolean; + hoverSpeed?: number; + fadeOut?: boolean; + fadeOutColor?: string; + scaleOnHover?: boolean; + renderItem?: (item: LogoItem, key: React.Key) => React.ReactNode; + ariaLabel?: string; + className?: string; + style?: React.CSSProperties; +} + +const ANIMATION_CONFIG = { + SMOOTH_TAU: 0.25, + MIN_COPIES: 2, + COPY_HEADROOM: 2, +} as const; + +const toCssLength = (value?: number | string): string | undefined => typeof value === "number" ? `${value}px` : (value ?? undefined); -const useResizeObserver = (callback, elements, dependencies) => { +const cx = (...parts: Array) => + parts.filter(Boolean).join(" "); + +const useResizeObserver = ( + callback: () => void, + elements: Array>, + dependencies: React.DependencyList, +) => { useEffect(() => { if (!window.ResizeObserver) { const handleResize = () => callback(); @@ -14,33 +66,45 @@ const useResizeObserver = (callback, elements, dependencies) => { callback(); return () => window.removeEventListener("resize", handleResize); } + const observers = elements.map((ref) => { if (!ref.current) return null; const observer = new ResizeObserver(callback); observer.observe(ref.current); return observer; }); + callback(); + return () => { observers.forEach((observer) => observer?.disconnect()); }; - }, [callback, elements, dependencies]); + }, dependencies); }; -const useImageLoader = (seqRef, onLoad, dependencies) => { +const useImageLoader = ( + seqRef: React.RefObject, + onLoad: () => void, + dependencies: React.DependencyList, +) => { useEffect(() => { const images = seqRef.current?.querySelectorAll("img") ?? []; + if (images.length === 0) { onLoad(); return; } + let remainingImages = images.length; const handleImageLoad = () => { remainingImages -= 1; - if (remainingImages === 0) onLoad(); + if (remainingImages === 0) { + onLoad(); + } }; + images.forEach((img) => { - const htmlImg = img; + const htmlImg = img as HTMLImageElement; if (htmlImg.complete) { handleImageLoad(); } else { @@ -48,26 +112,27 @@ const useImageLoader = (seqRef, onLoad, dependencies) => { htmlImg.addEventListener("error", handleImageLoad, { once: true }); } }); + return () => { images.forEach((img) => { img.removeEventListener("load", handleImageLoad); img.removeEventListener("error", handleImageLoad); }); }; - }, [onLoad, seqRef, dependencies]); + }, dependencies); }; const useAnimationLoop = ( - trackRef, - targetVelocity, - seqWidth, - seqHeight, - isHovered, - hoverSpeed, - isVertical, + trackRef: React.RefObject, + targetVelocity: number, + seqWidth: number, + seqHeight: number, + isHovered: boolean, + hoverSpeed: number | undefined, + isVertical: boolean, ) => { - const rafRef = useRef(null); - const lastTimestampRef = useRef(null); + const rafRef = useRef(null); + const lastTimestampRef = useRef(null); const offsetRef = useRef(0); const velocityRef = useRef(0); @@ -75,6 +140,11 @@ const useAnimationLoop = ( const track = trackRef.current; if (!track) return; + const prefersReduced = + typeof window !== "undefined" && + window.matchMedia && + window.matchMedia("(prefers-reduced-motion: reduce)").matches; + const seqSize = isVertical ? seqHeight : seqWidth; if (seqSize > 0) { @@ -85,7 +155,16 @@ const useAnimationLoop = ( track.style.transform = transformValue; } - const animate = (timestamp) => { + if (prefersReduced) { + track.style.transform = isVertical + ? "translate3d(0, 0, 0)" + : "translate3d(0, 0, 0)"; + return () => { + lastTimestampRef.current = null; + }; + } + + const animate = (timestamp: number) => { if (lastTimestampRef.current === null) { lastTimestampRef.current = timestamp; } @@ -124,18 +203,10 @@ const useAnimationLoop = ( } lastTimestampRef.current = null; }; - }, [ - targetVelocity, - seqWidth, - seqHeight, - isHovered, - hoverSpeed, - isVertical, - trackRef, - ]); + }, [targetVelocity, seqWidth, seqHeight, isHovered, hoverSpeed, isVertical]); }; -export const LogoLoop = memo( +export const LogoLoop = React.memo( ({ logos, speed = 120, @@ -153,14 +224,16 @@ export const LogoLoop = memo( className, style, }) => { - const containerRef = useRef(null); - const trackRef = useRef(null); - const seqRef = useRef(null); + const containerRef = useRef(null); + const trackRef = useRef(null); + const seqRef = useRef(null); - const [seqWidth, setSeqWidth] = useState(0); - const [seqHeight, setSeqHeight] = useState(0); - const [copyCount, setCopyCount] = useState(ANIMATION_CONFIG.MIN_COPIES); - const [isHovered, setIsHovered] = useState(false); + const [seqWidth, setSeqWidth] = useState(0); + const [seqHeight, setSeqHeight] = useState(0); + const [copyCount, setCopyCount] = useState( + ANIMATION_CONFIG.MIN_COPIES, + ); + const [isHovered, setIsHovered] = useState(false); const effectiveHoverSpeed = useMemo(() => { if (hoverSpeed !== undefined) return hoverSpeed; @@ -173,7 +246,7 @@ export const LogoLoop = memo( const targetVelocity = useMemo(() => { const magnitude = Math.abs(speed); - let directionMultiplier; + let directionMultiplier: number; if (isVertical) { directionMultiplier = direction === "up" ? 1 : -1; } else { @@ -240,26 +313,30 @@ export const LogoLoop = memo( ); const cssVariables = useMemo( - () => ({ - "--logoloop-gap": `${gap}px`, - "--logoloop-logoHeight": `${logoHeight}px`, - ...(fadeOutColor && { "--logoloop-fadeColor": fadeOutColor }), - }), + () => + ({ + "--logoloop-gap": `${gap}px`, + "--logoloop-logoHeight": `${logoHeight}px`, + ...(fadeOutColor && { "--logoloop-fadeColor": fadeOutColor }), + }) as React.CSSProperties, [gap, logoHeight, fadeOutColor], ); - const rootClassName = useMemo( + const rootClasses = useMemo( () => - [ - "logoloop", - isVertical ? "logoloop--vertical" : "logoloop--horizontal", - fadeOut && "logoloop--fade", - scaleOnHover && "logoloop--scale-hover", + cx( + "relative group", + isVertical + ? "overflow-hidden h-full inline-block" + : "overflow-x-hidden", + "[--logoloop-gap:32px]", + "[--logoloop-logoHeight:28px]", + "[--logoloop-fadeColorAuto:#ffffff]", + "dark:[--logoloop-fadeColorAuto:#0b0b0b]", + scaleOnHover && "py-[calc(var(--logoloop-logoHeight)*0.1)]", className, - ] - .filter(Boolean) - .join(" "), - [isVertical, fadeOut, scaleOnHover, className], + ), + [isVertical, scaleOnHover, className], ); const handleMouseEnter = useCallback(() => { @@ -270,43 +347,73 @@ export const LogoLoop = memo( }, [effectiveHoverSpeed]); const renderLogoItem = useCallback( - (item, key) => { + (item: LogoItem, key: React.Key) => { if (renderItem) { return ( -
  • +
  • {renderItem(item, key)}
  • ); } + const isNodeItem = "node" in item; + const content = isNodeItem ? ( - {item.node} + {(item as any).node} ) : ( {item.alt ); + const itemAriaLabel = isNodeItem - ? (item.ariaLabel ?? item.title) - : (item.alt ?? item.title); - const itemContent = item.href ? ( + ? ((item as any).ariaLabel ?? (item as any).title) + : ((item as any).alt ?? (item as any).title); + + const inner = (item as any).href ? ( - {itemContent} +
  • + {inner}
  • ); }, - [renderItem], + [isVertical, scaleOnHover, renderItem], ); const logoLists = useMemo( () => Array.from({ length: copyCount }, (_, copyIndex) => (
      0} @@ -340,11 +456,11 @@ export const LogoLoop = memo( )}
    )), - [copyCount, logos, renderLogoItem], + [copyCount, logos, renderLogoItem, isVertical], ); const containerStyle = useMemo( - () => ({ + (): React.CSSProperties => ({ width: isVertical ? toCssLength(width) === "100%" ? undefined @@ -359,13 +475,61 @@ export const LogoLoop = memo( return (
    + {fadeOut && ( + <> + {isVertical ? ( + <> +
    +
    + + ) : ( + <> +
    +
    + + )} + + )} +
    You can reach me there:

    -
    +
    {contacts.map((contact, index) => ( window.open(contact.url, "_blank")} >
    -
    +

    {contact.name}

    {contact.label}