/advice-generator

This project uses the Advice Slip API to generate random quotes of advice.

Primary LanguageCSS

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

This project uses the Advice Slip API to generate random quotes of advice.

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

Screenshot (115)

Links

Built with

  • Semantic HTML5 markup
  • CSS custom properties
  • Flexbox
  • Mobile-first workflow
  • Styled Components - For styles

What I learned

<button class="flex justify-center items-center bg-neon-green w-12 h-12 rounded-full absolute left-1/2 -translate-x-2/4 cursor-pointer outline-none hover:shadow-[0px_0px_20px] hover:shadow-neon-green"><img class="" src="./images/icon-dice.svg" alt=""></button>

Continued development

Improvement of my knowledge in the usage of Tailwind CSS is needed.

Useful resources

Author