chore: github repo url as logo onclick link

This commit is contained in:
Haishan 2018-12-18 21:57:19 +08:00
parent 7c3564124e
commit ce049e2745
2 changed files with 15 additions and 9 deletions

View file

@ -37,9 +37,16 @@ function SideBar() {
const { switchTheme } = useActions(actions);
return (
<div className={s.root}>
<a
href="https://github.com/haishanh/yacd"
className={s.logoLink}
target="_blank"
rel="noreferrer"
>
<div className={s.logo}>
<Icon id={yacd.id} width={80} height={80} />
</div>
</a>
<div className={s.rows}>
<SideBarRow to="/" iconId={activity.id} labelText="Overview" />

View file

@ -3,6 +3,10 @@
position: relative;
}
.logoLink {
display: block;
}
.logo {
display: flex;
align-items: center;
@ -21,7 +25,7 @@
}
}
// a router linke
// a router link
.rowActive,
.row {
color: var(--color-text);
@ -31,11 +35,6 @@
align-items: center;
padding: 8px 20px;
// &:hover {
// color: white;
// background: #494b4e;
// }
svg {
color: var(--color-icon);
}