-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
696 additions
and
0 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import Header from '../../ui/header'; | ||
|
||
export default function Layout({children,}: {children: React.ReactNode;}) { | ||
return ( | ||
<div className="dark-mode"> | ||
{children} | ||
</div> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,223 @@ | ||
|
||
const MyOrderPage = () =>{ | ||
return ( | ||
<section className="body-section container py-3"> | ||
<div className="my-order-wrapper d-flex flex-column"> | ||
<div className="heading"> | ||
<div className="title">Đơn hàng của tôi</div> | ||
<div className="tabs d-flex gap-3 align-items-center"> | ||
<div className="tab d-flex gap-2 align-items-center"> | ||
<div className="progress-status">Đang giao</div> | ||
<div className="badge">2</div> | ||
</div> | ||
|
||
<div className="tab active d-flex gap-2 align-items-center"> | ||
<div className="progress-status">Lịch sử</div> | ||
<div className="badge">5</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div className="search-bar d-flex gap-3"> | ||
<img src="/images/searchmd.svg" alt="" /> | ||
<input className="flex-grow-1" type="text" placeholder="Gõ tên món ăn, nhà hàng mà bạn đang muốn tìm" /> | ||
</div> | ||
|
||
<div className="filter-and-sort d-flex gap-3"> | ||
<div className="filter-dish-and-restaurant d-flex"> | ||
<div className="filter-button"> | ||
Món ăn | ||
</div> | ||
<div className="filter-button active"> | ||
Nhà hàng | ||
</div> | ||
</div> | ||
<div className="vertical-divider"></div> | ||
<div className="sort-latest d-flex gap-1"> | ||
<div> | ||
Ngày gần nhất | ||
</div> | ||
<img className="small-icon" src="/images/chevron-down.svg" alt="" /> | ||
</div> | ||
|
||
<div className="filter-status d-flex gap-1"> | ||
<div> | ||
Tất cả trạng thái | ||
</div> | ||
<img className="small-icon" src="/images//chevron-down.svg" alt="" /> | ||
</div> | ||
|
||
<div className="filter-date d-flex gap-1"> | ||
<img className="small-icon" src="/images//calendar.svg" alt="" /> | ||
<div> | ||
20/7/2023 - 28/8/2023 | ||
</div> | ||
</div> | ||
|
||
</div> | ||
|
||
<div className="order-history-wrapper my-2"> | ||
<div className="heading d-flex justify-content-between"> | ||
<div className="order-number d-flex gap-3 align-items-center"> | ||
<span>Đơn hàng <span className="font-weight-700"> #1234567</span></span> | ||
|
||
<div className="favourite-tag d-flex gap-1 align-items-center"> | ||
<img src="/images/tag-01.svg" alt="" /> | ||
<span>Yêu thích</span> | ||
</div> | ||
</div> | ||
|
||
<div className="order-date"> | ||
Ngày: 26/07/2023 | ||
</div> | ||
</div> | ||
|
||
<div className="cart-history-info tab-restaurant d-flex"> | ||
<img className="" src="/images/food.png" alt="" /> | ||
<div className="detail px-3 d-flex flex-column flex-grow-1"> | ||
<div className="food-name">Mỳ Cá Cờ Sốt Yakitori x 1</div> | ||
<div className="cooking-method"> | ||
<span>Luộc <span className="normal-text">| Hành tây, tiêu xanh, cà chua, bắp, ngò rí, bơ chín và nước cốt chanh.</span></span> | ||
</div> | ||
<div className="description"> | ||
Ghi chú 1 Lorem ipsum Ghi chú 1 Lorem ipsum Ghi chú 1 Lorem ipsum Ghi chú 1 Lorem ipsum | ||
</div> | ||
<div className="by-chef"> | ||
<span>by <span className="by-chef-name">The Chef Town</span></span> | ||
</div> | ||
</div> | ||
<div className="cart-history-price"> | ||
160,000 đ | ||
</div> | ||
</div> | ||
|
||
<div className="delivery-status p-3 d-flex justify-content-between align-items-center"> | ||
<div className="d-flex gap-4 align-items-center"> | ||
<div className="delivery-status-text success">Giao hàng thành công</div> | ||
<div className="calo d-flex align-items-center"> | ||
<img src="/images/kalo.svg" alt="" /> | ||
<div >356 Kcal</div> | ||
</div> | ||
</div> | ||
<div className="d-flex delivery-status-group-actions"> | ||
<button className="delivery-action-button rating" type="button">Đánh giá</button> | ||
<button className="delivery-action-button" type="button">Mua lại</button> | ||
<button className="delivery-action-button" type="button">Xem chi tiết</button> | ||
|
||
</div> | ||
</div> | ||
</div> | ||
|
||
<div className="order-history-wrapper my-2"> | ||
<div className="heading d-flex justify-content-between"> | ||
<div className="order-number d-flex gap-3 align-items-center"> | ||
<span>Đơn hàng <span className="font-weight-700"> #5678910</span></span> | ||
|
||
<div className="favourite-tag d-flex gap-1 align-items-center"> | ||
<img src="/images/tag-01.svg" alt="" /> | ||
<span>Yêu thích</span> | ||
</div> | ||
</div> | ||
|
||
<div className="order-date"> | ||
Ngày: 26/07/2023 | ||
</div> | ||
</div> | ||
|
||
<div className="cart-history-info tab-restaurant d-flex"> | ||
<img className="" src="/images/food.png" alt="" /> | ||
<div className="detail px-3 d-flex flex-column flex-grow-1"> | ||
<div className="food-name">Mỳ Ý Pate x 2 </div> | ||
<div className="cooking-method"> | ||
<span>Luộc <span className="normal-text">| Hành tây, tiêu xanh, cà chua, bắp, ngò rí, bơ chín và nước cốt chanh.</span></span> | ||
</div> | ||
<div className="description"> | ||
Ghi chú 1 Lorem ipsum Ghi chú 1 Lorem ipsum Ghi chú 1 Lorem ipsum Ghi chú 1 Lorem ipsum | ||
</div> | ||
<div className="by-chef"> | ||
<span>by <span className="by-chef-name">The Chef Town</span></span> | ||
</div> | ||
</div> | ||
<div className="cart-history-price"> | ||
160,000 đ | ||
</div> | ||
</div> | ||
|
||
<div className="delivery-status p-3 d-flex justify-content-between align-items-center"> | ||
<div className="d-flex gap-4 align-items-center"> | ||
<div className="delivery-status-text success">Giao hàng thành công</div> | ||
<div className="calo d-flex align-items-center"> | ||
<img src="/images/kalo.svg" alt=""/> | ||
<div >356 Kcal</div> | ||
</div> | ||
<div className="rating-stars d-flex gap-1"> | ||
<img src="/images/star-icon.svg" alt=""/> | ||
<img src="/images/star-icon.svg" alt=""/> | ||
<img src="/images/star-icon.svg" alt=""/> | ||
<img src="/images/star-icon.svg" alt=""/> | ||
<img src="/images/star-icon.svg" alt=""/> | ||
</div> | ||
</div> | ||
<div className="d-flex delivery-status-group-actions"> | ||
|
||
<button className="delivery-action-button" type="button">Mua lại</button> | ||
<button className="delivery-action-button" type="button">Xem chi tiết</button> | ||
|
||
</div> | ||
</div> | ||
</div> | ||
|
||
<div className="order-history-wrapper my-2"> | ||
<div className="heading d-flex justify-content-between"> | ||
<div className="order-number d-flex gap-3 align-items-center"> | ||
<span>Đơn hàng <span className="font-weight-700"> #3857505</span></span> | ||
|
||
<div className="favourite-tag d-flex gap-1 align-items-center"> | ||
<img src="/images/tag-01.svg" alt="" /> | ||
<span>Yêu thích</span> | ||
</div> | ||
</div> | ||
|
||
<div className="order-date"> | ||
Ngày: 26/07/2023 | ||
</div> | ||
</div> | ||
|
||
<div className="cart-history-info tab-restaurant d-flex"> | ||
<img className="" src="/images/food.png" alt="" /> | ||
<div className="detail px-3 d-flex flex-column flex-grow-1"> | ||
<div className="food-name">Mỳ Cá Cờ Sốt Yakitori x 2 </div> | ||
<div className="cooking-method"> | ||
<span>Luộc <span className="normal-text">| Hành tây, tiêu xanh, cà chua, bắp, ngò rí, bơ chín và nước cốt chanh.</span></span> | ||
</div> | ||
<div className="description"> | ||
Ghi chú 1 Lorem ipsum Ghi chú 1 Lorem ipsum Ghi chú 1 Lorem ipsum Ghi chú 1 Lorem ipsum | ||
</div> | ||
<div className="by-chef"> | ||
<span>by <span className="by-chef-name">The Chef Town</span></span> | ||
</div> | ||
</div> | ||
<div className="cart-history-price"> | ||
160,000 đ | ||
</div> | ||
</div> | ||
|
||
<div className="delivery-status p-3 d-flex justify-content-between align-items-center"> | ||
<div className="d-flex gap-4 align-items-center"> | ||
<div className="delivery-status-text cancel">Hủy đơn hàng</div> | ||
</div> | ||
<div className="d-flex delivery-status-group-actions"> | ||
<button className="delivery-action-button" type="button">Mua lại</button> | ||
<button className="delivery-action-button" type="button">Xem chi tiết</button> | ||
|
||
</div> | ||
</div> | ||
</div> | ||
|
||
|
||
</div> | ||
</section> | ||
) | ||
} | ||
|
||
export default MyOrderPage; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import Header from '../../ui/header'; | ||
|
||
export default function Layout({children,}: {children: React.ReactNode;}) { | ||
return ( | ||
<div className="dark-mode"> | ||
{children} | ||
</div> | ||
) | ||
} |
Oops, something went wrong.