@@ -16,98 +16,133 @@ body {
16
16
font-family : "Manrope" , sans-serif;
17
17
background-color : # ecf2f8 ;
18
18
display : grid;
19
- grid-template-rows : 1fr auto; }
19
+ grid-template-rows : 1fr auto;
20
+ position : relative; }
20
21
21
22
.main {
22
23
display : flex;
23
24
align-items : center;
24
25
justify-content : center; }
25
26
26
- . container {
27
- width : 85 % ;
28
- max-width : 400 px ; }
27
+ @media ( min-width : 768 px ) {
28
+ . container {
29
+ max-width : 750 px ; } }
29
30
30
31
.card {
31
32
width : 100% ;
33
+ max-width : 32rem ;
32
34
background-color : white;
35
+ box-shadow : 0 2rem 3rem 0.25rem rgba (158 , 175 , 194 , 0.2 );
33
36
border-radius : 1rem ;
34
37
overflow : hidden;
35
- position : relative; }
36
- .card__img {
37
- width : 100% ; }
38
+ position : relative;
39
+ display : flex;
40
+ align-items : center;
41
+ flex-direction : column;
42
+ justify-content : center; }
43
+ @media (min-width : 768px ) {
44
+ .card {
45
+ max-width : 75rem ;
46
+ flex-direction : row;
47
+ position : absolute;
48
+ top : 50% ;
49
+ left : 50% ;
50
+ transform : translate (-50% , -50% ); } }
51
+ .card__hero {
52
+ width : 100% ;
53
+ height : 21rem ;
54
+ background-image : url(../ images/drawers.jpg);
55
+ background-size : cover;
56
+ transform : translateY (-1.4rem ); }
57
+ @media (min-width : 768px ) {
58
+ .card__hero {
59
+ width : 65rem ;
60
+ height : 29rem ;
61
+ transform : translateY (0 ); } }
38
62
.card__content {
39
- padding : 3rem 3rem 2rem 3rem ; }
40
- .card__content-heading {
63
+ padding : 2rem 3rem ; }
64
+ @media (min-width : 768px ) {
65
+ .card__content {
66
+ width : 90rem ;
67
+ height : 29rem ;
68
+ padding : 4rem ; } }
69
+ .card__heading {
70
+ color : # 6d7f97 ;
71
+ font-size : 1.6rem ;
72
+ margin-bottom : 1.5rem ; }
73
+ @media (min-width : 768px ) {
74
+ .card__heading {
75
+ font-size : 2rem ; } }
76
+ .card__description {
77
+ color : # 9eafc2 ;
78
+ font-size : 1.27rem ;
79
+ font-weight : 700 ;
80
+ line-height : 1.6 ;
81
+ margin-bottom : 3rem ; }
82
+ @media (min-width : 768px ) {
83
+ .card__description {
84
+ margin-bottom : 2rem ; } }
85
+ .card__info {
86
+ width : 100% ;
87
+ display : flex;
88
+ align-items : center;
89
+ justify-content : flex-start; }
90
+ .card__info-img {
91
+ width : 4rem ;
92
+ border-radius : 50% ; }
93
+ .card__info-box {
94
+ margin : 0 auto 0 2rem ; }
95
+ .card__info-name {
41
96
color : # 6d7f97 ;
42
- font-size : 1.6rem ;
43
- margin-bottom : 1.5rem ; }
44
- .card__content-text {
45
- color : # 9eafc2 ;
46
- font-size : 1.27rem ;
97
+ font-size : 1.4rem ;
47
98
font-weight : 700 ;
48
- line-height : 1.6 ;
49
- margin-bottom : 3rem ; }
50
- .card__content-info {
99
+ margin-bottom : 0.2rem ; }
100
+ .card__info-date {
101
+ color : # 9eafc2 ;
102
+ font-size : 1.4rem ;
103
+ font-family : "Manrope" , sans-serif; }
104
+ .card__info-container {
51
105
width : 100% ;
106
+ height : 12% ;
107
+ background-color : # 48556a ;
108
+ position : absolute;
109
+ bottom : 0 ;
110
+ left : 0 ;
111
+ padding : 1rem ;
52
112
display : flex;
53
113
align-items : center;
54
- justify-content : flex-start; }
55
- .card__content-info--img {
56
- width : 4rem ;
114
+ justify-content : space-around; }
115
+ .card__info-text {
116
+ color : # 9eafc2 ;
117
+ text-transform : uppercase;
118
+ letter-spacing : 0.5rem ;
119
+ font-size : 1.3rem ; }
120
+ .card__info-icons {
121
+ fill : # ecf2f8 ;
122
+ margin : 0.4rem 0 0 -4rem ; }
123
+ .card__info-icons > * : hover {
124
+ fill : # 9eafc2 ;
125
+ transition : all 0.3s ; }
126
+ .card__info-icon {
127
+ margin-left : 1.2rem ; }
128
+ .card__info-icon--share {
129
+ fill : # 6d7f97 ;
130
+ background-color : # ecf2f8 ;
131
+ padding : 0.4rem 0.8rem ;
57
132
border-radius : 50% ; }
58
- .card__content-info--box {
59
- margin-left : 2rem ; }
60
- .card__content-info--name {
61
- color : # 6d7f97 ;
62
- font-size : 1.4rem ;
63
- font-weight : 700 ;
64
- margin-bottom : 0.2rem ; }
65
- .card__content-info--date {
66
- color : # 9eafc2 ;
67
- font-size : 1.4rem ;
68
- font-family : "Manrope" , sans-serif; }
69
- .card__content-info-container {
70
- width : 100% ;
71
- height : 12% ;
72
- background-color : # 48556a ;
73
- position : absolute;
74
- bottom : 0 ;
75
- left : 0 ;
76
- padding : 1rem ;
77
- display : flex;
78
- align-items : center;
79
- justify-content : space-around; }
80
- .card__content-info-container--active {
81
- display : none; }
82
- .card__content-info-text {
83
- color : # 9eafc2 ;
84
- text-transform : uppercase;
85
- letter-spacing : 0.5rem ;
86
- font-size : 1.2rem ; }
87
- .card__content-info-icons {
88
- fill : # ecf2f8 ;
89
- margin-left : -3rem ; }
90
- .card__content-info-icons > * : hover {
91
- fill : # 9eafc2 ;
133
+ .card__info-icon--share : hover {
134
+ fill : # ecf2f8 ;
135
+ background-color : # 6d7f97 ;
92
136
transition : all 0.3s ; }
93
- .card__content-info-icon {
94
- margin-left : 1rem ; }
95
- .card__content-info-icon--share {
96
- fill : # 6d7f97 ;
97
- background-color : # ecf2f8 ;
98
- margin-left : auto;
137
+ .card__info-icon--share--active {
138
+ fill : # ecf2f8 ;
139
+ background-color : # 6d7f97 ;
99
140
padding : 0.4rem 0.8rem ;
100
141
border-radius : 50% ; }
101
- .card__content-info-icon--share--active {
102
- fill : # ecf2f8 ;
103
- background-color : # 6d7f97 ;
104
- padding : 0.4rem 0.8rem ;
105
- border-radius : 50% ;
106
- margin-bottom : 0.7rem ; }
107
- .card__content-info-icon--share--active : hover {
108
- fill : # 9eafc2 ;
109
- background-color : # ecf2f8 ;
110
- transition : all 0.3s ; }
142
+ .card__info-icon--share--active : hover {
143
+ fill : # 9eafc2 ;
144
+ background-color : # ecf2f8 ;
145
+ transition : all 0.3s ; }
111
146
112
147
.attribution {
113
148
font-size : 1rem ;
0 commit comments