Skip to content

Commit

Permalink
feat: new logo
Browse files Browse the repository at this point in the history
  • Loading branch information
zstix committed May 7, 2020
1 parent 3f2ae6f commit 0c13609
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 21 deletions.
2 changes: 1 addition & 1 deletion src/components/Header.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const Header = ({ pages }) => {
</nav>

<h1 className="Header-title">
<Link to="/">{'</>'} New Relic Developers</Link>
<Link to="/" className="logo Header-title-logo" />
</h1>

<HamburgerMenu toggle={() => setIsOpen(!isOpen)} isOpen={isOpen} />
Expand Down
34 changes: 14 additions & 20 deletions src/components/Header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,31 +9,24 @@ header.Header--main {

.u-container {
display: grid;
grid-template-areas: 'nr tools' 'title title' 'main main';
grid-template-areas: 'nr tools' 'title main';

@media (max-width: 760px) {
grid-template-columns: 1fr 3rem;
grid-template-areas: 'title menu' 'nr nr' 'main main' 'tools tools';
}
}

// TODO: fix this on mobile
.Header-title {
grid-area: title;
font-size: 1.8rem;
margin: 0;
margin-top: 0.5rem;

a {
padding-left: 0;

&:hover {
text-decoration: none;
}
}

@media (max-width: 760px) {
a {
padding-left: 1rem;
}
.Header-title-logo {
width: 247px;
height: 64px;
background-image: url('../images/developers-logo.svg');
}
}

Expand All @@ -53,7 +46,7 @@ header.Header--main {

.Header-nav--nr a:not(.logo) {
color: var(--color-neutrals-600);
font-size: 0.7em;
font-size: 0.7rem;
padding: 4px 9px;
line-height: 22px;

Expand All @@ -67,13 +60,14 @@ header.Header--main {
.logo {
padding: 0;
background-size: contain;
background-repeat: no-repeat;
}

.Header-nav--nr .Header-nav-logo--nr {
width: 79px;
height: 15px;
margin: 0.5em;
margin-right: 1.5em;
margin: 0.5rem;
margin-right: 1.5rem;
background-image: url('../images/NewRelic-logo.png');
}

Expand All @@ -87,9 +81,9 @@ header.Header--main {

// TODO: fix this on mobile
.Header-nav--tools .Header-nav-logo--github {
width: 1.1em;
height: 1.1em;
margin: 0.4em;
width: 1.1rem;
height: 1.1rem;
margin: 0.4rem;
opacity: 0.6;
background-image: url('../images/GitHub-logo.png');

Expand Down
5 changes: 5 additions & 0 deletions src/images/developers-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 0c13609

Please sign in to comment.