diff --git a/src/app/GithubLogo.js b/src/app/GithubLogo.js new file mode 100644 index 0000000..7d95c91 --- /dev/null +++ b/src/app/GithubLogo.js @@ -0,0 +1,22 @@ +// @flow +import React from "react"; + +type Props = {| + +className: string, + +altText: string, +|}; + +export default function GithubLogo(props: Props) { + return ( + + {props.altText} + + + ); +} diff --git a/src/app/Page.js b/src/app/Page.js index c92c973..faae723 100644 --- a/src/app/Page.js +++ b/src/app/Page.js @@ -2,7 +2,9 @@ import React, {type Node} from "react"; import {Link} from "react-router"; - +import {StyleSheet, css} from "aphrodite/no-important"; +import GithubLogo from "./GithubLogo"; +import TwitterLogo from "./TwitterLogo"; import {routeData} from "./routeData"; import * as NullUtil from "../util/null"; @@ -11,15 +13,47 @@ export default class Page extends React.Component<{|+children: Node|}> { return (
-
@@ -28,3 +62,41 @@ export default class Page extends React.Component<{|+children: Node|}> { ); } } + +const style = StyleSheet.create({ + nav: { + height: 60, + padding: "20px 100px", + }, + navItem: { + display: "inline-block", + }, + navList: { + listStyle: "none", + paddingLeft: 0, + margin: 0, + display: "flex", + }, + navLink: { + color: "#0872A2", + fill: "#0872A2", + fontFamily: "Roboto Condensed", + fontSize: 18, + textDecoration: "none", + ":hover": { + color: "#084598", + fill: "#084598", + textDecoration: "underline", + }, + }, + navItemLeft: { + flex: 1, + }, + navItemRight: { + marginLeft: 20, + }, + navLogo: { + height: 20, + width: 20, + }, +}); diff --git a/src/app/TwitterLogo.js b/src/app/TwitterLogo.js new file mode 100644 index 0000000..3875585 --- /dev/null +++ b/src/app/TwitterLogo.js @@ -0,0 +1,34 @@ +// @flow +import React from "react"; + +type Props = {| + +className: string, + +altText: string, +|}; + +export default function TwitterLogo(props: Props) { + return ( + + {props.altText} + + + ); +} diff --git a/src/app/index.css b/src/app/index.css index b4cc725..c01944b 100644 --- a/src/app/index.css +++ b/src/app/index.css @@ -1,5 +1,5 @@ body { margin: 0; padding: 0; - font-family: sans-serif; + font-family: 'Roboto', sans-serif; } diff --git a/src/app/routeData.js b/src/app/routeData.js index eaba130..8e9f90a 100644 --- a/src/app/routeData.js +++ b/src/app/routeData.js @@ -34,7 +34,7 @@ const routeData /*: $ReadOnlyArray */ = [ component: () => require("./credExplorer/App").default, }, title: "SourceCred explorer", - navTitle: "Explorer", + navTitle: "Explore", }, { path: "/discord-invite", diff --git a/src/app/server.js b/src/app/server.js index 1456daa..7c4cc21 100644 --- a/src/app/server.js +++ b/src/app/server.js @@ -43,6 +43,8 @@ export default function render( + + ${resolveTitleFromPath(path)} @@ -79,6 +81,8 @@ export default function render( + + ${resolveTitleFromPath(path)}