Skip to content

Commit

Permalink
docs(footer + theme): added branding on footer
Browse files Browse the repository at this point in the history
added logos for UofU, VDL and NSF to the footer

closes #53
  • Loading branch information
kirangadhave committed Jun 14, 2023
1 parent bcd4239 commit 02251bb
Show file tree
Hide file tree
Showing 8 changed files with 82 additions and 9 deletions.
79 changes: 79 additions & 0 deletions apps/docs/components/Footer.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
import Image from 'next/image';
import { useTheme } from 'nextra-theme-docs';
import React from 'react';
import logoNsf from './logo-nsf.png';
import logoUofU from './logo-uofu.png';
import logoVdl from './logo-vdl.png';

export function Footer() {
const theme = useTheme();
const mode = theme.resolvedTheme || 'dark';

return (
<div
style={{
width: '100%',
display: 'flex',
flexDirection: 'column',
alignItems: 'center',
justifyContent: 'center',
backgroundColor: mode === 'dark' ? 'rgba(255,255,255, 0.4)' : 'inherit',
}}
>
<div style={{ display: 'grid', gridTemplateColumns: '1fr 1fr 1fr' }}>
<div
style={{
display: 'flex',
alignItems: 'center',
justifyContent: 'center',
}}
>
<Image
src={logoUofU}
alt="Logo for The University of Utah"
width={300}
height={200}
/>
</div>
<div
style={{
display: 'flex',
alignItems: 'center',
justifyContent: 'center',
}}
>
<Image
src={logoVdl}
alt="Logo for Visualization Design Lab"
width={300}
height={200}
/>
</div>
<div
style={{
display: 'flex',
alignItems: 'center',
justifyContent: 'center',
}}
>
<Image
alt="Logo for the National Science Foundation"
src={logoNsf}
width={200}
height={200}
/>
</div>
</div>
<span>
Copyright ©{new Date().getFullYear()}{' '}
{
<a href="https://github.com/Trrack" target="_blank" rel="noreferrer">
The Trrack Team
</a>
}
. All content on this website is licensed under the Creative Commons
Attribution license (CC BY).
</span>
</div>
);
}
Binary file added apps/docs/components/logo-nsf.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added apps/docs/components/logo-uofu.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added apps/docs/components/logo-vdl.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions apps/docs/components/png.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
declare module '*.png';
Binary file added apps/docs/public/assets/logo-uofu.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added apps/docs/public/assets/logo-vdl.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 2 additions & 9 deletions apps/docs/theme.config.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { useRouter } from 'next/router';

import { Footer } from './components/Footer';
import styles from './pages/index.module.css';

const theme = {
Expand Down Expand Up @@ -48,15 +49,7 @@ const theme = {
),
},
footer: {
text: (
<span>
BSD 3 {new Date().getFullYear()} ©{' '}
<a href="https://github.com/Trrack" target="_blank" rel="noreferrer">
The Trrack Team
</a>
.
</span>
),
text: Footer,
},
};

Expand Down

0 comments on commit 02251bb

Please sign in to comment.