Skip to content
  • Unlock Pro
  • Log in with GitHub
Profile
OverviewSolutions
6
Comments
5

Rohan Verma

@rohanvronIndia170 points

MERN Stack Developer | Web Developer | React, Node.js | Javascript, HTML, Css | Automation | Power Bi | Google Dialogflow | Wordpress

I’m currently learning...

Full Stack Development

Latest solutions

  • Loopstudios Landing Page Solution using React JS & TailwindCSS

    #react#tailwind-css#vite

    Rohan Verma•170
    Submitted 9 months ago

    0 comments
  • Rock Paper Scissors game with different UI


    Rohan Verma•170
    Submitted 10 months ago

    1 comment
  • Responsive Newsletter Signup Form with Vite, React, Tailwind CSS

    #react#react-router#tailwind-css

    Rohan Verma•170
    Submitted about 1 year ago

    I'm always open to feedback on how to improve the code, design, or overall functionality.


    0 comments
  • Advice Generator App Solution using React and Axios

    #axios#react#vite

    Rohan Verma•170
    Submitted about 1 year ago

    If you have any feedback or suggestions, I'd be happy to hear them!


    0 comments
  • Age Calculator with Responsive Design and Validation

    #node#react#tailwind-css#vite

    Rohan Verma•170
    Submitted about 1 year ago

    Since I'm confident with the current functionality, I'm not seeking specific help at this time.


    2 comments
  • QR Code Component Solution.


    Rohan Verma•170
    Submitted about 1 year ago

    Currently, I don’t need assistance with any specific areas. However, I’m open to feedback on any aspect of the project.


    2 comments

Latest comments

  • Habiba Ashraf•110
    @Hvbiba
    Submitted about 1 year ago

    Quots App using html , css and js && responsive

    1
    Rohan Verma•170
    @rohanvron
    Posted about 1 year ago

    Beautiful Design, keep up the great effort!

  • Benji•320
    @BenjiHunt2319
    Submitted about 1 year ago

    Age Calculator - TailwindCSS & JS

    1
    Rohan Verma•170
    @rohanvron
    Posted about 1 year ago

    Hey Benji,

    Your age calculator looks great!

    I noticed a small thing with the date accuracy for months other than the current one. The calculation might be off slightly in those cases.

    It seems the code needs an adjustment in how it validates birth dates with different months. Here's an idea:

    • Use a Date object to create a representation of the entered date (including year and month). Then, use getDate() to retrieve the correct number of days for that specific month and year (including leap year handling).

    This approach ensures accurate validation regardless of the month entered. I've included a code snippet to illustrate this solution:

      const inputDate = new Date(year, month - 1, day);
      if (
        inputDate.getDate() !== parseInt(day) ||
        inputDate.getMonth() + 1 !== parseInt(month) ||
        inputDate.getFullYear() !== parseInt(year)
      ) {
        return false;
      }
      return true;
    };
    

    Just a heads up about the date validation! Overall, your age calculator is a solid foundation. Keep up the good work! 🚀

    Marked as helpful
  • Vaibhav507•350
    @Vaibhav507
    Submitted about 1 year ago

    Age-Calculator-App

    1
    Rohan Verma•170
    @rohanvron
    Posted about 1 year ago

    Hi Vaibhav,

    Your age calculator app looks great!

    However, I noticed a couple of interesting edge cases that might need some attention:

    Month Handling: When entering a date like 14/04/2001" (April 14th, 2001), the output shows -> 22 years 12 months and 21days. While technically correct, it might be more intuitive for users to see this as 23 years 00 months and 21 days. Perhaps there's an opportunity to simplify the output by combining years and months when exceeding 12 months.

    Input Validation: Currently, it seems like negative numbers and future dates are accepted as input. For a more user-friendly experience, it might be beneficial to implement some basic validation. For example, users shouldn't be able to enter negative birthdates or dates exceeding the current year.

    Just some thoughts to consider! Overall, your age calculator is really cool. Keep up the good work!

    Marked as helpful
  • Josh Javier•930
    @joshjavier
    Submitted about 1 year ago
    What are you most proud of, and what would you do differently next time?

    I'm proud of the way I structured my code. I think I did a pretty good job dividing code into components and modules that have distinct responsibilities, so it would be easier for other devs (or myself in the future) to understand the code and improve it.

    I also feel more confident in deciding when or not to use an external package to solve a problem. In this case, implementing the form without a form library is possible, but I decided to use React Hook Form because it seemed like a good balance between ease of development (I don't have to implement the error validation from scratch) and the performance hit on the app (package size is pretty small at 8.5KB).

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

    For working with dates, JavaScript's built-in Date class proved sufficient for this app. One gotcha I encountered was that the Date() constructor doesn't throw an error when passed an invalid date. For example, creating a Date object for April 31, 1995 will be evaluated to May 1, 1995. So, to check for invalid dates, I compared the input date and the parsed date. If they're not equal, then the form won't pass validation.

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

    Any feedback on the animations? I added it last and didn't want to over-optimize, but I feel like it could use more oomph. It's my first time using React Spring, so I'm still not aware of its full capabilities. Anyway, constructive feedback is welcome!

    Age calculator app built with React, React Hook Form and React Spring

    #accessibility#react#vite#animation
    1
    Rohan Verma•170
    @rohanvron
    Posted about 1 year ago

    Great job! Your solution is impressive.

  • Lisa Tinmurth•10
    @Mrst12
    Submitted about 1 year ago
    What are you most proud of, and what would you do differently next time?

    I'm glad that I kept going with my project, i've been working a lot with tailwindcss so my vanilla CSS is a bit rusty, so I need to work on that a little. I would try to refactor the challenge a little next time as probably went a bit over the top creating the project.

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

    I struggled with figma as it was the first time using it, so i really need some practice on using design files. I saw a few basic tutorials to get me going which was really helpful.

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

    This was my first challenge so any feedback would be appreciated, trying to boost my confidence with my skills really.

    QR code component built using HTML and CSS

    1
    Rohan Verma•170
    @rohanvron
    Posted about 1 year ago

    Great Work Lisa! Congratulations on completing your first challenge!

Frontend Mentor logo

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

Frontend Mentor

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

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

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub