Skip to content

Commit 8b7cadc

Browse files
authored
🎨 Add Science text on Acad's login page (#5467)
1 parent b0ae295 commit 8b7cadc

File tree

2 files changed

+54
-0
lines changed

2 files changed

+54
-0
lines changed

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

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,16 @@ qx.Class.define("osparc.auth.LoginPage", {
6969
control.setFont("text-18");
7070
this.getChildControl("main-layout").add(control);
7171
break;
72+
case "science-text-image":
73+
control = new qx.ui.basic.Image("osparc/Sim4Life_science_Subline.svg").set({
74+
width: 300,
75+
height: 24,
76+
scale: true,
77+
alignX: "center",
78+
marginTop: -25
79+
});
80+
this.getChildControl("main-layout").add(control);
81+
break;
7282
case "pages-stack":
7383
control = new qx.ui.container.Stack().set({
7484
allowGrowX: false,
@@ -153,6 +163,9 @@ qx.Class.define("osparc.auth.LoginPage", {
153163
const mainLayout = this.getChildControl("main-layout");
154164
this.getChildControl("top-spacer");
155165
this.getChildControl("logo-w-platform");
166+
if (osparc.product.Utils.isProduct("s4lacad")) {
167+
this.getChildControl("science-text-image");
168+
}
156169
this.__getLoginStack();
157170
this.getChildControl("bottom-spacer");
158171
this.getChildControl("footer");
Lines changed: 41 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)