|
|
@@ -4,6 +4,7 @@ import category from "assets/category.svg";
|
|
|
import integrations from "assets/integrations.svg";
|
|
|
import rocket from "assets/rocket.png";
|
|
|
import settings from "assets/settings.svg";
|
|
|
+import discordLogo from "assets/discord.svg";
|
|
|
|
|
|
import { Context } from "shared/Context";
|
|
|
|
|
|
@@ -187,6 +188,11 @@ class Sidebar extends Component<PropsType, StateType> {
|
|
|
<br />
|
|
|
|
|
|
{this.renderProjectContents()}
|
|
|
+
|
|
|
+ <DiscordButton href="https://discord.gg/Tky6bzHVHd" target="_blank">
|
|
|
+ <Icon src={discordLogo} />
|
|
|
+ Join Our Discord
|
|
|
+ </DiscordButton>
|
|
|
</StyledSidebar>
|
|
|
</>
|
|
|
);
|
|
|
@@ -197,6 +203,14 @@ Sidebar.contextType = Context;
|
|
|
|
|
|
export default withRouter(Sidebar);
|
|
|
|
|
|
+const Icon = styled.img`
|
|
|
+ height: 25px;
|
|
|
+ width: 25px;
|
|
|
+ opacity: 30%;
|
|
|
+ margin-left: 7px;
|
|
|
+ margin-right: 5px;
|
|
|
+`;
|
|
|
+
|
|
|
const ProjectPlaceholder = styled.div`
|
|
|
background: #ffffff11;
|
|
|
border-radius: 5px;
|
|
|
@@ -267,6 +281,31 @@ const BottomSection = styled.div`
|
|
|
bottom: 10px;
|
|
|
`;
|
|
|
|
|
|
+const DiscordButton = styled.a`
|
|
|
+ position: absolute;
|
|
|
+ text-decoration: none;
|
|
|
+ bottom: 15px;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ width: calc(100% - 30px);
|
|
|
+ left: 15px;
|
|
|
+ border: 2px solid #ffffff44;
|
|
|
+ border-radius: 3px;
|
|
|
+ color: #ffffff44;
|
|
|
+ height: 40px;
|
|
|
+ font-family: Work Sans, sans-serif;
|
|
|
+ font-size: 14px;
|
|
|
+ font-weight: bold;
|
|
|
+ cursor: pointer;
|
|
|
+ :hover {
|
|
|
+ >img {
|
|
|
+ opacity: 60%;
|
|
|
+ }
|
|
|
+ color: #ffffff88;
|
|
|
+ border-color: #ffffff88;
|
|
|
+ }
|
|
|
+`;
|
|
|
+
|
|
|
const LogOutButton = styled(NavButton)`
|
|
|
width: calc(100% - 55px);
|
|
|
border-top-right-radius: 3px;
|