diff --git a/src/App.tsx b/src/App.tsx index 8369bdb..9e30e9a 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,6 +1,6 @@ import React, { useState, useEffect } from "react"; -import { Flashlight, FlashlightOff, Twitter, Github } from 'lucide-react' -import CordycepsImage from './assets/cordyceps.png' +import { Flashlight, FlashlightOff, Twitter, Github } from "lucide-react"; +import CordycepsImage from "./assets/cordyceps.png"; import MusicComponent from "./components/MusicComponent"; import TVComponent from "./components/TVComponent"; @@ -13,8 +13,7 @@ export default function MouseFlashlight() { // Detect touch device on component mount useEffect(() => { const isTouchCapable = - "ontouchstart" in window || - navigator.maxTouchPoints > 0; + "ontouchstart" in window || navigator.maxTouchPoints > 0; setIsTouchDevice(isTouchCapable); }, []); @@ -95,7 +94,9 @@ export default function MouseFlashlight() { window.addEventListener("mouseleave", windowMouseLeave); // Add mobile event listeners - window.addEventListener("touchstart", windowTouchStart, { passive: false }); + window.addEventListener("touchstart", windowTouchStart, { + passive: false, + }); window.addEventListener("touchmove", windowTouchMove, { passive: false }); window.addEventListener("touchend", windowTouchEnd); } else { @@ -129,84 +130,114 @@ export default function MouseFlashlight() { onTouchEnd={handleTouchEnd} >
-
-
-
setIsFlashlightEnabled(!isFlashlightEnabled)}> - { - isFlashlightEnabled ? : - } -
-

welcome !

-
-
- -
-
-
-
-

alex, 17

- Profile - - -
-
-
-

what i do

-

- qa @ medal.tv, game, code -

- -

obsessed with

-

- tlou, twd, rdr -

- -

watching

- - - -

socials

- -
-
+
+
+
setIsFlashlightEnabled(!isFlashlightEnabled)} + > + {isFlashlightEnabled ? : }
+

welcome !

+
+
+
+
+
+

+ alex, 18 +

+ Profile + + +
+
+
+

what i do

+

+ qa @{" "} + + medal.tv + + , game, code +

+ +

obsessed with

+

tlou, twd, rdr

+ +

watching

+ + +

socials

+ +
+
+
+
+ {isFlashlightEnabled && ( <> -
+
+ Cordyceps -
- Cordyceps -
-
+
); -} \ No newline at end of file +}