Skip to content

pzq123456/Interactive-rating-component

Repository files navigation

Frontend Mentor - Interactive rating component solution

This is a solution to the Interactive rating component challenge on Frontend Mentor. Frontend Mentor challenges help you improve your coding skills by building real projects.

Table of contents

Overview

In this challenge, I was tasked with creating a rating component that would allow users to select a rating and submit it. The component would then display a "Thank you" card with the user's rating.

  • I used Vue 3 framework to create this component.

This is my first time using Vue 3 and I'm still learning it. I'm sure there are better ways to do this, but this is what I came up with.

The challenge

Users should be able to:

  • View the optimal layout for the app depending on the device's screen size
  • See hover states for all interactive elements on the page
  • Select and submit a number rating
  • See the "Thank you" card state after submitting a rating

Screenshot

Links

My process

Built with

  • Semantic HTML5 markup
  • CSS custom properties
  • Flexbox
  • CSS Grid
  • Mobile-first workflow
  • Vue 3 - JS library

What I learned

I learned how to use Vue 3 to create a component. I also learned how to use the v-model directive to create a two-way binding between the component and the parent component. I also learned how to use the v-if directive to conditionally render elements.

Acknowledgments

Thanks to the video by John Komarnicki for teaching me how to use Vue 3. I learned a lot from that video.

  • Thanks to Frontend Mentor for providing this challenge. I learned a lot from this challenge and I'm looking forward to more challenges from them.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published