-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🎨 [Frontend] TIP lite: add teaser button (#6359)
- Loading branch information
Showing
4 changed files
with
101 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
80 changes: 80 additions & 0 deletions
80
services/static-webserver/client/source/class/osparc/product/TIPTeaser.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
/* ************************************************************************ | ||
osparc - the simcore frontend | ||
https://osparc.io | ||
Copyright: | ||
2023 IT'IS Foundation, https://itis.swiss | ||
License: | ||
MIT: https://opensource.org/licenses/MIT | ||
Authors: | ||
* Odei Maiz (odeimaiz) | ||
************************************************************************ */ | ||
|
||
qx.Class.define("osparc.product.TIPTeaser", { | ||
extend: osparc.ui.window.Window, | ||
type: "singleton", | ||
|
||
construct: function() { | ||
this.base(arguments, this.tr("Access TIP")); | ||
|
||
this.set({ | ||
layout: new qx.ui.layout.VBox(10), | ||
width: this.self().WIDTH, | ||
contentPadding: this.self().PADDING, | ||
showMaximize: false, | ||
showMinimize: false, | ||
resizable: true, | ||
centerOnAppear: true, | ||
clickAwayClose: true, | ||
modal: true | ||
}); | ||
|
||
this.getChildControl("teaser-text"); | ||
}, | ||
|
||
statics: { | ||
WIDTH: 500, | ||
PADDING: 15 | ||
}, | ||
|
||
members: { | ||
_createChildControlImpl: function(id) { | ||
let control; | ||
switch (id) { | ||
case "teaser-text": { | ||
const link1 = osparc.utils.Utils.createHTMLLink("Request Full TIP Access", "https://tip.science/"); | ||
const link2 = osparc.utils.Utils.createHTMLLink("Learn More About EAP", "https://temporalinterference.com/"); | ||
const text = this.tr(` | ||
Unlock the Full Potential of TI Research!<br> | ||
<br> | ||
Are you part of the TI Solutions Early Adopter Program (EAP)?<br> | ||
<br> | ||
If yes, you have free access to our complete TIP platform with advanced features for TI planning and simulations. Click here to request access.<br> | ||
<br> | ||
Not an EAP member yet? Join our cutting-edge research community:<br> | ||
• Use our investigational TIBS-R devices in your projects<br> | ||
• Contribute to advancing TI knowledge<br> | ||
• Shape the future of neurostimulation technology<br> | ||
<br> | ||
Click here to learn more about EAP and apply today!<br> | ||
<br> | ||
${link1}   ${link2} | ||
`); | ||
control = new qx.ui.basic.Label(text).set({ | ||
font: "text-14", | ||
wrap: true, | ||
rich: true, | ||
}); | ||
this.add(control); | ||
break; | ||
} | ||
} | ||
return control || this.base(arguments, id); | ||
}, | ||
} | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters