diff --git a/.eslintrc.js b/.eslintrc.js index 883d59e..3de1bcc 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -51,5 +51,7 @@ module.exports = { "no-mixed-spaces-and-tabs": "warn", "no-tabs": "warn", "react/jsx-indent": "warn", + "padded-blocks": "warn", + "spaced-comment": "warn", }, }; diff --git a/src/pages/signup/[id].tsx b/src/pages/signup/[id].tsx index 3bba852..2721202 100644 --- a/src/pages/signup/[id].tsx +++ b/src/pages/signup/[id].tsx @@ -46,17 +46,24 @@ const SignUpPage: NextPage = ({ initialForm }) => { ); } - const onSubmit = async ({ formData }: ISubmitEvent) => { + const onSubmit = async ({ formData }: ISubmitEvent) => { + + //for bot detection + if (honeypot !== "") { console.log("bot cought in honeypot cought lacking"); toast.success("Sign-up submitted successfully 😎"); return; } + const trackedForm = { + ...formData, + _source: "from the webs submit", + }; const payload: Signup = { submit_id: SUBMIT_ID, // This is for preventing duplicate requests; NOT RELATED TO THE SIGNUP ID IN DATABASE signupForm_id: signupForm.id, - answer: formData, + answer: trackedForm, }; try { diff --git a/src/views/BoardPage/BoardPageView.tsx b/src/views/BoardPage/BoardPageView.tsx index 41d6380..04932e0 100644 --- a/src/views/BoardPage/BoardPageView.tsx +++ b/src/views/BoardPage/BoardPageView.tsx @@ -38,10 +38,17 @@ const Container = styled.div` } @media (max-width: 950px) { - width: 100vw; + width: 80vw; } `; +const BoardImage = styled.img` + width: 100%; + height: auto; + margin-bottom: 2rem; + border-radius: 8px; +`; + const ContactContainer = styled.div` overflow-x: hidden; @media (max-width: 950px) { @@ -54,6 +61,12 @@ const CommitteeContainer: React.FC<{ children: React.ReactNode; }> = ({ committee, children }) => ( + {committee.slug === "board" && ( + + )}
{committee.roles.map((role) => ( role.representatives.map((representative) => ( @@ -74,6 +87,7 @@ const CommitteeContainer: React.FC<{ ); interface Committee { + slug: string; name_fi: string; name_en: string; roles: Array; diff --git a/src/views/BoardPage/board.json b/src/views/BoardPage/board.json index 448f6fd..a8297df 100644 --- a/src/views/BoardPage/board.json +++ b/src/views/BoardPage/board.json @@ -1,6 +1,6 @@ { "slug": "board", - "name_fi": "Hallitus 2024", + "name_fi": "Hallitus 2026", "name_en": "Board", "roles": [ {