From 5abe16144fddccfc44df4a32f1047a1582950286 Mon Sep 17 00:00:00 2001 From: Claire L Date: Sun, 2 Sep 2018 23:15:36 -0700 Subject: [PATCH] Add Discord link and logo to navbar (#587) (#593) Summary: To facilitate communication and contribution, the Discord invitation has been linked. Test plan: Visual inspection and manual link clicking --- src/app/DiscordLogo.js | 22 ++++++++++++++++++++++ src/app/Page.js | 26 +++++++++++++++++++++++--- 2 files changed, 45 insertions(+), 3 deletions(-) create mode 100644 src/app/DiscordLogo.js diff --git a/src/app/DiscordLogo.js b/src/app/DiscordLogo.js new file mode 100644 index 0000000..3aa908a --- /dev/null +++ b/src/app/DiscordLogo.js @@ -0,0 +1,22 @@ +// @flow +import React from "react"; + +type Props = {| + +className: string, + +altText: string, +|}; + +export default function DiscordLogo(props: Props) { + return ( + + + + + ); +} diff --git a/src/app/Page.js b/src/app/Page.js index 50ba0f0..a870f5b 100644 --- a/src/app/Page.js +++ b/src/app/Page.js @@ -7,6 +7,7 @@ import {StyleSheet, css} from "aphrodite/no-important"; import type {Assets} from "./assets"; import GithubLogo from "./GithubLogo"; import TwitterLogo from "./TwitterLogo"; +import DiscordLogo from "./DiscordLogo"; import {routeData} from "./routeData"; import * as NullUtil from "../util/null"; import {VERSION_SHORT, VERSION_FULL} from "./version"; @@ -49,7 +50,7 @@ export default class Page extends React.Component<{| > @@ -60,7 +61,18 @@ export default class Page extends React.Component<{| > + + +
  • + +
  • @@ -136,8 +148,16 @@ const style = StyleSheet.create({ navItemRight: { marginLeft: 20, }, - navLogo: { + navItemRightSmall: { + marginLeft: 15, + }, + navLogoSmall: { height: 20, width: 20, }, + navLogoMedium: { + height: 25, + width: 25, + transform: "translateY(-1px)", + }, });