Spaces:
Running
Running
Better Acknowledgements
Browse files- app.py +56 -16
- assets/styles.css +40 -23
app.py
CHANGED
|
@@ -102,27 +102,67 @@ app.layout = html.Div(
|
|
| 102 |
),
|
| 103 |
html.Footer(
|
| 104 |
[
|
| 105 |
-
html.
|
| 106 |
[
|
| 107 |
-
|
| 108 |
-
|
| 109 |
-
|
| 110 |
-
|
| 111 |
-
|
| 112 |
-
|
| 113 |
-
|
| 114 |
-
|
| 115 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 116 |
],
|
| 117 |
-
|
| 118 |
-
)
|
| 119 |
],
|
|
|
|
| 120 |
),
|
| 121 |
],
|
| 122 |
-
|
| 123 |
-
"margin-left": "10px",
|
| 124 |
-
"margin-right": "10px",
|
| 125 |
-
},
|
| 126 |
)
|
| 127 |
|
| 128 |
|
|
|
|
| 102 |
),
|
| 103 |
html.Footer(
|
| 104 |
[
|
| 105 |
+
html.Div(
|
| 106 |
[
|
| 107 |
+
html.P(
|
| 108 |
+
[
|
| 109 |
+
"This web app is powered by ",
|
| 110 |
+
html.A(
|
| 111 |
+
"Crystal Toolkit",
|
| 112 |
+
href="https://github.com/materialsproject/crystaltoolkit",
|
| 113 |
+
),
|
| 114 |
+
", ",
|
| 115 |
+
html.A(
|
| 116 |
+
"MP Dash Components",
|
| 117 |
+
href="https://github.com/materialsproject/dash-mp-components",
|
| 118 |
+
),
|
| 119 |
+
" and ",
|
| 120 |
+
html.A("Pymatgen", href="https://pymatgen.org/"),
|
| 121 |
+
". All tools made by the ",
|
| 122 |
+
html.A(
|
| 123 |
+
"Materials Project",
|
| 124 |
+
href="https://next-gen.materialsproject.org/",
|
| 125 |
+
),
|
| 126 |
+
". We are grateful for their open source software packages. The apps are purely meant for exploring the data in LeMat-Bulk. We are not endorsed by or affiliated with the Materials Project.",
|
| 127 |
+
html.Br(),
|
| 128 |
+
html.B("CC-BY-4.0"),
|
| 129 |
+
" requires proper acknowledgement. Thus, if you use materials data which include (”mp-”) in the immutable_id, please cite the ",
|
| 130 |
+
html.A(
|
| 131 |
+
"Materials Project",
|
| 132 |
+
href="https://pubs.aip.org/aip/apm/article/1/1/011002/119685/Commentary-The-Materials-Project-A-materials",
|
| 133 |
+
),
|
| 134 |
+
". If you use materials data which include (”agm-”) in the immutable_id, please cite ",
|
| 135 |
+
html.A(
|
| 136 |
+
"Alexandria, PBE",
|
| 137 |
+
href="https://www.science.org/doi/10.1126/sciadv.abi7948",
|
| 138 |
+
),
|
| 139 |
+
" or ",
|
| 140 |
+
html.A(
|
| 141 |
+
"Alexandria PBESol, SCAN",
|
| 142 |
+
href="https://hdl.handle.net/10.1038/s41597-022-01177-w",
|
| 143 |
+
),
|
| 144 |
+
". If you use materials data which include (”oqmd-”) in the immutable_id, please cite ",
|
| 145 |
+
html.A(
|
| 146 |
+
"OQMD",
|
| 147 |
+
href="https://link.springer.com/article/10.1007/s11837-013-0755-4",
|
| 148 |
+
),
|
| 149 |
+
". If you use the Phase Diagram or Crystal Viewer please acknowledge ",
|
| 150 |
+
html.A(
|
| 151 |
+
"Crystal Toolkit",
|
| 152 |
+
href="https://github.com/materialsproject/crystaltoolkit",
|
| 153 |
+
),
|
| 154 |
+
".",
|
| 155 |
+
],
|
| 156 |
+
style={"textAlign": "center"},
|
| 157 |
+
)
|
| 158 |
],
|
| 159 |
+
className="footer-content",
|
| 160 |
+
),
|
| 161 |
],
|
| 162 |
+
className="footer",
|
| 163 |
),
|
| 164 |
],
|
| 165 |
+
className="main-div",
|
|
|
|
|
|
|
|
|
|
| 166 |
)
|
| 167 |
|
| 168 |
|
assets/styles.css
CHANGED
|
@@ -29,14 +29,13 @@ h1 {
|
|
| 29 |
}
|
| 30 |
|
| 31 |
.container-visu {
|
| 32 |
-
width:
|
| 33 |
align-items: center;
|
| 34 |
}
|
| 35 |
|
| 36 |
.container-table {
|
| 37 |
-
width: 50%;
|
| 38 |
align-items: center;
|
| 39 |
-
overflow: auto;
|
| 40 |
}
|
| 41 |
|
| 42 |
/* remove background in periodical table */
|
|
@@ -77,7 +76,44 @@ body {
|
|
| 77 |
font-size: 16px;
|
| 78 |
}
|
| 79 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 80 |
@media (max-width: 800px) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 81 |
.container {
|
| 82 |
width: 100%;
|
| 83 |
margin: 5px;
|
|
@@ -96,29 +132,10 @@ body {
|
|
| 96 |
.container-visu {
|
| 97 |
width: 100%;
|
| 98 |
}
|
| 99 |
-
|
| 100 |
-
.container-table {
|
| 101 |
-
width: 100%;
|
| 102 |
-
}
|
| 103 |
}
|
| 104 |
|
| 105 |
@media (max-width: 1000px) and (min-width: 800px) {
|
| 106 |
.container-visu {
|
| 107 |
-
width:
|
| 108 |
-
}
|
| 109 |
-
|
| 110 |
-
.container-table {
|
| 111 |
-
width: 39%;
|
| 112 |
}
|
| 113 |
}
|
| 114 |
-
|
| 115 |
-
footer {
|
| 116 |
-
display: flex;
|
| 117 |
-
justify-content: center;
|
| 118 |
-
align-items: center;
|
| 119 |
-
flex-wrap: wrap;
|
| 120 |
-
margin-top: 40px;
|
| 121 |
-
background-color: #ffffff;
|
| 122 |
-
border-top: "1px solid #ddd";
|
| 123 |
-
width: 100%;
|
| 124 |
-
}
|
|
|
|
| 29 |
}
|
| 30 |
|
| 31 |
.container-visu {
|
| 32 |
+
width: 70%;
|
| 33 |
align-items: center;
|
| 34 |
}
|
| 35 |
|
| 36 |
.container-table {
|
|
|
|
| 37 |
align-items: center;
|
| 38 |
+
overflow-x: auto;
|
| 39 |
}
|
| 40 |
|
| 41 |
/* remove background in periodical table */
|
|
|
|
| 76 |
font-size: 16px;
|
| 77 |
}
|
| 78 |
|
| 79 |
+
.footer {
|
| 80 |
+
background-color: transparent;
|
| 81 |
+
font-family: "Arial", sans-serif;
|
| 82 |
+
padding: 20px;
|
| 83 |
+
border-top: 1px solid #e0e0e0;
|
| 84 |
+
text-align: center;
|
| 85 |
+
}
|
| 86 |
+
|
| 87 |
+
.footer-content p {
|
| 88 |
+
line-height: 1.6;
|
| 89 |
+
font-size: 14px;
|
| 90 |
+
}
|
| 91 |
+
|
| 92 |
+
.footer-content a {
|
| 93 |
+
color: #0073e6;
|
| 94 |
+
text-decoration: none;
|
| 95 |
+
font-weight: bold;
|
| 96 |
+
}
|
| 97 |
+
|
| 98 |
+
.footer-content a:hover {
|
| 99 |
+
text-decoration: underline;
|
| 100 |
+
}
|
| 101 |
+
|
| 102 |
+
.footer-content strong {
|
| 103 |
+
color: #555;
|
| 104 |
+
}
|
| 105 |
+
|
| 106 |
+
.main-div {
|
| 107 |
+
padding-left: 20px;
|
| 108 |
+
padding-right: 20px;
|
| 109 |
+
}
|
| 110 |
+
|
| 111 |
@media (max-width: 800px) {
|
| 112 |
+
.main-div {
|
| 113 |
+
padding-left: 30px;
|
| 114 |
+
padding-right: 30px;
|
| 115 |
+
}
|
| 116 |
+
|
| 117 |
.container {
|
| 118 |
width: 100%;
|
| 119 |
margin: 5px;
|
|
|
|
| 132 |
.container-visu {
|
| 133 |
width: 100%;
|
| 134 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
| 135 |
}
|
| 136 |
|
| 137 |
@media (max-width: 1000px) and (min-width: 800px) {
|
| 138 |
.container-visu {
|
| 139 |
+
width: 100%;
|
|
|
|
|
|
|
|
|
|
|
|
|
| 140 |
}
|
| 141 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|