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

All comments

  • P
    Christinaโ€ข 190

    @codercreative

    Posted

    Hi @amutsamoses,

    Your Tip Calculator looks awesome!

    I just have a few suggestions:

    Hover State:

    • Add a hover state (lighter green) for the tip buttons and the custom tip button

    Error message for input validation:

    • Even though the design did not specify it, perhaps add an error message if the user does not enter an amount in the bill input field.

    Reset button color:

    • My personal preference: I would either have the reset button be a light cyan color from the get-go -- or make it turn into a light cyan when the user enters data into the input fields for greater user experience.

    Accessibility with fieldset:

    • Also for accessibility, you may consider using fieldset to group related inputs together (I just learned about this myself today)

    Happy Coding!

    0
  • P
    Christinaโ€ข 190

    @codercreative

    Posted

    Hi Rabel,

    I love your solution! ๐Ÿ’ซ

    Perhaps consider...

    -- using switch statements to replace your if statements for better clarity and efficiency.

    -- using template literals to conditionally add an "s" to hrs when the value is not equal to 1.

    -- adding comments in your code and ensuring consistent indentation and formatting for better readability.

    Happy Coding! ๐Ÿฅณ

    Marked as helpful

    0
  • P
    Paul Olynekโ€ข 330

    @ePaulo

    Submitted

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

    Mobile-first design with extra time spent trying to match all the interactive design notes.

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

    Had to learn how to open and close dialog modals. Added code reset the form and modal after each useage.

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

    I think I got fairly close to the design expectations... other than my decision to place the desktop modal visibly over the Newsletter, ie. instead of placing the modal over a dark-color background (visually by itself).

    P
    Christinaโ€ข 190

    @codercreative

    Posted

    Hi Paul,

    Christina here from Scrimba -- I am going through the JavaScript Path and your code came up for peer review on my path ๐Ÿ˜„

    I love your take on the solution, especially how your JavaScript is short, to the point, and very readable.

    Best, Christina

    1
  • Annas-khanโ€ข 120

    @Annas-khan

    Submitted

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

    got a little hang of JS

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

    JS part, got help by alex the moderator

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

    JS and media query

    P
    Christinaโ€ข 190

    @codercreative

    Posted

    Good job! ๐ŸŽ‰ With the following small fixes you can convert your project to mobile first and make it responsive: So for example in the class .main-content, add flex-direction: column and then play around with the max-width (e.g. 20rem) in both main and .product-image. Then, add a media query for desktop: @media (min-width: 1024px) { .main-content { flex-direction: row; } main { max-width: 57rem; } .product-image { max-width: 57rem; } } Of course you may need/want to fine-tune further, but hopefully, the small adjustments above will be helpful to you. All the best, Christina

    0