Add toasts (#1073)

Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
This commit is contained in:
Tilman Vatteroth 2021-03-11 20:51:11 +01:00 committed by GitHub
parent 0b4a0afa16
commit a86789dbef
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 320 additions and 13 deletions

View file

@ -4,26 +4,30 @@
* SPDX-License-Identifier: AGPL-3.0-only
*/
import React from 'react'
import React, { Fragment } from 'react'
import { Container } from 'react-bootstrap'
import { useDocumentTitle } from '../../hooks/common/use-document-title'
import { MotdBanner } from '../common/motd-banner/motd-banner'
import { Footer } from './footer/footer'
import { HeaderBar } from './navigation/header-bar/header-bar'
import { UiNotifications } from '../notifications/ui-notifications'
export const LandingLayout: React.FC = ({ children }) => {
useDocumentTitle()
return (
<Container className="text-light d-flex flex-column mvh-100">
<MotdBanner/>
<HeaderBar/>
<div className={ 'd-flex flex-column justify-content-between flex-fill text-center' }>
<main>
{ children }
</main>
<Footer/>
</div>
</Container>
<Fragment>
<UiNotifications/>
<Container className="text-light d-flex flex-column mvh-100">
<MotdBanner/>
<HeaderBar/>
<div className={ 'd-flex flex-column justify-content-between flex-fill text-center' }>
<main>
{ children }
</main>
<Footer/>
</div>
</Container>
</Fragment>
)
}