Skip to content

Add footer with updated text #536

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

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

brian-rose
Copy link
Member

Closes #530

This PR temporarily adds a footer directly to Foundations until the shared upstream footer problem is resolved (ProjectPythia/projectpythia.github.io#530).

This PR also modifies the footer layout and text, following recent discussions. The footer text makes more specific claims about which parts of the Pythia content were supported by NSF awards, and updates the statement to include the current awards.

Finally, I included the 2i2c logo so that the collection of logos fully represents the current set of institutions covered by our NSF awards.

I'd like to settle on the new text here, and use this as a template for the upstream shared footer. We can also update the temporary footer on the portal site to match this once we settle and merge this.

Copy link

github-actions bot commented Jun 24, 2025

👋 Thanks for opening this PR! The Cookbook will be automatically built with GitHub Actions. To see the status of your deployment, click below.
🔍 Git commit SHA: f347930
✅ Deployment Preview URL: https://ProjectPythia.github.io/pythia-foundations/_preview/536

@brian-rose brian-rose marked this pull request as ready for review June 24, 2025 19:08
@brian-rose brian-rose requested a review from a team as a code owner June 24, 2025 19:08
@brian-rose brian-rose requested review from dopplershift and r-ford and removed request for a team June 24, 2025 19:08
myst.yml Outdated
parts:
footer: |
:::::{grid} 4
:class: items-center
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The logos don't look exactly centered in the preview, though they look fine on the portal.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The preview shows exactly how they will look. They aren't exactly centered because the 2i2c logo has much narrower width than the other logos.

I don't know why :class: items-center doesn't center each image in its grid element. Maybe there's a different CSS class that we can use. But I'm not very knowledgeable about this.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

```{image} <url>
:align: center
```

May help here. I haven't tried locally

myst.yml Outdated
:::::{grid} 4
:class: items-center

```{image} https://raw.githubusercontent.com/ProjectPythia/pythia-config/main/logos/UAlbany.svg
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the slightly taller UAlbany logo (Minerva 2 on this page) would fit better with the size of the other logos. Also, I think it would look better if all logos had the same height.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you like the "gold with black text" version, purple & white, or black & white here?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd say gold & black.

This isn't high priority, but if there's an option to change it based on light/dark mode, it would be nice to have gold & white in dark mode (and similar for the other logos if available).

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Figuring out how to support different images in the footer for dark and light mode is not in scope for now, but please open an issue to track it.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These classes should work, though I'm not sure how hidden divs will interact with grid numbering. That can be for the future once the footer lives upstream, though.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I confirmed locally that they do work. We can specify light and dark mode images and the grid will behave appropriately (now or in the future 😉 )

@brian-rose
Copy link
Member Author

Trying to get the footer to look the way I want it has led me down an unintended rabbit hole. I'm putting this PR back into draft mode, and I think I'll go ahead with the JOSE submission without the footer in place.

For the record, here are a few things I've learned:

site:
  parts:
    footer: https://raw.githubusercontent.com/ProjectPythia/pythia-config/main/footer.md

even if shared footers are not yet supported.

  • Styling of footers can be handled with custom CSS. Guidance is here and a useful working example is here
  • I have a design in mind that includes logos, NSF disclaimer, and also a multi-column grid of links like we had in the old portal site.
  • I don't have the CSS skills to make this work right now but I'm hoping to pass it on to someone on our team.

@brian-rose brian-rose marked this pull request as draft June 25, 2025 12:40
@brian-rose
Copy link
Member Author

Moves footer to external markdown (for now, can live in myst.yml if needed for upstream.) Refactors logo row and NSF row to flex rows with responsive widths and matching heights.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Footers are missing
3 participants