Skip to content

Commit

Permalink
add clarity logo & github link in footer
Browse files Browse the repository at this point in the history
  • Loading branch information
justinschreiner committed Nov 25, 2024
1 parent 698d90a commit 7297137
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 1 deletion.
47 changes: 47 additions & 0 deletions src/components/layout/footer.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
import Image from 'next/image';
import Link from 'next/link';
import { GitHub } from '@mui/icons-material';
import { Box, Button } from '@mui/material';

import clarity from '../../img/Clarity.png';

/**
* Footer with Clarity logo & link to repo
* @returns Footer
*/
export function Footer(): JSX.Element {
return (
<Box
sx={{
position: 'static',
bottom: 0,
left: 0,
width: '100%',
display: 'flex',
flexDirection: 'row',
justifyContent: 'space-between',
alignItems: 'center',
p: 2,

height: '75px',
}}
>
<Link
href="https://www.clarity.community/"
style={{ textDecoration: 'none' }}
data-testid="clarity-link"
target="_blank"
>
<Image src={clarity} width="200" height="50" alt="Powered by Clarity" />
</Link>
<Button
href="https://github.com/ClearContracts/cardano-constitution-voting-app"
target="_blank"
data-testid="github-link"
color="primary"
>
<GitHub />
</Button>
</Box>
);
}
3 changes: 3 additions & 0 deletions src/components/layout/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import { Toaster } from 'react-hot-toast';

import { Navbar } from '@/components/layout/navbar';

import { Footer } from './footer';

interface Props {
children: React.ReactNode;
}
Expand Down Expand Up @@ -61,6 +63,7 @@ export function Layout(props: Props): JSX.Element {
>
{children}
</Box>
<Footer />
</>
);
}
2 changes: 1 addition & 1 deletion src/components/layout/navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export function Navbar(): JSX.Element {
return (
<Box
sx={{
position: 'absolute',
position: 'sticky',
top: 0,
left: 0,
width: '100%',
Expand Down
Binary file added src/img/Clarity.png
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 7297137

Please sign in to comment.