Giter Site home page Giter Site logo

loan-to-value-next-ts's Introduction

This is a Next.js project bootstrapped with create-next-app.

Demo

https://loan-to-value-next-ts-exam.vercel.app/

First clone

Copy the .env.example to .env.local.

cp -n .env.example .env.local

Then, update your node version to 16 or latest using NVM

nvm use

Next, install the packages

npm install

Run the dev server:

npm run dev

Open http://localhost:3000 with your browser to see the result.

Decision Process

Component Library

I opted to use a component library for faster development and to ensure consistent styling across all components without spending a lot of time creating my own.

I chose Mantine as my component library due to its ease of use and scalability. Compared to Material UI, I found Mantine less verbose and easier to understand.

In some cases where I needed utility classes such as pt- and mt-, I also used Tailwind. Compared to other CSS frameworks, I highly prefer Tailwind because of its treeshaking capabilities, which keep the bundle size minimal.

Layout

Since not everyone knows what a Loan-to-Value calculator is, I added some information about what it is and what the result means.

For ease of use, I added a slider for users who want to quickly check the value if they have a percentage in mind, rather than the actual value. On the other hand, I also built an input for users who prefer to manually input a value.

Framework

I chose Next.js because, even though my output is just the calculator, I wanted to make it easy for someone who clones this project to turn it into a website with more than one page. For example, they could integrate a CMS, add another widget, or a full-blown app.

Initially, I wanted to implement DatoCMS and turn this into a landing page. However, due to time constraints, I focused more on the functionality of the calculator.

loan-to-value-next-ts's People

Contributors

lordwill-dev avatar

Watchers

Lordwill avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.