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

Goran

@GoranK89Slovenia500 points

Building a solid foundation in vanilla JS, and soon making life easier with React and other frameworks :)

I’m currently learning...

Frontend

Latest solutions

  • Todo app

    #react#redux#redux-toolkit#sass/scss#vite

    Goran•500
    Submitted over 2 years ago

    0 comments
  • Intro component with signup form, made with Vite, React, Scss

    #react#vite#sass/scss

    Goran•500
    Submitted over 2 years ago

    1 comment
  • Time tracking dashboard - made with: React, Scss, Vite

    #react#vite#sass/scss

    Goran•500
    Submitted over 2 years ago

    0 comments
  • Job listings with filtering - made with: React, Scss, Vite

    #react#sass/scss#vite

    Goran•500
    Submitted over 2 years ago

    0 comments
  • URL shortening API landing page - made with: React, scss, Vite

    #react#vite#sass/scss

    Goran•500
    Submitted over 2 years ago

    2 comments
  • Rock, Paper, Scissors - CSS & JS


    Goran•500
    Submitted over 2 years ago

    1 comment
View more solutions

Latest comments

  • Karen Lourenço•380
    @KarenMascarenhasLourenco
    Submitted over 2 years ago

    Single Price Grid Component

    1
    Goran•500
    @GoranK89
    Posted over 2 years ago

    Hello Karen!

    The original design has rounded edges and a box shadow, you can add those to the <main> element. Other than that good work! 👍

    Marked as helpful
  • William's•180
    @Williamz21
    Submitted over 2 years ago

    Game Rock-Paper-Scissors-Lizard-Rock using HTML-CSS-JS

    1
    Goran•500
    @GoranK89
    Posted over 2 years ago

    This is not a helpful comment but I have to say, you have very clean and readable code! 👍

    Marked as helpful
  • Shreyas•20
    @nairobi02
    Submitted over 2 years ago

    Vanilla JS

    #sass/scss#parcel
    2
    Goran•500
    @GoranK89
    Posted over 2 years ago

    Hello Shreyas,

    you don't need to worry about flexbox, it's made to make your CSS life easier. Regarding the event listeners, they are fine for small apps like this, but if you are concerned about performance, you can check out the so-called 'event bubbling' on MDN-docs, you can research and experiment with that in your future projects. Cheers!

  • HaYeong•100
    @hypyeon
    Submitted over 2 years ago

    Tip calculator app using HTML, CSS, and JavaScript

    1
    Goran•500
    @GoranK89
    Posted over 2 years ago

    Hello HaYeong,

    the calculator works, well done. Now for the JS part, I would recommend you try the forEach loop on all buttons except the custom one. What I mean is a setup something like this:

    First the HTML setup for the buttons

                <input
                  type="button"
                  value="5%"
                  class="btn-tip"
                />
                <input
                  type="button"
                  value="10%"
                  class="btn-tip"
                />
    

    Now we can gather all the buttons in JS and run a loop over them:

    const tipButtons = document.querySelectorAll('.btn-tip');  // all the buttons
    
    tipButtons.forEach(btn =>
      btn.addEventListener('click', function (e) {
    
        // on every clicked button remove the % symbol, only the value remains, store it in a variable
        const clicked = e.target.value.slice(0, -1); 
    
          // some sample calculations you can do with the "clicked" variable
          const billPerPerson = billAmmount.value / peopleNum.value;
          const tipPerPerson = (billPerPerson / 100) * clicked;
          const totalToPay = billPerPerson + tipPerPerson;
        
          // finally displaying the desired calculations example
          tipAmntPerPerson.textContent = '$' + tipPerPerson.toFixed(2);
        }
      })
    );
    

    You can also add some if/else statements inside the loop so for example calculations for "people < 1" are not done. This will probably shorten your code by 90% and clean it up a lot. Hope this was helpful and keep at it!

    Marked as helpful
  • Skye Brown•110
    @skyebrownh
    Submitted over 3 years ago

    Pure HTML/CSS with Flexbox and Media Queries

    2
    Goran•500
    @GoranK89
    Posted over 3 years ago

    Hello Skye! Regarding the box-shadow, you can wrap ".community" and ".bottom-wrapper" together into a new div and apply a shadow to that, or you can just apply it to the main html element. Other than that minor detail it looks great!

  • Daiana A•30
    @DaianaArena
    Submitted over 3 years ago

    Responsive landing page using flexbox

    1
    Goran•500
    @GoranK89
    Posted over 3 years ago

    Looks good so far! I would add more space around the titles and text, and the overall shape should come close to the example picture.

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