Skip to content
  • Unlock Pro
  • Log in with GitHub
Profile
OverviewSolutions
23
Comments
10

David Gichuru

@dxiDavidNairobi, Kenya360 points

I find Web Development quite satisfying and enjoy doing the front end I have a good understanding of HTML, CSS, JavaScript, and React. I look forward to learning a lot from every challenge and the community.

I’m currently learning...

React React Router, Redux, API, Backend Integration

Latest solutions

  • Social media dashboard with theme switcher built with React

    #accessibility#react#vite#web-components

    David Gichuru•360
    Submitted about 2 years ago

    0 comments
  • notifications page made with react js

    #accessibility#react

    David Gichuru•360
    Submitted about 2 years ago

    2 comments
  • Results summary component built with React

    #accessibility#react#vite

    David Gichuru•360
    Submitted over 2 years ago

    0 comments
  • QR Code Card using React

    #react#accessibility

    David Gichuru•360
    Submitted over 2 years ago

    0 comments
  • Tip calculator App Challenge Using HTML, CSS and Vanilla JavaScript


    David Gichuru•360
    Submitted over 2 years ago

    1 comment
  • Intro component sign up form using HTML, CSS and vanilla JavaScript


    David Gichuru•360
    Submitted over 2 years ago

    0 comments
View more solutions

Latest comments

  • David Gichuru•360
    @dxiDavid
    Submitted about 2 years ago

    notifications page made with react js

    #accessibility#react
    2
    David Gichuru•360
    @dxiDavid
    Posted about 2 years ago

    Fixed it

  • David Gichuru•360
    @dxiDavid
    Submitted over 2 years ago

    Tip calculator App Challenge Using HTML, CSS and Vanilla JavaScript

    1
    David Gichuru•360
    @dxiDavid
    Posted over 2 years ago

    I'm not sure why the screenshot makes it look so stretched out 🤔. The live view looks just fine.

  • Julian-Carlosama•10
    @Julian-Carlosama
    Submitted over 2 years ago

    Creating that QR code with Javascript.

    1
    David Gichuru•360
    @dxiDavid
    Posted over 2 years ago

    Hello @Julian-Carlosama 👋🏾

    Congrats on completing the challenge 🎉

    I have a few suggestions on how you can improve your code:

    1. HTML📃

    • Make sure your content is wrapped inside a <main> landmark tag. If you want to learn more about semantic HTML tags you can find that here.
    • Make sure that your images have alt text for screen readers which will improve accessibility for your future websites. Try to have descriptive text so that the person knows exactly what the image is.

    2. CSS📄

    • Avoid setting fixed values for dimensions like width and height. Instead set a max-width and max-height for your elements
    • Avoid using absolute units like px for anything other than border-radius or box-shadow. Use responsive units like em and rem which will make your projects more responsive.
    • To center your card you can try the following methods
    1. Using grid
    body{
         min-height: 100vh;
         display: grid;
         place-items: center;
    }
    
    1. Using flexbox
    body{
         min-height: 100vh;
         display: flex;
         flex-direction: column; 
         justify-content: center;
         align-items: center;
    }
    

    Another useful tip is to build a habit of setting custom properties for the styles found in the style guide and any other styles you might re-use.

    You might also want to set up utility classes for centering things to avoid repeating yourself throughout the code.

    Your solution looks great

    I hope you found this helpful 😁

    Happy Coding 🥂

    Marked as helpful
  • Kamil Wiater•230
    @WiaterKa
    Submitted over 2 years ago

    Testimonial Grid (no RWD)

    3
    David Gichuru•360
    @dxiDavid
    Posted over 2 years ago

    Hello @WiaterKa 👋🏾

    Congrats on completing the challenge.

    To solve your centering problem, try wrapping everything in a wrapper div or main container and center it using flexbox or grid.

    body {
      background-color: hsl(210, 46%, 95%);
      margin: auto;
      display: flex;
      justify-content: center;
      align-items: center;
      min-height: 100vh;
      width: 1100px;
      height: 572px;
    }
    
    

    For the above code you've written, declare a min-height first then use flexbox. Please do not give the body a fixed height or width after. The auto margin is also unnecessary.

    One last thing, avoid using pixels for dimensions, font sizes, or spacing. You're better off using em or rem.

    I hope you found this helpful, happy coding🥂

    Marked as helpful
  • JavierRiv97•10
    @JavierRiv97
    Submitted over 2 years ago

    Product Preview Card

    2
    David Gichuru•360
    @dxiDavid
    Posted over 2 years ago

    Hello @JavierRiv97 👋🏾

    The exact font sizes are for pro members otherwise, use your knowledge of CSS and best judgment to get as close as possible to the design. Don't worry though, It's not that hard.

    Also, ensure that your projects meet accessibility requirements by adding alt text to your images for screen readers.

    Make sure that your Body content is wrapped in landmarks like <main> or <article>. You can find out more on semantic HTML here

    Happy coding🥂

  • Akiraz14•50
    @Akiraz14
    Submitted over 2 years ago

    QR Code Component (Flexbox + BEM)

    #bem
    1
    David Gichuru•360
    @dxiDavid
    Posted over 2 years ago

    Hello there @Akiraz14 👋🏾

    I have a suggestion that will help you write better code

    • when setting custom properties, try giving them descriptive names like --primary-font-color instead of --color-1st. It will make your CSS easier to read and understand. Also, try to set custom properties for styles such as font-size, font-weight, (basically things you see in the style guide)border-radius since they will most likely be used on more than one occasion.
    • Limit the use of pixels to things like box-shadow and border-radius, otherwise use relative units.
    • only look for references when you are absolutely stuck and cannot find a way out. don't waste time doubting yourself. If you have a working solution then good. come back and refactor later

    The attention to detail in your solution is impressive💪🏾

    Keep Going, happy coding🥂

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