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

Remove nominations page #56

Merged
merged 3 commits into from
Jan 17, 2024
Merged
Show file tree
Hide file tree
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
9 changes: 0 additions & 9 deletions components/Navigation.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -155,15 +155,6 @@ const Navigation = () => {
</Link>
</NavItem>

<NavItem>
<Link href="/nominations" passHref>
<NextNavLink
className={getNavLinkClass("/nominations")}
>
<span className="nav-link-inner--text">Nominations</span>
</NextNavLink>
</Link>
</NavItem>
KKSurendran06 marked this conversation as resolved.
Show resolved Hide resolved
</Nav>


Expand Down
34 changes: 34 additions & 0 deletions pages/nominations.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React from "react";
import Head from "next/head";

// reactstrap components
import { Row, Col, Container, Button } from "reactstrap";
Expand All @@ -18,6 +19,8 @@ import styles from "styles/modules/nominations.module.scss";
const Nominations = () => {
const [showModal, setShowModal] = useState(false);
const [nominee, setNominee] = useState({});
const showNominations = false; // Change this to true when nominations are open


// Given a person's name, returns all roles they're nominated for
const getNominatedRoles = (name) => {
Expand All @@ -43,8 +46,39 @@ const Nominations = () => {
setShowModal(!showModal);
};

if (!showNominations) {
return (
<>
<Head>
<title>Nominations | UNSW Co-op Society</title>
</Head>

<section className="section section-lg">
<Row className="justify-content-center text-center ">
<Col lg="8">
<h1 className="animate__animated animate__zoomIn animate__fast">VOTING CLOSED</h1>
</Col>
</Row>

<Container className="py-lg-md d-flex">
<Row className="justify-content-center text-center">
<Col lg="10">
<p className="lead text-muted">
Thank you for participating! The voting process for the new executive team has concluded. Come back at the end of this year for the next round of nominations!
</p>
</Col>
</Row>
</Container>
</section>
</>
);
}

return (
<>
KKSurendran06 marked this conversation as resolved.
Show resolved Hide resolved
<Head>
<title>Nominations | UNSW Co-op Society</title>
</Head>
<section className="section section-lg">
{/* Title */}
<Row className="justify-content-center text-center">
Expand Down