1
1
import styled from 'styled-components' ;
2
2
import backgroundImageMob from './images/background-mobile-min.png' ;
3
3
import backgroundImageTablet from './images/background-tablet-min.png' ;
4
- import backgroundImageDesk from './images/background-desktopE5-min.png' ;
4
+ import backgroundImageDeskV2 from './images/backgroundImageDesk-V2-1x.png' ;
5
+ import backgroundImageDeskV22x from './images/backgroundImageDesk-V2-2x.png' ;
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
+
5
15
6
16
export const Main = styled . main `
7
17
margin: 0 auto;
8
-
9
- @media screen and (min-width: 1280px) {
10
- max-width: 1280px;
11
- margin-top: 30px;
12
- }
18
+ width: 100%;
13
19
` ;
14
20
15
21
export const Text = styled . h1 `
@@ -18,113 +24,97 @@ export const Text = styled.h1`
18
24
line-height: 1.38;
19
25
font-family: ${ p => p . theme . fonts . body } ;
20
26
padding: 60px 20px 60px 20px;
27
+ max-width: 320px;
21
28
22
29
@media (min-width: 768px) {
23
30
font-size: 68px;
24
31
line-height: 1.47;
25
- padding: 88px 32px 118px 32px;
32
+ padding: 88px 0px 118px 32px;
33
+ max-width: 607px;
34
+ margin-right: auto;
35
+ max-width: 620px;
26
36
}
27
37
28
- @media screen and (min-width: 1024px) {
29
- padding: 32px 0 0 0;
30
- width: 100%;
38
+ @media screen and (min-width: 1280px) {
39
+ padding: 40px 0 0 16px;
40
+ max-width: 604px;
41
+ margin-right: auto;
31
42
}
32
43
` ;
33
44
34
- export const Container = styled . div `
35
- background: url(${ backgroundImageMob } );
36
- background-position: bottom -15px right calc(50vw - 375px);
37
- background-repeat: no-repeat;
45
+ export const Background = styled . section `
46
+ background: url(${ girtWithDogMob1x } ), url(${ backgroundImageMob } ) ;
38
47
height: calc(100vh - 59px);
48
+ background-position: bottom, bottom -10px right -200px;
49
+ background-repeat: no-repeat;
39
50
40
- display: flex;
41
- flex-direction: column;
42
- justify-content: flex-end;
51
+ @media (min-device-pixel-ratio: 2),
52
+ (min-resolution: 192dpi),
53
+ (min-resolution: 2dppx) {
54
+ background-image: url(${ girtWithDogMob2x } ), url(${ backgroundImageMob } );
55
+ }
43
56
44
57
@media screen and (min-width: 768px) {
45
- flex-direction: column;
46
- background: url(${ backgroundImageTablet } );
47
- background-position: 22% calc(9vh + 100%);
58
+ background-image: url(${ girtWithDogTab1x } ), url(${ backgroundImageTablet } );
59
+ background-position: bottom, 22% calc(9vh + 100%) ;
48
60
background-repeat: no-repeat;
49
- height: calc(100vh - 74px);
61
+ height: calc(100vh - 75px);
62
+
63
+
64
+ @media (min-device-pixel-ratio: 2),
65
+ (min-resolution: 192dpi),
66
+ (min-resolution: 2dppx) {
67
+ background-image: url(${ girtWithDogTab2x } ), url(${ backgroundImageTablet } );
68
+ }
69
+
50
70
}
51
71
52
- @media screen and (min-width: 1024px) {
53
- padding-top: 40px;
54
-
55
- background: url(${ backgroundImageTablet } );
56
- background-position: 60% calc(22vh + 100%);
72
+ /* @media screen and (min-width: 1024px) {
73
+ background: url(${ girtWithDogTab1x } , url(${ backgroundImageDeskV2 } );
74
+ background-position: bottom, 60% calc(22vh + 100%);
57
75
background-repeat: no-repeat;
58
76
background-size: contain;
59
77
height: calc(100vh - 99px);
78
+ } */
60
79
61
- display: flex;
62
- flex-direction: column;
63
- justify-content: flex-end;
64
- align-items: center;
65
- }
66
- @media screen and (min-width: 1180px) {
67
- padding-top: 40px;
68
- flex-direction: column;
69
- background: url(${ backgroundImageDesk } );
70
- background-position: 100% calc(10vh + 100%);
80
+ @media screen and (min-width: 1280px) {
81
+ margin-top: 60px;
82
+ background: url(${ girtWithDogDesk1x } ), url(${ backgroundImageDeskV2 } );
83
+ background-position: bottom right, bottom -10px right -25px;
71
84
background-repeat: no-repeat;
72
85
background-size: contain;
86
+ height: calc(100vh - 130px);
87
+
88
+ &:after {
89
+ content: '';
90
+ position: absolute;
91
+ width: 92px;
92
+ height: 89px;
93
+ background-image: url(${ heart } );
94
+ top: calc(50% - 200px);
95
+ left: calc(50% + 80px);
96
+ }
97
+
98
+ @media (min-device-pixel-ratio: 2),
99
+ (min-resolution: 192dpi),
100
+ (min-resolution: 2dppx) {
101
+ background-image: url(${ girtWithDogDesk2x } ), url(${ backgroundImageDeskV22x } );
102
+ }
73
103
}
74
- ` ;
75
- export const ImageWrapper = styled . div `
76
- display: none;
77
-
78
- @media (min-width: 768px) {
79
- display: flex;
80
- justify-content: center;
81
- position: relative;
82
- }
83
- ` ;
104
+ ` ;
84
105
85
106
export const SectionWrapper = styled . div `
86
- display: flex;
87
- flex-direction: column;
88
- justify-content: flex-end;
89
-
90
- @media screen and (min-width: 1024px) {
91
- flex-direction: row;
92
- padding: 0 16px;
93
- justify-content: flex-end;
94
- }
95
- ` ;
96
-
97
- export const MobileWrapper = styled . div `
98
- justify-content: center;
99
- display: flex;
100
-
101
- @media (min-width: 768px) {
102
- display: none;
103
- }
104
- ` ;
105
- export const Image = styled . img `
106
- display: flex;
107
107
width: 100%;
108
-
109
- @media (min-width: 768px) {
110
- max -width: 645px;
111
- width: 100%;
108
+ margin-right: auto;
109
+ margin-left: auto;
110
+ @media screen and (min -width: 320px) {
111
+ width: 320px
112
112
}
113
- @media screen and (min-width: 1024px ) {
114
- width: 590px ;
113
+ @media screen and (min-width: 768px ) {
114
+ width: 768px ;
115
115
}
116
- @media screen and (min-width: 1180px ) {
117
- width: 590px ;
116
+ @media screen and (min-width: 1280px ) {
117
+ width: 1280px ;
118
118
}
119
119
` ;
120
120
121
- export const HeartWrapper = styled . div `
122
- display: none;
123
-
124
- @media screen and (min-width: 1180px) {
125
- display: flex;
126
- position: absolute;
127
- left: 48px;
128
- top: 43px;
129
- }
130
- ` ;
0 commit comments