Skip to content
  • Unlock Pro
  • Log in with GitHub
Profile
OverviewSolutions
4
Comments
3

Harshit Bhardwaj

@harshitBhardwaj9790 points

I believe that "Journey is ETERNAL, when the goal is INFINITE". Here to constantly learn and challenge myself for my overall betterment.

Latest solutions

  • SocialMedia-Dashboard implemented with React JS and Tailwind CSS


    Harshit Bhardwaj•90
    Submitted over 1 year ago

    0 comments
  • News-Homepage Responsive Layout (Tailwind CSS, Grid) + Javascript


    Harshit Bhardwaj•90
    Submitted over 1 year ago

    0 comments
  • Responsive 3 column layout using Tailwind CSS


    Harshit Bhardwaj•90
    Submitted over 1 year ago

    0 comments
  • Testimonials Project using Grid and Vanilla CSS


    Harshit Bhardwaj•90
    Submitted over 1 year ago

    0 comments

Latest comments

  • Cpuening84169482•40
    @Cpuening84169482
    Submitted over 1 year ago

    Order Summary Component

    1
    Harshit Bhardwaj•90
    @harshitBhardwaj97
    Posted over 1 year ago

    Hi I saw your code and I believe you forgot to add the link or import for the Red Hat Display font.

    <link rel="preconnect" href="https://fonts.googleapis.com">
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
    <link href="https://fonts.googleapis.com/css2?family=Public+Sans:wght@300;400;700&family=Red+Hat+Display:wght@400;700&display=swap" rel="stylesheet">
    

    Adding these lines inside head tag of your html should do the work, since in CSS file you already have specified the font-family (font-family: 'Red Hat Display')

    I hope you find this suggestion helpful and it solves your problem, Happy Coding !

  • Shruti Shinde•320
    @ShrutiShinde418
    Submitted over 2 years ago

    Advice Generator app using Tailwind CSS

    #tailwind-css
    1
    Harshit Bhardwaj•90
    @harshitBhardwaj97
    Posted over 1 year ago

    Initially I also faced this problem when I used external .js file in my various projects and used script tag to link it, but based on my experience, I can say that the most common problem with this approach is that when we use script tag and give the path to our file, the .js file code is executed before our DOM is even loaded, leading to this problem. So you can try these 2 approaches and I believe you won't face this problem :-

    • Use defer keyword after script and before src, if you define your script path inside the head tag, like this :
    (script *defer* src="index.js")(/script) 
    
    • Use the script tag at the end of body, which would ensure that all DOM content is loaded before execution of javascript code. In this case, defer keyword is not required.

    Here I used () instead of angular brackets with script tag because due to it my comment was not being parsed properly.I hope you find this suggestion helpful and it solves the problem that you were facing. Happy Coding !

  • Enrikewoq•20
    @Enrikewoq
    Submitted over 1 year ago

    Flex-box

    3
    Harshit Bhardwaj•90
    @harshitBhardwaj97
    Posted over 1 year ago

    I saw your code and found that you wrapped the entire code inside the class design-container and in gave it height of 650px :-

    .design-container {
        display : flex;
        align-items : center;
        height : 650px;
    }
    

    You can refrain from restricting the height of parent container, and for centering the content vertically, you can use this approach :-

    .design-container {
        display : grid;
        place-content : center;
        min-height : 100vh;
    }
    

    Or you can also do :-

    .design-container {
        display : flex;
        align-items : center;
        justify-content : center;
        min-height : 100vh;
    }
    

    I hope you find this suggestion helpful and it solves your problem, Happy Coding !

    Marked as helpful
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