@@ -4,14 +4,13 @@ import backgroundImageTablet from './images/background-tablet-min.png';
4
4
import backgroundImageDeskV2 from './images/backgroundImageDesk-V2-1x.png' ;
5
5
import backgroundImageDeskV22x from './images/backgroundImageDesk-V2-2x.png' ;
6
6
7
- import girtWithDogMob1x from "./images/girlWithDog_1x-mobile-min.png"
8
- import girtWithDogMob2x from "./images/girlWithDog_2x-mobile-min.png"
9
- import girtWithDogTab1x from "./images/girlWithDog_1x-tablet-min.png"
10
- import girtWithDogTab2x from "./images/girlWithDog_2x-tablet-min.png"
11
- import girtWithDogDesk1x from "./images/girlWithDog_1x-desktop-min.png"
12
- import girtWithDogDesk2x from "./images/girlWithDog_2x-desktop-min.png"
13
- import heart from "./images/heart-min.png"
14
-
7
+ import girtWithDogMob1x from './images/girlWithDog_1x-mobile-min.png' ;
8
+ import girtWithDogMob2x from './images/girlWithDog_2x-mobile-min.png' ;
9
+ import girtWithDogTab1x from './images/girlWithDog_1x-tablet-min.png' ;
10
+ import girtWithDogTab2x from './images/girlWithDog_2x-tablet-min.png' ;
11
+ import girtWithDogDesk1x from './images/girlWithDog_1x-desktop-min.png' ;
12
+ import girtWithDogDesk2x from './images/girlWithDog_2x-desktop-min.png' ;
13
+ import heart from './images/heart-min.png' ;
15
14
16
15
export const Main = styled . main `
17
16
margin: 0 auto;
@@ -36,37 +35,35 @@ export const Text = styled.h1`
36
35
}
37
36
38
37
@media screen and (min-width: 1280px) {
39
- padding: 40px 0 0 16px;
40
- max-width: 604px;
41
- margin-right: auto;
38
+ padding: 40px 0 0 16px;
39
+ max-width: 604px;
40
+ margin-right: auto;
42
41
}
43
42
` ;
44
43
45
44
export const Background = styled . section `
46
- background: url(${ girtWithDogMob1x } ), url(${ backgroundImageMob } ) ;
45
+ background: url(${ girtWithDogMob1x } ), url(${ backgroundImageMob } );
47
46
height: calc(100vh - 59px);
48
47
background-position: bottom, bottom -10px right -200px;
49
48
background-repeat: no-repeat;
50
49
51
- @media (min-device-pixel-ratio: 2),
50
+ @media (min-device-pixel-ratio: 2),
52
51
(min-resolution: 192dpi),
53
52
(min-resolution: 2dppx) {
54
53
background-image: url(${ girtWithDogMob2x } ), url(${ backgroundImageMob } );
55
54
}
56
55
57
56
@media screen and (min-width: 768px) {
58
57
background-image: url(${ girtWithDogTab1x } ), url(${ backgroundImageTablet } );
59
- background-position: bottom, 22% calc(9vh + 100%) ;
58
+ background-position: bottom, 22% calc(9vh + 100%);
60
59
background-repeat: no-repeat;
61
60
height: calc(100vh - 75px);
62
-
63
61
64
62
@media (min-device-pixel-ratio: 2),
65
63
(min-resolution: 192dpi),
66
64
(min-resolution: 2dppx) {
67
65
background-image: url(${ girtWithDogTab2x } ), url(${ backgroundImageTablet } );
68
66
}
69
-
70
67
}
71
68
72
69
/* @media screen and (min-width: 1024px) {
@@ -75,40 +72,41 @@ export const Background = styled.section`
75
72
background-repeat: no-repeat;
76
73
background-size: contain;
77
74
height: calc(100vh - 99px);
78
- } */
75
+ } */
79
76
80
77
@media screen and (min-width: 1280px) {
81
78
margin-top: 60px;
82
- background: url(${ girtWithDogDesk1x } ), url(${ backgroundImageDeskV2 } );
79
+ background: url(${ girtWithDogDesk1x } ), url(${ backgroundImageDeskV2 } );
83
80
background-position: bottom right, bottom -10px right -25px;
84
81
background-repeat: no-repeat;
85
82
background-size: contain;
86
83
height: calc(100vh - 130px);
87
84
88
- &:after {
85
+ &:after {
89
86
content: '';
90
87
position: absolute;
91
88
width: 92px;
92
89
height: 89px;
93
90
background-image: url(${ heart } );
94
91
top: calc(50% - 200px);
95
92
left: calc(50% + 80px);
96
- }
93
+ }
97
94
98
- @media (min-device-pixel-ratio: 2),
95
+ @media (min-device-pixel-ratio: 2),
99
96
(min-resolution: 192dpi),
100
97
(min-resolution: 2dppx) {
101
- background-image: url(${ girtWithDogDesk2x } ), url(${ backgroundImageDeskV22x } );
98
+ background-image: url(${ girtWithDogDesk2x } ),
99
+ url(${ backgroundImageDeskV22x } );
102
100
}
103
101
}
104
- ` ;
102
+ ` ;
105
103
106
104
export const SectionWrapper = styled . div `
107
105
width: 100%;
108
106
margin-right: auto;
109
107
margin-left: auto;
110
108
@media screen and (min-width: 320px) {
111
- width: 320px
109
+ width: 320px;
112
110
}
113
111
@media screen and (min-width: 768px) {
114
112
width: 768px;
@@ -117,4 +115,3 @@ export const SectionWrapper = styled.div`
117
115
width: 1280px;
118
116
}
119
117
` ;
120
-
0 commit comments