diff --git a/src/app/activities/[activity-id]/start/page.tsx b/src/app/activities/[activity-id]/start/page.tsx
new file mode 100644
index 0000000..db68e51
--- /dev/null
+++ b/src/app/activities/[activity-id]/start/page.tsx
@@ -0,0 +1,45 @@
+import BasicLayout from "~/components/ui/BasicLayout";
+import { Textarea } from "~/components/ui/textarea";
+import { getActivity } from "~/models/activity";
+
+export default function ActivitiesStartPage({
+ params,
+}: {
+ params: { "activity-id": string };
+}) {
+ return (
+
+
+
+
+
+
+ );
+}
+
+function Timer() {
+ return (
+ <>
+ 00:00:00
+
+ >
+ );
+}
+
+async function Editor({ activityId }: { activityId: string }) {
+ if (!activityId) {
+ return "존재하지 않는 활동이에요!";
+ }
+
+ const activity = await getActivity({ activityId });
+
+ return (
+
+
+
{activity.name}
+
{activity.description}
+
+
+
+ );
+}
diff --git a/src/app/activities/features/ListCard.tsx b/src/app/activities/features/ListCard.tsx
index f19bfde..e902e5a 100644
--- a/src/app/activities/features/ListCard.tsx
+++ b/src/app/activities/features/ListCard.tsx
@@ -7,7 +7,7 @@ import {
CardTitle,
} from "~/components/ui/card";
import PlayButton from "./PlayButton";
-import type { Activity } from "~/models/activity";
+import { type Activity } from "~/models/activity";
export default function ListCard({ activity }: { activity: Activity }) {
return (
@@ -16,9 +16,9 @@ export default function ListCard({ activity }: { activity: Activity }) {
{activity.name}
{activity.description}
-
+
-
+
);
diff --git a/src/app/activities/features/PlayButton.tsx b/src/app/activities/features/PlayButton.tsx
index ba26ac0..b63913c 100644
--- a/src/app/activities/features/PlayButton.tsx
+++ b/src/app/activities/features/PlayButton.tsx
@@ -1,9 +1,28 @@
+"use client";
+
+import { useRouter } from "next/navigation";
+import React from "react";
import { PlayIcon } from "~/components/icons";
import { Button } from "~/components/ui/button";
+import { Activity, startActivity } from "~/models/activity";
+
+export default function PlayButton(
+ props: React.ComponentPropsWithoutRef<"button"> & { activity: Activity },
+) {
+ const { activity, ...rest } = props;
+
+ const router = useRouter();
+
+ async function handleStartActivity() {
+ await startActivity({
+ activity: { ...activity, started_at: new Date().getTime() },
+ });
+
+ router.push(`/activities/${activity.id}/start`);
+ }
-export default function PlayButton() {
return (
-