File tree 3 files changed +27
-20
lines changed
2-copy-of-code/lesson-06/ecommerce-project/src/pages
3 files changed +27
-20
lines changed File renamed without changes.
Original file line number Diff line number Diff line change
1
+ import './CheckoutHeader.css' ;
2
+
3
+ export function CheckoutHeader ( ) {
4
+ return (
5
+ < div className = "checkout-header" >
6
+ < div className = "header-content" >
7
+ < div className = "checkout-header-left-section" >
8
+ < a href = "/" >
9
+ < img className = "logo" src = "images/logo.png" />
10
+ < img className = "mobile-logo" src = "images/mobile-logo.png" />
11
+ </ a >
12
+ </ div >
13
+
14
+ < div className = "checkout-header-middle-section" >
15
+ Checkout (< a className = "return-to-home-link"
16
+ href = "/" > 3 items</ a > )
17
+ </ div >
18
+
19
+ < div className = "checkout-header-right-section" >
20
+ < img src = "images/icons/checkout-lock-icon.png" />
21
+ </ div >
22
+ </ div >
23
+ </ div >
24
+ ) ;
25
+ }
Original file line number Diff line number Diff line change 1
- import './checkout-header.css ' ;
1
+ import { CheckoutHeader } from './CheckoutHeader ' ;
2
2
import './CheckoutPage.css' ;
3
3
4
4
export function CheckoutPage ( ) {
5
5
return (
6
6
< >
7
7
< title > Checkout</ title >
8
8
9
- < div className = "checkout-header" >
10
- < div className = "header-content" >
11
- < div className = "checkout-header-left-section" >
12
- < a href = "/" >
13
- < img className = "logo" src = "images/logo.png" />
14
- < img className = "mobile-logo" src = "images/mobile-logo.png" />
15
- </ a >
16
- </ div >
17
-
18
- < div className = "checkout-header-middle-section" >
19
- Checkout (< a className = "return-to-home-link"
20
- href = "/" > 3 items</ a > )
21
- </ div >
22
-
23
- < div className = "checkout-header-right-section" >
24
- < img src = "images/icons/checkout-lock-icon.png" />
25
- </ div >
26
- </ div >
27
- </ div >
9
+ < CheckoutHeader />
28
10
29
11
< div className = "checkout-page" >
30
12
< div className = "page-title" > Review your order</ div >
You can’t perform that action at this time.
0 commit comments