Add netlify logo to bottom of homepage

This commit is contained in:
Daniel Lautzenheiser 2022-10-31 10:13:41 -04:00
parent 076531d47c
commit 22b395e170
3 changed files with 76 additions and 0 deletions

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 21 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 21 KiB

View File

@ -5,6 +5,7 @@ import CardContent from '@mui/material/CardContent';
import Chip from '@mui/material/Chip'; import Chip from '@mui/material/Chip';
import { styled, useTheme } from '@mui/material/styles'; import { styled, useTheme } from '@mui/material/styles';
import Typography from '@mui/material/Typography'; import Typography from '@mui/material/Typography';
import Image from 'next/image';
import Link from 'next/link'; import Link from 'next/link';
import DateDisplay from '../components/DateDisplay'; import DateDisplay from '../components/DateDisplay';
@ -407,6 +408,37 @@ const Home = ({ docsGroups }: DocsMenuProps) => {
</StyledFeaturesSectionContent> </StyledFeaturesSectionContent>
</Container> </Container>
</StyledFeaturesSection> </StyledFeaturesSection>
<footer>
{theme.palette.mode === 'light' ? (
<a
key="netlify-logo-light"
href="https://www.netlify.com"
target="_blank"
rel="noreferrer"
>
<Image
width={114}
height={51}
src="/img/netlify-color-bg.svg"
alt="Deploys by Netlify"
/>
</a>
) : (
<a
key="netlify-logo-dark"
href="https://www.netlify.com"
target="_blank"
rel="noreferrer"
>
<Image
width={114}
height={51}
src="/img/netlify-color-accent.svg"
alt="Deploys by Netlify"
/>
</a>
)}
</footer>
</StyledHomagePageContent> </StyledHomagePageContent>
</Page> </Page>
); );