Skip to content

Commit

Permalink
Add google analytics and footer.
Browse files Browse the repository at this point in the history
  • Loading branch information
shyuep committed Feb 12, 2025
1 parent 8509ff2 commit 1019669
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 2 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
39 changes: 38 additions & 1 deletion app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = """<!DOCTYPE html>
<html>
<head>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-0P0W73YK15"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-0P0W73YK15');
</script>
{%metas%}
<title>{%title%}</title>
{%favicon%}
{%css%}
</head>
<body>
{%app_entry%}
<footer>
{%config%}
{%scripts%}
{%renderer%}
</footer>
</body>
</html>"""

app.layout = html.Div([dcc.Location(id="url"), navbar, content, footer])


server = app.server

Expand Down

0 comments on commit 1019669

Please sign in to comment.