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

[BE/FE] Mozfest Session Slider #7515

Merged
merged 30 commits into from
Nov 16, 2021
Merged

Conversation

b-ggs
Copy link
Collaborator

@b-ggs b-ggs commented Sep 28, 2021

Closes #7423

Implementation Checklist

Each item in slider contains:

  • Heading (required)
  • author subheading
  • Image (required)
  • Video - autoplays on hover
  • rich text copy (required)
  • the card will link to an internal page or external url (required)

Screenshots

Session Slider on a page with the signup snippet:
screencapture-mozfest-localhost-8000-en-2021-10-26-13_41_00

Session Slider on a page without the signup snippet:
screencapture-mozfest-localhost-8000-en-spaces-2021-10-26-13_42_08

Session Slider items can be localized:
Screen Shot 2021-10-26 at 1 44 28 PM

Checklist

  • Did I squash my migration?

@mofodevops mofodevops temporarily deployed to foundation-s-feature-fe-k0wkgu September 28, 2021 07:29 Inactive
@b-ggs b-ggs force-pushed the feature/fe-be-mozfest-session-slider branch from 891f85e to 8b5c762 Compare October 6, 2021 21:07
@github-actions
Copy link

github-actions bot commented Oct 6, 2021

This PR introduces visual differences. Click here to inspect the diffs.

* video play on hover styling

* Minor spacing

* Add session carousel BE variables

* Cleanup testing data

* Move play triangle into template

* End for loop

* Session slider template location

* Move styles into mozfest.scss to match event slider PR

* Add settings to match events carousel

* Adjust padding and grids of carousel

* Adjust navigation styles

* Add video image thumbnail for testing

* Hook up video to session cards
@mofodevops mofodevops temporarily deployed to foundation-s-feature-fe-bc8ije October 25, 2021 14:57 Inactive
@mofodevops mofodevops temporarily deployed to foundation-s-feature-fe-wt6zr4 October 25, 2021 14:57 Inactive
@mofodevops mofodevops temporarily deployed to foundation-s-feature-fe-wt6zr4 October 26, 2021 05:08 Inactive
@mofodevops mofodevops temporarily deployed to foundation-s-feature-fe-wt6zr4 October 26, 2021 05:38 Inactive
@github-actions
Copy link

This PR introduces visual differences. Click here to inspect the diffs.

@b-ggs b-ggs marked this pull request as ready for review October 26, 2021 05:53
@b-ggs b-ggs requested review from Pomax and sabrinang October 26, 2021 05:53
@b-ggs
Copy link
Collaborator Author

b-ggs commented Oct 26, 2021

Hey @sabrinang and @Pomax! Whenever it's convenient, would you mind checking out what we have for the Session Slider? Thanks!

@github-actions
Copy link

This PR introduces visual differences. Click here to inspect the diffs.

tailwind.config.js Outdated Show resolved Hide resolved
Copy link
Contributor

@Pomax Pomax left a comment

Choose a reason for hiding this comment

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

Nothing really wrong, but there's some things we should consider with regards to our styleguide, including potentially filing issues for updates, before we merge this in.

Copy link

@sabrinang sabrinang left a comment

Choose a reason for hiding this comment

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

Type/Color

  • Title: font weight 600 (semi bold to match figma mockup)
  • Session item title: bottom-margin 12px (so author subheading is closer, see figma mockup)
  • @Pomax I don’t see color #0d10bf in the component visually but I do see it when I inspect the class — this can be replaced with #595cf3 to align or remove because I don’t see it on hover anyways if it is suppose to be. Thanks for pointing this out Pomax.
  • Regarding text sizes, let’s stick with https://foundation.mozilla.org/en/style-guide/#typography sizes as closely as we can but a separate issue where I need to sync with @fessehaye on tw-text sizes and colors if that is where the other blue came from

Button

  • Button doesn’t show up for internal/external links
    • Should the button be optional then? (currently required)

Links

  • Internal/external links are ignored and links to the same home page unless a video is uploaded it goes to the video itself

Video

  • When an image is uploaded and video is uploaded and I hover over the thumbnail, it is blank (it is blank if there is a video thumbnail present or not)
    TToBRlWUWu
  • When there is a link present and video, when I click on the heading or thumbnail it opens up the video on a separate page, I was thinking it was suppose to go to the link instead?

Thumbnails

  • Does it need a play arrow for every thumbnail? Especially when there is no video present is this intentionally what the stakeholders want? (does the link always go to a video)

@mofodevops mofodevops temporarily deployed to foundation-s-feature-fe-wt6zr4 November 1, 2021 23:23 Inactive
@github-actions
Copy link

github-actions bot commented Nov 2, 2021

This PR introduces visual differences. Click here to inspect the diffs.

@Pomax Pomax temporarily deployed to foundation-s-feature-fe-wt6zr4 November 4, 2021 14:53 Inactive
Pomax added a commit that referenced this pull request Nov 4, 2021
* Add common reusable link blocks

* BE: Mozfest Spaces Cards

* [7430] FE - current events slider  (#7505)

* Current events slider styles

* Install swiper and style event cards

* Break slider out of container

* Adjust spacing and containers for wide templates and signup sidebar

* Merge FE on to BE

* Update source/sass/mozfest.scss

Co-authored-by: janehughes <janeelizabethhughes@gmail.com>

Co-authored-by: janehughes <janeelizabethhughes@gmail.com>

* Update template size condition

* Grid adjustment depending on signup form being visible

* Javascript cleanups as per code review

* Update migrations

* Make subheading_link optional

* Carousel alignment fixes

* Carousel full width

* Signup form placement depending on which block is rendered in base

* Add property to event block to check if wide

* Add template tag for holding singup form boolean to render form

* Js modifications as per feedback

* Remove base page overrides for overflowing sliders, configure slider to show 2 cards on desktop

* autoheight for carousels on mozfest

* Fix flake issues

* Fix eslint issues

* Remove newline

* Use double-quotes in tailwind config #7457 (comment)

* Use template literal in querySelector https://github.com/mozilla/foundation.mozilla.org/pull/7457/files#r733242084

* Use forEach instead of for, use template literal for querySelectorAll https://github.com/mozilla/foundation.mozilla.org/pull/7457/files#r733241307

* Use single quotes #7457 (comment)

* Remove unused load in mozfest-base

* Remove unused template tag that was used in development

* Remove empty carousel.scss

* Remove duplicated class and fix nav title not showing with current events length

* Remove commented out overlay

* Switch colors to originally intended colors

* Remove space changes

* Update migrations

* Replace ListBlock with StreamBlock

* Remove rogue spacing changes

* More rogue space changes

* Minor spacing changes

* Remove duplicate styles

* Add padding to h2

* Remove newline change

* Move navigation buttons into slider main container

* Change title font weight to 600 #7457 (review)

* Update subheading color to tw-text-blue (#595cf3) #7457 (review)

* Remove fill-rule and clip-rule from carousel_navigation fragment #7515 (comment)

* Use blocks instead of comments in block template #7515 (comment)

* Update migrations

* Remove tailwind config changes

* Change mobile navigation active bullet color to #0d10bf #7457 (review)

* Update migrations

Co-authored-by: Steve Stein <steven_ts@hotmail.com>
Co-authored-by: janehughes <janeelizabethhughes@gmail.com>
Co-authored-by: Pomax <pomax@nihongoresources.com>
@Pomax
Copy link
Contributor

Pomax commented Nov 4, 2021

@b-ggs it looks like merging 7457 has created merge conflicts for this PR - just a few, but can you resolve those? I can merge it after that.

@github-actions
Copy link

github-actions bot commented Nov 4, 2021

This PR introduces visual differences. Click here to inspect the diffs.

@mofodevops mofodevops temporarily deployed to foundation-s-feature-fe-wt6zr4 November 4, 2021 16:56 Inactive
@github-actions
Copy link

github-actions bot commented Nov 4, 2021

This PR introduces visual differences. Click here to inspect the diffs.

@b-ggs
Copy link
Collaborator Author

b-ggs commented Nov 4, 2021

@Pomax, seems that main has some migration issues on the wagtailpages app. For now, i've merged from 4fb1895 into this branch to be able to properly recreate the migrations. This should be good to merge once the issues on main have been resolved and this branch is updated.

The CI issues on this branch seems to stem from the migration issues on main (since there are currently two migration 0048s on the wagtailpages app on main)

CommandError: Conflicting migrations detected; multiple leaf nodes in the migration graph: (0048_auto_20211101_1811, 0048_auto_20211103_1531 in wagtailpages).

@mofodevops mofodevops temporarily deployed to foundation-s-feature-fe-wt6zr4 November 4, 2021 17:45 Inactive
@b-ggs
Copy link
Collaborator Author

b-ggs commented Nov 4, 2021

@Pomax, looks like this is good to go!

@github-actions
Copy link

github-actions bot commented Nov 4, 2021

This PR introduces visual differences. Click here to inspect the diffs.

@mofodevops mofodevops temporarily deployed to foundation-s-feature-fe-wt6zr4 November 5, 2021 04:06 Inactive
@github-actions
Copy link

github-actions bot commented Nov 5, 2021

This PR introduces visual differences. Click here to inspect the diffs.

@mofodevops mofodevops temporarily deployed to foundation-s-feature-fe-wt6zr4 November 15, 2021 14:08 Inactive
@github-actions
Copy link

This PR introduces visual differences. Click here to inspect the diffs.

@mofodevops mofodevops temporarily deployed to foundation-s-feature-fe-wt6zr4 November 16, 2021 12:03 Inactive
@b-ggs
Copy link
Collaborator Author

b-ggs commented Nov 16, 2021

@Pomax, remarking you as a reviewer to notify you that this should be good to merge! I've updated the migration to mozfest.0026.

@b-ggs b-ggs requested a review from Pomax November 16, 2021 12:04
@Pomax Pomax merged commit 55de475 into main Nov 16, 2021
@Pomax Pomax deleted the feature/fe-be-mozfest-session-slider branch November 16, 2021 16:10
@Pomax
Copy link
Contributor

Pomax commented Nov 16, 2021

perfect, thank you

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.

Epic: Mozfest Session Slider
6 participants