Implement some front page styles

This commit is contained in:
Jan Tuomi
2018-11-16 19:49:21 +02:00
parent 5a64b05b1c
commit c371a35a3c
6 changed files with 13 additions and 8 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

+5 -1
View File
@@ -1,5 +1,9 @@
.header { .header {
display: flex; display: flex;
flex-flow: column nowrap; flex-flow: row nowrap;
align-items: center; align-items: center;
img {
max-width: 200px;
}
} }
+3 -1
View File
@@ -1,6 +1,8 @@
import * as React from "react"; import * as React from "react";
import "./Header.scss"; import "./Header.scss";
import Navigation from "../Navigation"; import Navigation from "../Navigation";
// @ts-ignore
import * as TitleImage from "../../assets/img/SIK_RGB_W_side.png";
export interface HeaderProps {} export interface HeaderProps {}
export interface HeaderState {} export interface HeaderState {}
@@ -9,7 +11,7 @@ class Header extends React.Component<HeaderProps, HeaderState> {
render() { render() {
return ( return (
<div className="header"> <div className="header">
<h1>Aalto-yliopiston Sähköinsinöörikilta</h1> <img src={TitleImage} />
<Navigation /> <Navigation />
</div> </div>
); );
+3 -2
View File
@@ -5,8 +5,9 @@ $border-width: 2px;
width: 100%; width: 100%;
display: flex; display: flex;
flex-flow: row nowrap; flex-flow: row nowrap;
justify-content: center; justify-content: flex-start;
margin-bottom: 3rem; align-items: center;
font-size: 12px;
&__item { &__item {
padding: 0.8rem 2rem; padding: 0.8rem 2rem;
+1 -3
View File
@@ -8,7 +8,6 @@ body {
height: 100%; height: 100%;
font-family: $font; font-family: $font;
color: $white; color: $white;
text-align: center;
overflow: auto; overflow: auto;
} }
@@ -18,8 +17,7 @@ body {
} }
body { body {
max-width: 1200px; padding: 0 1rem;
padding: 0 0.5rem;
margin: auto !important; margin: auto !important;
} }
+1 -1
View File
@@ -1,5 +1,5 @@
.front-page { .front-page {
display: flex; display: flex;
flex-flow: row wrap; flex-flow: row wrap;
justify-content: center; justify-content: flex-start;
} }