diff --git a/finallycoffee/login/resources/css/custom.css b/finallycoffee/login/resources/css/custom.css index 9ccc685..732a207 100644 --- a/finallycoffee/login/resources/css/custom.css +++ b/finallycoffee/login/resources/css/custom.css @@ -6,7 +6,7 @@ div.kc-logo-text { width: 256px; margin: 0 auto; } -div.kc-logo-text span { +.pf-v5-c-login #kc-header span { display: none; } diff --git a/finallycoffee/login/resources/img/antifa_lesbian_pride.png b/finallycoffee/login/resources/img/antifa_lesbian_pride.png new file mode 100644 index 0000000..88e85d4 Binary files /dev/null and b/finallycoffee/login/resources/img/antifa_lesbian_pride.png differ diff --git a/finallycoffee/login/resources/img/background.jpg b/finallycoffee/login/resources/img/background.jpg new file mode 100644 index 0000000..31bb3ef Binary files /dev/null and b/finallycoffee/login/resources/img/background.jpg differ diff --git a/finallycoffee/login/theme.properties b/finallycoffee/login/theme.properties index 700cb13..38e5a68 100644 --- a/finallycoffee/login/theme.properties +++ b/finallycoffee/login/theme.properties @@ -1,5 +1,5 @@ -parent=keycloak -import=common/finallycoffee +parent=keycloak.v2 +import=common/keycloak -styles=styles=web_modules/@fontawesome/fontawesome-free/css/icons/all.css web_modules/@patternfly/react-core/dist/styles/base.css web_modules/@patternfly/react-core/dist/styles/app.css node_modules/patternfly/dist/css/patternfly.min.css node_modules/patternfly/dist/css/patternfly-additions.min.css css/login.css css/custom.css +styles=css/login.css css/custom.css logo=img/antifa_lesbian_pride.png diff --git a/finallycoffee/welcome/index.ftl b/finallycoffee/welcome/index.ftl old mode 100755 new mode 100644 index 3bc2975..bf43fd0 --- a/finallycoffee/welcome/index.ftl +++ b/finallycoffee/welcome/index.ftl @@ -1,135 +1,124 @@ - - - - - - Welcome to ${productName} - + + + - - - - + + Welcome to ${productName} + <#if properties.stylesCommon?has_content> - <#list properties.stylesCommon?split(' ') as style> - - + <#list properties.stylesCommon?split(' ') as style> + + <#if properties.styles?has_content> - <#list properties.styles?split(' ') as style> - - + <#list properties.styles?split(' ') as style> + + - - - -
-
-
-
- ${productName} -

Welcome to ${productName}

-
-
- <#if adminConsoleEnabled> -
-
- <#if successMessage?has_content> -

${successMessage}

- <#elseif errorMessage?has_content> -

${errorMessage}

-

Administration Console

- <#elseif bootstrap> - <#if localUser> -

Administration Console

-

Please create an initial admin user to get started.

- <#else> -

- You need local access to create the initial admin user.

Open ${localAdminUrl} -
${adminUserCreationMessage}. -

- - - - <#if bootstrap && localUser> -
-

- - -

- -

- - -

- -

- - -

- - - - -
- - -
-
-
- + diff --git a/finallycoffee/welcome/resources/css/welcome.css b/finallycoffee/welcome/resources/css/welcome.css index c2097ab..e4b6f6e 100644 --- a/finallycoffee/welcome/resources/css/welcome.css +++ b/finallycoffee/welcome/resources/css/welcome.css @@ -1,149 +1,19 @@ -body { - background: #111 url(../bg.jpg) no-repeat center bottom fixed; - background-size: cover; - color: #ccc; -} -.welcome-header { - margin-top: 30px; - margin-bottom: 60px; - margin-left: -10px; - color: #ddd; -} -.welcome-header img { - width: 150px; - margin-bottom: 40px; -} -.welcome-header h1 { - font-weight: 500 !important; -} -.welcome-header h1 strong { - font-weight: 800 !important; -} -.welcome-message { - margin-top: 20px; -} -.h-l { - min-height: 370px; - padding: 10px 20px 10px; - overflow: hidden; -} -.h-l h3 { - margin-bottom: 10px; -} -.h-m { - height: 110px; - padding-top: 23px; -} -.card-pf img { - width: 22px; - margin-right: 10px; - vertical-align: bottom; -} -img.doc-img { - width: auto; - height: 22px; -} -.link { - font-size: 16px; - vertical-align: baseline; - margin-left: 5px; -} -h3 { - font-weight: 550; -} -h3 a:link, -h3 a:visited { - color: #ddd; - font-weight: 550; -} -h3 a:hover, -h3 a:hover .link { - text-decoration: none; - color: #00659c; -} -.h-l h3 a img { - height: 30px; - width: auto; +.pf-v5-c-background-image { + /* Change background size so that the image covers the entire background. */ + --pf-v5-c-background-image--BackgroundSize: cover; + --pf-v5-c-background-image--BackgroundImage: url(../bg.jpg); } -.description { - margin-top: 30px; +.pf-v5-c-login__container { + /* Change the grid layout so that the header is always above the main area. */ + grid-template-areas: "header" "main"; + --pf-v5-c-login__container--xl--GridTemplateColumns: minmax(auto, 34rem); } -.card-pf { - border-top: 1px solid rgba(3, 3, 3, 0.1); - box-shadow: 0 1px 1px rgba(3, 3, 3, 0.275); - background: #222; -} -.welcome-form label, -.welcome-form input { - display: block; - width: 100%; -} - -.welcome-form label { - color: #828486; - font-weight: normal; - margin-top: 18px; -} -.welcome-form input { - border: 0; - border-bottom: solid 1px #cbcbcb; -} -.welcome-form input:focus { - border-bottom: solid 1px #5e99c6; - outline-width: 0; -} -.welcome-form button { - margin-top: 10px; -} -.error { - color: #c00; - border-color: #c00; - padding: 5px 10px; -} -.success { - color: #3f9c35; - border-color: #3f9c35; - padding: 5px 10px; -} -.welcome-form + .welcome-primary-link, -.welcome-message + .welcome-primary-link { - display: none; -} - -.footer img { - float: right; - width: 150px; - margin-top: 30px; -} - -@media (max-width: 768px) { - .welcome-header { - margin-top: 10px; - margin-bottom: 20px; - } - .welcome-header img { - margin-bottom: 20px; - } - h3 { - margin-top: 10px; - } - .h-l, - .h-m { - height: auto; - min-height: auto; - padding: 5px 10px; - } - .h-l img { - display: inline; - margin-bottom: auto; - } - .description { - display: none; - } - .footer img { - margin-top: 10px; - } +.kc-brand { + height: 63px; + width: 300px; + display: block; + margin: 0 auto; } diff --git a/finallycoffee/welcome/theme.properties b/finallycoffee/welcome/theme.properties index 9b92ba9..dd6b286 100644 --- a/finallycoffee/welcome/theme.properties +++ b/finallycoffee/welcome/theme.properties @@ -1,7 +1,7 @@ styles=css/welcome.css import=common/keycloak -stylesCommon=node_modules/patternfly/dist/css/patternfly.css node_modules/patternfly/dist/css/patternfly-additions.css +stylesCommon=vendor/patternfly-v5/patternfly.min.css vendor/patternfly-v5/patternfly-addons.css productName=id.finally.coffee documentationUrl=https://www.keycloak.org/documentation.html