Some flex changes and info on Contact Page

This commit is contained in:
Aarni Halinen
2019-11-08 19:10:59 +02:00
parent b13f88d7ed
commit 162afb5d37
3 changed files with 19 additions and 9 deletions
@@ -8,7 +8,7 @@
&__contacts {
display: flex;
flex-direction: row;
flex-flow: row wrap;
justify-content: flex-start;
}
}
@@ -25,6 +25,7 @@
&__container {
padding: 15px;
display: flex;
flex-shrink: 0;
justify-content: center;
align-items: center;
max-height: 100px;
+17 -8
View File
@@ -1,7 +1,7 @@
import * as React from "react";
import Helmet from "react-helmet";
import "./ContactsPage.scss";
import { ColorEnum } from "../../components/ColorDiv/ColorDiv";
import { ColorEnum, getColor, getHoverColor } from "../../components/ColorDiv/ColorDiv";
import { StaticContext } from "../../server/StaticContext";
import PageLink from "../../components/PageLink/PageLink";
import Card from "../../components/Card";
@@ -10,6 +10,7 @@ import HeroMainSection from "../../components/HeroMainSection";
import ContactCard from "../../components/ContactCard";
import { getContacts, Occupation, Committee, getCommittees } from "../../models/Contacts";
import CommitteeContainer from "../../components/CommitteeContainer";
import Anchor from "../../components/Anchor/index";
interface ContactsPageProps {
staticContext: StaticContext;
@@ -85,15 +86,23 @@ class ContactsPage extends React.Component<ContactsPageProps, ContactsPageState>
<Helmet>
<link rel="canonical" href="https://sik.ayy.fi/INSERT_PATH_HERE!" />
</Helmet>
Contacts Page
<HeroMainSection>
<h1>Aalto-yliopiston Sähköinsinöörikilta</h1>
<PageSection backgroundColor={ColorEnum.White} textColor={ColorEnum.DarkBlue}>
<p>
lorem ipsum dolor est
Asiaa olisi, mutta kehen ottaa yhteyttä?<br />
Tämä sivu yrittää valottaa sen oikean ihmisen puhelinnumeroa ja sähköpostiosoitetta.
</p>
</HeroMainSection>
<PageSection backgroundColor={ColorEnum.White}>
<CommitteeContainer name_fi="Hallitus" name_en="Board" contacts={board} />
</PageSection>
<PageSection backgroundColor={ColorEnum.White} textColor={ColorEnum.DarkBlue} bottomBorder>
<div>
<CommitteeContainer name_fi="Hallitus" name_en="Board" contacts={board} />
<p>
Hallitukseen saa yhteyden lähettämällä sähköpostia <Anchor
className={`${getColor(ColorEnum.DarkBlue)} ${getHoverColor(ColorEnum.LightBlue)}`}
to="mailto:sik-hallitus@list.ayy.fi">
sik-hallitus@list.ayy.fi
</Anchor>
</p>
</div>
</PageSection>
{committees.map((committee, index) => (
<PageSection key={index} backgroundColor={ColorEnum.White}>