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

Add sitemap to footer #868

Merged
merged 2 commits into from
May 29, 2024
Merged

Add sitemap to footer #868

merged 2 commits into from
May 29, 2024

Conversation

victorlin
Copy link
Member

@victorlin victorlin commented May 18, 2024

preview on contact page

Description of proposed changes

Adds links to the footer.

Related issue(s)

Checklist

@victorlin victorlin self-assigned this May 18, 2024
@nextstrain-bot nextstrain-bot temporarily deployed to nextstrain-s-victorlin--rytbno May 18, 2024 02:08 Inactive
This was referenced May 18, 2024
Copy link
Member

@jameshadfield jameshadfield left a comment

Choose a reason for hiding this comment

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

Nice one @victorlin! I haven't thought too hard about the entries in each list but as a v1 it looks great.

static-site/src/components/Footer/sitemap.jsx Outdated Show resolved Hide resolved
@@ -0,0 +1,183 @@
import React from "react";
import styled from "styled-components";
Copy link
Member

Choose a reason for hiding this comment

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

FWIW, I'd like us to move away from styled components over time. This isn't a request to stop using it in this PR - we use it everywhere at the moment, so staying consistent is great - but just a heads up as to my thinking of where we'll take this over time.

Copy link
Member Author

Choose a reason for hiding this comment

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

Could you write up an issue for this? I remember you also brought it up somewhere else with more reasoning but I can't seem to find it.

Copy link
Member

Choose a reason for hiding this comment

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

It's really part of that larger discussion issue that I can't find at present -- what frontend do we want? That discussion involves styles, how data is passed between client & server etc.

Copy link
Member Author

Choose a reason for hiding this comment

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

Is it this?

We should have a site-wide stylesheet which is enough for most pages to work without custom styling.

static-site/src/components/Footer/sitemap.jsx Outdated Show resolved Hide resolved
static-site/src/components/Footer/index.jsx Show resolved Hide resolved
@tsibley
Copy link
Member

tsibley commented May 20, 2024

This will be a nice improvement!

Aesthetically, one thing I'd point out (in addition to what James did) is that the alignment/justification of the sitemap as a whole and the columns within it feel a bit off to me. Our central layout element/block is a centered column, but we have a slew of widths for that column. Within the column, text and inline elements are either centered or left-justified.

image

I think the sitemap would "fit in" better with the rest of the page blocks with a reduced overall width (e.g. what the team block uses) and/or with the inner columns/blocks of the sitemap (Resources, Tools, etc) themselves centered (but keeping the text elements within them still left-justified). Something like the below.

alignment

@victorlin victorlin temporarily deployed to nextstrain-s-victorlin--rytbno May 25, 2024 00:23 Inactive
static-site/src/components/Footer/sitemap.jsx Outdated Show resolved Hide resolved
static-site/src/components/Footer/sitemap.jsx Outdated Show resolved Hide resolved
static-site/src/components/Footer/sitemap.jsx Outdated Show resolved Hide resolved
static-site/src/components/Footer/index.jsx Show resolved Hide resolved
static-site/src/components/Footer/index.jsx Show resolved Hide resolved
@victorlin victorlin temporarily deployed to nextstrain-s-victorlin--rytbno May 28, 2024 23:09 Inactive
@victorlin victorlin temporarily deployed to nextstrain-s-victorlin--rytbno May 28, 2024 23:18 Inactive
@victorlin victorlin temporarily deployed to nextstrain-s-victorlin--rytbno May 28, 2024 23:21 Inactive
@victorlin victorlin marked this pull request as ready for review May 28, 2024 23:21
With the new sitemap at the top of the footer, it makes more sense to
render this on not only GenericPage but also pages that use Splash.
@victorlin victorlin temporarily deployed to nextstrain-s-victorlin--rytbno May 28, 2024 23:26 Inactive
Copy link
Member

@jameshadfield jameshadfield left a comment

Choose a reason for hiding this comment

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

Thanks @victorlin! (A rebase onto master might be nice before merge, but not required)

@victorlin
Copy link
Member Author

Thanks for reviewing! There's no merge conflicts and #869 is based on this, so I'll just merge as-is to avoid extra rebase churn on that PR.

@victorlin victorlin merged commit 1ea4f94 into master May 29, 2024
7 checks passed
@victorlin victorlin deleted the victorlin/footer-sitemap branch May 29, 2024 00:16
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.

None yet

4 participants