Skip to content

mgulener/advice-generator-app-main

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 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

Note: Delete this note and update the table of contents based on what sections you keep.

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 random advice

Screenshot

Built with

  • Html
  • Scss
  • Javascript
  • Webpack
  • React
  • Npm

What I learned

To see how you can add code snippets, see below:

Add dynamic class for a condition

<button className={`advice-generator-button ${!isLoaded ? 'loading' : ''}`}>

Scss Neon Effect & Keyframe

.gradient {
  box-shadow: 0 0 20px 1px $neonGreen;
}

@keyframes rotation {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(359deg);
  }
}

React useState, useEffect, fetch