Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ENH] Update external document links and credit text #97

Merged
merged 3 commits into from
Oct 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@ See also the [Contributing Guidelines](CONTRIBUTING.md) for more information.
To install the app from source:

1. Clone the repository

> **NOTE:** To use SSH keys to clone the repo and private submodule,
> run the following command first to ensure that `git://` URls are used automatically:
> ```bash
> git config --global url.git@github.com:.> insteadOf https://github.com/
> ```

```bash
git clone https://github.com/neurodatascience/us_climate_emotions_map.git

Expand Down
57 changes: 39 additions & 18 deletions climate_emotions_map/layout.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
HEADER_HEIGHT = 110

SUPP_TEXT = {
"paper_link": "https://www.thelancet.com/journals/lanplh/article/PIIS2542-5196(24)00229-8/fulltext",
"more_info_link": "https://docs.google.com/document/d/e/2PACX-1vQVssAsC0ddI41vlVYZnS_hxOj6UTbvWVeiejjHRSAzgDzPMFZaM25dWxbdyDOFBJi0KlTlnUUSqjWU/pub",
"hover_tip": "Hover over bars for full proportions",
"weighted_descriptives": "*N are unweighted while proportions are weighted according to US census estimates for age, sex, race, and ethnicity",
"map_disclaimer": "Map does not support making statistical comparisons between states",
Expand Down Expand Up @@ -200,14 +202,17 @@ def create_design_credit():

long_credit = dmc.Text(
children=[
dmc.Text(
"Alyssa Dai, Michelle Wang, Nikhil Bhagwat, Arman Jahanpour, Kendra Oudyk, Rémi Gau, Sebastian Urchs"
),
"Developers from the ",
dmc.Anchor(
"ORIGAMI Lab, PI: Jean-Baptiste Poline",
"ORIGAMI Neuro Data Science Lab (PI: Jean-Baptiste Poline)",
href="https://neurodatascience.github.io/",
target="_blank",
style={"display": "inline"},
),
" - Alyssa Dai, Michelle Wang, Nikhil Bhagwat, Arman Jahanpour, Kendra Oudyk, Rémi Gau, Sebastian Urchs - ",
"contributed to the creation of the web app which is provided as is with no guarantee, ",
"but were not involved in the design, analysis, and reporting of the project. ",
"The project results and interpretation are entirely the responsibility of the article authors.",
],
size="xs",
c="dimmed",
Expand Down Expand Up @@ -259,14 +264,26 @@ def create_app_subtitle():
"""Create the subtitle for the dashboard."""
return dmc.Text(
children=[
'Graphical appendix for "Climate emotions, thoughts, and plans among US adolescents and young adults: ',
"a cross-sectional descriptive survey and analysis by political party identification and self-reported exposure to severe weather events. ",
"(Lewandowski, R.E, Clayton, S.D., Olbrich, L., Sakshaug, J.W., Wray, B. et al, (2024) ",
html.I("Lancet Planetary Health, "),
"(volume, issue, tbd))",
"Graphical appendix for ",
dmc.Anchor(
children=[
'"Climate emotions, thoughts, and plans among US adolescents and young adults: a cross-sectional descriptive survey and analysis by political party identification and self-reported exposure to severe weather events." ',
"[Lewandowski, R.E, Clayton, S.D., Olbrich, L., Sakshaug, J.W., Wray, B. et al, (2024) ",
html.I(
"The Lancet Planetary Health, ",
),
"11 (8)]",
],
href=SUPP_TEXT["paper_link"],
target="_blank",
style={"display": "inline"},
# Inherit font properties from parent
inherit=True,
),
],
style={"display": "inline"},
size="sm",
style={"whiteSpace": "pre-wrap"},
fw=500,
)


Expand Down Expand Up @@ -299,14 +316,18 @@ def create_header():
),
span="content",
),
# TODO: Uncomment once the more info page is created
# dmc.GridCol(
# dmc.Anchor(
# SECTION_TITLES["more_info"],
# href="/"
# ),
# span="content"
# )
dmc.GridCol(
dmc.Anchor(
SECTION_TITLES[
"more_info"
],
href=SUPP_TEXT[
"more_info_link"
],
target="_blank",
),
span="content",
),
],
justify="space-between",
align="flex-end",
Expand Down