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 an exit/close button on the youtube video in the home page #24 Resolved #26

Merged
merged 6 commits into from
Aug 17, 2023

Conversation

alvarotorrestx
Copy link
Contributor

Hi there,

Hope you don't mind me contributing to your project, it seemed fun and I liked the layout of your project.

I went ahead and added the functionality of a close button for the video and updated the media query style for mobile also. Another thing I added was when the video is visible, I changed "Watch Now" to "Close Now" and it updates when the video is visible... if you'd like this to be returned to how it was, I can fix it back! It will also close the video if clicked again. Furthermore, the video is closable by clicking outside the div.

I did want to mention there are a few layout flaws on different screen sizes, there are many overflows causing an x axis scroll. Also in smaller screens the video doesn't show 100% since it's being given a set width. I'm not sure if you'd be ok with me adding issues...

Hope I can continue to contribute, these are a few things I noticed!

Thank you! 😊

@vercel
Copy link

vercel bot commented Aug 16, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
dragonfly-barbershop ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 17, 2023 0:35am

@waynemorphic
Copy link
Owner

Hello there,

Thank you for your contribution and for pointing out some of those responsiveness issues. Yes, you can go ahead and add some of the issues that you may want to work on. I am looking forward to your continued contribution for sure.

Cheers 😃

<div className="responsive-video">
<ReactPlayer url="https://www.youtube.com/watch?v=Gg4wtsWgw5k" controls={true} playsinline={true}/>
<ReactPlayer url="https://www.youtube.com/watch?v=Gg4wtsWgw5k" controls={true} playsinline={true} />
<button type="button" className="btn-close mx-2" aria-label="Close" onClick={handleWatchVideo}></button>
Copy link
Owner

Choose a reason for hiding this comment

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

Could you style this close button a little bit?

Screenshot from 2023-08-16 16-04-43

Copy link
Owner

Choose a reason for hiding this comment

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

Also, the services cards below the video tend to hoover over the video in medium and large screens which is not good UX. If possible, could you make time to work on that too?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Also, the services cards below the video tend to hoover over the video in medium and large screens which is not good UX. If possible, could you make time to work on that too?

Sure thing, on it for both the styling and fixing the hovering 👌

…p up video div to prevent overlapping hover cards
@alvarotorrestx
Copy link
Contributor Author

Hey @waynemorphic! Just updated the styling of the close button to match the website's style, hope you like this better. I updated the z-index of div also to avoid the hover cards going over the video as stated.. not sure if you want a full page div layover to prevent any other clicks or anything else of that sort from happening. I did see a lot of styling that would prevent that but I'm down to work on it. If you find this satisfactory, let me know or any further changes! Thanks! 😊

@waynemorphic waynemorphic merged commit 1bb7284 into waynemorphic:dev Aug 17, 2023
@waynemorphic
Copy link
Owner

Hello @alvarotorrestx ..Just made a few styling changes for the button. Going by the background color of the other buttons, the exit button was kinda off so i have simply added an Icon and resized the video in smaller devices. I think it looks better now. Thank you for your contribution 👏

So, at the moment, I am working on integrating an admin dashboard with a back end so that for every booking, the admin is able to receive bookings in real time on the dashboard.

Regardless, kindly update me on what you are working on based on the issues you raised yesterday and the current changes.

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.

Add an exit/close button on the youtube video in the home page
2 participants