Skip to content

Commit

Permalink
IT-515: Restored old theme
Browse files Browse the repository at this point in the history
  • Loading branch information
eugeniosant committed Jan 26, 2024
1 parent 3e7c878 commit af1c3bc
Show file tree
Hide file tree
Showing 47 changed files with 4,125 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Dockerfile.keycloak
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ FROM quay.io/keycloak/keycloak:23.0.3 as builder
RUN /opt/keycloak/bin/kc.sh build

FROM quay.io/keycloak/keycloak:23.0.3
#COPY themes/entando /opt/keycloak/themes/entando

COPY themes/entando /opt/keycloak/themes/entando
COPY --from=builder /opt/keycloak/ /opt/keycloak/

#ENV KC_SPI_THEME_DEFAULT="entando"
ENV KC_SPI_THEME_DEFAULT="entando"

ENTRYPOINT ["/opt/keycloak/bin/kc.sh"]
1 change: 1 addition & 0 deletions themes/entando/account/resources/public/entando-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions themes/entando/account/theme.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
parent=keycloak.v2

logo=/public/entando-logo.svg

3 changes: 3 additions & 0 deletions themes/entando/admin/resources/css/logo.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.navbar-pf .navbar-brand {
background: url('../img/entando-logo.svg') no-repeat 0px 15px;
}
1 change: 1 addition & 0 deletions themes/entando/admin/resources/img/entando-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions themes/entando/admin/theme.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
parent=keycloak.v2

logo=/img/entando-logo.svg

styles=css/admin.css
stylesCommon=node_modules/patternfly/dist/css/patternfly.min.css node_modules/patternfly/dist/css/patternfly-additions.min.css node_modules/select2/select2.css css/styles.css lib/angular/treeview/css/angular.treeview.css node_modules/text-security/dist/text-security.css css/logo.css
1 change: 1 addition & 0 deletions themes/entando/email/theme.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
parent=base
55 changes: 55 additions & 0 deletions themes/entando/login/login.ftl
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
<#import "template.ftl" as layout>
<@layout.registrationLayout displayInfo=social.displayInfo; section>
<#if section = "title">
${msg("loginTitle",(realm.displayName!''))}
<#elseif section = "form">
<form class="LoginPage__form" action="${url.loginAction}" method="post">
<div class="LoginPage__formGroup">
<div class="LoginPage__inputGroup">
<label class="LoginPage__label">${msg("username")}</label>
<input type="text" name="username" tabindex="1" class="LoginPage__input" id="username" placeholder="Username" />
</div>
<div class="LoginPage__inputGroup extra-margin">
<label class="LoginPage__label">${msg("password")}</label>
<input type="password" name="password" tabindex="2" class="LoginPage__input" id="password" placeholder="Password" />
</div>
<#if message?has_content>
<div class="LoginPage__error">${message.summary?no_esc}</div>
<div class="LoginPage__actionGroup" style="margin-top: 0;">
<div></div>
<button class="LoginPage__button" type="submit">${msg("doLogIn")}</button>
<div class="LoginPage__loading">
<div class="LoginPage__spinner" />
</div>
</div>
<#else>
<div class="LoginPage__actionGroup">
<div></div>
<button class="LoginPage__button" type="submit">${msg("doLogIn")}</button>
<div class="LoginPage__loading">
<div class="LoginPage__spinner" />
</div>
</div>
</#if>
</div>
<#if social.providers??>
<div class="LoginPage__social">
${msg("socialLogin")}
</div>
</#if>
<div>
<#if social.providers??>
<div id="social-providers">
<div id="kc-social-providers">
<ul class="list horizontal">
<#list social.providers as p>
<li><a href="${p.loginUrl}" id="zocial-${p.alias}" class="button zocial ${p.providerId}">${p.displayName}</a></li>
</#list>
</ul>
</div>
</div>
</#if>
</div>
</form>
</#if>
</@layout.registrationLayout>
Loading

0 comments on commit af1c3bc

Please sign in to comment.