diff --git a/src/branding/branding.js b/src/branding/branding.js
index 5baa395..bbc8a48 100644
--- a/src/branding/branding.js
+++ b/src/branding/branding.js
@@ -19,18 +19,40 @@ import brands from './brands'
import config from '../config'
import _ from 'lodash';
+import {villasweb_home} from './villasweb/villasweb-home';
+import {slew_home} from './slew/slew_home';
+
+
class Branding {
constructor(chosenbrand) {
var brand = _.get(brands, [chosenbrand]);
if (!brand) {
console.error("Branding '" + chosenbrand + "' not available, will use 'villasweb' branding");
brand = _.get(brands, ['villasweb']);
+ chosenbrand = 'villasweb'
}
this.brand = brand;
+ this.name = chosenbrand;
}
static instance = Branding.instance || new Branding(config.branding);
+
+ getHome(username = '' , userid = '', role = '') {
+ var homepage = '';
+ switch(this.name) {
+ case 'villasweb':
+ homepage = villasweb_home(this.brand.title, username, userid, role);
+ break;
+ case 'slew':
+ homepage = slew_home();
+ break;
+ default:
+ homepage = villasweb_home();
+ break;
+ }
+ return homepage;
+ }
};
diff --git a/src/branding/slew/slew_home.js b/src/branding/slew/slew_home.js
new file mode 100644
index 0000000..812b703
--- /dev/null
+++ b/src/branding/slew/slew_home.js
@@ -0,0 +1,41 @@
+/**
+ * This file is part of VILLASweb.
+ *
+ * VILLASweb is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * VILLASweb is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with VILLASweb. If not, see
SLEW is a learning platform for running experiments in a virtual power engineering world. + The platform enables to interact with the experiments in real time and perform analyses on the experimental results.
+ +The motivation behind is the ongoing transformation of the energy system, which is making the system more and more complex. + Hence, understanding new phenomena and underlying interactions is getting more challenging, also because real experimental + activities for obtaining a better understanding are not possible for obvious reasons of security and safety.
+ +The SLEW platform gives the possibility to perform experiments in a virtual infrastructure and to learn from the execution + of complex models. It provides a virtual power engineering world where complex phenomena take place while users can interact + with the system in real time.
+ +The platform is based on the real-time simulation tool DPsim developed in RWTH, + which is available as open-source software project to the power engineering community. Besides, it integrates the interactive + computing environment Jupyter for further analysis of experimental results.
++ Welcome to {title}! +
++ You are logged in as user {username} with ID {userid} and role {role}. +
+VILLASweb is an open source project developed by the Institute for Automation of Complex Power Systems at RWTH Aachen University.
+The development of VILLASframework projects has received funding from
+SLEW: Second Life for Energiewende, an Exploratory Teaching Space project funded by RWTH Aachen University
+ERIgrid 2.0: An EU Horizon 2020 research and innovation action project for connecting European Smart Grid Infrastructures (grant agreement No 870620)
+
+
+
+
Urban Energy Lab 4.0: A project funded by EFRE.NRW (European Regional Development Fund) for the setup of a novel energy research infrastructure.
+
+
+
+
RESERVE: An EU Horizon 2020 research and innovation project (grant agreement No 727481)
+
+
+
+
JARA-ENERGY: Jülich-Aachen Research Alliance (JARA) is an initiative of RWTH Aachen University and Forschungszentrum Jülich.
+- Welcome to {Branding.instance.brand.title}! -
-- You are logged in as user {currentUser.username} with ID {currentUser.id} and role {currentUser.role}. -
- -VILLASweb is an open source project developed by the Institute for Automation of Complex Power Systems at RWTH Aachen University.
-The development of VILLASframework projects has received funding from
-SLEW: Second Life for Energiewende, an Exploratory Teaching Space project funded by RWTH Aachen University
-ERIgrid 2.0: An EU Horizon 2020 research and innovation action project for connecting European Smart Grid Infrastructures (grant agreement No 870620)
-
-
-
-
Urban Energy Lab 4.0: A project funded by EFRE.NRW (European Regional Development Fund) for the setup of a novel energy research infrastructure.
-
-
-
-
RESERVE: An EU Horizon 2020 research and innovation project (grant agreement No 727481)
-
-
-
-
JARA-ENERGY: Jülich-Aachen Research Alliance (JARA) is an initiative of RWTH Aachen University and Forschungszentrum Jülich.
-