From f2886bb7e83006fb49b8875955b4a0a2dcc8faed Mon Sep 17 00:00:00 2001 From: Jerry Zhang Date: Tue, 3 Sep 2024 10:46:17 -0400 Subject: [PATCH] Updated Apply page to close applications --- src/pages/apply.tsx | 106 +++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 105 insertions(+), 1 deletion(-) diff --git a/src/pages/apply.tsx b/src/pages/apply.tsx index 71e3b36..642405a 100644 --- a/src/pages/apply.tsx +++ b/src/pages/apply.tsx @@ -19,6 +19,7 @@ import onewheel from '../../static/img/roles-responsibilty/onewheel.png'; import scooter from '../../static/img/roles-responsibilty/scooter.png'; import skateboard2 from '../../static/img/roles-responsibilty/skateboard2.png'; import onewheel2 from '../../static/img/roles-responsibilty/onewheel2.png'; +import {FaDiscord} from "react-icons/fa"; const SELECT_PROGRAMS = [ "Accounting and Financial Management", @@ -184,7 +185,7 @@ const initialValues = { comments: "" }; - +/* const ApplicationForm = () => { const [showImages, setShowImages] = useState(false); @@ -437,3 +438,106 @@ const ApplicationForm = () => { }; export default ApplicationForm; +*/ +const ApplicationClosed: React.FC = () => { + const [showImages, setShowImages] = useState(false); + + useEffect(() => { + const handleResize = () => { + setShowImages(window.innerWidth >= 1034); + }; + + handleResize(); + + window.addEventListener('resize', handleResize); + + return () => { + window.removeEventListener('resize', handleResize); + }; + }, []); + + return ( + +
+
+ {showImages && ( +
+ skateboard + onewheel + scooter + skateboard-right + onewheel-left +
+ )} +
+
+

+ Applications are now closed. +

+

+ Applications for the Fall 2024 term are now closed. +

+ +
+
+ +
+ +
+ +
+

+ If you want to join our team, please contact Sherwin in our {' '} + + Discord server + ! +

+
+ +
+
+
+
+
+ ); +}; + +export default ApplicationClosed;