Skip to content

๐Ÿงฎ A simple calculator web application built with Next.js and styled using Tailwind CSS. It performs basic arithmetic operations such as addition, subtraction, multiplication, and division.

Notifications You must be signed in to change notification settings

codeprnv/simple-calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

2 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ“ Project Description

This project is a Simple Calculator built using Next.js with modern web development tools and styling frameworks. It provides basic arithmetic operations and a responsive UI for a smooth user experience.


๐Ÿ“‚ Project Structure

simple-calculator/
โ”œโ”€โ”€ .gitignore
โ”œโ”€โ”€ README.md
โ”œโ”€โ”€ package.json
โ”œโ”€โ”€ tsconfig.json
โ”œโ”€โ”€ tailwind.config.ts
โ”œโ”€โ”€ postcss.config.mjs
โ”œโ”€โ”€ eslint.config.mjs
โ”œโ”€โ”€ next.config.ts
โ”œโ”€โ”€ src/
โ”‚   โ”œโ”€โ”€ app/
โ”‚   โ”‚   โ”œโ”€โ”€ globals.css
โ”‚   โ”‚   โ”œโ”€โ”€ layout.tsx
โ”‚   โ”‚   โ””โ”€โ”€ page.tsx

๐Ÿ–ผ๏ธ Screenshots

Calculator


๐Ÿ”ง Features

  • Basic Calculations: Addition, subtraction, multiplication, division.
  • Advanced Options: Percentage, parentheses support, clear/reset functionality.
  • Responsive Design: Mobile-friendly and styled with Tailwind CSS.
  • Error Handling: Displays friendly error messages for invalid expressions.
  • Fully Clickable Interface: Works without needing a keyboard.

๐Ÿ› ๏ธ Technologies Used

  • Next.js: React-based framework for server-side rendering.
  • React: UI development and state management.
  • TypeScript: Strong typing for better maintainability.
  • Tailwind CSS: Utility-first CSS framework.
  • PostCSS: CSS processing pipeline.
  • ESLint: Linting and code style enforcement.

๐Ÿ“„ Key Files

  • src/app/page.tsx: Calculator component and logic.
  • src/app/layout.tsx: Base layout for consistent structure.
  • src/app/globals.css: Global styles and Tailwind import.
  • tailwind.config.ts: Tailwind theme and config.
  • tsconfig.json: TypeScript project settings.
  • eslint.config.mjs: ESLint rules.
  • next.config.ts: Next.js configuration.

๐Ÿš€ Getting Started

  1. Install dependencies:
npm install
  1. Run development server:
npm run dev
  1. Open in browser:

http://localhost:3000


Made with โค๏ธ by @codeprnv

About

๐Ÿงฎ A simple calculator web application built with Next.js and styled using Tailwind CSS. It performs basic arithmetic operations such as addition, subtraction, multiplication, and division.

Resources

Stars

Watchers

Forks