Skip to content

Commit

Permalink
Merge 77452af into 162fda2
Browse files Browse the repository at this point in the history
  • Loading branch information
rohan-deshpande committed Oct 28, 2020
2 parents 162fda2 + 77452af commit 62b5009
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 7 deletions.
4 changes: 0 additions & 4 deletions website/components/Layout/Header/Nav.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import React, { Component } from 'react';
import { array, bool, func, object } from 'prop-types';

import { NavLink } from '../../primitives';
import SpectrumLogo from './SpectrumLogo';
import { withRouter } from 'next/router';

const Hamburger = ({ isOpen, toggle }) => (
Expand Down Expand Up @@ -48,9 +47,6 @@ class Nav extends Component {
</li>
)
)}
<li className="spectrum-logo-container">
<SpectrumLogo />
</li>
</ul>
</div>
</nav>
Expand Down
9 changes: 7 additions & 2 deletions website/components/Layout/Header/SpectrumLogo.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
import { HREF_SPECTRUM } from '../../../common/constants';
import Logo from '../../../assets/spectrum-logo.svg';
import React from 'react';

export default () => (
<span className="SpectrumLogo">
<a href={HREF_SPECTRUM}>
<Logo />
<svg viewBox="0 0 20 20">
<path
fill="#000"
fillRule="evenodd"
d="M0 8.5C0 9.3.7 10 1.5 10H3a7 7 0 017 7v1.5c0 .8.7 1.5 1.5 1.5h7c.8 0 1.5-.7 1.5-1.5V17A17 17 0 003 0H1.5C.7 0 0 .7 0 1.5v7z"
/>
</svg>
</a>
</span>
);
2 changes: 1 addition & 1 deletion website/components/Layout/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const Layout = ({ children, router: { pathname }, routes }) => (
<meta charSet="utf-8" />
<meta name="viewport" content="initial-scale=1.0, width=device-width" />
<meta name="description" content={getTitle('/', routes)} />
{/* <meta name="robots" content="index, follow" /> */}
<meta name="robots" content="index, follow" />
<meta name="author" content="Rohan Deshpande" />
<Favicon />
</Head>
Expand Down
5 changes: 5 additions & 0 deletions website/content/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,4 +82,9 @@ module.exports = [
name: 'GitHub',
url: 'https://github.com/creativelifeform/three-nebula',
},
{
title: 'Three Nebula - Chat',
name: 'Chat',
url: 'https://spectrum.chat/nebula',
},
];
2 changes: 2 additions & 0 deletions website/style/Header/_Nav.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@

.SpectrumLogo {
display: inline-block;
width: 20px;
height: 20px;

path {
fill: $app-color;
Expand Down

0 comments on commit 62b5009

Please sign in to comment.