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 -> RegisterPage ->
registerLayout model registerLayout model
NewInvitePage ->
newInviteLayout model
_ -> _ ->
defaultLayout 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 -> Html Msg
defaultLayout model = defaultLayout model =
div [ class "default-layout" ] div [ class "default-layout" ]

View File

@ -14,15 +14,8 @@ view flags model =
[ div [ class "row" ] [ div [ class "row" ]
[ div [ class "sixteen wide mobile fourteen wide tablet eight wide computer column" ] [ div [ class "sixteen wide mobile fourteen wide tablet eight wide computer column" ]
[ h1 [ class "ui cener aligned icon header" ] [ 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 , inviteMessage flags
, Html.form , Html.form
[ classList [ classList

View File

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