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 screenshots to front page carousel #414

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

SuperManifolds
Copy link
Member

Closes #[issue]

Changelog

✨ Additions

  • Added a number of submitted screenshots from the wollheim vision page and elsewhere to the front page carousel

Additional Information

Contributor's Checklist

  • This PR was created to resolve an existing issue or set of issues.
  • This PR satisfies any and all acceptance criteria laid out by issue(s) it resolves.
  • I have discussed creating this PR with the maintainers in the issue(s) beforehand.
  • I have thoroughly tested the changes this PR introduces in a local development environment.
  • I have linted the entire codebase using yarn lint and confirmed there are no errors or warnings.
  • I have followed the commit conventions laid out by CONTRIBUTING.md.

Maintainer's Checklist

  • User-facing changes this PR introduces has been or will be documented in CHANGELOG.md.
  • This PR has been linted and tested locally as a part of the review process.
  • All issues this PR resolves have been properly linked before merging.

Signed-off-by: Alex Sørlie Glomsaas <[email protected]>
Copy link
Member

@UncleClapton UncleClapton left a comment

Choose a reason for hiding this comment

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

If we want new images, fine, but the intention was never to just continue adding.

If we want a new rotation, replace the old set with a new set of the same count, or implement a way for there to be a subset of a larger list which rotates at an interval (maybe a daily one).

In any event, I don't want this to continue expanding infinitely. all of these images are pre-loaded onto the user's machine in the background, and the UI gets more cluttered with the image picker the more you add. Stick to 5-8 at a time

Comment on lines +98 to 134
function FuelRatsHome(props) {
const { authenticate, ...restQuery } = props.query
const dispatch = useDispatch()

useEffect(() => {
if (authenticate) {
dispatch(setFlag('showLoginDialog', true))
Router.replace(makeRoute('/', restQuery), undefined, { shallow: true })
}
// eslint-disable-next-line react-hooks/exhaustive-deps -- only run on authenticate change, we only care about the state of others when this value changes anyway.
}, [authenticate])

return (
<section className="hero">
<Carousel id="HomeImages" slides={CarouselSlides} />

<header>
<h1>{'We Have Fuel. '}<wbr />{"You\u00a0Don't."}</h1>
<h2>{'Any Questions?'}</h2>
</header>

<footer className="call-to-action">
<Link href="/i-need-fuel">
<a className="button tall">{'Get Fuel'}</a>
</Link>
</footer>
</section>
)
}

FuelRatsHome.getPageMeta = () => {
return {
noHeader: true,
title: 'Home',
key: 'home',
}
return {
noHeader: true,
title: 'Home',
key: 'home',
}
}
Copy link
Member

Choose a reason for hiding this comment

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

Please revert these indentation changes. I think your editor squeaked this up.

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.

2 participants