Skip to content
This repository has been archived by the owner on Jun 17, 2021. It is now read-only.

Add netlify logo to the footer #127

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 14 additions & 10 deletions website/src/templates/DefaultLayout.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
*/

import React from 'react';
import { useStaticQuery, graphql } from 'gatsby';
import { Link, useStaticQuery, graphql } from 'gatsby';
import { MDXProvider } from '@mdx-js/react';
import PropTypes from 'prop-types';
import { PropTypes } from 'prop-types';

import { SEO } from './SEO';
import { CodeBlock } from '../components/CodeBlock';
Expand Down Expand Up @@ -115,16 +115,20 @@ const DefaultLayout = ({
)}
</HolyGrail.Body>
<HolyGrail.Footer className={styles.Footer}>
<Grid full largeFit spacing="medium">
<Grid full largeFit spacing="medium" alignItems="center">
<Grid.Column role="contentinfo">
<p>
&copy; {new Date().getFullYear()}{' '}
<span
// eslint-disable-next-line react/no-danger
dangerouslySetInnerHTML={{
__html: data.site.siteMetadata.htmlTitle,
}}
/>
<Link
href="https://www.netlify.com/"
className={styles.NetlifyLogoLink}
>
<img
src="https://www.netlify.com/img/global/badges/netlify-dark.svg"
alt="Deploys by Netlify xxx"
width="114"
height="51"
/>
</Link>
</p>
</Grid.Column>

Expand Down
6 changes: 6 additions & 0 deletions website/src/templates/DefaultLayout.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -97,3 +97,9 @@
width: $sizing-xxlarge;
height: $sizing-xxlarge;
}

.NetlifyLogoLink {
display: block;
width: 114px;
height: 51px;
}