diff --git a/src/app/page.js b/src/app/page.js index e34d782..8c1265f 100644 --- a/src/app/page.js +++ b/src/app/page.js @@ -17,20 +17,16 @@ export default function Home() {

MP


-

First MP Name

-

- Due Sep 15th, 23:59 CST -

+

Come back later!

+

In the future

Lab


-

First Lab Name

-

- Due Sep 15th, 23:59 CST -

+

Come back later!

+

In the future

diff --git a/src/app/support/StaffCard.js b/src/app/support/StaffCard.js new file mode 100644 index 0000000..8c918b8 --- /dev/null +++ b/src/app/support/StaffCard.js @@ -0,0 +1,56 @@ +import Image from "next/image"; +import Tooltip from "./Tooltip"; + +import squ from "public/profile_img/squ.jpg"; + +const StaffCard = () => { + return ( +
+
+ Profile Image +
+
+

Squirrel Snow

+

She/Her

+
+
+
+ + + 🎨 + + + + + 📚 + + + + + 🏃‍♀️ + + +
+
+ ); +}; + +export default StaffCard; diff --git a/src/app/support/Tooltip.js b/src/app/support/Tooltip.js new file mode 100644 index 0000000..1c7a1b9 --- /dev/null +++ b/src/app/support/Tooltip.js @@ -0,0 +1,37 @@ +"use client"; + +import { useState } from "react"; + +const Tooltip = ({ text, children }) => { + const [showTooltip, setShowTooltip] = useState(false); + const [hoverTimeout, setHoverTimeout] = useState(null); + + const handleMouseEnter = () => { + const timeout = setTimeout(() => { + setShowTooltip(true); + }, 1000); // 1 second + setHoverTimeout(timeout); + }; + + const handleMouseLeave = () => { + clearTimeout(hoverTimeout); + setShowTooltip(false); + }; + + return ( +
+ {children} + {showTooltip && ( +
+ {text} +
+ )} +
+ ); +}; + +export default Tooltip; diff --git a/src/app/support/page.js b/src/app/support/page.js index 09ec003..a52f989 100644 --- a/src/app/support/page.js +++ b/src/app/support/page.js @@ -2,6 +2,7 @@ import Image from "next/image"; import React from "react"; import squ from "public/profile_img/squ.jpg"; +import StaffCard from "./StaffCard"; const SupportPage = () => { return ( @@ -72,99 +73,9 @@ const SupportPage = () => { Meet Staffs
-
-
- Profile Image -
-
-

Squirrel Snow

-

She/Her

-
-
-
- - 🎨 - {" "} - {/* Example emoji for hobby */} - - 📚 - {" "} - {/* Example emoji for hobby */} - - 🏃‍♀️ - {" "} - {/* Example emoji for hobby */} -
- {/*
*/} -
-
-
- Profile Image -
-
-

Squirrel Snow

-

She/Her

-
-
-
- - 🎨 - {" "} - {/* Example emoji for hobby */} - - 📚 - {" "} - {/* Example emoji for hobby */} - - 🏃‍♀️ - {" "} - {/* Example emoji for hobby */} -
- {/*
*/} -
-
-
- Profile Image -
-
-

Squirrel Snow

-

She/Her

-
-
-
- - 🎨 - {" "} - {/* Example emoji for hobby */} - - 📚 - {" "} - {/* Example emoji for hobby */} - - 🏃‍♀️ - {" "} - {/* Example emoji for hobby */} -
- {/*
*/} -
+ + +