Skip to content

Commit

Permalink
feat: Add paragraph for inspiration
Browse files Browse the repository at this point in the history
  • Loading branch information
jerelmiller committed Jun 19, 2020
1 parent a2a41d9 commit 4ac9a4f
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/components/FeatherIcon.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,13 @@ const ICONS = {
<path d="M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4L16.5 3.5z" />
</>
),
'external-link': (
<>
<path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6" />
<polyline points="15 3 21 3 21 9" />
<line x1="10" y1="14" x2="21" y2="3" />
</>
),
copy: (
<>
<rect x="9" y="9" width="13" height="13" rx="2" ry="2" />
Expand Down
16 changes: 16 additions & 0 deletions src/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import GuideTile from '../components/GuideTile';
import PageTitle from '../components/PageTitle';
import Section from '../components/Section';
import Video from '../components/Video';
import FeatherIcon from '../components/FeatherIcon';
import ExternalLink from '../components/ExternalLink';
import { PageContext } from '../components/PageContext';
import { pageContext } from '../types';
Expand Down Expand Up @@ -119,6 +120,21 @@ const IndexPage = ({ pageContext }) => (
))}
</GuideListing.List>
</GuideListing>

<p className={styles.inspiration}>
Looking for inspiration? Check out the{' '}
<ExternalLink
className={styles.externalLink}
href="https://opensource.newrelic.com"
>
open source projects
<FeatherIcon
className={styles.externalLinkIcon}
name="external-link"
/>
</ExternalLink>{' '}
built by the New Relic community.
</p>
</Layout>
</PageContext.Provider>
);
Expand Down
14 changes: 14 additions & 0 deletions src/pages/index.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,17 @@
display: none;
}
}

.inspiration {
text-align: center;
margin-top: 2rem;
}

.externalLink {
display: inline-flex;
align-items: center;
}

.externalLinkIcon {
margin-left: 0.25rem;
}

0 comments on commit 4ac9a4f

Please sign in to comment.