hallitusbigpick

This commit is contained in:
toimistokone
2026-03-18 14:54:52 +02:00
parent 20f39b545d
commit 170e7b3c31
2 changed files with 15 additions and 1 deletions
+14
View File
@@ -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` const ContactContainer = styled.div`
overflow-x: hidden; overflow-x: hidden;
@media (max-width: 950px) { @media (max-width: 950px) {
@@ -54,6 +61,12 @@ const CommitteeContainer: React.FC<{
children: React.ReactNode; children: React.ReactNode;
}> = ({ committee, children }) => ( }> = ({ committee, children }) => (
<Container> <Container>
{committee.slug === "board" && (
<BoardImage
src="https://static.sahkoinsinoorikilta.fi/img/board/2026/Pota105_sikh26_webiin.jpg"
alt="Hallitus 2026"
/>
)}
<div> <div>
{committee.roles.map((role) => ( {committee.roles.map((role) => (
role.representatives.map((representative) => ( role.representatives.map((representative) => (
@@ -74,6 +87,7 @@ const CommitteeContainer: React.FC<{
); );
interface Committee { interface Committee {
slug: string;
name_fi: string; name_fi: string;
name_en: string; name_en: string;
roles: Array<Role>; roles: Array<Role>;
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"slug": "board", "slug": "board",
"name_fi": "Hallitus 2024", "name_fi": "Hallitus 2026",
"name_en": "Board", "name_en": "Board",
"roles": [ "roles": [
{ {