Skip to content

Commit

Permalink
Added border and background on login card (#2442)
Browse files Browse the repository at this point in the history
  • Loading branch information
Cheshiriks authored Aug 9, 2023
1 parent b4b8907 commit 74bc72b
Showing 1 changed file with 15 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ import react.dom.html.ReactHTML.p
import react.router.dom.Link
import web.cssom.*

const val INPUT_CREDENTIALS_VIEW_CUSTOM_BG = "rgb(240, 240, 240)"

/**
* @param oauthProviders
* @param primaryColor color of a shield
Expand All @@ -34,6 +36,10 @@ internal fun ChildrenBuilder.inputCredentialsView(
) {
div {
className = ClassName("card-header p-0 position-relative mt-n4 mx-3 z-index-2 rounded")
style = jso {
background = INPUT_CREDENTIALS_VIEW_CUSTOM_BG.unsafeCast<Background>()
border = "1px solid".unsafeCast<Border>()
}
div {
className = ClassName("shadow-primary border-radius-lg py-3 pe-1 rounded")
style = jso {
Expand All @@ -43,16 +49,16 @@ internal fun ChildrenBuilder.inputCredentialsView(
className = ClassName("text-white font-weight-bolder text-center mt-2 mb-3")
+"Sign in with"
}
div {
className = ClassName("row")
oauthProviders.map {
processRegistrationId(
OauthProvidersFeConfig(
size = @Suppress("MAGIC_NUMBER") 3.rem,
it,
)
}
div {
className = ClassName("row")
oauthProviders.map {
processRegistrationId(
OauthProvidersFeConfig(
size = @Suppress("MAGIC_NUMBER") 3.rem,
it,
)
}
)
}
}
}
Expand Down

0 comments on commit 74bc72b

Please sign in to comment.