summaryrefslogtreecommitdiff
path: root/src/components
diff options
context:
space:
mode:
authorHaishan <[email protected]>2018-12-18 21:57:19 +0800
committerHaishan <[email protected]>2018-12-18 21:57:19 +0800
commitce049e2745fe4d908e341838f0f7ac87d55bf4d6 (patch)
treef6c9e212b1ffeb490303445431c95f9d96a2c25b /src/components
parent7c3564124e935ba0196d7d5ba57b84fd6ad23882 (diff)
chore: github repo url as logo onclick link
Diffstat (limited to 'src/components')
-rw-r--r--src/components/SideBar.js13
-rw-r--r--src/components/SideBar.module.scss11
2 files changed, 15 insertions, 9 deletions
diff --git a/src/components/SideBar.js b/src/components/SideBar.js
index 8a38a46..8298012 100644
--- a/src/components/SideBar.js
+++ b/src/components/SideBar.js
@@ -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" />
diff --git a/src/components/SideBar.module.scss b/src/components/SideBar.module.scss
index 6729851..ace8a4a 100644
--- a/src/components/SideBar.module.scss
+++ b/src/components/SideBar.module.scss
@@ -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);
}