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

Sean

@sjoseph91Long Beach150 points

Developing web applications and user experiences

Latest solutions

  • Interactive Card Detail Form built with React


    Sean•150
    Submitted over 2 years ago

    2 comments
  • Notifications Panel


    Sean•150
    Submitted over 2 years ago

    0 comments
  • Social Proof


    Sean•150
    Submitted almost 4 years ago

    0 comments
  • faq-accordian-card


    Sean•150
    Submitted about 4 years ago

    0 comments
  • profile-card


    Sean•150
    Submitted about 4 years ago

    1 comment
  • 3-column-preview-cards


    Sean•150
    Submitted about 4 years ago

    0 comments
View more solutions

Latest comments

  • stewart ridings•100
    @digital-stew
    Submitted over 2 years ago

    interactive card with react typescript and extras

    #typescript#react
    1
    Sean•150
    @sjoseph91
    Posted over 2 years ago

    Hey, I like your animations. They are subtle, yet effective. I also learned that about the html autocomplete input attribute from your code. That would have been useful in my app since we don't want our real credit card data going into these apps.

    This may be nitpicky, but the month validation still allows you to put dates in the past. I manually put in a regex where the string had to be greater than 22, but if you wanted it to be flexible, you could use the new Date() and getMonth method to find the current month and make your users enter dates after that month.

    Thanks for reading and all the best!

    Marked as helpful
  • Fritz•300
    @fritzadelbertus
    Submitted over 2 years ago

    Interactive Card Details Form using Basic CSS and Vanilla JavaScript

    1
    Sean•150
    @sjoseph91
    Posted over 2 years ago

    Hey Fritz, I used absolute positioning for the info inside of the cards, although I did have to adjust them on larger screens. For the cards themselves, I positioned them relative to the bottom side of their container div on mobile screens and the right side of that div on larger screens. In the context of your code, I think that would be on <div class="card-display">

    For real time display, I used React. In vanilla JS, the only thing I can think of is doing something similar to what you did, adding an event listener on the various input elements and updating the corresponding .innerText of .textContent proprety.

    I put all my form validation in one function, although I could have broken it up. I used regex to validate all inputs in JS and I set the maxLength property on the HTML input tags. I had if statements check to see if the following conditions failed, and if they did, I would that input element's error message.

    Credit card number: (!/^\d{16}$/.test(number)) // I formatted the string by adding spaces when displaying it. Month: (!/^(0[1-9]|1[0-2])$/.test(month)) Year: (!/^(2[2-9])|([3-9]\d)$/.test(year)) // accepts values greater than 22 CVC (!/^\d{3}$/.test(cvc))

    Hopefully that helps! Good luck on your journey

    Marked as helpful
  • Tomas Geist•20
    @TomasGeist
    Submitted over 2 years ago

    Notifications Page

    1
    Sean•150
    @sjoseph91
    Posted over 2 years ago

    I like how you incorporated an effect for multiple button clicks. I didn't even think about removing the time descriptors.

    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