@Diarrah
Posted
Hey, Lin,
Very, very nice work! You did such a good job with the React + styled-components. I've been trying to learn how to use variables within the styled-components & your code just helped me so much to understand, so I thank you!
As for your questions: you should definitely use a grid outline for this design. The way I think I did the IG color was to use an ::after selector & then a linear-gradient with a bg color + then the card overflow: hidden.
@Diarrah
Posted
@Diarrah Wait! One question I have for you if you're willing to answer. Can you explain these calculations just so I know what you're doing?
padding: 40px calc((162 / 1440) * 100%) 0; width: calc( (1 - (162 / 1440)*2) * 100%);
What do these mean?