Back to projects

React app · 2024

Fortune Cookie

Open a virtual fortune cookie and get a new phrase every time.

Fortune Cookie on desktop
Desktop
Fortune Cookie on mobile
Mobile

Overview

Fortune Cookie is a small, playful React app: press “Try” and a new message appears, just like breaking a real fortune cookie.

Each visit gets a different color theme, so the illustrated cookie and its banner never look quite the same.

Features

  • Random fortune phrase on every try.
  • Illustrated cookie with a phrase banner.
  • Random color theme on each visit.
  • Light and fast, built with Vite.

How it’s built

  • The phrases live in a JSON file, so adding new ones needs no code changes.
  • Built with React and plain CSS, with no extra libraries.

Technologies

  • React
  • Vite
  • CSS
  • JSON

Have a project in mind?

I design and build web applications that look good and are easy to use. Let’s talk about yours.

Write to me