-
Notifications
You must be signed in to change notification settings - Fork 0
feat:create Comment box #11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
src/app/comment/page.tsx
Outdated
| <button | ||
| type="submit" | ||
| className="absolute right-7 font-semibold transition" | ||
| style={{ color: "#578FD7" }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ここでカラーコードを指定せずとも、tailwindcssで指定出来ませんか?
↓のPRでglobals.cssで色を決めていそうです!
#15
| <textarea | ||
| value={studentComment} | ||
| onChange={(e) => { | ||
| setStudentComment(e.target.value); | ||
| }} | ||
| placeholder="がんばったことを入力..." | ||
| className="w-full h-full outline-none text-gray-800 placeholder-gray-400 p-3 pr-14 rounded-lg shadow-sm resize-none" | ||
|
|
||
| style={{ backgroundColor: "#FFFFFF" ,color: "#3B3B3B" }} | ||
| /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
最初はとっつきにくいのですが、既存のUIコンポーネントを使うことで、いったん作りきって細かいデザインは後から、という進め方も出来そうです
今から変えなくてもいいのですが、参考までに
https://ui.shadcn.com/docs/components/textarea
/commentで開くようになっています