diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000..26c6e92 Binary files /dev/null and b/.DS_Store differ diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..b58b603 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,5 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Editor-based HTTP Client requests +/httpRequests/ diff --git a/.idea/anwendungsprojekt.iml b/.idea/anwendungsprojekt.iml new file mode 100644 index 0000000..24643cc --- /dev/null +++ b/.idea/anwendungsprojekt.iml @@ -0,0 +1,12 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..da0c51c --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..35eb1dd --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/anwendung/src/components/tile.jsx b/anwendung/src/components/tile.jsx new file mode 100644 index 0000000..55a7af2 --- /dev/null +++ b/anwendung/src/components/tile.jsx @@ -0,0 +1,67 @@ +import React from 'react'; + +const Tile = () => { + const [isHovered, setIsHovered] = React.useState(false); + const [cursorPosition, setCursorPosition] = React.useState({ x: 0, y: 0 }); + const tileRef = React.useRef(null); + + const handleMouseEnter = () => { + setIsHovered(true); + }; + + const handleMouseLeave = () => { + setIsHovered(false); + }; + + const handleMouseMove = (event) => { + if (tileRef.current) { + const rect = tileRef.current.getBoundingClientRect(); + setCursorPosition({ + x: event.clientX - rect.left, + y: event.clientY - rect.top, + }); + } + }; + + return ( +
+ Kalender + + + {isHovered && ( +
+ )} +
+ ); +}; + +export default Tile; diff --git a/anwendung/src/styles/globals.css b/anwendung/src/styles/globals.css index 6ae40b4..ec7cbc8 100644 --- a/anwendung/src/styles/globals.css +++ b/anwendung/src/styles/globals.css @@ -298,3 +298,4 @@ Calender View cursor: default; pointer-events: none; } +