Skip to content

dkaffes/recipe-page

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Frontend Mentor - Recipe page solution

This is a solution from Dimitris Kaffes to the Recipe page challenge on Frontend Mentor.

Table of contents

Overview

Mobile-first design was implemented.

The main objective was to build a good HTML structure, using semantic landmark elements.

Custom properties were used for the colors, font-weight and margin-bottom.

Ordered and unordered lists with distinct marker coloring were used.

A table was used for the nutrition part. scope="row" in the th header cells of the table improve accessibility.

The challenge

The challenge is to build out this recipe page and get it looking as close to the design as possible.

Screenshot

Screenshot of the solution

Links

My process

A mobile-first approach was followed.

The HTML was structured using semantic elements.

Improvements relating to accessibility where taken into account:

  • For the image element a detailed alt attribute was added.
  • For the table element header cells th were added and were given the scope="row" attribute.

The CSS styling was done trying to avoid unnecessary declarations.

Custom properties were used for the colors, font-weight and margin-bottom.

A very simple CSS reset was used.

A media query was used to slightly change the .wrapper and the img properties.

Built with

  • Semantic HTML5 markup
  • CSS custom properties
  • Flexbox
  • Mobile-first workflow

What I learned

  • Further reinforced the process of building a solid HTML structure.
  • Better organising the CSS stylesheet.
  • How to manipulate lists and list markers.
  • How to use the table element with all the related elements and attributes for improving accessibility.

Continued development

A modern CSS reset must be used in future projects after understanding all its declarations.

Further investigating the accessibility subject.

Useful resources

Author