Skip to content

stgonzales/dictionary-web-app

Repository files navigation

Dictionary web app solution

This is a solution to the Dictionary web app challenge on Frontend Mentor.

Table of contents

Overview

The challenge

Users should be able to:

  • Search for words using the input field
  • See the Free Dictionary API's response for the searched word
  • See a form validation message when trying to submit a blank form
  • Play the audio file for a word when it's available
  • Switch between serif, sans serif, and monospace fonts
  • Switch between light and dark themes
  • View the optimal layout for the interface depending on their device's screen size
  • See hover and focus states for all interactive elements on the page
  • Bonus: Persist chosen theme and font for next visits.
  • Bonus: Have the correct color scheme chosen for them based on their computer preferences. Hint: Research prefers-color-scheme in CSS.

Screenshot

Desktop Light Sans

Desktop Light theme with Sans font

Mobile Light Sans

Mobile Light theme with Sans font

Desktop Light Sans

Desktop Dark theme with Sans font

Desktop Light Sans

Mobile Light theme with Sans font

Links

My process

Built with

  • Solidjs - Simple and performant reactivity for building user interfaces
  • Vite - Frontend Tooling
  • Tailwindcss - For styles

What I learned

In this project I was able to understand some of the Solidjs concepts - how to create and use context, how to use signals and Solijs helper components, also traing more about Tailwindcss dark mode.

Useful resources

Author