Giter Club home page Giter Club logo

interactive-rating-component's Introduction

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.

interactive-rating-component's People

Contributors

pzq123456 avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.