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

Marjan

@MarjanZivkovic320 points

Aspiring front-end developer. JavaScript. React

Latest solutions

  • Mortgage repayment calculator with React

    #react

    Marjan•320
    Submitted 11 months ago

    0 comments
  • Contact form with React

    #accessibility#react#vite

    Marjan•320
    Submitted about 1 year ago

    0 comments
  • FAQ accordion with vanilla CSS and JS


    Marjan•320
    Submitted over 1 year ago

    0 comments
  • Newsletter sign up app with React and Tailwind CSS + react-toastify

    #react#vite#tailwind-css

    Marjan•320
    Submitted almost 2 years ago

    0 comments
  • Multi-step-form with React

    #react#react-router

    Marjan•320
    Submitted about 2 years ago

    1 comment
  • Interactive cards, validation with JS


    Marjan•320
    Submitted about 2 years ago

    0 comments
View more solutions

Latest comments

  • @Slaks97•180
    @Slaks97
    Submitted about 2 years ago

    QR Code Component solution using HTML and CSS

    1
    Marjan•320
    @MarjanZivkovic
    Posted about 2 years ago

    Hi @SLAKS97! Congrats on completing the project! Shots in the dark sometimes hit the target :) Just kidding!

    Yes, that is one of the ways to center a container on the page, setting the body as a flex container. align-items: center will center your container vertically (by default). The height of your body is dictated by the height of your container. In this case, your container is high enough so you can even omit min-height: 100vh on the body, it'll be the same. You want to use min-height: 100vh on the body when your container is less high. In this way, it'll be perfectly centered vertically in the middle of the screen.

    Horizontally you'll use justify-content: center (by default) to center your container on the page. In your case, it's not necessary since you're having margin: 0 auto on the container, which does the same thing.

    You can even remove display: flex and align-items: center and min-height: 100vhon body and you'll get the same result (try it out).

    As for the width, you don't have to set the width: 100% (especially not in px). By default, body, divs, and all the other block elements already have the width 100%, meaning all the available width of the screen.

    Hope some of this makes sense. Good luck!

    Marked as helpful
  • samieyong•60
    @samieyong
    Submitted about 2 years ago

    Interactive Card Details

    1
    Marjan•320
    @MarjanZivkovic
    Posted about 2 years ago

    Hi @samieyong! Congrats on completing the project! Yes, you're right. What's causing the problem is position: absolute; on your <section class='card-details>'. The quick fix would be adding a margin-top on your footer(ex. 4rem). A better solution is not using position absolute for this at all. You only need it for positioning the credit cards. Your <main class='container'> could become a flex container with flex-direction: row on big screens and column on small screens. In this way, your footer will never be covered because the elements will have normal flow. Hope this makes sense. Good luck!

    Marked as helpful
  • Divyesh172•30
    @Divyesh172
    Submitted about 2 years ago

    QR Code Component by HTML and CSS using flexbox and Box Technique

    2
    Marjan•320
    @MarjanZivkovic
    Posted about 2 years ago

    Congrats on your first project! First of all, I can't access your page online. Check what's wrong with the deployment. From looking at your code I can say:

    1. Never use absolute paths for your files. It works on your machine but it won't work when you deploy your website. So you should replace: <img src="C:\Users\admin\Desktop\Files\image-qr-code.png" alt="QR-code" width ="200" height ="200" > with <img src="./image-qr-code.png" alt="QR-code" > if the image is in the same folder as your index.html. Also, avoid giving img the same width and height if the original image is not in square format. It causes image distortion. Btw, don't forget to also deploy your image with your other files.
    2. Instead of experimenting with giant margins (400px), you should set a max-width on your container ( class='main' ) and make it center on the page with margin:auto. Since it's the only child of your body, you can set the body as a flex container with min-height:100vh and center everything on the page with justify-content: center, align-items:center.
    3. Use display:flex instead of flexbox. Make better use of HTML semantic tags...

    Just a few tips. Hope some of this was helpful

  • P
    Krishna Vishwakarma•1,390
    @KrishnaVishwakarma1595
    Submitted about 2 years ago

    Responsive & Interactive Notification Page using CSS grid and Flexbox

    #accessibility#fresh#progressive-enhancement
    1
    Marjan•320
    @MarjanZivkovic
    Posted about 2 years ago

    Hey KRISHNA! Great job on the design! I find it a little strange to completely remove the badge and the button from the DOM once you mark all messages as unread. If that was your goal, it's, fine. If not, there's an easy fix:

                     //....
                     let notificationCount = unreadNotifications.length - 1;
                     const onNotificationClick = (notification) => {
                               //...
                               if(notificationCount === 0){
                                      return;     
                                }
                                --notificationCount;
                     }
    //...
    }  ```                            
    
    You just stop your function once the counter hits 0. Also, you have to move decreasing your counter below the if check so it stops decreasing if it's less than 0.
    Keep going!
    
    Marked as helpful
  • Oksana Karpova•10
    @karpovska
    Submitted about 2 years ago

    QR code component

    3
    Marjan•320
    @MarjanZivkovic
    Posted about 2 years ago

    Congrats on your first project! Very well done! Any new file your page needs to load affects performance of your website. So I'd suggest putting everything into one .css file, especially for the small projects like this one.

    Marked as helpful
  • Ritik Kumar•160
    @ihrithikDev
    Submitted about 2 years ago

    Advice generator app

    1
    Marjan•320
    @MarjanZivkovic
    Posted about 2 years ago

    You forgot to call your function on click on the dice. Working only on page loading. Also, your dice is completely rounded. Other than that, good job!

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