Skip to content

Commit

Permalink
Added logo in app (made by Louise)
Browse files Browse the repository at this point in the history
  • Loading branch information
BenjaVR committed Feb 27, 2019
1 parent e479bdf commit 13312f3
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 12 deletions.
28 changes: 19 additions & 9 deletions src/components/containers/AppContainer.module.scss
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down
10 changes: 7 additions & 3 deletions src/components/containers/AppContainer.tsx
Original file line number Diff line number Diff line change
@@ -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";
Expand Down Expand Up @@ -62,8 +63,11 @@ class AppContainer extends React.Component<AppContainerProps, IAppContainerState
collapsed={this.state.isSiderCollapsed}
>
<div className={classNames(styles.siderContentWrapper, { [styles.siderContentWrapperCollapsed]: this.state.isSiderCollapsed })}>
<div className={styles.logo}>
{this.state.isSiderCollapsed ? "SP" : "Student Planner"}
<div className={styles.logoContainer}>
<img src={logo} alt="Logo" className={styles.logo} />
{!this.state.isSiderCollapsed &&
<p className={styles.logoText}>Student Planner</p>
}
</div>
<Menu
theme="dark"
Expand Down

1 comment on commit 13312f3

@BenjaVR
Copy link
Owner

@BenjaVR BenjaVR commented on 13312f3 Feb 27, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#6

Please sign in to comment.