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

Component: VideoOnClick #3

Open
wants to merge 15 commits into
base: master
Choose a base branch
from
Open

Component: VideoOnClick #3

wants to merge 15 commits into from

Conversation

legitmaxwu
Copy link

i just realized that I named this component wrong. I will change it later, or someone else can change it.

The image saturates on hover, and when the play button is clicked, the element toggles to a video which immediately starts playing! :)

@legitmaxwu legitmaxwu changed the title Component: Video on Hover Component: VideoOnClick Nov 21, 2018
@legitmaxwu
Copy link
Author

@nathunsmitty

@nathanmsmith
Copy link

doesn't look like components/VideoOnClick on got committed. can you commit that?

className={css`
position: relative;
filter: none;
-webkit-filter: grayscale(100%);

Choose a reason for hiding this comment

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

we don't need vendor prefixes, emotion handles that automatically

src/components/VideoOnClick/index.tsx Outdated Show resolved Hide resolved
import Pause from '@material-ui/icons/Pause'
import PlayArrow from '@material-ui/icons/PlayArrow'
import VolumeUp from '@material-ui/icons/VolumeUp'
import VolumeOff from '@material-ui/icons/VolumeOff'

Choose a reason for hiding this comment

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

we already use font awesome icons for most things, any chance we could use font awesome icons for these?

@@ -0,0 +1 @@
declare module 'video-react';

Choose a reason for hiding this comment

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

width: 400px;
`}
>
{this.state.video && (

Choose a reason for hiding this comment

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

since we're rendering components when we both have video and not, let's use a ternary

Copy link
Member

@ryang72 ryang72 left a comment

Choose a reason for hiding this comment

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

lgtm

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