Skip to content
This repository has been archived by the owner on Jul 18, 2024. It is now read-only.

YSHOP2-100: COD-Theme > Integrate the new design of Thank you page #213

Merged
merged 8 commits into from
Feb 27, 2023
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions assets/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,25 @@ button:focus {
margin-top: 6px;
}

.yc-btn-secondary--large {
border: 1px solid var(--yc-primary-color);
color: var(--yc-primary-color);
padding: 14px 140px;
border-radius: 4px;
display: flex;
font-weight: 700;
font-size: 18px;
justify-content: center;
align-items: center;
gap: 10px;
width: 100%;
}
.yc-btn-secondary--large:hover {
background: var(--yc-primary-color);
color: white;
transition: all 0.2s ease-in;
}

[dir=rtl] .yc-btn {
flex-direction: row-reverse;
}
Expand Down
185 changes: 58 additions & 127 deletions assets/thankyou.css
Original file line number Diff line number Diff line change
@@ -1,162 +1,93 @@
.thankyou-wrapper {
.thankyou-page-container {
max-width: 440px;
width: 100%;
margin: 0 auto;
}
@media screen and (max-width: 768px) {
.thankyou-page-container {
padding: 0 16px;
}
}
.thankyou-page-container .thankyou-wrapper {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.thankyou-wrapper .content-wrapper {
.thankyou-page-container .thankyou-wrapper .content-wrapper {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 10px;
}
.thankyou-wrapper .content-wrapper .title {
font-size: 2rem;
.thankyou-page-container .thankyou-wrapper .content-wrapper .heading {
line-height: 42px;
}
@media (min-width: 768px) {
.thankyou-wrapper .content-wrapper .title {
font-size: 2.7rem;
}
}
.thankyou-wrapper .content-wrapper .subtitle {
opacity: 0.75;
font-size: 1.2rem;
.thankyou-page-container .thankyou-wrapper .content-wrapper .heading .title {
display: block;
}
@media (min-width: 768px) {
.thankyou-wrapper .content-wrapper .subtitle {
font-size: 1.5rem;
}
}
.thankyou-wrapper .content-wrapper .description {
.thankyou-page-container .thankyou-wrapper .content-wrapper .description {
margin-top: 15px;
opacity: 0.9;
font-size: 1.3rem;
text-align: center;
font-size: 15px;
font-weight: 400;
line-height: 1.5rem;
}
@media (min-width: 768px) {
.thankyou-wrapper .content-wrapper .description {
font-size: 1.5rem;
.thankyou-page-container .thankyou-wrapper .content-wrapper .description {
font-size: 16px;
line-height: 2rem;
}
}
.thankyou-wrapper .content-wrapper .description .ql-align-center {
.thankyou-page-container .thankyou-wrapper .content-wrapper .description .ql-align-center {
text-align: center;
}
.thankyou-wrapper .content-wrapper .yc-btn {
.thankyou-page-container .thankyou-wrapper .content-wrapper .yc-btn {
margin-top: 2rem;
}

.order-details {
margin: 2rem auto;
max-width: 600px;
}
.order-details .title {
font-size: 1.3rem;
margin: 0 0 1rem;
.thankyou-page-container .order-details {
border: 1px solid #EBEBEB;
padding: 24px 28px;
border-radius: 4px;
}
.order-details .table-content .head {
display: grid;
grid-template-columns: 1fr;
border: var(--yc-main-border);
background-color: rgba(0, 0, 0, 0.03);
.thankyou-page-container .order-details h2 {
font-weight: 600;
line-height: 22px;
color: #000000;
font-weight: 700;
}
@media (min-width: 768px) {
.order-details .table-content .head {
grid-template-columns: repeat(3, 1fr);
align-items: center;
}
}
.order-details .table-content .head .item {
.thankyou-page-container .order-details .table-content .head {
display: flex;
flex-direction: row;
margin-top: 15px;
justify-content: space-between;
gap: 5px;
border-top: var(--yc-main-border);
border-bottom: var(--yc-main-border);
padding: 10px 17px;
}
@media (min-width: 768px) {
.order-details .table-content .head .item {
flex-direction: column;
border: none;
border-right: var(--yc-main-border);
border-left: var(--yc-main-border);
}
}
.order-details .table-content .head .item:first-child {
border: none;
}
.order-details .table-content .head .item:last-child {
border: none;
}
.order-details .table-content .head .item .label {
font-size: 1.1rem;
font-weight: 500;
}
.order-details .table-content .summary {
margin-top: 10px;
align-items: center;
}
.order-details .table-content .summary table {
border: 1px solid #ccc;
border-collapse: collapse;
margin: 0;
padding: 0;
width: 100%;
table-layout: fixed;
.thankyou-page-container .order-details .table-content .head .item {
font-weight: 400;
font-size: 14px;
}
.order-details .table-content .summary table caption {
font-size: 1.5em;
margin: 0.5em 0 0.75em;
.thankyou-page-container .order-details .table-content .head .data-item {
font-weight: 700;
font-size: 14px;
}
.order-details .table-content .summary table tr {
background-color: #f8f8f8;
border: 1px solid #ddd;
padding: 0.35em;
.thankyou-page-container .order-details .table-content .total-price-head {
display: flex;
margin-top: 20px;
padding-top: 15px;
justify-content: space-between;
align-items: center;
border-top: 1px solid #EBEBEB;
}
.order-details .table-content .summary table th,
.order-details .table-content .summary table td {
padding: 0.625em;
text-align: unset;
.thankyou-page-container .order-details .table-content .total-price-head .item {
font-weight: 700;
line-height: 22px;
}
.order-details .table-content .summary table th {
font-weight: 500;
font-size: 0.85em;
.thankyou-page-container .order-details .table-content .total-price-head .data-item {
font-weight: 700;
font-size: 16px;
color: var(--yc-primary-color);
}
@media screen and (max-width: 768px) {
.order-details .table-content .summary table {
border: 0;
}
.order-details .table-content .summary table caption {
font-size: 1.3em;
}
.order-details .table-content .summary table thead {
border: none;
clip: rect(0 0 0 0);
height: 1px;
margin: -1px;
overflow: hidden;
padding: 0;
position: absolute;
width: 1px;
}
.order-details .table-content .summary table tr {
display: block;
margin-bottom: 0.625em;
}
.order-details .table-content .summary table td {
border-bottom: var(--yc-main-border);
display: block;
font-size: 0.8em;
text-align: right;
}
.order-details .table-content .summary table td::before {
content: attr(data-label);
float: left;
font-weight: 500;
text-transform: uppercase;
}
.order-details .table-content .summary table td:last-child {
border-bottom: 0;
}
.thankyou-page-container .home-page {
margin-top: 50px;
}
10 changes: 5 additions & 5 deletions locales/ar.default.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,13 @@
"title": "شكرا",
"subtitle": "تم استلام طلبك.",
"description": "سيتصل بك فريقنا لتأكيد طلبك",
"return_cta": "عودة إلى المتجر",
"return_cta": "الصفحة الرئيسية ",
"details": {
"title": "تفاصيل الطلب",
"title": "ملخص الفاتورة",
"payment_status": "حالة الدفع",
"shipping_cost": "تكلفة الشحن",
"total": "المجموع",
"product": "منتج",
"shipping_cost": "الشحن والتسليم",
"total": "إجمالي المبلغ",
"product": "السلع",
"one_piece_price": "سعر قطعة واحدة",
"quantity": "الكمية"
}
Expand Down
Loading