Skip to content

elbhiruni/fem-advice-generator-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Frontend Mentor - Advice generator app solution

This is a solution to the Advice generator app challenge on Frontend Mentor. Frontend Mentor challenges help you improve your coding skills by building realistic projects.

Table of contents

Overview

The challenge

Users should be able to:

  • View the optimal layout for the app depending on their device's screen size
  • See hover states for all interactive elements on the page
  • Generate a new piece of advice by clicking the dice icon

Screenshot

Links

My process

Built with

  • Flexbox
  • Mobile-first workflow
  • Sass - CSS Preprocessors

What I learned

/* CSS */
@media (pointer: coarse) {
  // styles to target touch devices
}

@media (pointer: fine) {
  // styles to target non-touch devices
}
// JavaScript
async function someFunction() {
  const response = await fetch(url, {
    mode: "cors",
  });
  const data = await response.json();
}
// Sass
$variable: white;

.parent {
  //...
  & .child {
    //...
  }
}

Author

Releases

No releases published

Packages

No packages published