diff --git a/app/[locale]/(main)/detail/[id]/page.tsx b/app/[locale]/(main)/detail/[id]/page.tsx new file mode 100644 index 0000000..47d32f6 --- /dev/null +++ b/app/[locale]/(main)/detail/[id]/page.tsx @@ -0,0 +1,7 @@ +export default function Page({ params }: { params: { id: string } }) { + return ( +
+ {params.id} +
+ ); +} diff --git a/components/ServerCard.tsx b/components/ServerCard.tsx index a1a6ec7..b7af3d9 100644 --- a/components/ServerCard.tsx +++ b/components/ServerCard.tsx @@ -36,35 +36,39 @@ export default function ServerCard({ "flex flex-col items-center justify-start gap-3 p-3 md:px-5 lg:flex-row" } > - + {/* -
- -
- {showFlag ? : null} -
-

- {name} -

-
+
-
+
*/} +
{ + router.push(`/${locale}/detail/${id}`); + }} + > +
+ {showFlag ? : null} +
+

+ {name} +

+ +
{ router.push(`/${locale}/${id}`);