From c07054fae9a5e8be5728efed6e34641d6c3b495e Mon Sep 17 00:00:00 2001 From: Matheus Cristian Date: Wed, 7 Feb 2024 11:36:10 -0300 Subject: [PATCH] feat: added specific logo for Weni Chats client id --- themes/ilhasoft/login/login-form.ftl | 12 ++++++++-- .../login/messages/messages_en.properties | 1 + .../login/messages/messages_es.properties | 1 + .../login/messages/messages_pt_BR.properties | 1 + themes/ilhasoft/login/register.ftl | 6 ++++- .../img/login/Weni-Chats-Logo-Blue.svg | 24 +++++++++++++++++++ 6 files changed, 42 insertions(+), 3 deletions(-) create mode 100644 themes/ilhasoft/login/resources/img/login/Weni-Chats-Logo-Blue.svg diff --git a/themes/ilhasoft/login/login-form.ftl b/themes/ilhasoft/login/login-form.ftl index 37fccde..9bd68ac 100644 --- a/themes/ilhasoft/login/login-form.ftl +++ b/themes/ilhasoft/login/login-form.ftl @@ -1,10 +1,18 @@ <#macro loginLayout>
- + <#if client.clientId = "weni-chats"> + + <#else> + + - ${msg("greetings")} + <#if client.clientId = "weni-chats"> + ${msg("greetings_chats")} + <#else> + ${msg("greetings")} +
diff --git a/themes/ilhasoft/login/messages/messages_en.properties b/themes/ilhasoft/login/messages/messages_en.properties index 3d30cae..9852f05 100644 --- a/themes/ilhasoft/login/messages/messages_en.properties +++ b/themes/ilhasoft/login/messages/messages_en.properties @@ -33,6 +33,7 @@ benefits4=Creation of AI projects and flows benefits5=Communication channels, including WhatsApp Official API greetings=Welcome, Wenier! +greetings_chats=Welcome, Weni Chats! register_greetings=Become a Wenier! password_instructions_title=At least 8 characters, including at least one uppercase letter, one lowercase letter and one special character. diff --git a/themes/ilhasoft/login/messages/messages_es.properties b/themes/ilhasoft/login/messages/messages_es.properties index 703b427..a523cc8 100644 --- a/themes/ilhasoft/login/messages/messages_es.properties +++ b/themes/ilhasoft/login/messages/messages_es.properties @@ -52,6 +52,7 @@ benefits4=Creación de proyectos y flujos de IA benefits5=Canales de comunicación, incluida la API oficial de WhatsApp greetings=¡Bienvenido, Wenier! +greetings_chats=¡Bienvenido, Weni Chats! register_greetings=¡Conviértete en un Wenier! password_instructions_title=Al menos 8 caracteres, incluyendo al menos una letra mayúscula, una letra minúscula y un carácter especial. diff --git a/themes/ilhasoft/login/messages/messages_pt_BR.properties b/themes/ilhasoft/login/messages/messages_pt_BR.properties index 9905139..9bbe245 100644 --- a/themes/ilhasoft/login/messages/messages_pt_BR.properties +++ b/themes/ilhasoft/login/messages/messages_pt_BR.properties @@ -33,6 +33,7 @@ benefits4=Criação de projetos e fluxos de IA benefits5=Canais de comunicação, incluindo WhatsApp API Oficial greetings=Boas vindas, Wenier! +greetings_chats=Boas vindas, Weni Chats! register_greetings=Seja um Wenier! password_instructions_title=No mínimo 8 caracters, incluindo pelo menos uma letra maiúscula, uma letra minúscula e um caractere especial. diff --git a/themes/ilhasoft/login/register.ftl b/themes/ilhasoft/login/register.ftl index fa743c7..105cef0 100644 --- a/themes/ilhasoft/login/register.ftl +++ b/themes/ilhasoft/login/register.ftl @@ -5,7 +5,11 @@ <#elseif section = "form">
- + <#if client.clientId = "weni-chats"> + + <#else> + + ${msg("register_greetings")} diff --git a/themes/ilhasoft/login/resources/img/login/Weni-Chats-Logo-Blue.svg b/themes/ilhasoft/login/resources/img/login/Weni-Chats-Logo-Blue.svg new file mode 100644 index 0000000..af4abff --- /dev/null +++ b/themes/ilhasoft/login/resources/img/login/Weni-Chats-Logo-Blue.svg @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + + + + + + + + + + +