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 92730ab
Show file tree
Hide file tree
Showing 46 changed files with 4,119 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

1 change: 1 addition & 0 deletions themes/entando/admin/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.
3 changes: 3 additions & 0 deletions themes/entando/admin/theme.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
parent=keycloak.v2

logo=/public/entando-logo.svg
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 92730ab

Please sign in to comment.