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

splash page redesign; #388; #390

Merged
merged 7 commits into from
Aug 2, 2021
Merged

splash page redesign; #388; #390

merged 7 commits into from
Aug 2, 2021

Conversation

eharkins
Copy link
Contributor

temp solution for cards is to allow the Cards
component to use flexbox instead of bootstrap
for a more compact, two-column layout. This
will be refactored when we address the design
and flexibility of these components in #305, #347.

TODO:

  • might need to unsquash ncov and narratives cards
    to be able to read them on mobile
  • allowing page sections to tile horizontally,
    e.g. groups alongside sars cov 2 as in james' sketch
  • more testing

temp solution for cards is to allow the Cards
component to use flexbox instead of bootstrap
for a more compact, two-column layout. This
will be refactored when we address the design
and flexibility of these components in #305, #347.

TODO:
- might need to unsquash ncov and narratives cards
to be able to read them on mobile
- allowing page sections to tile horizontally,
e.g. groups alongside sars cov 2 as in james' sketch
- more testing
@tsibley tsibley temporarily deployed to nextstrain-s-splash-y41eob1eew July 28, 2021 03:02 Inactive
allow 2 entire sections to render side-by-side
on wider screen sizes.
@eharkins eharkins temporarily deployed to nextstrain-s-splash-y41eob1eew July 29, 2021 00:00 Inactive
When sections are displayed side-by-side, it's nice to keep the
respective elements (cards, buttons) aligned.

To facilitate this I created a `<Section>` component for easier
editing of the styles. This should also make for nicer changes for
our future selves.

One regression here is the removal of `<ScrollableAnchor>` but these
can be added in if we want to keep this functionality.
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.

Looks really good @eharkins. Given that the five sections are identical, I think we'd benefit from making these a component, if only to make styling adjustments simpler in the short term. I played with this approach as I wanted to improve the aesthetics so that the cards & buttons were always lined up horizontally when the sections were side-by-side. I've added this up as a commit, but please modify as necessary.

Suggested card label changes (for brevity):

  • WNV can become "WNV in the Americas"
  • DRC Ebola can become "DRC Ebola Sit Rep"
  • ncov/open card, replace "public" with "open"

The only non-trivial to-do is the rendering of cards on mobile - the best case here would be to maintain the nextstrain.org behavior, i.e. keep the 2 cards but stack them on top of each other.

static-site/src/components/splash/index.jsx Show resolved Hide resolved
static-site/src/components/splash/index.jsx Outdated Show resolved Hide resolved
static-site/src/components/splash/index.jsx Outdated Show resolved Hide resolved
static-site/src/components/splash/index.jsx Outdated Show resolved Hide resolved
@jameshadfield jameshadfield temporarily deployed to nextstrain-s-splash-y41eob1eew July 29, 2021 06:37 Inactive
non-group cards on the splash still wont
go full width on mobile view, not sure why.
@eharkins eharkins temporarily deployed to nextstrain-s-splash-y41eob1eew July 30, 2021 00:26 Inactive
@jameshadfield jameshadfield temporarily deployed to nextstrain-s-splash-y41eob1eew August 1, 2021 22:44 Inactive
@jameshadfield jameshadfield marked this pull request as ready for review August 2, 2021 03:09
We now know of many more community datasets which we should showcase here, however starting with the datasets which were previously on the frontpage is a good start.
@jameshadfield jameshadfield temporarily deployed to nextstrain-s-splash-y41eob1eew August 2, 2021 03:31 Inactive
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.

3 participants