-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs(footer + theme): added branding on footer
added logos for UofU, VDL and NSF to the footer closes #53
- Loading branch information
1 parent
bcd4239
commit 02251bb
Showing
8 changed files
with
82 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> | ||
); | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
declare module '*.png'; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters