Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated Apply page to close applications #66

Merged
merged 1 commit into from
Sep 3, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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;