From 4c69a4620d3d90c366c1acd8150e3801ac180a61 Mon Sep 17 00:00:00 2001 From: jadera Date: Wed, 11 Mar 2026 11:44:37 +0200 Subject: [PATCH 1/6] to detect source --- src/pages/signup/[id].tsx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/pages/signup/[id].tsx b/src/pages/signup/[id].tsx index 3bba852..052cd0c 100644 --- a/src/pages/signup/[id].tsx +++ b/src/pages/signup/[id].tsx @@ -47,16 +47,23 @@ const SignUpPage: NextPage = ({ initialForm }) => { } 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 { From 7a9805ebe9cbb32b45ac121a0f5177617c6c965e Mon Sep 17 00:00:00 2001 From: jadera Date: Wed, 11 Mar 2026 11:52:18 +0200 Subject: [PATCH 2/6] kappaa --- .eslintrc.js | 2 ++ src/pages/signup/[id].tsx | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.eslintrc.js b/.eslintrc.js index 883d59e..172ef1b 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 052cd0c..9518164 100644 --- a/src/pages/signup/[id].tsx +++ b/src/pages/signup/[id].tsx @@ -57,7 +57,7 @@ const SignUpPage: NextPage = ({ initialForm }) => { } const trackedForm = { ...formData, - _source: "from the webs submit" + _source: "from the webs submit", }; const payload: Signup = { From 22454369fd40c8703d0cea8d44c438ccec585660 Mon Sep 17 00:00:00 2001 From: jadera Date: Wed, 11 Mar 2026 11:56:44 +0200 Subject: [PATCH 3/6] xd --- .eslintrc.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.eslintrc.js b/.eslintrc.js index 172ef1b..3de1bcc 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -52,6 +52,6 @@ module.exports = { "no-tabs": "warn", "react/jsx-indent": "warn", "padded-blocks": "warn", - "spaced-comment": "warn",, + "spaced-comment": "warn", }, }; From 20f39b545d479eead68f69103d54df34cd9b14be Mon Sep 17 00:00:00 2001 From: jadera Date: Wed, 11 Mar 2026 12:04:30 +0200 Subject: [PATCH 4/6] allow ... operator --- src/pages/signup/[id].tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/signup/[id].tsx b/src/pages/signup/[id].tsx index 9518164..2721202 100644 --- a/src/pages/signup/[id].tsx +++ b/src/pages/signup/[id].tsx @@ -46,7 +46,7 @@ const SignUpPage: NextPage = ({ initialForm }) => { ); } - const onSubmit = async ({ formData }: ISubmitEvent) => { + const onSubmit = async ({ formData }: ISubmitEvent) => { //for bot detection From 170e7b3c31e71a1c1deb652ccee4600eb5e2cbd7 Mon Sep 17 00:00:00 2001 From: toimistokone Date: Wed, 18 Mar 2026 14:54:52 +0200 Subject: [PATCH 5/6] hallitusbigpick --- src/views/BoardPage/BoardPageView.tsx | 14 ++++++++++++++ src/views/BoardPage/board.json | 2 +- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/src/views/BoardPage/BoardPageView.tsx b/src/views/BoardPage/BoardPageView.tsx index 41d6380..32c606e 100644 --- a/src/views/BoardPage/BoardPageView.tsx +++ b/src/views/BoardPage/BoardPageView.tsx @@ -42,6 +42,13 @@ const Container = styled.div` } `; +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": [ { From d0a930794e476d5d132e06224c38446160608e8a Mon Sep 17 00:00:00 2001 From: toimistokone Date: Mon, 23 Mar 2026 14:13:09 +0200 Subject: [PATCH 6/6] fix poop overflow --- src/views/BoardPage/BoardPageView.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/BoardPage/BoardPageView.tsx b/src/views/BoardPage/BoardPageView.tsx index 32c606e..04932e0 100644 --- a/src/views/BoardPage/BoardPageView.tsx +++ b/src/views/BoardPage/BoardPageView.tsx @@ -38,7 +38,7 @@ const Container = styled.div` } @media (max-width: 950px) { - width: 100vw; + width: 80vw; } `;