Show new-invite as normal page

This commit is contained in:
Eike Kettner 2021-01-08 01:33:55 +01:00
parent bcb1b87fc0
commit 752c8f9be2
3 changed files with 4 additions and 22 deletions

View File

@ -28,9 +28,6 @@ view model =
RegisterPage ->
registerLayout model
NewInvitePage ->
newInviteLayout model
_ ->
defaultLayout model
@ -51,14 +48,6 @@ loginLayout model =
]
newInviteLayout : Model -> Html Msg
newInviteLayout model =
div [ class "newinvite-layout" ]
[ viewNewInvite model
, footer model
]
defaultLayout : Model -> Html Msg
defaultLayout model =
div [ class "default-layout" ]

View File

@ -14,14 +14,7 @@ view flags model =
[ div [ class "row" ]
[ div [ class "sixteen wide mobile fourteen wide tablet eight wide computer column" ]
[ h1 [ class "ui cener aligned icon header" ]
[ img
[ class "ui image"
, src (flags.config.docspellAssetPath ++ "/img/logo-96.png")
]
[]
, div [ class "content" ]
[ text "Create new invitations"
]
[ text "Create new invitations"
]
, inviteMessage flags
, Html.form

View File

@ -340,15 +340,15 @@ label span.muted {
border: 0;
}
.login-layout, .register-layout, .newinvite-layout {
.login-layout, .register-layout {
background: #708090;
height: 100vh;
}
.login-layout > .ui.footer, .register-layout > .ui.footer, .newinvite-layout > .ui.footer {
.login-layout > .ui.footer, .register-layout > .ui.footer {
background: #708090;
}
.login-layout .login-view, .register-layout .register-view, .newinvite-view {
.login-layout .login-view, .register-layout .register-view {
background: #fff;
position: relative;
top: 2vh;