Skip to content

gavrillamahdi/3-column-preview-card-component-main

Repository files navigation

Frontend Mentor - 3-column preview card component solution

Hello, my name is gavrillamahdi and this is my solution to the 3-column preview card component challenge on Frontend Mentor. Frontend Mentor challenges help me improve my coding skills by building realistic projects.

Table of contents

Overview

The challenge

Users should be able to:

  • View the optimal layout depending on their device's screen size
  • See hover states for interactive elements

Screenshot

In this challenge, I did a little bit improvization by changing the background if the user's prefers color scheme is dark.

Light mode

Desktop (1440px)

3-column preview card component challenge desktop light mode

Mobile (375px)

3-column preview card component challenge mobile light mode

Dark mode

Desktop (1440px)

3-column preview card component challenge desktop dark mode

Mobile (375px)

3-column preview card component challenge mobile dark mode

Links

Note: you can change the theme to dark by changing your device theme to dark mode

My process

Built with

  • Semantic HTML5 markup
  • Flexbox
  • CSS Grid
  • Mobile-first workflow
  • Tailwind CSS - CSS framework

What I learned

In this challenge I learn how to use prefers-color-scheme CSS media feature to style the website to dark mode when the user's indicate dark preference through an operating system setting. Tailwind CSS handle this behaviour through dark: class utility. This approach pretty easy to use and implement when building a website I think

Author

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published