Skip to content

Commit

Permalink
Merge pull request #95 from thuongtruong1009/order-page
Browse files Browse the repository at this point in the history
feat: add order detail page
  • Loading branch information
thuongtruong1009 authored Jun 6, 2022
2 parents 1a566ad + e127880 commit ee973f5
Show file tree
Hide file tree
Showing 24 changed files with 766 additions and 849 deletions.
1 change: 0 additions & 1 deletion locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,6 @@ account:
order-no: No
order-name: Name
order-date: Date
order-status: Status
order-total: Total
order-action: Action
save-changes: Save changes
Expand Down
9 changes: 8 additions & 1 deletion src/components.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ declare module 'vue' {
CarbonLanguage: typeof import('~icons/carbon/language')['default']
CarbonMoon: typeof import('~icons/carbon/moon')['default']
CarbonSun: typeof import('~icons/carbon/sun')['default']
CarbonWarning: typeof import('~icons/carbon/warning')['default']
CASellerList: typeof import('./components/admin/CASellerList.vue')['default']
CBAccount: typeof import('./components/buyer/CBAccount.vue')['default']
CBBanner: typeof import('./components/buyer/CBBanner.vue')['default']
Expand All @@ -30,6 +31,7 @@ declare module 'vue' {
CBMenuItem: typeof import('./components/head/CBMenuItem.vue')['default']
CBMonthSale: typeof import('./components/buyer/CBMonthSale.vue')['default']
CBOurProducts: typeof import('./components/buyer/CBOurProducts.vue')['default']
CBreadcrumbNavigation: typeof import('./components/CBreadcrumbNavigation.vue')['default']
CBSearch: typeof import('./components/head/CBSearch.vue')['default']
CBService: typeof import('./components/buyer/CBService.vue')['default']
CBSwipper: typeof import('./components/buyer/CBSwipper.vue')['default']
Expand All @@ -43,7 +45,8 @@ declare module 'vue' {
CMap: typeof import('./components/CMap.vue')['default']
Counter: typeof import('./components/Counter.vue')['default']
CPagination: typeof import('./components/CPagination.vue')['default']
CProductCard: typeof import('./components/CProductCard.vue')['default']
CProductCardFlow: typeof import('./components/CProductCardFlow.vue')['default']
CProductCardGrid: typeof import('./components/CProductCardGrid.vue')['default']
CProgress: typeof import('./components/CProgress.vue')['default']
CSChooseCategory: typeof import('./components/seller/CSChooseCategory.vue')['default']
CSFooter: typeof import('./components/seller/CSFooter.vue')['default']
Expand Down Expand Up @@ -81,6 +84,7 @@ declare module 'vue' {
IBMinus: typeof import('./components/icons/product/IBMinus.vue')['default']
IBook: typeof import('./components/icons/about/IBook.vue')['default']
IBOrder: typeof import('./components/icons/account/IBOrder.vue')['default']
IBOrderArrowRight: typeof import('./components/icons/account/IBOrderArrowRight.vue')['default']
IBPassword: typeof import('./components/icons/auth/IBPassword.vue')['default']
IBPayment: typeof import('./components/icons/account/IBPayment.vue')['default']
IBPlus: typeof import('./components/icons/product/IBPlus.vue')['default']
Expand All @@ -92,6 +96,7 @@ declare module 'vue' {
IBShipping: typeof import('./components/icons/services/IBShipping.vue')['default']
IBSupport: typeof import('./components/icons/services/IBSupport.vue')['default']
IBThreeDot: typeof import('./components/icons/product/IBThreeDot.vue')['default']
IBTrackOrder: typeof import('./components/icons/account/IBTrackOrder.vue')['default']
IBUnlock: typeof import('./components/icons/auth/IBUnlock.vue')['default']
IBUsername: typeof import('./components/icons/auth/IBUsername.vue')['default']
ICake: typeof import('./components/icons/ICake.vue')['default']
Expand Down Expand Up @@ -172,6 +177,8 @@ declare module 'vue' {
PSRegister: typeof import('./components/partterns/seller/PSRegister.vue')['default']
README: typeof import('./components/README.md')['default']
RMenu: typeof import('./components/header/RMenu.vue')['default']
RProductCardGrid: typeof import('./components/rendering/RProductCardGrid.vue')['default']
RProductSearch: typeof import('./components/rendering/RProductSearch.vue')['default']
SHead: typeof import('./components/seller/SHead.vue')['default']
SLMenu: typeof import('./components/seller/SLMenu.vue')['default']
}
Expand Down
148 changes: 148 additions & 0 deletions src/components/CBreadcrumbNavigation.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,148 @@
<template>
<!-- a simple div with some links -->
<div class="breadcrumb">
<a href="#" class="active">Browse</a>
<a href="#">Compare</a>
<a href="#">Order Confirmation</a>
<a href="#">Checkout</a>
</div>
<br><br>
<!-- another version - flat style with animated hover effect -->
<div class="breadcrumb flat">
<a href="#" class="active">Browse</a>
<a href="#">Compare</a>
<a href="#">Order Confirmation</a>
<a href="#">Checkout</a>
</div>

<!-- Prefixfree -->
<!-- <script src="http://thecodeplayer.com/uploads/js/prefixfree-1.0.7.js" type="text/javascript" type="text/javascript" /> -->
</template>

<style scoped>
@import url(https://fonts.googleapis.com/css?family=Merriweather+Sans);
* {margin: 0; padding: 0;}
html, body {min-height: 100%;}
body {
text-align: center;
padding-top: 100px;
background: #689976;
background: linear-gradient(#689976, #ACDACC);
font-family: 'Merriweather Sans', arial, verdana;
}
.breadcrumb {
/*centering*/
display: inline-block;
box-shadow: 0 0 15px 1px rgba(0, 0, 0, 0.35);
overflow: hidden;
border-radius: 5px;
/*Lets add the numbers for each link using CSS counters. flag is the name of the counter. to be defined using counter-reset in the parent element of the links*/
counter-reset: flag;
}
.breadcrumb a {
text-decoration: none;
outline: none;
display: block;
float: left;
font-size: 12px;
line-height: 36px;
color: white;
/*need more margin on the left of links to accomodate the numbers*/
padding: 0 10px 0 60px;
background: #666;
background: linear-gradient(#666, #333);
position: relative;
}
/*since the first link does not have a triangle before it we can reduce the left padding to make it look consistent with other links*/
.breadcrumb a:first-child {
padding-left: 46px;
border-radius: 5px 0 0 5px; /*to match with the parent's radius*/
}
.breadcrumb a:first-child:before {
left: 14px;
}
.breadcrumb a:last-child {
border-radius: 0 5px 5px 0; /*this was to prevent glitches on hover*/
padding-right: 20px;
}
/*hover/active styles*/
.breadcrumb a.active, .breadcrumb a:hover{
background: #333;
background: linear-gradient(#333, #000);
}
.breadcrumb a.active:after, .breadcrumb a:hover:after {
background: #333;
background: linear-gradient(135deg, #333, #000);
}
/*adding the arrows for the breadcrumbs using rotated pseudo elements*/
.breadcrumb a:after {
content: '';
position: absolute;
top: 0;
right: -18px; /*half of square's length*/
/*same dimension as the line-height of .breadcrumb a */
width: 36px;
height: 36px;
/*as you see the rotated square takes a larger height. which makes it tough to position it properly. So we are going to scale it down so that the diagonals become equal to the line-height of the link. We scale it to 70.7% because if square's:
length = 1; diagonal = (1^2 + 1^2)^0.5 = 1.414 (pythagoras theorem)
if diagonal required = 1; length = 1/1.414 = 0.707*/
transform: scale(0.707) rotate(45deg);
/*we need to prevent the arrows from getting buried under the next link*/
z-index: 1;
/*background same as links but the gradient will be rotated to compensate with the transform applied*/
background: #666;
background: linear-gradient(135deg, #666, #333);
/*stylish arrow design using box shadow*/
box-shadow:
2px -2px 0 2px rgba(0, 0, 0, 0.4),
3px -3px 0 2px rgba(255, 255, 255, 0.1);
/*
5px - for rounded arrows and
50px - to prevent hover glitches on the border created using shadows*/
border-radius: 0 5px 0 50px;
}
/*we dont need an arrow after the last link*/
.breadcrumb a:last-child:after {
content: none;
}
/*we will use the :before element to show numbers*/
.breadcrumb a:before {
content: counter(flag);
counter-increment: flag;
/*some styles now*/
border-radius: 100%;
width: 20px;
height: 20px;
line-height: 20px;
margin: 8px 0;
position: absolute;
top: 0;
left: 30px;
background: #444;
background: linear-gradient(#444, #222);
font-weight: bold;
}
.flat a, .flat a:after {
background: white;
color: black;
transition: all 0.5s;
}
.flat a:before {
background: white;
box-shadow: 0 0 0 1px #ccc;
}
.flat a:hover, .flat a.active,
.flat a:hover:after, .flat a.active:after{
background: #9EEB62;
}
</style>
Loading

1 comment on commit ee973f5

@vercel
Copy link

@vercel vercel bot commented on ee973f5 Jun 6, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.