Skip to content

Commit b0ae295

Browse files
jsaq007odeimaiz
andauthored
Added background heads for Academy Lite and default (#5462)
Co-authored-by: Odei Maiz <[email protected]>
1 parent e585bec commit b0ae295

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

services/static-webserver/client/source/class/osparc/auth/LoginPage.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,8 @@ qx.Class.define("osparc.auth.LoginPage", {
138138
this.getContentElement().setStyles({
139139
"background-image": backgroundImage,
140140
"background-repeat": "no-repeat",
141-
"background-size": "contain", // auto width, 85% height
142-
"background-position": "0% 100%" // left bottom
141+
"background-size": "65% auto, 80% auto", // auto width, 85% height
142+
"background-position": "left bottom, left -440px bottom -230px" // left bottom
143143
});
144144
},
145145

services/static-webserver/client/source/class/osparc/auth/LoginPageS4L.js

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -53,21 +53,22 @@ qx.Class.define("osparc.auth.LoginPageS4L", {
5353
__setBackgroundImage: function() {
5454
let backgroundImage = "";
5555

56-
const defaultBG = "url(resource/osparc/Sim4Life_login_page_master_transparent_bg.png)";
56+
const defaultBG = "url(https://raw.githubusercontent.com/ZurichMedTech/s4l-assets/main/app/full/background-images/S4L/Sim4Life-head-default.png)," +
57+
"url(https://raw.githubusercontent.com/ZurichMedTech/s4l-assets/main/app/full/background-images/S4L/clouds_11.png)";
58+
const liteBG = "url(https://raw.githubusercontent.com/ZurichMedTech/s4l-assets/main/app/full/background-images/S4L/Sim4Life-head-lite.png)," +
59+
"url(https://raw.githubusercontent.com/ZurichMedTech/s4l-assets/main/app/full/background-images/S4L/clouds_11.png)";
60+
const academyBG = "url(https://raw.githubusercontent.com/ZurichMedTech/s4l-assets/main/app/full/background-images/S4L/Sim4Life-head-academy.png)," +
61+
"url(https://raw.githubusercontent.com/ZurichMedTech/s4l-assets/main/app/full/background-images/S4L/clouds_11.png)";
5762

5863
switch (osparc.product.Utils.getProductName()) {
5964
case "s4llite":
60-
backgroundImage = defaultBG;
65+
backgroundImage = liteBG;
6166
break;
6267
case "s4lacad":
63-
backgroundImage = defaultBG;
64-
break;
65-
case "s4ldesktop":
66-
backgroundImage = defaultBG;
67-
break;
6868
case "s4ldesktopacad":
69-
backgroundImage = defaultBG;
69+
backgroundImage = academyBG;
7070
break;
71+
case "s4ldesktop":
7172
case "s4l":
7273
default:
7374
backgroundImage = defaultBG;

0 commit comments

Comments
 (0)