diff --git a/src/constants/Sponsors.js b/src/constants/Sponsors.js index 13864406..e4a3715b 100644 --- a/src/constants/Sponsors.js +++ b/src/constants/Sponsors.js @@ -7,7 +7,7 @@ export const diamondSponsors = [ url: 'https://www.shadcnblocks.com/' }, { - id: 1, + id: 2, name: 'shadcn studio', imageUrl: '/assets/sponsors/shadcnstudio.svg', url: 'https://shadcnstudio.com/' diff --git a/src/content/Animations/TargetCursor/TargetCursor.jsx b/src/content/Animations/TargetCursor/TargetCursor.jsx index 57689563..595c2b4d 100644 --- a/src/content/Animations/TargetCursor/TargetCursor.jsx +++ b/src/content/Animations/TargetCursor/TargetCursor.jsx @@ -20,6 +20,7 @@ const TargetCursor = ({ const activeStrengthRef = useRef(0); const isMobile = useMemo(() => { + if (typeof window === 'undefined') return false; const hasTouchScreen = 'ontouchstart' in window || navigator.maxTouchPoints > 0; const isSmallScreen = window.innerWidth <= 768; const userAgent = navigator.userAgent || navigator.vendor || window.opera; diff --git a/src/tailwind/Animations/TargetCursor/TargetCursor.jsx b/src/tailwind/Animations/TargetCursor/TargetCursor.jsx index 3ecbbb81..9c318865 100644 --- a/src/tailwind/Animations/TargetCursor/TargetCursor.jsx +++ b/src/tailwind/Animations/TargetCursor/TargetCursor.jsx @@ -19,6 +19,7 @@ const TargetCursor = ({ const activeStrengthRef = useRef(0); const isMobile = useMemo(() => { + if (typeof window === 'undefined') return false; const hasTouchScreen = 'ontouchstart' in window || navigator.maxTouchPoints > 0; const isSmallScreen = window.innerWidth <= 768; const userAgent = navigator.userAgent || navigator.vendor || window.opera; diff --git a/src/ts-default/Animations/TargetCursor/TargetCursor.tsx b/src/ts-default/Animations/TargetCursor/TargetCursor.tsx index 16416ed8..b77cb7cc 100644 --- a/src/ts-default/Animations/TargetCursor/TargetCursor.tsx +++ b/src/ts-default/Animations/TargetCursor/TargetCursor.tsx @@ -28,6 +28,7 @@ const TargetCursor: React.FC = ({ const activeStrengthRef = useRef({ current: 0 }); const isMobile = useMemo(() => { + if (typeof window === 'undefined') return false; const hasTouchScreen = 'ontouchstart' in window || navigator.maxTouchPoints > 0; const isSmallScreen = window.innerWidth <= 768; const userAgent = navigator.userAgent || navigator.vendor || (window as any).opera; diff --git a/src/ts-tailwind/Animations/TargetCursor/TargetCursor.tsx b/src/ts-tailwind/Animations/TargetCursor/TargetCursor.tsx index 42d624c5..453435de 100644 --- a/src/ts-tailwind/Animations/TargetCursor/TargetCursor.tsx +++ b/src/ts-tailwind/Animations/TargetCursor/TargetCursor.tsx @@ -27,6 +27,7 @@ const TargetCursor: React.FC = ({ const activeStrengthRef = useRef({ current: 0 }); const isMobile = useMemo(() => { + if (typeof window === 'undefined') return false; const hasTouchScreen = 'ontouchstart' in window || navigator.maxTouchPoints > 0; const isSmallScreen = window.innerWidth <= 768; const userAgent = navigator.userAgent || navigator.vendor || (window as any).opera;