Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

css: GRID, FLEXBOX

nathan 200

@Hardcore01

Desktop design screenshot for the Interactive rating component coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


La parte dificil es como controlar los botones dentro de un div. en este caso son hijos del div. para crear eventos de los botones al momento de hacer click y cambiar el backgraund color de los botones.

Community feedback

@anderson-fndz

Posted

  • hay un bug en tu proyecto, cuando apertar el submit sin escojer ningun numero la pagina se cambia, tenias que primero escojer la calificacion para asi el submit sea activado, para eso puedes cambiar los buttons por inputs type="radio" y poner estos en uno form
  • cuando es marcado un numero en la calificacion solo el numero uno se cambia la color, mismo marcando otro numero

CSS:

  • card:
.card{
    width: 400px;
    height: 415px;
    position: absolute;
    display: flex;
    justify-content: center;
    flex-direction: row;
    align-items: center;
    border-radius: 35px;
    background-color: #1F2630;
    color: #ffffff;
}
  • button
.btn__calificacion{
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50px;
    background-color: #262F38;
    font-size: 1rem;
    color: hsl(217, 12%, 63%);
}
  • font:
@import url('https://fonts.googleapis.com/css2?family=Overpass:wght@400;700&display=swap');

 font-family: 'Overpass', sans-serif

Marked as helpful

1

nathan 200

@Hardcore01

Posted

@anderson-fndz gracias amigo por las ideas!

0

Please log in to post a comment

Log in with GitHub
Discord logo

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