Skip to content

Commit 2ffe368

Browse files
authored
Merge pull request #8 from uninus-opensource/feat/sellingpoint-section
feat: sellingpoint-section
2 parents 80b0efe + d00958f commit 2ffe368

File tree

6 files changed

+58
-0
lines changed

6 files changed

+58
-0
lines changed

bun.lockb

4.85 KB
Binary file not shown.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
"@tanstack/react-table": "^8.17.3",
2121
"axios": "^1.6.8",
2222
"clsx": "^2.1.1",
23+
"eslint-plugin-storybook": "^0.8.0",
2324
"react": "^18.2.0",
2425
"react-dom": "^18.2.0",
2526
"tailwind-merge": "^2.3.0"

src/apps/home/default.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,15 @@ import { Navbar } from "@/components";
22
import { FC, ReactElement } from "react";
33
import { Hero } from "@/routes/home/modules/hero";
44
import { About } from "@/routes/home/modules/about";
5+
import { SellingPoint } from "@/routes/home/modules/sellingpoint";
56

67
export const LandingPage: FC = (): ReactElement => {
78
return (
89
<>
910
<Navbar />
1011
<Hero />
1112
<About />
13+
<SellingPoint />
1214
</>
1315
);
1416
};

src/routeTree.gen.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import { Route as RouteImport } from './routes/route'
1616
import { Route as HomeIndexImport } from './routes/home/index'
1717
import { Route as HomeDefaultImport } from './routes/home/default'
1818
import { Route as HomeModulesIndexImport } from './routes/home/modules/index'
19+
import { Route as HomeModulesSellingpointImport } from './routes/home/modules/sellingpoint'
1920
import { Route as HomeModulesHeroImport } from './routes/home/modules/hero'
2021
import { Route as HomeModulesAboutImport } from './routes/home/modules/about'
2122

@@ -46,6 +47,11 @@ const HomeModulesIndexRoute = HomeModulesIndexImport.update({
4647
getParentRoute: () => rootRoute,
4748
} as any)
4849

50+
const HomeModulesSellingpointRoute = HomeModulesSellingpointImport.update({
51+
path: '/home/modules/sellingpoint',
52+
getParentRoute: () => rootRoute,
53+
} as any)
54+
4955
const HomeModulesHeroRoute = HomeModulesHeroImport.update({
5056
path: '/home/modules/hero',
5157
getParentRoute: () => rootRoute,
@@ -102,6 +108,13 @@ declare module '@tanstack/react-router' {
102108
preLoaderRoute: typeof HomeModulesHeroImport
103109
parentRoute: typeof rootRoute
104110
}
111+
'/home/modules/sellingpoint': {
112+
id: '/home/modules/sellingpoint'
113+
path: '/home/modules/sellingpoint'
114+
fullPath: '/home/modules/sellingpoint'
115+
preLoaderRoute: typeof HomeModulesSellingpointImport
116+
parentRoute: typeof rootRoute
117+
}
105118
'/home/modules/': {
106119
id: '/home/modules/'
107120
path: '/home/modules'
@@ -121,6 +134,7 @@ export const routeTree = rootRoute.addChildren({
121134
HomeIndexRoute,
122135
HomeModulesAboutRoute,
123136
HomeModulesHeroRoute,
137+
HomeModulesSellingpointRoute,
124138
HomeModulesIndexRoute,
125139
})
126140

@@ -137,6 +151,7 @@ export const routeTree = rootRoute.addChildren({
137151
"/home/",
138152
"/home/modules/about",
139153
"/home/modules/hero",
154+
"/home/modules/sellingpoint",
140155
"/home/modules/"
141156
]
142157
},
@@ -158,6 +173,9 @@ export const routeTree = rootRoute.addChildren({
158173
"/home/modules/hero": {
159174
"filePath": "home/modules/hero.tsx"
160175
},
176+
"/home/modules/sellingpoint": {
177+
"filePath": "home/modules/sellingpoint.tsx"
178+
},
161179
"/home/modules/": {
162180
"filePath": "home/modules/index.ts"
163181
}

src/routes/home/default.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,15 @@ import { FC, Fragment, ReactElement } from "react";
44
import { createRoute } from "@tanstack/react-router";
55
import { rootRoute } from "../template";
66
import { About } from "./modules/about";
7+
import { SellingPoint } from "./modules/sellingpoint";
78

89
const LandingPage: FC = (): ReactElement => {
910
return (
1011
<Fragment>
1112
<Navbar />
1213
<Hero />
1314
<About />
15+
<SellingPoint />
1416
</Fragment>
1517
);
1618
};
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
import { FC, ReactElement } from "react";
2+
3+
export const SellingPoint: FC = (): ReactElement => {
4+
return (
5+
<section className="p-8">
6+
<h2 className="px-9 text-4xl font-bold mb-4 text-blue-900">Program Kerja</h2>
7+
<p className="px-9 mb-8">Berikut Program Kerja Periode Kepengurusan 2024 - 2025</p>
8+
<div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8 px-9">
9+
<div className="bg-white p-6 rounded-lg shadow-md">
10+
<h3 className="text-xl font-bold mb-2 text-blue-900">Melakukan penilaian diri</h3>
11+
<p>
12+
Pahami kondisi mental Anda dengan menyelesaikan tes dan kuestioner yang mudah digunakan.
13+
</p>
14+
</div>
15+
<div className="bg-white p-6 rounded-lg shadow-md">
16+
<h3 className="text-xl font-bold mb-2 text-blue-900">Mendapatkan Analisis AI</h3>
17+
<p>
18+
Dapatkan saran yang dipersonalisasi berdasarkan data diri dan keluhan Anda, dianalisis
19+
dengan teknologi AI canggih.
20+
</p>
21+
</div>
22+
<div className="bg-white p-6 rounded-lg shadow-md">
23+
<h3 className="text-xl font-bold mb-2 text-blue-900">Temukan Bantuan Professional</h3>
24+
<p>
25+
Temukan faskes dan psikolog terdekat yang sesuai dengan kebutuhan Anda dengan mudah.
26+
</p>
27+
</div>
28+
<div className="bg-white p-6 rounded-lg shadow-md">
29+
<h3 className="text-xl font-bold mb-2 text-blue-900">Pelajari Lebih Dalam</h3>
30+
<p>Akses informasi dan edukasi terpercaya tentang berbagai topik kesehatan mental.</p>
31+
</div>
32+
</div>
33+
</section>
34+
);
35+
};

0 commit comments

Comments
 (0)