Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted over 1 year ago

Fylo data storage component with flex and grid

Divadovitch•190
@Divadovitch
A solution to the Fylo data storage component challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


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

Create and adapt the formatting from the mobile version to the desktop version.

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

Create the triangle with the ::before pseudo-element and create a smooth transition between the mobile to the desktop version.

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

I wasn't able to use grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); on the .card. The grid didn't "expand" from 1 column to 2 column without a media query.

To make it work I had to disable the display: flex; that I used on the body to center the .container vertically and horizontally. But then the .container was not centered. I also tried margin: auto; on the .card but it didn't work either.

So I used grid-template-columns: minmax(250px, 700px); instead.

Is there a way to center the .container without disrupting the way grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); must work on the .card?

Code
Loading...

Please log in to post a comment

Log in with GitHub

Community feedback

No feedback yet. Be the first to give feedback on Divadovitch's solution.

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

Stay up to datewith new challenges, featured solutions, selected articles, and our latest news

Frontend Mentor

  • Unlock Pro
  • Contact us
  • FAQs
  • Become a partner
  • Use cases

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