Skip to content
  • Unlock Pro
  • Log in with GitHub
Profile
OverviewSolutions
33
Comments
18
P

Johnny Gérard

@johnnygerardBelgium880 points

Frontend Engineer

Latest solutions

  • Server-side validation with Server Action

    #next#react#tailwind-css

    P
    Johnny Gérard•880
    Submitted 3 months ago

    1 comment
  • Made with Radix UI

    #next#react#tailwind-css

    P
    Johnny Gérard•880
    Submitted 3 months ago

    0 comments
  • Social links profile with CSS animations

    #next#react#tailwind-css

    P
    Johnny Gérard•880
    Submitted 3 months ago

    0 comments
  • NFT Preview Card

    #next#react#tailwind-css

    P
    Johnny Gérard•880
    Submitted 3 months ago

    0 comments
  • Character Counter

    #next#react#react-aria#tailwind-css

    P
    Johnny Gérard•880
    Submitted 3 months ago

    0 comments
  • Personal blog with MDX

    #next#react#react-aria#tailwind-css

    P
    Johnny Gérard•880
    Submitted 3 months ago

    0 comments
View more solutions

Latest comments

  • Daniel Nwachukwu•110
    @Dannyx-huberf
    Submitted 3 months ago
    What are you most proud of, and what would you do differently next time?

    ability to use Grid and Flex without stress

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

    i encountered challenges with the hamburger menu because it was my first time of doin it but after much thinking and the help of depsek aii overcomed it

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

    my github please if anybody can help me i would appreciate when i run my code with live server it works perfectly but when i visit my site in github i shows only the html leaving out the markup and imgs i need serious help it happened with my last challenge too

    used grid and flex

    1
    P
    Johnny Gérard•880
    @johnnygerard
    Posted 3 months ago

    The image URLs are not correct.

    Your website is sending requests like GET https://dannyx-huberf.github.io/images/icon-hamburger.svg. You're getting 404 responses because your website is at https://dannyx-huberf.github.io/landingPage/.

    You should use relative paths.

    You can try <img src="./images/icon-hamburger.svg" alt=""> instead of <img src="/images/icon-hamburger.svg" alt="">.

  • Yacine Ragueb•370
    @Yaciine19
    Submitted 3 months ago
    What specific areas of your project would you like help with?

    I need help implementing logic to handle invalid dates entered by the user, such as 31/04/1991 (since April has only 30 days).

    Responsive Age calculator app

    #react#tailwind-css#animation
    2
    P
    Johnny Gérard•880
    @johnnygerard
    Posted 3 months ago

    Sorry, I thought you were asking for how to compute the age.

    For the date validation, I used this function:

    const isNonexistent = (date: Date, year: number, month: number, day: number): boolean => {
      return date.getFullYear() !== year
        || date.getMonth() !== month
        || date.getDate() !== day;
    }
    

    Here is a better function:

    /**
     * Validates if the given year, month, and day form a valid date.
     *
     * @param {number} year - The year to validate.
     * @param {number} month - The month to validate (1-12).
     * @param {number} day - The day to validate.
     * @returns {boolean} True if the date is valid, otherwise false.
     */
    const isValidDate = (year: number, month: number, day: number): boolean => {
      const date = new Date(year, month - 1, day);
      return (
        date.getFullYear() === year &&
        date.getMonth() === month - 1 &&
        date.getDate() === day
      );
    };
    
    Marked as helpful
  • Yacine Ragueb•370
    @Yaciine19
    Submitted 3 months ago
    What specific areas of your project would you like help with?

    I need help implementing logic to handle invalid dates entered by the user, such as 31/04/1991 (since April has only 30 days).

    Responsive Age calculator app

    #react#tailwind-css#animation
    2
    P
    Johnny Gérard•880
    @johnnygerard
    Posted 3 months ago

    Hello Yacine,

    I already wrote a detailed explanation for this challenge.

    Hopefully, that helps you.

    Good day.

    Marked as helpful
  • P
    Karolina Pietraś•40
    @ilierette
    Submitted 4 months ago
    What are you most proud of, and what would you do differently next time?

    I'm really proud of that I remember a lot after that long break I had, and I have something to return. I general it looks really close to design.

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

    I need to learn how to use Figma, but I googled everything that I couldn't find in UI (like drop-shadow).

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

    I struggle to understand where use px, em and rem and about accessibility.

    QR Code

    3
    P
    Johnny Gérard•880
    @johnnygerard
    Posted 4 months ago

    Hello,

    I see that your images are not loading. It is probably because they are in the wrong folder. I think Netlify uses /public.

    So you can move images/favicon-32x32.png to public/images/favicon-32x32.png.

  • Mobina Esmati•360
    @mobina-dev-2001
    Submitted 4 months ago
    What challenges did you encounter, and how did you overcome them?

    I had a bit of a challenge with the showcasing different images in different widths. It was solved by giving the image element a srcset attribute and specifying the width of each image.

    Product preview card component

    1
    P
    Johnny Gérard•880
    @johnnygerard
    Posted 4 months ago

    There is a mismatch with your breakpoint. You should use the same value.

    You used 650px for the media query in your CSS and 600px for sizes attribute in your HTML.

    Marked as helpful
  • P
    Johnny Gérard•880
    @johnnygerard
    Submitted 6 months ago

    Mortgage repayment calculator

    #tailwind-css#angular
    1
    P
    Johnny Gérard•880
    @johnnygerard
    Posted 6 months ago

    Note that the design file is not strictly following the design system which specified a letter spacing of -1px for most of the typography. That explains the visual difference.

View more comments
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

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