-
Notifications
You must be signed in to change notification settings - Fork 0
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
base: master
Are you sure you want to change the base?
Conversation
@nathunsmitty |
doesn't look like |
className={css` | ||
position: relative; | ||
filter: none; | ||
-webkit-filter: grayscale(100%); |
There was a problem hiding this comment.
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
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' |
There was a problem hiding this comment.
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'; |
There was a problem hiding this comment.
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 && ( |
There was a problem hiding this comment.
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
b1d356b
to
dd54901
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
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! :)