Skip to content

Commit 5595192

Browse files
authored
Feat: Implement service detail page (#32)
* Feat: create JSON service details * create tech-due-dilligence page * add service detail page * fix ctoaas * update services components * fix design cto-as-a-service * update design erp * fix design all page services detail
1 parent e61a7bc commit 5595192

File tree

95 files changed

+4653
-187
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

95 files changed

+4653
-187
lines changed

app/(main)/[lang]/language-picker.tsx

Lines changed: 31 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,39 @@ const labelByLang: Record<SupportedLanguage, string> = {
1818
export function LanguagePicker({
1919
lang,
2020
type = "hyperjump"
21-
}: LanguagePickerProps) {
21+
}: {
22+
lang: SupportedLanguage;
23+
type?:
24+
| "hyperjump"
25+
| "services"
26+
| "tech-due-diligence"
27+
| "software-as-a-service"
28+
| "erp-implementation"
29+
| "cto-as-a-service";
30+
}) {
2231
const handleChange = (e: React.ChangeEvent<HTMLSelectElement>) => {
2332
const newLang = e.target.value as SupportedLanguage;
24-
window.location.href =
25-
type === "hyperjump" ? `/${newLang}#hero` : `/services/${newLang}#hero`;
33+
34+
const urlHyperjump = `/${newLang}#hero`;
35+
const urlServices = `/services/${newLang}#hero`;
36+
const urlTdd = `/services/tech-due-diligence/${newLang}#hero`;
37+
const urlSaas = `/services/software-as-a-service/${newLang}#hero`;
38+
const urlErp = `/services/erp-implementation/${newLang}#hero`;
39+
const urlCtoAAS = `/services/cto-as-a-service/${newLang}#hero`;
40+
41+
if (type === "services") {
42+
window.location.href = urlServices;
43+
} else if (type === "tech-due-diligence") {
44+
window.location.href = urlTdd;
45+
} else if (type === "cto-as-a-service") {
46+
window.location.href = urlCtoAAS;
47+
} else if (type === "software-as-a-service") {
48+
window.location.href = urlSaas;
49+
} else if (type === "erp-implementation") {
50+
window.location.href = urlErp;
51+
} else {
52+
window.location.href = urlHyperjump;
53+
}
2654
};
2755

2856
return (

0 commit comments

Comments
 (0)