Skip to content

haquanq-frontendmentor/calculator-app

Repository files navigation

Frontend Mentor - Calculator App Solution

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

Solution post Live demo

Table of Contents

🌅 Project Overview

Challenge Requirements

  • See the size of the elements adjust based on their device's screen size
  • Perform mathmatical operations like addition, subtraction, multiplication, and division
  • Adjust the color theme based on their preference
  • Bonus: Have their initial theme preference checked using prefers-color-scheme and have any additional changes saved in the browser

Status

Features

  • Toggle between 3 themes (dark, light, purple)
  • Calculator with keyboard accessible

Accessibility

  • Responsive accross different screen sizes
  • Interactive elements have clear focus indicator

🌠 Tech Stack and Approach

Built With

  • HTML5 – Semantic structure
  • Vue – Fine-grained reactivity state management
  • TailwindCSS – Utility-first CSS for fast development
  • TypeScript - Interactivity and application logic
  • Vite - Fast development server, production build and easy configuration

Approach

🍃 Local Development

Prerequisites

Install the following:

  • Git (latest version)
  • Node.js (latest LTS recommended)
  • pnpm (latest version)

Setup

git clone https://github.com/haquanq-frontendmentor/calculator-app.git
cd calculator-app
pnpm install

Start Development Server

pnpm dev

🍁 Deployment

Deployed to Github Pages via Github Actions.