Skip to content

GomezJuanEfe/calc-ui

Repository files navigation

Calc-UI

The fanciest calculator on the web.

screenshot

Technologies

These are the technologies I've used

Installation ⚙️

  1. Clone the repository:
git clone git@github.com:GomezJuanEfe/LAF-page.git
  1. Install dependencies:
npm install
  1. Run server:
npm run dev

The Process 🏋️

Code reusing

For many features on the application I used code from different people. In this section I want to acknowledge to Justin Schroeder and Mireille Tijdeman. Check on the links section which part of their work helped and inspired me to do this job.

Mobile no hover

One of the things you may ask is how to deactivate the hover on mobile devices. Here we have two approaches:

Where the current device has a cursor that can hover.

@media (hover: hover) {
  a:hover {
    /* hover styles */
  }
}

Applying styles only to devices that do not support hovering.

@media (hover: none) {
  /* styles for touchscreen devices */
}

Configuring GH-Pages for deploying

This part was very challenging cause I had to understand very well the vite config in order to deploy the project on GitHub Pages.

export default defineConfig({
  plugins: [react()],
  base: "/calc-ui/",
  server: {
    host: "https://gomezjuanefe.github.io/",
  },
  build: {
    outDir: "dist",
  },
});

Links ⛓️

What's next ⏭️

Some of the libraries I would like to implement soon: