Merge branch 'master' into 'production'
master -> prod contacts page update See merge request sahkoinsinoorikilta/vtmk/web2.0-frontend!100
This commit is contained in:
@@ -18,8 +18,8 @@ const Row = styled.div`
|
|||||||
|
|
||||||
const ImageContainer = styled.div`
|
const ImageContainer = styled.div`
|
||||||
position: relative;
|
position: relative;
|
||||||
height: 150px;
|
height: 125px;
|
||||||
width: 150px;
|
width: 125px;
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
|
|
||||||
img {
|
img {
|
||||||
@@ -33,17 +33,17 @@ const Info = styled.div`
|
|||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
align-items: flex-start;
|
align-items: flex-start;
|
||||||
margin-left: -20px;
|
margin-left: -20px;
|
||||||
min-width: 225px;
|
min-width: 150px;
|
||||||
padding: 2rem;
|
padding: 2rem;
|
||||||
color: ${colors.darkBlue};
|
color: ${colors.darkBlue};
|
||||||
|
|
||||||
& > p {
|
& > p {
|
||||||
font-size: 1.1rem;
|
font-size: 1.0rem;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
& > h3 {
|
& > h3 {
|
||||||
font-size: 1.4rem;
|
font-size: 1.2rem;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
|
|||||||
@@ -70,9 +70,13 @@ const Index: React.FC<{ committees: typeof orderedCommittees }> = ({ committees
|
|||||||
|
|
||||||
const Container = styled.div`
|
const Container = styled.div`
|
||||||
color: ${colors.darkBlue};
|
color: ${colors.darkBlue};
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
width: 50vw;
|
||||||
|
|
||||||
& > h2 {
|
& > h2 {
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
|
font-size: 4rem;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -80,15 +84,39 @@ const Container = styled.div`
|
|||||||
display: flex;
|
display: flex;
|
||||||
flex-flow: row wrap;
|
flex-flow: row wrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media (max-width: 950px) {
|
||||||
|
width: 100vw;
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
|
const ContactContainer = styled.div`
|
||||||
|
margin-top: -13rem;
|
||||||
|
overflow-x: hidden;
|
||||||
|
@media (max-width: 950px) {
|
||||||
|
margin-top: 0;
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
|
const TitleContainer = styled.div`
|
||||||
|
display: flex;
|
||||||
|
width: 100%;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
padding: 10px 10px;
|
||||||
|
flex-direction: column;
|
||||||
|
margin: auto;
|
||||||
`;
|
`;
|
||||||
|
|
||||||
const CommitteeContainer: React.FC<{
|
const CommitteeContainer: React.FC<{
|
||||||
committee: Committee;
|
committee: Committee;
|
||||||
}> = ({ committee, children }) => (
|
}> = ({ committee, children }) => (
|
||||||
<Container>
|
<Container>
|
||||||
<h2>
|
<TitleContainer>
|
||||||
{committee.name_fi || committee.name_en}
|
<h2>
|
||||||
</h2>
|
{committee.name_fi || committee.name_en}
|
||||||
|
</h2>
|
||||||
|
</TitleContainer>
|
||||||
<div>
|
<div>
|
||||||
{committee.roles.map((role) => (
|
{committee.roles.map((role) => (
|
||||||
role.representatives.map((representative) => (
|
role.representatives.map((representative) => (
|
||||||
@@ -143,28 +171,31 @@ const ContactsPageView: React.FC = () => (
|
|||||||
</div>
|
</div>
|
||||||
</aside>
|
</aside>
|
||||||
</TextSection>
|
</TextSection>
|
||||||
|
<ContactContainer>
|
||||||
|
|
||||||
{orderedCommittees.map((json) => (
|
{orderedCommittees.map((json) => (
|
||||||
<React.Fragment key={json.slug}>
|
<React.Fragment key={json.slug}>
|
||||||
{(json.slug !== "board") && (
|
{(json.slug !== "board") && (
|
||||||
<Divider />
|
<Divider />
|
||||||
)}
|
)}
|
||||||
<TextSection id={json.slug}>
|
<TextSection id={json.slug}>
|
||||||
<CommitteeContainer committee={json}>
|
<CommitteeContainer committee={json}>
|
||||||
{(json.slug === "board") && (
|
{(json.slug === "board") && (
|
||||||
<p>
|
<p>
|
||||||
{"Hallitukseen saa yhteyden lähettämällä sähköpostia "}
|
{"Hallitukseen saa yhteyden lähettämällä sähköpostia "}
|
||||||
<BlueLink to="mailto:hallitus@sahkoinsinoorikilta.fi">
|
<BlueLink to="mailto:hallitus@sahkoinsinoorikilta.fi">
|
||||||
hallitus@sahkoinsinoorikilta.fi
|
hallitus@sahkoinsinoorikilta.fi
|
||||||
</BlueLink>
|
</BlueLink>
|
||||||
{". Hallituksen yksittäisiin jäseniin saat yhteyden etunimi.sukunimi@sahkoinsinoorikilta.fi osoitteista."}
|
{". Hallituksen yksittäisiin jäseniin saat yhteyden etunimi.sukunimi@sahkoinsinoorikilta.fi osoitteista."}
|
||||||
</p>
|
</p>
|
||||||
)}
|
)}
|
||||||
</CommitteeContainer>
|
</CommitteeContainer>
|
||||||
</TextSection>
|
</TextSection>
|
||||||
</React.Fragment>
|
</React.Fragment>
|
||||||
))}
|
))}
|
||||||
|
</ContactContainer>
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
export default ContactsPageView;
|
export default ContactsPageView;
|
||||||
|
|||||||
Reference in New Issue
Block a user