Create orange PageSection

This commit is contained in:
Aarni Halinen
2018-11-17 15:07:31 +02:00
parent ebba39f16f
commit fe50ab9685
3 changed files with 13 additions and 2 deletions
@@ -20,4 +20,9 @@
background-color: $white;
color: $dark-blue;
}
&.orange {
background-color: $orange1;
color: $white;
}
}
@@ -4,6 +4,7 @@ import "./PageSection.scss";
export enum BackgroundColor {
DarkBlue,
White,
Orange,
}
export interface PageSectionProps {
@@ -14,6 +15,7 @@ export interface PageSectionState {}
const colors = new Map<BackgroundColor, string>([
[BackgroundColor.DarkBlue, "dark-blue"],
[BackgroundColor.White, "white"],
[BackgroundColor.Orange, "orange"],
]);
class PageSection extends React.Component<PageSectionProps, PageSectionState> {
+6 -2
View File
@@ -83,14 +83,18 @@ class FrontPage extends React.Component<FrontPageProps, FrontPageState> {
{events.map(event => (
<Card
title={event.title}
start_time={event.start_time}
text={event.description}
key={event.id}
image={BeerImage}
/>
))}
</PageSection>
<PageSection backgroundColor={PageSectionColor.DarkBlue}>
Märkää
<PageSection backgroundColor={PageSectionColor.Orange}>
Sössöä vuodesta 1969. Lue opiskelijalehden viimeisin numero
</PageSection>
<PageSection backgroundColor={PageSectionColor.White}>
Uutiset
</PageSection>
<PageSection backgroundColor={PageSectionColor.White}>
Sponssit