diff --git a/package.json b/package.json index f589943..31a2f63 100644 --- a/package.json +++ b/package.json @@ -5,6 +5,7 @@ "type": "module", "scripts": { "start": "vite --host", + "check": "tsc --noEmit", "build": "tsc && vite build", "serve": "vite preview", "blog": "node scripts/blog.js" diff --git a/src/pages/main/Contact.tsx b/src/pages/main/Contact.tsx index e5fddf8..e53cf44 100644 --- a/src/pages/main/Contact.tsx +++ b/src/pages/main/Contact.tsx @@ -5,6 +5,7 @@ import Container from "../../components/Container"; import { setupCursorTracking } from "../../util"; import { ReactComponent as Logo } from "../../assets/logo.svg"; import { DraggableButton } from "../../components/DraggableButton"; +import { Flippable } from "../../components/Flippable"; const A = css` text-decoration: none; @@ -43,7 +44,13 @@ const CONTACT: Contact = { "Blog": { value: "→", link: "https://MKRhere.com" }, }; -const Home: React.FC = () => { +// slightly random rotations within -20 to 20 degrees +const cardRotations = Array.from({ length: 5 }, (_, i) => { + const rotation = Math.random() * 40 - 20; + return rotation; +}); + +const Contact: React.FC = () => { const [contact, setContact] = useState(CONTACT); useEffect(() => { @@ -89,113 +96,131 @@ const Home: React.FC = () => { position: relative; `}>

MKRhere

- - - - ( + + +
+
    + {Object.keys(contact).map(key => ( +
  • + {key}. +
  • + ))} +
+
    + {Object.keys(contact).map(key => { + const value = contact[key]; + + return ( +
  • + {value.link ? ( + + {value.value} + + ) : ( + value.value + )} +
  • + ); + })} +
+ } - } - `} - ref={setupCursorTracking}> -
-
    - {Object.keys(contact).map(key => ( -
  • - {key}. -
  • - ))} -
-
    - {Object.keys(contact).map(key => { - const value = contact[key]; - - return ( -
  • - {value.link ? ( - - {value.value} - - ) : ( - value.value - )} -
  • - ); - })} -
- + back={ +
+ +
+ } + /> + + ))} ); }; -export default Home; +export default Contact;