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.
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
- 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.
- 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.
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.
- Install dependencies:
npm install
- Run development server:
npm run dev
- Open in browser:
Made with โค๏ธ by @codeprnv