-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from geovisto/bp-new-pages
Bp new pages - fixes
- Loading branch information
Showing
6 changed files
with
57 additions
and
8 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
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
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
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
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
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,43 @@ | ||
/** | ||
* Copyright (c) Facebook, Inc. and its affiliates. | ||
* | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
import React from 'react'; | ||
import {useThemeConfig} from '@docusaurus/theme-common'; | ||
import FooterLinks from '@theme/Footer/Links'; | ||
import FooterLogo from '@theme/Footer/Logo'; | ||
import FooterCopyright from '@theme/Footer/Copyright'; | ||
import FooterLayout from '@theme/Footer/Layout'; | ||
|
||
function Footer() { | ||
const {footer} = useThemeConfig(); | ||
|
||
if (!footer) { | ||
return null; | ||
} | ||
|
||
const {copyright, links, logo, style} = footer; | ||
return ( | ||
<FooterLayout | ||
style={style} | ||
links={links && links.length > 0 && <FooterLinks links={links} />} | ||
logo={logo && <FooterLogo logo={logo} />} | ||
copyright={copyright ? <FooterCopyright copyright={copyright}/> : <CustomFooterCopyright />} | ||
/> | ||
); | ||
} | ||
|
||
const CustomFooterCopyright = () => { | ||
return ( | ||
<div className='custom_footer_copyright'> | ||
<div>Copyright © ${new Date().getFullYear()} Geovisto | <a href='https://www.fit.vut.cz/.en' target="_blank">VUT FIT Brno</a> | <a href='https://www.ics.muni.cz/en' target="_blank">MU ICS</a> | ||
</div> | ||
<div>Built with Docusaurus.</div> | ||
</div> | ||
); | ||
}; | ||
|
||
|
||
export default React.memo(Footer); |