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

https://github.com/oppahero/recipe-page

Recipe page build with HTML and CSS
https://github.com/oppahero/recipe-page

css css-reset flexbox html media-queries

Last synced: about 1 month ago
JSON representation

Recipe page build with HTML and CSS

Awesome Lists containing this project

README

        

# Recipe page solution

This is my solution to the "Recipe page" challenge on Frontend Mentor.

## 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)
- [Continued development](#continued-development)
- [Useful resources](#useful-resources)
- [Author](#author)

## Overview

### The challenge

In this practice the card must be able to adjust its size depending on the width of the device where it is viewed.

### Screenshot

![](./assets/images/screenshots.png)

### Links

- Solution URL: [Recipe page build with HTML and CSS]([https://github.com/oppahero/recipe-page](https://www.frontendmentor.io/solutions/recipe-page-build-with-html-and-css-C8KcQC1DNP))
- Live Site URL: [Site](https://oppahero.github.io/recipe-page/)

## My process

### Built with

- Semantic HTML5 markup
- CSS custom properties
- Flexbox
- Mobile-first workflow
- @Font-face
- Modern CSS Reset (Piccadilli)

### What I learned

Instead of changing the width of the card using media queries, it was allowed to scale its size freely, limiting its max-width at rem.

#### CSS Specificity Graph
![](./assets/images/specificity.png)

### Continued development

Continue learning about:

- Accesibility
- Rem/ems units

### Useful resources

- [The Surprising Truth About Pixels and Accessibility](https://www.joshwcomeau.com/css/surprising-truth-about-pixels-and-accessibility/) - I found this post that I think is quite interesting, it has examples.

- [Modern CSS Reset - Andy Bell](https://piccalil.li/blog/a-more-modern-css-reset/) - option to reset browser styles in modern web development

## Author

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