diff --git a/src/branding/branding.js b/src/branding/branding.js index c839439..0a05483 100644 --- a/src/branding/branding.js +++ b/src/branding/branding.js @@ -21,6 +21,9 @@ import villasweb_values from './villasweb/villasweb-values'; import { slew_home, slew_welcome } from './slew/slew-functions'; import slew_values from './slew/slew-values'; +import { opalrt_home, opalrt_welcome } from './opalrt/opalrt-functions'; +import opalrt_values from './opalrt/opalrt-values'; + import { template_welcome, template_home, template_footer } from './template/template-functions'; import template_values from './template/template-values'; @@ -42,6 +45,9 @@ class Branding { case 'slew': this.values = slew_values; break; + case 'opalrt': + this.values = opalrt_values; + break; case 'template': this.values = template_values; break; @@ -62,6 +68,9 @@ class Branding { case 'slew': homepage = slew_home(); break; + case 'opalrt': + homepage = opalrt_home(); + break; case 'template': homepage = template_home(); break; @@ -94,6 +103,9 @@ class Branding { case 'slew': welcome = slew_welcome(); break; + case 'opalrt': + welcome = opalrt_welcome(); + break; case 'template': welcome = template_welcome(); break; diff --git a/src/branding/opalrt/img/datamodel.png b/src/branding/opalrt/img/datamodel.png new file mode 100644 index 0000000..f98745f Binary files /dev/null and b/src/branding/opalrt/img/datamodel.png differ diff --git a/src/branding/opalrt/img/eonerc_rwth.svg b/src/branding/opalrt/img/eonerc_rwth.svg new file mode 100644 index 0000000..42c4c3f --- /dev/null +++ b/src/branding/opalrt/img/eonerc_rwth.svg @@ -0,0 +1,152 @@ + + + +image/svg+xml \ No newline at end of file diff --git a/src/branding/opalrt/img/opal-rt-logo-color.svg b/src/branding/opalrt/img/opal-rt-logo-color.svg new file mode 100644 index 0000000..761d918 --- /dev/null +++ b/src/branding/opalrt/img/opal-rt-logo-color.svg @@ -0,0 +1,128 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/branding/opalrt/img/villas_web.svg b/src/branding/opalrt/img/villas_web.svg new file mode 100644 index 0000000..ccbc714 --- /dev/null +++ b/src/branding/opalrt/img/villas_web.svg @@ -0,0 +1,158 @@ + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + diff --git a/src/branding/opalrt/opalrt-functions.js b/src/branding/opalrt/opalrt-functions.js new file mode 100644 index 0000000..49a21e2 --- /dev/null +++ b/src/branding/opalrt/opalrt-functions.js @@ -0,0 +1,69 @@ +/** + * 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 . + ******************************************************************************/ +import React from 'react'; +import { Button } from 'react-bootstrap'; +import { NavLink } from 'react-router-dom'; + +export function opalrt_welcome() { + let url = 'https://villas.fein-aachen.org/doc/web.html'; + return ( +
+

Welcome!

+

VILLASweb is a tool to configure real-time co-simulations and display simulation real-time data. + It enables the management and monitoring of simulators, models and simulations.

+ + + +
) +} + +export function opalrt_home(title, username, userid, role) { + return ( +
+ Logo VILLASweb +

Home

+

+ Welcome to {title}! +

+

+ You are logged in as user {username} with ID {userid} and role {role}. +

+

Credits

+

VILLASweb is an open source project developed by the Institute for Automation of Complex Power Systems at RWTH Aachen University.

+ Logo ACS + +

Links

+ +
) +} + +export function opalrt_footer() { + return ( + + ); +} diff --git a/src/branding/opalrt/opalrt-values.js b/src/branding/opalrt/opalrt-values.js new file mode 100644 index 0000000..5284aeb --- /dev/null +++ b/src/branding/opalrt/opalrt-values.js @@ -0,0 +1,40 @@ +/** + * 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 . + ******************************************************************************/ + +const villasweb_values = { + title: 'OPAL-RT VILLASweb', + // subtitle: 'OPAL-RT Web Dashboards', + logo: 'villas_web.svg', + pages: { + home: true, + scenarios: true, + infrastructure: true, + account: true, + api: true, + }, + style: { + background: '#f0f4f7', + backgroundText: '#000000', + highlights: '#1158a2', + main: '#092f56', + secondaryText: '#c4c4c4', + fontFamily: 'Open Sans', + // borderRadius: '' + } +} + +export default villasweb_values;