Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

Responsive blog preview card using Tailwind CSS

@whawari

Desktop design screenshot for the Blog preview card coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


What are you most proud of, and what would you do differently next time?

Learning more about Tailwind CSS, and learning how the box shadow property works!

What challenges did you encounter, and how did you overcome them?

  • Adding custom local fonts. I overcame this challenge by googling and following Tailwind CSS documentation.

What specific areas of your project would you like help with?

It was mentioned not to use media queries in the challenge, however I used media queries to match the design. I searched on how to create responsive text without the use of media query and stumbled upon the clamp() function and the (vw, vh, vmax, and vmin) CSS units. I did not know how to exactly apply them to the design. It would be great to know how to achieve responsive text without using media queries!

Community feedback

Dhruv 210

@Dhruvmehta1311

Posted

The shadow looks dope man.

0

@whawari

Posted

@Dhruvmehta1311 Thank you man!!

1
P

@O-Julia-O

Posted

Great work!

0

@whawari

Posted

@O-Julia-O Thank you Yuliya! Any suggestions on how to create responsive text without the use of media queries?

0
P

@O-Julia-O

Posted

@whawari I believe, we are not suppose to do it, it is only second challenge in "Learning Path". :)

0
P

@O-Julia-O

Posted

@whawari and, I've just reviewed my work, and it even not looks similar to design :D So i don't have any ideas how we could do that without the use of media queries :o

0

@whawari

Posted

@O-Julia-O Keep learning and going strong and soon you will

1
Dhruv 210

@Dhruvmehta1311

Posted

Use Tailwind. It helps pretty much with responsiveness. Avoid using static height or width use min height and max width instead. Atleast that's what I follow. @whawari

1

@whawari

Posted

@Dhruvmehta1311 Could not agree more. For starters I would suggest learning CSS on its own then after getting the hang of it you can move to Tailwind, that is what I did. I applied the min-height and max-width on my designs to ensure better responsiveness. The only challenge was to achieve text responsiveness without media queries. Using the CSS clamp() function you can achieve it, however I was too lazy to add it. I wanted to discover what other people are using.

0

Please log in to post a comment

Log in with GitHub
Discord logo

Join our Discord community

Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!

Join our Discord