1.4 KiB
1.4 KiB
mcalc - Simple Dioxus Calculator
A simple, modern, and beautiful calculator application built with Rust and Dioxus.
Description
mcalc is a lightweight desktop calculator that demonstrates how to build a clean UI with state management in Dioxus. It features a modern dark mode design with glassmorphism effects and responsiveness.
Features
- Basic Arithmetic: Addition, Subtraction, Multiplication, Division.
- Modern UI: Clean typography, glassmorphism card, and neon accents.
- Interactive: Hover effects and smooth animations.
- Responsive: Adapts to window resizing.
Tech Stack
- Rust: Core logic and safety.
- Dioxus: UI framework (React-like for Rust).
- CSS3: Custom styling with variables and flexbox/grid.
Getting Started
Prerequisites
- Rust installed.
- Dioxus CLI (optional but recommended for development).
cargo install dioxus-cli
Running the App
-
Clone the repository:
git clone <repository_url> cd mcalc -
Run with Cargo:
cargo runOr with Dioxus CLI (for hot reloading):
dx serve
Project Structure
src/main.rs: Entry point.src/ui.rs: Main calculator UI and logic calls.assets/main.css: Styling and themes.src/logic.rs: Calculator logic.
License
GPL-3 License