Admin Panel
tests / ci (push) Canceled after 0s

This commit is contained in:
2026-09-29 14:57:37 +07:00
parent 04fbddba13
commit 8c6dad2a31
94 changed files with 4864 additions and 1151 deletions
+12 -51
View File
@@ -1,8 +1,9 @@
import { about, clients, contact, services } from '@/routes';
import type { Office } from '@/types';
/**
* Language-independent company facts. Anything visitors read as prose lives
* in `resources/js/content` in both languages.
* Fixed company facts. Editable contact details and office locations come
* from the admin panel through the shared `site` prop (see `useSiteInfo`).
*/
export const company = {
name: 'PT Probindo Artika Jaya',
@@ -12,59 +13,19 @@ export const company = {
/** Year PAJ became an IT consultant; shown as "Est." on the site. */
established: 2002,
logo: '/images/probindo/logo-paj.png',
phone: { label: '(021) 7266-3353', href: 'tel:+622172663353' },
whatsapp: {
label: '0818-0218-9425',
href: 'https://wa.me/6281802189425',
},
email: {
support: 'support@probindo.com',
busdev: 'busdev@probindo.com',
},
} as const;
export type Office = {
name: string;
icon: string;
building: string;
street: string;
area: string;
city: string;
/** Compact location used in chips and one-line summaries. */
district: string;
phone: { label: string; href: string };
mapsUrl: string;
/** Indonesian phone number → international digits, e.g. "622172663353". */
const internationalDigits = (phone: string) => {
const digits = phone.replace(/\D/g, '');
return digits.startsWith('0') ? `62${digits.slice(1)}` : digits;
};
/**
* PAJ works from two locations; most of the team is based at the Software
* Engineering Center, so it is listed first.
*/
export const offices: Office[] = [
{
name: 'PAJ Software Engineering Center',
icon: 'code_blocks',
building: 'Anindhaloka',
street: 'Jl. YRS No.20, RW.1',
area: 'Bintaro, Kec. Pesanggrahan',
city: 'Kota Jakarta Selatan 12330',
district: 'Bintaro, Jakarta Selatan',
phone: { label: '(021) 7266-3353', href: 'tel:+622172663353' },
mapsUrl:
'https://maps.google.com/?q=Jl.+YRS+No.20+Bintaro+Pesanggrahan+Jakarta+Selatan',
},
{
name: 'PAJ Business Development Center',
icon: 'apartment',
building: 'Plaza Simatupang Lt. 6 Unit 3',
street: 'Jl. TB. Simatupang Kav. IS No. 01',
area: 'Pondok Pinang, Kebayoran Lama',
city: 'Jakarta Selatan 12310',
district: 'Plaza Simatupang, Jakarta Selatan',
phone: { label: '+62 21 5789 5927', href: 'tel:+622157895927' },
mapsUrl: 'https://maps.google.com/?q=Plaza+Simatupang+Jakarta',
},
];
export const telHref = (phone: string) => `tel:+${internationalDigits(phone)}`;
export const whatsappHref = (phone: string) =>
`https://wa.me/${internationalDigits(phone)}`;
export const officeAddress = (office: Office) =>
[office.building, office.street, office.area, office.city].join(', ');