diff --git a/src/components/common/tuneSetting/TuneSetting.tsx b/src/components/common/tuneSetting/TuneSetting.tsx new file mode 100644 index 0000000..01addd0 --- /dev/null +++ b/src/components/common/tuneSetting/TuneSetting.tsx @@ -0,0 +1,52 @@ +import { ChangeEvent, FormEvent, useState } from 'react'; +import Button from '../button/Button'; + +const TuneSetting = () => { + const [temperature, setTemperature] = useState(0.3); + const [repetitionPenalty, setRepetitionPenalty] = useState(1.5); + + const temperatureHandler = (e: ChangeEvent) => { + setTemperature(parseFloat(e.target.value)); + }; + const repetitionPenaltyHandler = (e: ChangeEvent) => { + setRepetitionPenalty(parseFloat(e.target.value)); + }; + + const handleSubmit = (e: FormEvent) => { + e.preventDefault(); + console.log(temperature, repetitionPenalty); + }; + + return ( +
+
+ + +
+
+ + +
+ +
+ ); +}; +export default TuneSetting; diff --git a/src/pages/profile/index.tsx b/src/pages/profile/index.tsx index 5b04f4a..024884b 100644 --- a/src/pages/profile/index.tsx +++ b/src/pages/profile/index.tsx @@ -1,10 +1,15 @@ import { css } from '@emotion/react'; import BottomNavBar from '@/components/common/bottomNavBar/BottomNavBar'; import SEO from '@/components/common/head/SEO'; +import TuneSetting from '@/components/common/tuneSetting/TuneSetting'; +import Dialog from '@/components/common/dialog/Dialog'; const Profile = () => ( <> + { console.log('모달 클로즈'); }}> + +
프로필 기능은 추후 제공될 예정입니다.