diff --git a/infintrix_theme/www/login.html b/infintrix_theme/www/login.html index b7c65c4..3ec563d 100644 --- a/infintrix_theme/www/login.html +++ b/infintrix_theme/www/login.html @@ -29,11 +29,21 @@

{{ _('Login to {0}').format(app_name or _("Frappe")) }}

margin: 0; box-sizing: border-box; } + body, html{ + width: 100%; + height: 100%; + margin: 0; + } body { + height: 100%; background-color: color-mix(in srgb, {{ theme_color or '#000000' }} 10%, #080710 90%) !important; background-image : url({{login_background_image}}) !important; overflow-x: hidden; + background-size: cover !important; + background-position: center center !important; + background-repeat: no-repeat !important; + bacground-attachment: fixed !important; } .background { @@ -86,7 +96,7 @@

{{ _('Login to {0}').format(app_name or _("Frappe")) }}

.login-image { width: 400px; height: 520px; - background-image: url({{ login_page_image or 'https://images.unsplash.com/photo-1606857521015-7f9fcf423740?q=80&w=2070&auto=format&fit=crop'}}); /* Replace with your image URL */ + background-image: url({{ login_page_image or 'http://185.217.126.162:8001/files/with%20background.png' }}); /* Replace with your image URL */ background-size: cover; background-position: center; border-right: 1px solid rgba(255, 255, 255, 0.1); @@ -231,8 +241,8 @@

{{ _('Login to {0}').format(app_name or _("Frappe")) }}

-
-
+
diff --git a/infintrix_theme/www/login.py b/infintrix_theme/www/login.py index 6607136..cd18c9b 100644 --- a/infintrix_theme/www/login.py +++ b/infintrix_theme/www/login.py @@ -60,7 +60,7 @@ def get_context(context): context["login_page_image"] = theme_settings.login_page_image or None context["login_background_image"] = theme_settings.login_background_image or None context['theme_color'] = theme_settings.color or None - print("Login Image: ",theme_settings.login_background_image) + # print("Login Image: ",theme_settings.login_background_image) signup_form_template = frappe.get_hooks("signup_form_template") if signup_form_template and len(signup_form_template):