Skip to content

Commit

Permalink
fix: Replace developer champions icon with official logo from old site
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Sauble committed Jun 26, 2020
1 parent 8916fed commit 95d460a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 13 deletions.
14 changes: 1 addition & 13 deletions src/components/NavigationItems.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,7 @@ const iconLibrary = {
'Build apps': 'buildApps',
'Automate workflows': 'automation',
'Explore docs': 'developerDocs',
};

const featherIconLibrary = {
'Developer champions': 'award',
'Developer champions': 'developerChampions',
};

const getHighlightedText = (text, highlight) => {
Expand Down Expand Up @@ -71,15 +68,6 @@ const NavigationItems = ({
};

const NavIcon = ({ page }) => {
if (featherIconLibrary[page.displayName]) {
return (
<FeatherIcon
className={styles.headerIcon}
name={featherIconLibrary[page.displayName]}
/>
);
}

if (iconLibrary[page.displayName]) {
return (
<NewRelicIcon
Expand Down
13 changes: 13 additions & 0 deletions src/components/NewRelicIcon.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,19 @@ const NEWRELIC_ICONS = {
<polygon points="20.5,10 18.5,8 16.5,10 16.5,1.5 20.5,1.5" />
</>
),
developerChampions: (
<>
<path class="st0" d="M5.37,15.76c-0.24,0.04-0.48,0.09-0.7,0.14c1.07,2.85,3.18,5.75,7.32,8.1v-0.76 C8.34,21.07,6.39,18.47,5.37,15.76z"/>
<path class="st0" d="M4.33,10.15C4.31,9.7,4.3,9.25,4.3,8.81V3.63c0.66-0.1,1.64-0.23,2.29-0.4l3.46-1.48 c0.02-0.01,0.04-0.02,0.06-0.03c0.61-0.28,1.29-0.6,1.88-0.94V0c-0.76,0.51-1.8,0.96-2.64,1.35l-2.04,1 C6.22,2.69,4.76,2.93,3.59,3.08v5.73c0,0.49,0.01,1,0.03,1.54C3.84,10.28,4.08,10.21,4.33,10.15z"/>
<path class="st1" d="M7.36,5.12"/>
<path class="st0" d="M13.88,1.72c0.02,0.01,0.04,0.02,0.06,0.03l3.46,1.48c0.64,0.16,1.63,0.3,2.29,0.4v5.18 c0,0.44-0.01,0.89-0.03,1.34c0.25,0.06,0.49,0.13,0.71,0.19c0.02-0.54,0.03-1.05,0.03-1.54V3.08c-1.17-0.14-2.63-0.39-3.71-0.72 l-2.04-1C13.81,0.96,12.76,0.51,12,0l-0.12,0.4L12,0.78C12.6,1.12,13.27,1.44,13.88,1.72z"/>
<path class="st0" d="M18.62,15.76c-1.02,2.71-2.97,5.31-6.61,7.47l-0.12,0.33L12,24c4.14-2.35,6.25-5.25,7.32-8.1 C19.1,15.85,18.86,15.81,18.62,15.76z"/>
<path class="st0" d="M20.94,9.98C19.1,9.32,15.67,8.9,11.98,8.9v0.51H12c3.52,0,6.92,0.41,8.65,1.03c0.72,0.26,1.05,0.74,1.05,1.55 v4.78c-1.19-0.88-5.09-1.53-9.71-1.53v0.51c3.51,0,8.9,0.82,8.9,1.83c0,0.52-1.81,1-3.59,1.33c-0.06,0.11-0.13,0.22-0.19,0.33 c2.7-0.38,5.16-1.03,5.16-1.75v-5.59C22.26,10.94,21.83,10.3,20.94,9.98z"/>
<path class="st1" d="M8.05,11.15"/>
<path class="st0" d="M3.06,9.98C4.89,9.32,8.3,8.9,11.98,8.9v0.51h-0.01c-3.51,0-6.89,0.41-8.62,1.03C2.62,10.71,2.3,11.19,2.3,12 v4.78c1.19-0.88,5.07-1.53,9.68-1.53v0.51c-3.5,0-8.87,0.82-8.87,1.83c0,0.52,1.81,1,3.58,1.33c0.06,0.11,0.13,0.22,0.19,0.33 c-2.69-0.38-5.15-1.03-5.15-1.75v-5.59C1.74,10.94,2.17,10.3,3.06,9.98z"/>
<path class="st1" d="M750.7,362.2"/>
</>
),
};

NewRelicIcon.propTypes = {
Expand Down

0 comments on commit 95d460a

Please sign in to comment.