Trindade Suítes
Chalets and shares in Serra da Canastra, with a simulator.


- Type
- Website
- Made by
- Solo project
- Technologies
- HTML, CSS, JavaScript
The problem
Present the chalets in Serra da Canastra to guests and to people buying a share.
What I did
- Redesigned the site
- Animated opening
- Booking requests via WhatsApp
- Simulator that shows the numbers behind each share
See it working
Simulator
Shows what each share could earn, with example values.

Booking
Guests choose the dates and the request goes to WhatsApp.

Chalets
The chalets, with photo galleries.

Behind the screen
This is part of the code that does the simulator’s math.
Drag to see the code behind it

const p = plano();
const d = +diaria.value,
noites = +noitesIn.value,
receita = d * noites;
const hosp = Math.ceil(
noites / NOITES_POR_HOSPEDAGEM);
const adm = receita * ADM,
luz = LUZ_DIA * noites,
faxina = FAXINA * hosp;
const liquido =
receita - adm - luz - faxina;