Skip to content
  • Unlock Pro
  • Log in with GitHub
Profile
OverviewSolutions
31
Comments
4
Sang Le
@sqle157

All comments

  • Abdulshakur•150
    @Abdulshakur24
    Submitted about 3 years ago

    Built with React, Framer motion, and Style components.

    #react#styled-components#motion
    1
    Sang Le•520
    @sqle157
    Posted about 3 years ago

    Hi,

    It's a really nice solution! I like the transition you made with framer-motion. I did the same thing with my solution on this challenge too but it wasn't as smooth as you did.

  • Ha Anna•20
    @its-haanna
    Submitted about 3 years ago

    NFT preview card component

    2
    Sang Le•520
    @sqle157
    Posted about 3 years ago

    Hi,

    Congratulations on completing your challenge! For your question, you can try to use pseudo element ::after or ::before instead of having another img tag in your code.

    For example, this is how I'm gonna handle the image hover

    .art-div::after {
    	content: ''; // you can also put the image as the content in here
    	display: none;
    	position: absolute;
    	inset: 0;
    	border-radius: 0.75rem;
    	background: url(./images/icon-view.svg), hsl(178, 100%, 50%, 0.5);
    	background-repeat: no-repeat;
    	background-position: center;
    }
    
    .art-div:hover::after {
    	display: block;
    }
    
    

    I hope this answers your question!

    Happy coding and good luck with further challenges!

    Marked as helpful
  • evanhill1989•200
    @evanhill1989
    Submitted about 3 years ago

    Order Summary Component

    1
    Sang Le•520
    @sqle157
    Posted about 3 years ago

    Hi,

    Congratulations on completing your challenge! For your question, you can try to use min in your width so that it will change the width base on the smaller value.

    For example, your css can be like this

    .container {
       width: min(100% - 1.5rem, 450px ) // This will make the width of the container equals the width of the 
    parent width minus 1.5rem on each side and it will apply when the screen is small
    

    This is a common way to define a container that wraps around all the content.

    I hope this answers your question, and have a nice day!

    Marked as helpful
  • Pablo Cisneros•10
    @Pablo6152
    Submitted over 3 years ago

    NFT landing page using HTML and CSS

    2
    Sang Le•520
    @sqle157
    Posted over 3 years ago

    Hi,

    First of all, congratulation for completing this challenge. I think you did a pretty nice job, and I have some tips from my personal experience to help you organize your CSS.

    1. I see that you have some classes like middle, flex-type, text-accent, ... which are the utilities classes, you can group those classes into 1 comment block, like this
        .flex-type { your code }
        .middle { your code }
        .text-accent { your code }
    

    I think that will help you create a more readable and organized structure for your CSS.

    1. You can group your component CSS base on your HTML structure from top to bottom. Also, if you have any hover effect or anything for your component, try to write it right after your css for your component. For example, if you have a hover effect on your card, you can write your CSS like this
        .card { ... }
        .card:hover { ... }
    

    I recommend watching Kevin Powell and Traversy Media on Youtube. They have great content for CSS and Frontend Skills in general, and I think you will learn a lot from them!

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