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

David

@Daviddp96150 points

Jr. Frontend excited about tech!

Latest solutions

  • [React] - Expenses Chart Component - Flexbox, Grid, Vite.js

    #vite#react

    David•150
    Submitted almost 2 years ago

    0 comments
  • [SASS/SCSS] - Profile Card Component

    #sass/scss

    David•150
    Submitted almost 2 years ago

    0 comments
  • [React] - Results Summary Component - Flexbox, Grid, Mobile First

    #react

    David•150
    Submitted almost 2 years ago

    1 comment
  • [Grid] - Single Price Grid Component __ BEM, CSS, Responsive

    #bem

    David•150
    Submitted almost 2 years ago

    0 comments
  • [Flexbox] - NFT Preview Card Component __ BEM, CSS, Responsive

    #bem

    David•150
    Submitted about 2 years ago

    0 comments
  • [Flexbox] - Responsive Article Preview Component __ BEM, CSS

    #bem#animation

    David•150
    Submitted about 2 years ago

    0 comments
View more solutions

Latest comments

  • Saad Hisham•1,770
    @Saad-Hisham
    Submitted almost 2 years ago

    🔥Animated calculator with sounds and theme switcher🔥

    2
    David•150
    @Daviddp96
    Posted almost 2 years ago

    Love the sounds, the themes and the error notification.

    Overall nice but you can't do operations like "2/0.2" so that might be worth checking out and fixing!

    Nicely done!

    Marked as helpful
  • francis Mudzungayiri•240
    @francismudzungayiri
    Submitted almost 2 years ago

    Result summary using vanilla css

    2
    David•150
    @Daviddp96
    Posted almost 2 years ago

    Hey there,

    You could add flex to your left-box class!

    Here's how:

    .left-box {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    

    Now you'll notice the text below is moved left, but for that you just have to disable the transform you added transform: translateX(38%);

    When you want to center things within a small container such as this one, it's best to use flex, you could also use grid but I find this simpler.

    Marked as helpful
  • Sourav Singha•80
    @souravs97
    Submitted almost 2 years ago

    Newsletter Signup Form with Message

    2
    David•150
    @Daviddp96
    Posted almost 2 years ago

    Hey there,

    Here's the fix to your regular expression:

    const mailFormat = /^[a-zA-Z0-9._]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*\.[a-zA-Z]{2,}$/;
    

    The difference is that now it includes \.[a-zA-Z]{2,} at the end

    This ensures that the domain extension consists of at least two alphabetic characters. As a result, only email addresses with a valid domain extension like ".com", ".net", or ".org" will be considered valid.

    Also since it's a submit button you could consider using the submit event instead of the click event.

    Cheers

    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

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