From 13312f31e8bc1676f9abdfbf7267bf09ad04e9fa Mon Sep 17 00:00:00 2001 From: BenjaVR Date: Wed, 27 Feb 2019 23:48:33 +0100 Subject: [PATCH] Added logo in app (made by Louise) --- .../containers/AppContainer.module.scss | 28 +++++++++++++------ src/components/containers/AppContainer.tsx | 10 +++++-- 2 files changed, 26 insertions(+), 12 deletions(-) diff --git a/src/components/containers/AppContainer.module.scss b/src/components/containers/AppContainer.module.scss index 7afe874..af0a770 100644 --- a/src/components/containers/AppContainer.module.scss +++ b/src/components/containers/AppContainer.module.scss @@ -1,16 +1,26 @@ @import "../../variables.scss"; .logo { - height: 32px; - margin: 16px; + max-width: 100%; + width: auto; + max-height: 56px; + height: auto; - // TODO: tijdelijk! - background-color: $grayBlue; - text-align: center; - line-height: 32px; - color: rgb(197, 197, 197); - white-space: nowrap; - overflow: hidden; + &Container { + margin: 16px; + padding: 8px; + background-color: $grayBlue; + text-align: center; + line-height: 32px; + color: rgb(197, 197, 197); + white-space: nowrap; + overflow: hidden; + } + + &Text { + margin: 0; + text-transform: uppercase; + } } .siderContentWrapper { diff --git a/src/components/containers/AppContainer.tsx b/src/components/containers/AppContainer.tsx index b063366..33643c0 100644 --- a/src/components/containers/AppContainer.tsx +++ b/src/components/containers/AppContainer.tsx @@ -1,9 +1,10 @@ -import { Avatar, Button, Col, Icon, Layout, notification, Row, Tooltip } from "antd"; +import { Button, Icon, Layout, notification, Tooltip } from "antd"; import Menu, { SelectParam } from "antd/lib/menu"; import classNames from "classnames"; import * as React from "react"; import Helmet from "react-helmet"; import { Link, Redirect, Route, Switch } from "react-router-dom"; +import logo from "../../logo.png"; import { AnyRouteComponentProps, IRoute, routes } from "../../routes"; import { Firebase } from "../../services/FirebaseInitializer"; import styles from "./AppContainer.module.scss"; @@ -62,8 +63,11 @@ class AppContainer extends React.Component
-
- {this.state.isSiderCollapsed ? "SP" : "Student Planner"} +
+ Logo + {!this.state.isSiderCollapsed && +

Student Planner

+ }