wevisdemo / conforall

✍️
0 stars 2 forks source link

feat(landing): green section #3

Closed Th1nkK1D closed 1 year ago

Th1nkK1D commented 1 year ago

image

Th1nkK1D commented 1 year ago

ตอนนี้ design ไม่ได้ทำ isSubmitting state (กดแล้วกำลังยิง Firebase) กับ success state ไว้ คิดว่าควร implement ui แบบเร็วๆ อย่างน้อยให้ user รู้ว่าอยู่ state ไหน (และถ้ามีเวลา error state ก็ดี)

ตอนนี้ form ใช้ lib felte ช่วย ซึ่ง createForm return isSubmitting ที่อาจจะใช้ได้ แต่ตอนส่งสำเร็จไม่มั่นใจว่าใช้ท่าไหนดี

mixth commented 1 year ago

@Th1nkK1D ผม handle ง่ายๆแบบนี้ไปนะครับ

ตอนกดส่ง (disabled ทุก input)

Screenshot 2023-08-13 at 3 55 47 AM

ตอน error

Screenshot 2023-08-13 at 3 55 59 AM

ปล. ใช้ boolean ง่ายๆไปครับ อ่าน felte ไม่ทัน