Skip to content

Commit 86e8bb4

Browse files
committed
Update Acknowledgment
1 parent 5a9c90f commit 86e8bb4

4 files changed

Lines changed: 58 additions & 3 deletions

File tree

FFG_Logo.png

13.8 KB
Loading

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ Try it out online: [homebattery.labs.fhv.at](https://homebattery.labs.fhv.at/)
2323
The main functions are located in the `src/` directory. For more information on usage and development, see [README_maintainer.md](README_maintainer.md).
2424

2525
## Acknowledgments
26+
<img src="FFG_Logo.png" alt="FFG Logo" width="200">
27+
2628
We gratefully acknowledge the financial support from the Austrian Research Promotion Agency FFG for the Hub4FlECs project (COIN FFG 898053), which provided funding for the development of the software provided. https://projekte.ffg.at/projekt/4597880
2729

2830
## License

src/simulation/assets/FFG_Logo.png

13.8 KB
Loading

src/simulation/web_app.py

Lines changed: 56 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -742,7 +742,7 @@ def _serve_layout():
742742
"justifyContent": "space-between"},
743743
children=[
744744
html.H1(
745-
"FHV FZE - Lastmanagement Simulation",
745+
"Fachhochschule Vorarlberg - Forschungszentrum Energie - Lastmanagement Simulation",
746746
style={"color": "#fff", "margin": "0",
747747
"fontSize": "22px", "fontWeight": "700",
748748
"letterSpacing": "-0.3px"},
@@ -772,6 +772,7 @@ def _serve_layout():
772772

773773
# ── Disclaimer-Banner ─────────────────────────────────────────
774774
html.Div(
775+
id="disclaimer-banner",
775776
style={
776777
"backgroundColor": "#fefce8",
777778
"borderBottom": "1px solid #fde047",
@@ -785,11 +786,26 @@ def _serve_layout():
785786
html.Span(
786787
[
787788
html.Strong("Entwicklungs-Tool - keine Haftung: "),
788-
"Dieses Tool wurde im Rahmen eines Forschungsprojekts an der FH Vorarlberg nach bestem Wissen und Gewissen entwickelt. "
789+
"Dieses Tool wurde im Rahmen eines Forschungsprojekts an der Fachhochschule Vorarlberg nach bestem Wissen und Gewissen entwickelt. "
789790
"Die Simulationsergebnisse dienen ausschließlich der Orientierung und erheben keinen Anspruch auf Vollständigkeit oder Richtigkeit. "
790791
"Für wirtschaftliche Entscheidungen, die auf Basis dieser Ergebnisse getroffen werden, wird keine Haftung übernommen.",
791792
],
792-
style={"fontSize": "13px", "color": "#713f12", "lineHeight": "1.5"},
793+
style={"fontSize": "13px", "color": "#713f12", "lineHeight": "1.5", "flex": "1"},
794+
),
795+
html.Button(
796+
"✕",
797+
id="dismiss-disclaimer",
798+
n_clicks=0,
799+
style={
800+
"background": "none",
801+
"border": "none",
802+
"fontSize": "18px",
803+
"color": "#713f12",
804+
"cursor": "pointer",
805+
"padding": "0 4px",
806+
"lineHeight": "1",
807+
"opacity": "0.6",
808+
},
793809
),
794810
],
795811
),
@@ -1342,6 +1358,35 @@ def _serve_layout():
13421358
),
13431359
],
13441360
),
1361+
# ── Footer / Acknowledgment ──────────────────────────────────
1362+
html.Div(
1363+
style={
1364+
"backgroundColor": COLOR["header"],
1365+
"padding": "24px 40px",
1366+
"marginTop": "32px",
1367+
"display": "flex",
1368+
"alignItems": "center",
1369+
"gap": "20px",
1370+
},
1371+
children=[
1372+
html.Img(
1373+
src="/assets/FFG_Logo.png",
1374+
alt="FFG Logo",
1375+
style={"height": "60px"},
1376+
),
1377+
html.P(
1378+
"We gratefully acknowledge the financial support from the Austrian Research "
1379+
"Promotion Agency FFG for the Hub4FlECs project (COIN FFG 898053), which "
1380+
"provided funding for the development of the software provided.",
1381+
style={
1382+
"color": "#cbd5e1",
1383+
"fontSize": "13px",
1384+
"margin": "0",
1385+
"lineHeight": "1.5",
1386+
},
1387+
),
1388+
],
1389+
),
13451390
],
13461391
)
13471392

@@ -1352,6 +1397,14 @@ def _serve_layout():
13521397
_netload_cache: _BoundedCache = _BoundedCache()
13531398

13541399
# ── Callbacks ────────────────────────────────────────────────────────
1400+
@app.callback(
1401+
Output("disclaimer-banner", "style"),
1402+
Input("dismiss-disclaimer", "n_clicks"),
1403+
prevent_initial_call=True,
1404+
)
1405+
def dismiss_disclaimer(_):
1406+
return {"display": "none"}
1407+
13551408
@app.callback(
13561409
Output("upload-residual", "style"),
13571410
Output("upload-load-gen", "style"),

0 commit comments

Comments
 (0)