chore: github repo url as logo onclick link
This commit is contained in:
parent
7c3564124e
commit
ce049e2745
2 changed files with 15 additions and 9 deletions
|
@ -37,9 +37,16 @@ function SideBar() {
|
|||
const { switchTheme } = useActions(actions);
|
||||
return (
|
||||
<div className={s.root}>
|
||||
<div className={s.logo}>
|
||||
<Icon id={yacd.id} width={80} height={80} />
|
||||
</div>
|
||||
<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" />
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue