Skip to content

Commit

Permalink
fix: Add back sidebar styles and logo component
Browse files Browse the repository at this point in the history
  • Loading branch information
jerelmiller committed Jun 17, 2020
1 parent 0664603 commit 0572f78
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 16 deletions.
5 changes: 4 additions & 1 deletion src/components/Sidebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,15 @@ import React from 'react';
import PropTypes from 'prop-types';
import { Link } from 'gatsby';
import cx from 'classnames';
import Logo from './Logo';
import Navigation from './Navigation';
import styles from './Sidebar.module.scss';

const Sidebar = ({ className }) => (
<aside className={cx(styles.sidebar, className)}>
<Link to="/" className={styles.logo} />
<Link to="/">
<Logo className={styles.logo} />
</Link>
<Navigation />
</aside>
);
Expand Down
24 changes: 9 additions & 15 deletions src/components/Sidebar.module.scss
Original file line number Diff line number Diff line change
@@ -1,23 +1,17 @@
.logo {
padding: 0;
background-size: contain;
background-repeat: no-repeat;
width: 247px;
height: 64px;
margin-bottom: 1rem;
display: inline-block;
background-image: url('../images/developers-logo.svg');
}
.sidebar {
padding: 2rem;
border-right: 1px solid var(--color-neutrals-100);

@media screen and (max-width: 760px) {
.sidebar {
@media screen and (max-width: 760px) {
height: 60px;
border-bottom: 1px solid var(--color-neutrals-100);
}
}

.logo {
width: 200px;

.logo {
@media screen and (max-width: 760px) {
width: 160px;
height: 34px;
background-size: 160px 34px;
}
}

0 comments on commit 0572f78

Please sign in to comment.