Skip to content

Commit e5e7044

Browse files
authored
Update: Update product list page (#123)
* Update: Update product list page * Fix: rename our-products to products
1 parent a152bf9 commit e5e7044

File tree

9 files changed

+15
-45
lines changed

9 files changed

+15
-45
lines changed

app/[lang]/(hyperjump)/components/nav.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ const SOLID_NAV_PATHS = [
3030
"/case-studies",
3131
"/jobs",
3232
"/services",
33+
"/products",
3334
...data.jobs.map(({ id }) => `/jobs/${id}`)
3435
];
3536
const SOLID_NAV_PATHS_WITH_LOCALE = supportedLanguages.reduce(
@@ -46,7 +47,7 @@ function menu(lang: SupportedLanguage) {
4647
label: mainNavItems0Label(lang),
4748
href: `/${lang}/services`
4849
},
49-
{ label: mainNavItems2Label(lang), href: `/${lang}/our-products` },
50+
{ label: mainNavItems2Label(lang), href: `/${lang}/products` },
5051
{ label: mainNavItems1Label(lang), href: `/${lang}/case-studies` },
5152
{ label: mainNavItems3Label(lang), href: `/${lang}/#faqs` }
5253
];

app/[lang]/(hyperjump)/our-products/data.ts renamed to app/[lang]/(hyperjump)/products/data.ts

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -19,35 +19,24 @@ export function getCommercialProduct(lang: SupportedLanguage) {
1919
{
2020
title: ourProductsCommercialData1Title(lang),
2121
description: ourProductsCommercialData1Text(lang),
22-
image: "/images/our-products/startGPT.svg",
23-
urlLearnMore: `/${lang}/inferenceai/startgpt`
22+
image: "/images/products/startGPT.svg"
2423
},
2524
{
2625
title: ourProductsCommercialData2Title(lang),
2726
description: ourProductsCommercialData2Text(lang),
28-
image: "/images/our-products/media-pulse.svg",
29-
urlLearnMore: `/${lang}/inferenceai/media-pulse`
27+
image: "/images/products/media-pulse.svg"
3028
},
3129
{
3230
title: ourProductsCommercialData3Title(lang),
3331
description: ourProductsCommercialData3Text(lang),
3432
image: "/images/open-source/monika.svg",
35-
urlLearnMore: "https://monika.hyperjump.tech/"
33+
url: "https://monika.hyperjump.tech/"
3634
}
3735
];
3836
}
3937

4038
export function getOpenSource(lang: SupportedLanguage) {
4139
return [
42-
{
43-
title: mainProject1Title(lang),
44-
description: mainProject1Text(lang),
45-
image: "/images/open-source/monika.svg",
46-
url: "https://monika.hyperjump.tech/",
47-
repoUrl: "https://github.com/hyperjumptech/monika",
48-
button: true,
49-
repo: "monika"
50-
},
5140
{
5241
title: mainProject0Title(lang),
5342
description: mainProject0Text(lang),

app/[lang]/(hyperjump)/our-products/page.tsx renamed to app/[lang]/(hyperjump)/products/page.tsx

Lines changed: 4 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,14 @@ import {
44
} from "@/locales/.generated/types";
55
import {
66
mainViewMore,
7-
ourProductsCommercialDescription,
8-
ourProductsCommercialHeading,
97
ourProductsHeroDesc,
10-
ourProductsHeroHeading,
11-
ourProductsOpenSourceDescription,
12-
ourProductsOpenSourceHeading
8+
ourProductsHeroHeading
139
} from "@/locales/.generated/server";
1410
import { Metadata } from "next";
1511
import { dynamicOpengraph } from "@/lib/default-metadata";
1612
import GridItemsContainer, {
1713
GridItems,
18-
GridItemsMoreButton,
19-
GridItemsTitle
14+
GridItemsMoreButton
2015
} from "@/app/components/grid-items";
2116
import { getCommercialProduct, getOpenSource } from "./data";
2217
import data from "@/data.json";
@@ -38,10 +33,10 @@ export async function generateMetadata({
3833
title: `Our Products - ${ourProductsHeroHeading(lang)}`,
3934
description: ourProductsHeroDesc(lang),
4035
alternates: {
41-
canonical: `https://hyperjump.tech/${lang}/our-products`,
36+
canonical: `https://hyperjump.tech/${lang}/products`,
4237
languages: supportedLanguages.reduce(
4338
(acc, l) => {
44-
acc[l] = `https://hyperjump.tech/${l}/our-products`;
39+
acc[l] = `https://hyperjump.tech/${l}/products`;
4540
return acc;
4641
},
4742
{} as Record<string, string>
@@ -91,11 +86,6 @@ function ProductCommercial({ lang }: { lang: SupportedLanguage }) {
9186

9287
return (
9388
<GridItemsContainer id="commercial-product">
94-
<GridItemsTitle
95-
layout="vertical"
96-
title={ourProductsCommercialHeading(lang)}
97-
description={ourProductsCommercialDescription(lang)}
98-
/>
9989
<GridItems
10090
items={projects}
10191
columns={{ base: 1, sm: 2, lg: 3 }}
@@ -111,22 +101,12 @@ function OpenSourceProducts({ lang }: { lang: SupportedLanguage }) {
111101

112102
return (
113103
<GridItemsContainer id="open-source">
114-
<GridItemsTitle
115-
layout="vertical"
116-
title={ourProductsOpenSourceHeading(lang)}
117-
description={ourProductsOpenSourceDescription(lang)}
118-
/>
119104
<GridItems
120105
items={projects}
121106
columns={{ base: 1, sm: 2, lg: 3 }}
122107
cardClassName="rounded"
123108
lang={lang}
124109
/>
125-
<GridItemsMoreButton
126-
text={mainViewMore(lang)}
127-
variant="outline"
128-
href={data.github}
129-
/>
130110
</GridItemsContainer>
131111
);
132112
}

e2e/case-studies.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ async function gotoAndWait(page: import("@playwright/test").Page, url: string) {
6969
// Shared assertions for header nav links based on code in app/[lang]/(hyperjump)/components/nav.tsx
7070
const expectedMenuPaths = (locale: string) => [
7171
`/${locale}/services`,
72-
`/${locale}/our-products`,
72+
`/${locale}/products`,
7373
`/${locale}/case-studies`,
7474
`/${locale}#faqs`
7575
];

e2e/navigation.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { test, expect, Page, Locator } from "@playwright/test";
22

33
const navLinks: { name: string; expected: RegExp }[] = [
44
{ name: "Our Services", expected: /\/(en|id)\/services(\/|$)/ },
5-
{ name: "Our Products", expected: /\/(en|id)\/our-products(\/|$)/ },
5+
{ name: "Our Products", expected: /\/(en|id)\/products(\/|$)/ },
66
{ name: "Case Studies", expected: /\/(en|id)\/case-studies(\/|$)/ },
77
{ name: "FAQ", expected: /#faqs/ }
88
];

locales/en/our-products.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"hero": {
3-
"heading": "The Hyperjump Product Stack",
4-
"desc": "Private AI assistants, real-time media insights, and monitoring tools. Everything your engineering team needs to ship with confidence."
3+
"heading": "Smart Tech. Real Impact.",
4+
"desc": "Explore the products that power tomorrow’s digital solutions."
55
},
66
"commercial": {
77
"heading": "Commercial Products",

locales/id/our-products.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"hero": {
3-
"heading": "Rangkaian Produk Hyperjump",
4-
"desc": "Asisten AI pribadi, wawasan media secara real-time, dan alat pemantauan. Semua yang dibutuhkan tim engineering Anda untuk mengirimkan produk dengan percaya diri."
3+
"heading": "Inovasi Cerdas. Dampak Nyata.",
4+
"desc": "Temukan berbagai produk yang menjadi penggerak solusi digital masa depan."
55
},
66
"commercial": {
77
"heading": "Produk Komersial",
File renamed without changes.

0 commit comments

Comments
 (0)