feat: add randomized portfolio hero variants
This commit is contained in:
1 parent
812499b318
commit
9236fdd685
25 files changed
+1438
-658
No files matched your search
@@ -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)}`;
|
||||
}
|
||||
Reference in new issue
Block a user