@@ -42,111 +42,26 @@ export function ChatForm() {
4242 } ;
4343 return (
4444 < >
45- < style jsx > { `
46- /* 簡単なCSSで見た目を整える(オプション) */
47- .form-container {
48- background-color: white;
49- border-radius: 10px;
50- box-shadow: 0 4px 8px rgba(67, 204, 216, 0.86);
51- padding: 20px;
52- width: 90%;
53- max-width: 1000px;
54- display: flex;
55- flex-direction: column;
56- }
57- .input-area {
58- border: 1px solid #ccc;
59- border-radius: 8px;
60- padding: 5px 15 px;
61- margin-bottom: 15px;
62- min-height: 150px; /* 入力欄の高さ */
63- display: flex;
64- }
65- .text-input {
66- border: none;
67- outline: none;
68- flex-grow: 1;
69- font-size: 16px;
70- resize: none; /* テキストエリアのリサイズを無効化 */
71- overflow: auto;
72- padding: 10px;
73- }
74- .controls {
75- display: flex;
76- align-items: center;
77- justify-content: space-between;
78- }
79- .left-icons button {
80- background: none;
81- border: none;
82- font-size: 24px;
83- cursor: pointer;
84- color: #555;
85- margin-right: 15px;
86- padding: 5px;
87- }
88- .left-icons button:hover {
89- color: #000;
90- }
91- .left-icons span {
92- font-size: 14px;
93- vertical-align: middle;
94- margin-left: 5px;
95- color: #555;
96- }
97- .right-controls {
98- display: flex;
99- align-items: center;
100- }
101- .voice-icon button {
102- background: none;
103- border: none;
104- font-size: 24px;
105- cursor: pointer;
106- color: #555;
107- margin-right: 15px;
108- padding: 5px;
109- }
110- .voice-icon button:hover {
111- color: #000;
112- }
113- .send-button {
114- background-color: #007bff; /* 青色の送信ボタン */
115- color: white;
116- border: none;
117- border-radius: 50%; /* 丸いボタン */
118- width: 40px;
119- height: 40px;
120- display: flex;
121- justify-content: center;
122- align-items: center;
123- font-size: 20px;
124- cursor: pointer;
125- box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
126- transition: background-color 0.3s ease;
127- }
128- .send-button:hover {
129- background-color: #0056b3;
130- }
131- ` } </ style >
132-
133- < form className = "form-container" onSubmit = { handleSubmit } >
134- < div className = "input-area" >
45+ < form className = "border border-2 border-primary shadow-xl p-6 rounded-lg bg-base-100" style = { { width :"70%" , textAlign :"center" , boxShadow :"-moz-initial" , position :"fixed" , bottom :"10px" , marginLeft :"20px" } } onSubmit = { handleSubmit } >
46+ < h2 className = "text-xl font-bold mb-4" style = { { textAlign :"left" , position :"relative" , bottom :"10px" , fontFamily :"monospace" , height :"10px" } } > AIへ質問</ h2 >
47+ < div className = "input-area" style = { { height :"80px" } } >
13548 < textarea
136- className = "text-input "
49+ className = "textarea textarea-white textarea-md "
13750 placeholder = "質問を入力してください"
51+ style = { { width : "100%" , height : "110px" , resize : "none" } }
13852 value = { inputValue }
13953 onChange = { ( e ) => setInputValue ( e . target . value ) }
14054 disabled = { isLoading }
14155 > </ textarea >
14256 </ div >
143- < div className = "controls" >
57+ < div className = "controls" style = { { position : "relative" , top : "22px" , display : "flex" , alignItems : "center" , justifyContent : "space-between" } } >
14458 < div className = "left-icons" > </ div >
14559 < div className = "right-controls" >
14660 < button
14761 type = "submit"
148- className = "send-button "
62+ className = "btn btn-soft btn-primary rounded-full "
14963 title = "送信"
64+ style = { { marginTop :"10px" } }
15065 disabled = { isLoading }
15166 >
15267 < span className = "icon" > ➤</ span >
0 commit comments