-
Notifications
You must be signed in to change notification settings - Fork 2
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
10 changed files
with
132 additions
and
6 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,50 @@ | ||
import React from 'react'; | ||
import styles from './order-status-tracker.module.scss'; | ||
import donePath from '@images/circle-ok-min.svg'; | ||
import packagingPath from '@images/cart-add-min.svg'; | ||
import deliveringPath from '@images/car-alt-min.svg'; | ||
import deliveredPath from '@images/home-alt-min.svg'; | ||
|
||
const OrderStatusTracker: React.FC = () => { | ||
return ( | ||
<ul className={styles.orderStatusTracker}> | ||
<li className={styles.orderStatusTracker__item}> | ||
<img | ||
src={donePath} | ||
alt="Заказ принят" | ||
className={styles.orderStatusTracker__icon} | ||
/> | ||
<p className={styles.orderStatusTracker__status}>Заказ принят</p> | ||
</li> | ||
<li className={styles.orderStatusTracker__spacer} /> | ||
<li className={styles.orderStatusTracker__item}> | ||
<img | ||
src={packagingPath} | ||
alt="Сборка заказа" | ||
className={styles.orderStatusTracker__icon} | ||
/> | ||
<p className={styles.orderStatusTracker__status}>Сборка заказа</p> | ||
</li> | ||
<li className={styles.orderStatusTracker__spacer} /> | ||
<li className={styles.orderStatusTracker__item}> | ||
<img | ||
src={deliveringPath} | ||
alt="Передан в доставку" | ||
className={styles.orderStatusTracker__icon} | ||
/> | ||
<p className={styles.orderStatusTracker__status}>Передан в доставку</p> | ||
</li> | ||
<li className={styles.orderStatusTracker__spacer} /> | ||
<li className={styles.orderStatusTracker__item}> | ||
<img | ||
src={deliveredPath} | ||
alt="Успешно доставлено" | ||
className={styles.orderStatusTracker__icon} | ||
/> | ||
<p className={styles.orderStatusTracker__status}>Успешно доставлено</p> | ||
</li> | ||
</ul> | ||
); | ||
}; | ||
|
||
export default OrderStatusTracker; |
72 changes: 72 additions & 0 deletions
72
src/components/order-status-tracker/order-status-tracker.module.scss
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,72 @@ | ||
@use '@scss/mixins' as *; | ||
@use '@scss/variables' as *; | ||
|
||
.orderStatusTracker { | ||
padding: 0; | ||
margin: 0; | ||
display: flex; | ||
flex-direction: row; | ||
font-family: $ubuntu-font; | ||
gap: 16px; | ||
font-size: 20px; | ||
font-weight: 400; | ||
line-height: 140%; | ||
|
||
@media screen and (width <= 1024px) { | ||
font-size: 14px; | ||
} | ||
|
||
@media screen and (width <= 768px) { | ||
font-size: 14px; | ||
flex-direction: column; | ||
gap: 8px; | ||
} | ||
} | ||
|
||
.orderStatusTracker__item { | ||
max-width: 120px; | ||
display: flex; | ||
flex-direction: column; | ||
gap: 12px; | ||
align-items: center; | ||
text-align: center; | ||
|
||
@media screen and (width <= 1024px) { | ||
max-width: 80px; | ||
} | ||
|
||
@media screen and (width <= 768px) { | ||
flex-direction: row; | ||
gap: 16px; | ||
max-width: 100%; | ||
} | ||
} | ||
|
||
.orderStatusTracker__icon { | ||
width: 80px; | ||
aspect-ratio: 1; | ||
|
||
@media screen and (width <= 1024px) { | ||
width: 60px; | ||
} | ||
|
||
@media screen and (width <= 768px) { | ||
width: 40px; | ||
} | ||
} | ||
|
||
.orderStatusTracker__status { | ||
padding: 0; | ||
margin: 0; | ||
} | ||
|
||
.orderStatusTracker__spacer { | ||
background: no-repeat center url('/src/assets/images/spacer-min.svg'); | ||
width: 64px; | ||
|
||
@media screen and (width <= 768px) { | ||
background: no-repeat center url('/src/assets/images/vspacer-min.svg'); | ||
width: 40px; | ||
height: 20px; | ||
} | ||
} |
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
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