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

Jansel

@JanselLopez230 points

I’m a mysterious individual who has yet to fill out my bio. One thing’s for certain: I love writing front-end code!

Latest solutions

  • Launch Countdown Timer Animated

    #astro#tailwind-css

    Jansel•230
    Submitted 11 months ago

    0 comments
  • Blog Preview Card with Astro

    #astro#tailwind-css

    Jansel•230
    Submitted 11 months ago

    0 comments
  • Fun-With-Flags(rest countries api) - Map, Lazy Loaded Image...

    #react

    Jansel•230
    Submitted over 2 years ago

    0 comments
  • tip-calculator-app

    #react

    Jansel•230
    Submitted over 2 years ago

    0 comments
  • pricing-component-with-toggle


    Jansel•230
    Submitted over 2 years ago

    0 comments
  • advice-generator-app


    Jansel•230
    Submitted over 2 years ago

    0 comments
View more solutions

Latest comments

  • Juan Cruz Vila•150
    @yunagosh7
    Submitted over 2 years ago

    Tip Calculator MVC

    1
    Jansel•230
    @JanselLopez
    Posted over 2 years ago

    for center the calculator try:

    body {
      background-color: var(--light-grayish-cyan);
      margin: 0;
      height: 100vh;
      display: flex;
      flex-direction: column;
      justify-content: center;
    }
    
  • i_d_s_l•270
    @ilvdrskn
    Submitted over 2 years ago

    FLEXBOX

    2
    Jansel•230
    @JanselLopez
    Posted over 2 years ago

    Hi 😃, for the background of the card you can set the width of you container and manage it with media queries, something like:

    .container {
      width: 500px;
    }
    
    @media (max-width: 510px) {
      .container {
        width: 90%;
      }
    }
    

    for read about media queries: w3schools/mediaqueries

    Marked as helpful
  • Chantae•320
    @taepal467
    Submitted over 2 years ago

    Tip Calculator App

    1
    Jansel•230
    @JanselLopez
    Posted over 2 years ago

    Hello 🙃, there are some improvements there that you could implement:

    1. Use flexbox to align the content instead of placing a large margin that does not make it responsive, here are some links to learn flexbox interactively ( flexboxfroggy, flexboxdefense)
    2. Instead of placing images of the dollar sign you can place a background-image to your inputs, this makes them not leave the input, you can try something like this:
      background-image: url(../assets/images/icon-dollar.svg);
      background-repeat: no-repeat;
      background-size: calc(contain);
      background-position-y: center;
      background-position-x: 15px;
    
    1. In addition to eliminate the "arrows" in the number type input you can put this in your input in css
    "appearance: textfield;" 
    

    There are some more improvements but I think that with this the page should give a good change, I hope it has been helpful 😊.

    Marked as helpful
  • vedavyas•80
    @Vedavyas11062004
    Submitted over 2 years ago

    faq - accordition card using flex box

    1
    Jansel•230
    @JanselLopez
    Posted over 2 years ago
    1. I think the idea is to show only once at a time, so you can do this in your js code:
        const btn = document.querySelectorAll(".contentbox");
        let current;
        btn.forEach((element) => {
          element.addEventListener("click", () => {
            if (current && current != element) {
              current.classList.toggle("show");
            }
            element.classList.toggle("show");
            current = current === element ? undefined : element;
          });
        });
    
  • Wardron•30
    @Wardronthewarden
    Submitted over 2 years ago

    Tip calculator solution with flexbox and vanillaJS

    2
    Jansel•230
    @JanselLopez
    Posted over 2 years ago

    For center the calculator you can delete all margins in ".tipCalculator{}" and add these lines of code in your css file:

    body {
      width: 100vw;
      height: 100vh;
      display: flex;
      align-items: center;  
      justify-content: center;
    }
    

    you can read about viewports(vw, vh) here => Viewport_concepts

    Marked as helpful

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