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
make news list layout #23
Conversation
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/duoctvd/duoctv-trainning/GpLJdkcWzEJvWLJWxh2iMRpp1KYu |
Chắc chắn là phải dùng styled component rồi. Em chỉ việc thay tên của tag html bằng styled component thôi. |
import "firebase/auth"; | ||
import { useForm } from "react-hook-form"; | ||
|
||
type FormValues = { |
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.
@duoctvd
Trong phần code tham khảo của react-hook-form có chọn ngôn ngữ JS và TS, em chọn vào TS (typescript) để xem và làm theo nha.
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.
@bit-thuynt ah dạ! hôm nay em refer theo source đính kèm dưới video này https://gyazo.com/c4801108834acc463cc6f0bbfe955135 https://codesandbox.io/s/pensive-jepsen-lqyk7 , nên có 1 số chỗ nó chưa thật sự đúng TS
mai em sẽ compare lại và fix
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.
@duoctvd
Trong phần code tham khảo của react-hook-form có chọn ngôn ngữ JS và TS, em chọn vào TS (typescript) để xem và làm theo nha.
@bit-thuynt : DONE
@bit-thuynt DONE |
@duoctvd |
@bit-thuynt hiện tại em chỉ add link này vào auth của firebase á chị nên link chị gửi sẽ k login đc |
@duoctvd |
@bit-thuynt dạ, em đã updated ngen chị #23 (comment) |
@duoctvd Trường hợp có thay đổi layout hoặc tạo trang mới, trên chổ mô tả #23 (comment) em thêm phần screen shot vào nha. Làm vậy sẽ review được dễ hơn. |
@bit-thuynt dạ! em sẽ thêm vài button để cách page link lẫn nhau |
@duoctvd Về kích thước của width, height, margin, padding thì sẽ có rule là bội số của 8 hoặc của 4, tất nhiên những trường hợp đặc biệt thì có thể ko theo rule này. |
@duoctvd |
@bit-thuynt dạ, nhân tiên, như chị nói trước đây, tất cả project bên này css sẽ do mình tự viết hết hín chị? vì hiện tại css (frontend) em chỉ đang biết cơ bản!! vì bên team hiện tại hầu như layout có bộ phận design, nên em k đụng css nhiều |
^^ đúng rồi, bên này tự xem design xong tự làm frontend + backend lun. |
ah dạ! em hỏi để biết rõ hơn về dự án bên này! lúc sếp họp cũng nói là bên này làm frontend, nhưng hổm nay em cũng ỷ y chú tâm bên nexjst nên hay copy css sơ xài! nên để từ giờ khi commit, em sẽ cố gắng commit css/layout dễ nhìn hơn! |
@bit-thuynt nhân tiện, tháng 7-8 vẫn đang ở ' under study season'. Em sẽ gắng tấm tuần nữa sẽ xong những yêu cầu về nextjs ở slack, sau đó sẽ bỏ ra tầm 3-5 ngày để tìm 1 mẫu layout nào đó (hoặc chị gửi em 1 images layout nào đó). em sẽ apply lại theo cho các pages mình đã làm để review và học lại mớ về css. chị thấy ổn không? |
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.
@duoctvd Em fix layout sơ sơ rồi merge đi ha.
@bit-thuynt Screenshot: Problem: Cẩn optimize sau này
|
Cái này quan trọng, thường xuyên sử dụng khi làm project nên em ưu tiên fix nó.
Cái này thì tùy em. Css dễ học nên ko gấp, chủ yếu là react-js, bữa giờ em có sử dụng |
Dạ, em sẽ fix nó
dạ!
|
Ko có lưu ý gì, em xem mấy ví dụ sử dụng nó là được. Chị sẽ thêm yêu cầu mà có sử dụng |
2021/07/27
2021/07/28
Layout: https://gyazo.com/2dcfeae332b2c7c952fc8e48544ff5ff
+ Em đang gắng làm theo tài liệu react-hook-form, nhưng có vẻ nó đang dùng thẻ html bình thường như code dưới đây, em có nên dùng nó kết hợp vời styled component không?
2021/07/29
Url that user can login
https://duoctv-trainning-q63uxzcjs-duoctvd.vercel.app
Preeview url for this task:
https://duoctv-trainning-git-feature-5makenewsmangelayout-duoctvd.vercel.app/admin/news/list
https://duoctv-trainning-git-feature-5makenewsmangelayout-duoctvd.vercel.app/admin/news/form