Merge branch 'master' into 'production'

add picture of hallitus to hallitus page

See merge request sahkoinsinoorikilta/vtmk/web2.0-frontend!204
This commit is contained in:
J4DER4
2026-03-23 12:47:00 +00:00
4 changed files with 27 additions and 4 deletions
+2
View File
@@ -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",
},
};
+9 -2
View File
@@ -46,17 +46,24 @@ const SignUpPage: NextPage<InitialProps> = ({ initialForm }) => {
);
}
const onSubmit = async ({ formData }: ISubmitEvent<string>) => {
const onSubmit = async ({ formData }: ISubmitEvent<any>) => {
//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 {
+15 -1
View File
@@ -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 }) => (
<Container>
{committee.slug === "board" && (
<BoardImage
src="https://static.sahkoinsinoorikilta.fi/img/board/2026/Pota105_sikh26_webiin.jpg"
alt="Hallitus 2026"
/>
)}
<div>
{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<Role>;
+1 -1
View File
@@ -1,6 +1,6 @@
{
"slug": "board",
"name_fi": "Hallitus 2024",
"name_fi": "Hallitus 2026",
"name_en": "Board",
"roles": [
{