diff --git a/package-lock.json b/package-lock.json index 4f36c8a..f7748b3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1318,7 +1318,6 @@ "integrity": "sha512-6mDvHUFSjyT2B2yeNx2nUgMxh9LtOWvkhIU3uePn2I2oyNymUAX1NIsdgviM4CH+JSrp2D2hsMvJOkxY+0wNRA==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "csstype": "^3.0.2" } @@ -1379,7 +1378,6 @@ "integrity": "sha512-n1H6IcDhmmUEG7TNVSspGmiHHutt7iVKtZwRppD7e04wha5MrkV1h3pti9xQLcCMt6YWsncpoT0HMjkH1FNwWQ==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "@typescript-eslint/scope-manager": "8.46.0", "@typescript-eslint/types": "8.46.0", @@ -1897,7 +1895,6 @@ "integrity": "sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg==", "dev": true, "license": "MIT", - "peer": true, "bin": { "acorn": "bin/acorn" }, @@ -2748,7 +2745,6 @@ "integrity": "sha512-XyLmROnACWqSxiGYArdef1fItQd47weqB7iwtfr9JHwRrqIXZdcFMvvEcL9xHCmL0SNsOvF0c42lWyM1U5dgig==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "@eslint-community/eslint-utils": "^4.8.0", "@eslint-community/regexpp": "^4.12.1", @@ -2923,7 +2919,6 @@ "integrity": "sha512-whOE1HFo/qJDyX4SnXzP4N6zOWn79WhnCUY/iDR0mPfQZO8wcYE4JClzI2oZrhBnnMUCBCHZhO6VQyoBU95mZA==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "@rtsao/scc": "^1.1.0", "array-includes": "^3.1.9", @@ -5055,7 +5050,6 @@ "resolved": "https://registry.npmjs.org/react/-/react-19.1.0.tgz", "integrity": "sha512-FS+XFBNvn3GTAWq26joslQgWNoFu08F4kl0J4CgdNKADkdSGXQyTCnKteIAJy96Br6YbpEU1LSzV5dYtjMkMDg==", "license": "MIT", - "peer": true, "engines": { "node": ">=0.10.0" } @@ -5065,7 +5059,6 @@ "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-19.1.0.tgz", "integrity": "sha512-Xs1hdnE+DyKgeHJeJznQmYMIBG3TKIHJJT95Q58nHLSrElKlGQqDTR2HQ9fx5CN/Gk6Vh/kupBTDLU11/nDk/g==", "license": "MIT", - "peer": true, "dependencies": { "scheduler": "^0.26.0" }, @@ -5759,7 +5752,6 @@ "integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==", "dev": true, "license": "MIT", - "peer": true, "engines": { "node": ">=12" }, @@ -5909,7 +5901,6 @@ "integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==", "dev": true, "license": "Apache-2.0", - "peer": true, "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" diff --git a/src/app/goal/goal.tsx b/src/app/goal/goal.tsx new file mode 100644 index 0000000..347ca08 --- /dev/null +++ b/src/app/goal/goal.tsx @@ -0,0 +1,22 @@ +"use client"; + +import React, { useState } from "react"; +import Link from "next/link"; + +export default function First() { + const [time, setTime] = useState(""); + + return ( +
+
+ + + + +
+ 目標を入力する +
+
+
+ ); +} diff --git a/src/app/page.tsx b/src/app/page.tsx index a932894..07feddd 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -1,103 +1,12 @@ -import Image from "next/image"; +import Goal from "./goal/goal"; + export default function Home() { return ( -
-
- Next.js logo -
    -
  1. - Get started by editing{" "} - - src/app/page.tsx - - . -
  2. -
  3. - Save and see your changes instantly. -
  4. -
- -
- - Vercel logomark - Deploy now - - - Read our docs - -
+
+
+
-
); } diff --git a/src/app/second/goal_input.tsx b/src/app/second/goal_input.tsx new file mode 100644 index 0000000..ff7c3b0 --- /dev/null +++ b/src/app/second/goal_input.tsx @@ -0,0 +1,26 @@ +"use client"; + +import React, { useState } from "react"; + +export default function GoalInput() { + // 目標時間入力 + const [time, setTime] = useState("00:00"); + + return ( +
+
+ + ) => setTime(e.target.value)} + style={{ width: "100%", padding: ".5rem .75rem", fontSize: "1rem", borderRadius: 8, border: "1px solid #ddd" }} + /> +

選択: {time || "未選択"}

+
+
+ ); +} diff --git a/src/app/second/page.tsx b/src/app/second/page.tsx new file mode 100644 index 0000000..c26cccd --- /dev/null +++ b/src/app/second/page.tsx @@ -0,0 +1,22 @@ +"use client"; + +import React from "react"; +import Link from "next/link"; +import GoalInput from "./goal_input"; + +export default function Second() { + return ( +
+ {/* 戻るボタン */} +

Second

+ + 完了 + + +
+ ); + + +} + +