feat: add randomized portfolio hero variants

This commit is contained in:
Evandro Fonseca Junior committed 2026-07-10 02:46:42 -03:00
1 parent 812499b318
commit 9236fdd685
25 files changed
+1438 -658

No files matched your search

+17
View File
@@ -0,0 +1,17 @@
const COUNTRY = ["5", "5"];
const AREA = ["4", "7"];
const NINE = ["9"];
const FIRST = ["9", "2", "7", "4"];
const LAST = ["2", "3", "6", "5"];
export function getWhatsAppNumber() {
return [...COUNTRY, ...AREA, ...NINE, ...FIRST, ...LAST].join("");
}
export function getWhatsAppDisplayNumber() {
return `+${COUNTRY.join("")} ${AREA.join("")} ${NINE.join("")}${FIRST.join("")}-${LAST.join("")}`;
}
export function buildWhatsAppUrl(message: string) {
return `https://wa.me/${getWhatsAppNumber()}?text=${encodeURIComponent(message)}`;
}