This commit is contained in:
2026-02-28 11:59:17 +07:00
parent 4d3949abaa
commit a7e23cb983
4 changed files with 130 additions and 0 deletions

View File

@@ -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 (
<ForgotPassword />
)
}

View File

@@ -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 (
<Layout />
)
}

View File

@@ -0,0 +1,63 @@
'use client';
import Link from "next/link";
import { CustomerInfo } from "@/data/customers"
export default function AccountPage() {
return (
<div className="account-page">
<div className="container">
<div className="account-col-left">
<div className="box-info">
<p>
Tài khoản của,
<b> {CustomerInfo[0]?.name} </b>
</p>
</div>
<div className="box-direction font-500 text-16">
<Link href="/taikhoan?view=change-info">
<i className="bx bx-user text-20" />
<span>Thông tin tài khoản</span>
</Link>
<Link href="/taikhoan?view=order">
<i className="bx bx-list-ul-square text-20" />
<span>Danh sách đơn hàng</span>
</Link>
<Link href="/taikhoan?view=product-review">
<i className="bxr bx-star text-20" />
<span>Đánh giá của tôi</span>
</Link>
<Link href="/taikhoan?view=product-comment">
<i className="bxr bx-message-dots text-20" />
<span>Bình luận của tôi</span>
</Link>
<Link href="/taikhoan?view=change-pass">
<i className="bx bx-lock text-20" />
<span>Thay đi mật khẩu</span>
</Link>
<Link href="/san-pham-da-xem">
<i className="bx bx-eye text-20" />
<span>Sản phẩm đã xem</span>
</Link>
<Link href="/logout.php">
<i className="bx bx-arrow-out-right-square-half text-20" />
<span>Đăng xuất</span>
</Link>
</div>
</div>
<div className="account-col-right">
<p> 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. </p>
</div>
</div>
</div>
)
}

View File

@@ -0,0 +1,40 @@
export default function ForgotPasswordPage() {
return (
<div className="customer-page p-10 container">
<div className="p-10" style={{ padding: '20px 0' }}>
<form action="" method="post" encType="multipart/form-data">
<h2 className="text-20 font-600">Bạn quên mật khẩu vào tài khoản?</h2>
<p>Vui lòng nhập đa chỉ email đã đăng 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 yêu cầu xác minh trước khi thể tạo mật khẩu mới</p>
<table>
<tbody>
<tr>
<td>Nhập đa chỉ email đăng </td>
<td>
<input
type="text"
size={40}
name="email"
className="bg-white w-full block h-9 rounded-[4px] px-3"
/>
<span className="red d-block"></span>
</td>
</tr>
<tr>
<td />
<td>
<input
type="button"
className="btn-regis text-uppercase bold px-9"
style={{ width: 'auto' }}
defaultValue="Lấy mật khẩu"
/>
</td>
</tr>
</tbody>
</table>
</form>
</div>
</div>
)
}