Skip to content

Commit

Permalink
Merge pull request #66 from Electrium-Mobility/close-application
Browse files Browse the repository at this point in the history
Updated Apply page to close applications
  • Loading branch information
Jerryzjx authored Sep 3, 2024
2 parents 901e35f + f2886bb commit 4ca6221
Showing 1 changed file with 105 additions and 1 deletion.
106 changes: 105 additions & 1 deletion src/pages/apply.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -184,7 +185,7 @@ const initialValues = {
comments: ""
};


/*
const ApplicationForm = () => {
const [showImages, setShowImages] = useState(false);
Expand Down Expand Up @@ -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 (
<Layout>
<div>
<div>
{showImages && (
<div className="images-container">
<img src={skateboard} alt="skateboard" style={{
position: 'absolute',
width: '150px',
height: 'auto',
left: '0',
transform: 'translateX(-10%)',
top: '50px'
}}/>
<img src={onewheel} alt="onewheel" style={{
position: 'absolute',
width: '150px',
height: 'auto',
right: '0',
transform: 'translateX(10%)',
top: '350px'
}}/>
<img src={scooter} alt="scooter" style={{
position: 'absolute',
width: '150px',
height: 'auto',
left: '0',
transform: 'translateX(-10%)',
top: '650px'
}}/>
<img src={skateboard2} alt="skateboard-right" style={{
position: 'absolute',
width: '150px',
height: 'auto',
right: '0',
transform: 'translateX(10%)',
top: '950px'
}}/>
<img src={onewheel2} alt="onewheel-left" style={{
position: 'absolute',
width: '150px',
height: 'auto',
left: '0',
transform: 'translateX(-10%)',
top: '1250px'
}}/>
</div>
)}
</div>
<div
className="max-w-xl mx-auto p-12 min-h-[calc(100vh-64px)] flex flex-col justify-center items-center text-center">
<h2 className="md:text-4xl text-3xl lg:leading-normal leading-normal font-medium text-green-600 mb-6">
Applications are now closed.
</h2>
<p className="text-slate-400">
Applications for the Fall 2024 term are now closed.
</p>

<div className="text-center px-6 mt-6">
<div className="w-20 h-20 bg-green-600/5 text-green-600 rounded-xl text-3xl flex align-middle justify-center items-center shadow-sm dark:shadow-gray-800 mx-auto">
<FaDiscord/>
</div>

<div className="content mt-7">

<div className="mt-5">
<p className="text-slate-400">
If you want to join our team, please contact Sherwin in our {' '}
<a href="https://discord.gg/jggFVza4XR"
target="_blank"
className="text-green-600 hover:text-green-600 duration-500 ease-in-out">
Discord server
</a>!
</p>
</div>

</div>
</div>
</div>
</div>
</Layout>
);
};

export default ApplicationClosed;

0 comments on commit 4ca6221

Please sign in to comment.