From 1019669a2f13fee4687463086c3811e2b7410660 Mon Sep 17 00:00:00 2001 From: Shyue Ping Ong Date: Wed, 12 Feb 2025 07:01:29 -0800 Subject: [PATCH] Add google analytics and footer. --- README.md | 4 +++- app.py | 39 ++++++++++++++++++++++++++++++++++++++- 2 files changed, 41 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 86edcef..63887e7 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,8 @@ #### Welcome -Welcome to MatPES, a foundational potential energy surface (PES) dataset for materials. +Welcome to MatPES, a foundational potential energy surface (PES) dataset for materials. This is a collaboration between +the [Materials Virtual Lab] and the [Materials Project]. Machine learning interatomic potentials (MLIPs) have revolutionized the field of computational materials science. MLIPs use ML to reproduce the PES (energies, forces, and stresses) of a collection of atoms, typically computed @@ -71,6 +72,7 @@ Aaron Kaplan, Runze Liu, Ji Qi, Tsz Wai Ko, Bowen Deng, Gerbrand Ceder, Kristin A foundational potential energy surface dataset for materials. Submitted. ``` +[Materials Virtual Lab]: http://materialsvirtuallab.org [pymatgen]: https://pymatgen.org [Materials Project]: https://materialsproject.org [MatGL]: https://matgl.ai diff --git a/app.py b/app.py index 84d7be1..a07382d 100644 --- a/app.py +++ b/app.py @@ -44,7 +44,44 @@ content = html.Div(children=dash.page_container, id="page-content") -app.layout = html.Div([dcc.Location(id="url"), navbar, content]) +footer_style = { + "border-top": "1px solid #111", # Add a border at the top + "text-align": "center", # Center-align the text + "padding": "10px", # Add some padding for spacing + "font-size": "0.7rem", +} + +footer = html.Footer(["© ", html.A("Materials Virtual Lab", href="http://materialsvirtuallab.org")], style=footer_style) + +app.index_string = """ + + + + + + {%metas%} + {%title%} + {%favicon%} + {%css%} + + + {%app_entry%} + + +""" + +app.layout = html.Div([dcc.Location(id="url"), navbar, content, footer]) + server = app.server