Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted 5 months ago

room homepage master HTML SCSS JS

sass/scss
Binh05•470
@Binh05
A solution to the Room homepage challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


What are you most proud of, and what would you do differently next time?

In this challenge, it was my first time working with animations and SCSS. I think in future projects, I’ll try using React and other JavaScript techniques like class-based components.

What challenges did you encounter, and how did you overcome them?

Initially, I used CSS animations to automatically change the slide every 4 seconds, and JavaScript to handle the "prev" and "next" buttons. However, after testing, I realized that the animation and manual slide navigation weren’t in sync. At that point, I had two options: either switch everything to a pure HTML/CSS solution using :checked radio buttons, or go fully with JavaScript. Since I didn’t want to modify the HTML file too much, I decided to move everything over to JavaScript.

What specific areas of your project would you like help with?

In this challenge, I explored SCSS, BEM, CUBE architecture, and CSS animations. I started by experimenting with SCSS and animations.

Using SCSS really helped make my code cleaner and more organized. However, I ran into some difficulties when trying to override styles within media queries — specifically, I had to write out the full parent selectors to ensure specificity and proper overriding.

I’d love to hear your experiences or best practices when working with SCSS, BEM, or CUBE. Also, do you think it’s a good time for me to switch to React? And when it comes to animations, do most developers prefer using CSS or JavaScript?

Thanks in advance for any insights you can share!

Code
Loading...

Please log in to post a comment

Log in with GitHub

Community feedback

No feedback yet. Be the first to give feedback on Binh05's solution.

Join our Discord community

Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!

Join our Discord

Stay up to datewith new challenges, featured solutions, selected articles, and our latest news

Frontend Mentor

  • Unlock Pro
  • Contact us
  • FAQs
  • Become a partner
  • Use cases

Explore

  • Learning paths
  • Challenges
  • Solutions
  • Articles

Community

  • Discord
  • Guidelines

For companies

  • Hire developers
  • Train developers
© Frontend Mentor 2019 - 2025
  • Terms
  • Cookie Policy
  • Privacy Policy
  • License