From a7e23cb98353301f0c28e9b15d4dfd8f598f88d9 Mon Sep 17 00:00:00 2001 From: Dao Duc Date: Sat, 28 Feb 2026 11:59:17 +0700 Subject: [PATCH] 28/02 --- src/app/(main)/quen-mat-khau/page.tsx | 13 +++++ src/app/(main)/taikhoan/page.tsx | 14 +++++ src/components/account/index.tsx | 63 ++++++++++++++++++++++ src/components/customer/ForgotPassword.tsx | 40 ++++++++++++++ 4 files changed, 130 insertions(+) create mode 100644 src/app/(main)/quen-mat-khau/page.tsx create mode 100644 src/app/(main)/taikhoan/page.tsx create mode 100644 src/components/account/index.tsx create mode 100644 src/components/customer/ForgotPassword.tsx diff --git a/src/app/(main)/quen-mat-khau/page.tsx b/src/app/(main)/quen-mat-khau/page.tsx new file mode 100644 index 0000000..d41adef --- /dev/null +++ b/src/app/(main)/quen-mat-khau/page.tsx @@ -0,0 +1,13 @@ + +import ForgotPassword from "@/components/customer/ForgotPassword"; +import type { Metadata } from "next"; +export const metadata: Metadata = { + title: "Quên mật khẩu", + description: "", +}; + +export default function Home() { + return ( + + ) +} diff --git a/src/app/(main)/taikhoan/page.tsx b/src/app/(main)/taikhoan/page.tsx new file mode 100644 index 0000000..1d7fcd8 --- /dev/null +++ b/src/app/(main)/taikhoan/page.tsx @@ -0,0 +1,14 @@ + + +import Layout from "@/components/account"; +import type { Metadata } from "next"; +export const metadata: Metadata = { + title: "Tài khoản của tôi", + description: "Thông tin tài khoản người dùng", +}; + +export default function Home() { + return ( + + ) +} diff --git a/src/components/account/index.tsx b/src/components/account/index.tsx new file mode 100644 index 0000000..dd97bbf --- /dev/null +++ b/src/components/account/index.tsx @@ -0,0 +1,63 @@ +'use client'; +import Link from "next/link"; +import { CustomerInfo } from "@/data/customers" + +export default function AccountPage() { + + return ( +
+
+
+
+

+ Tài khoản của, + {CustomerInfo[0]?.name} +

+
+ +
+ + + Thông tin tài khoản + + + + + Danh sách đơn hàng + + + + + Đánh giá của tôi + + + + + Bình luận của tôi + + + + + Thay đổi mật khẩu + + + + + Sản phẩm đã xem + + + + + Đăng xuất + +
+
+ +
+

Bạn đang ở trang tài khoản. Vui lòng chọn các mục bên trái để xem thông tin.

+
+
+
+ + ) +} \ No newline at end of file diff --git a/src/components/customer/ForgotPassword.tsx b/src/components/customer/ForgotPassword.tsx new file mode 100644 index 0000000..6a2e48f --- /dev/null +++ b/src/components/customer/ForgotPassword.tsx @@ -0,0 +1,40 @@ +export default function ForgotPasswordPage() { + return ( +
+
+
+

Bạn quên mật khẩu vào tài khoản?

+

Vui lòng nhập địa chỉ email đã đăng ký với chúng tôi để tạo mật khẩu mới. Chúng tôi sẽ gửi 1 email vào địa chỉ email cung cấp và yêu cầu xác minh trước khi có thể tạo mật khẩu mới

+ + + + + + + + + + +
Nhập địa chỉ email đăng ký + + +
+ + +
+
+
+
+ + ) +} \ No newline at end of file