Skip to content

Commit

Permalink
my order
Browse files Browse the repository at this point in the history
  • Loading branch information
ntnhan90 committed Jan 12, 2024
1 parent 68fa9da commit b101e1a
Show file tree
Hide file tree
Showing 12 changed files with 696 additions and 0 deletions.
5 changes: 5 additions & 0 deletions public/images/calendar.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/chef-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions public/images/chevron-down.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/food.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions public/images/kalo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions public/images/tag-01.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions src/app/order/my-order-food/layout.tsx
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>
)
}
223 changes: 223 additions & 0 deletions src/app/order/my-order-food/page.tsx
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;
9 changes: 9 additions & 0 deletions src/app/order/my-order/layout.tsx
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>
)
}
Loading

0 comments on commit b101e1a

Please sign in to comment.