An open API service indexing awesome lists of open source software.

https://github.com/devmor-j/fm-stats-preview-card-component


https://github.com/devmor-j/fm-stats-preview-card-component

tailwindcss

Last synced: over 1 year ago
JSON representation

Awesome Lists containing this project

README

          

# Frontend Mentor - Stats preview card component solution

This is a solution to the [Stats preview card component challenge on Frontend Mentor](https://www.frontendmentor.io/challenges/stats-preview-card-component-8JqbgoU62). Frontend Mentor challenges help you improve your coding skills by building realistic projects.

## Table of contents

- [Overview](#overview)
- [The challenge](#the-challenge)
- [Screenshot](#screenshot)
- [Links](#links)
- [My process](#my-process)
- [Built with](#built-with)
- [What I learned](#what-i-learned)
- [Author](#author)

## Overview

### The challenge

Users should be able to:

- View the optimal layout depending on their device's screen size

### Screenshot

Desktop:

![Desktop screenshot](./screenshot/Desktop%20-%20Stats%20preview%20card%20component.webp)

Mobile:

![Mobile screenshot](./screenshot/Mobile%20-%20Stats%20preview%20card%20component.webp)

### Links

- Solution URL: [Github Repo](https://github.com/devmor-j/fm-stats-preview-card-component)
- Live Site URL: [Github Pages](https://devmor-j.github.io/fm-stats-preview-card-component/)

## My process

Even though this project does not need all these dependencies, I thought maybe this could be a good template for continued develompent or copy for other challanges. Feel free to use in your project. Good starting point using vite, postcss, tailwindcss, autoprefixer and cssnano (advanced-preset).

### Built with

- Semantic HTML5 markup
- Flexbox
- Mobile-first workflow
- Multiple breakpoint design
- [Vite](https://vitejs.dev/) - Build and development tool
- [TailwindCSS](https://tailwindcss.com/) - Main framework for CSS styling
- [PostCSS](https://postcss.org/) - Post process styles
- [CSSNano](https://cssnano.co/) - Minify styles in postcss
- [Autoprefixer](https://autoprefixer.github.io/) - Add vendor prefixes in postcss

### What I learned

If adding `flex-1` makes things complex, try dividing width like `w-1/2` (tailwind classes).

## Author

- Frontend Mentor - [@devmor-j](https://www.frontendmentor.io/profile/devmor-j)