mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-16 16:14:43 -04:00
Add toasts (#1073)
Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
This commit is contained in:
parent
0b4a0afa16
commit
a86789dbef
11 changed files with 320 additions and 13 deletions
|
@ -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>
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue