2019-06-23 00:45:32 +00:00
|
|
|
import React from 'react';
|
2019-06-29 05:49:08 +00:00
|
|
|
import { Route } from 'react-router';
|
2019-06-23 00:45:32 +00:00
|
|
|
import { CSSTransition, TransitionGroup } from 'react-transition-group';
|
|
|
|
|
|
|
|
type Props = Readonly<{
|
|
|
|
children: React.ReactNode;
|
|
|
|
}>;
|
|
|
|
|
2019-06-29 05:17:29 +00:00
|
|
|
export default ({ children }: Props) => (
|
|
|
|
<Route
|
|
|
|
render={({ location }) => (
|
|
|
|
<TransitionGroup className={'route-transition-group'}>
|
2019-07-28 03:23:44 +00:00
|
|
|
<CSSTransition key={location.key} timeout={250} in={true} appear={true} classNames={'fade'}>
|
2019-06-29 05:17:29 +00:00
|
|
|
<section>
|
|
|
|
{children}
|
|
|
|
<div className={'mx-auto w-full'} style={{ maxWidth: '1200px' }}>
|
|
|
|
<p className={'text-right text-neutral-500 text-xs'}>
|
|
|
|
© 2015 - 2019
|
|
|
|
<a
|
2019-12-22 05:56:45 +00:00
|
|
|
rel={'noopener nofollow'}
|
2019-06-29 05:17:29 +00:00
|
|
|
href={'https://pterodactyl.io'}
|
2019-12-22 05:56:45 +00:00
|
|
|
target={'_blank'}
|
2019-06-29 05:17:29 +00:00
|
|
|
className={'no-underline text-neutral-500 hover:text-neutral-300'}
|
|
|
|
>
|
|
|
|
Pterodactyl Software
|
|
|
|
</a>
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
</CSSTransition>
|
|
|
|
</TransitionGroup>
|
|
|
|
)}
|
|
|
|
/>
|
2019-06-23 00:45:32 +00:00
|
|
|
);
|