1
+ /* Browsers are optimized for opacity and transform properties for animations */
2
+ @keyframes moveInLeft {
3
+ 0% {
4
+ opacity : 0 ;
5
+ transform : translateX (-10rem );
6
+ /*positive to the right, negative to the left */ }
7
+ /* 60% {
8
+ tranform: rotate(180deg);
9
+ } */
10
+ 80% {
11
+ transform : translateX (1rem );
12
+ /* moves to right */ }
13
+ 100% {
14
+ opacity : 1 ;
15
+ transform : translate (0 ); } }
16
+
17
+ @keyframes moveInRight {
18
+ 0% {
19
+ opacity : 0 ;
20
+ transform : translateX (10rem );
21
+ /*positive to the right, negative to the left */ }
22
+ 80% {
23
+ transform : translateX (-1rem );
24
+ /* moves to right */ }
25
+ 100% {
26
+ opacity : 1 ;
27
+ transform : translate (0 ); } }
28
+
29
+ @keyframes moveInButton {
30
+ 0% {
31
+ opacity : 0 ;
32
+ transform : translateY (3rem );
33
+ /*positive to the right/down, negative to the left/up */ }
34
+ 100% {
35
+ opacity : 1 ;
36
+ transform : translate (0 ); } }
37
+
1
38
* ,
2
39
* ::after ,
3
40
* ::before {
8
45
html {
9
46
font-size : 62.5% ; }
10
47
48
+ body {
49
+ box-sizing : border-box; }
50
+
11
51
body {
12
52
font-family : 'Lato' , sans-serif;
13
53
font-weight : 400 ;
14
54
font-size : 1.6rem ;
15
55
line-height : 1.7 ;
16
56
color : # 777 ;
17
- padding : 3rem ;
18
- box-sizing : border-box; }
19
-
20
- .header {
21
- height : 95vh ;
22
- background-image : linear-gradient (to right bottom, rgba (126 , 213 , 111 , 0.8 ), rgba (126 , 213 , 111 , 0.8 )), url(../ img/hero.jpg);
23
- background-size : cover;
24
- background-position : top;
25
- clip-path : polygon (0 0 , 100% 0 , 100% 75% , 0 100% );
26
- position : relative; }
27
- .header__logo .box {
28
- position : absolute;
29
- top : 4rem ;
30
- left : 4rem ; }
31
- .header__text-box {
32
- position : absolute;
33
- top : 40% ;
34
- left : 50% ;
35
- transform : translate (-50% , -50% );
36
- text-align : center; }
37
- .header__logo {
38
- height : 3.5rem ; }
57
+ padding : 3rem ; }
39
58
40
59
.heading-primary {
41
60
color : # fff ;
@@ -60,42 +79,42 @@ body {
60
79
letter-spacing : 1.74rem ;
61
80
animation : moveInRight 1s ease-out; }
62
81
63
- /* Browsers are optimized for opacity and transform properties for animations */
64
- @keyframes moveInLeft {
65
- 0% {
66
- opacity : 0 ;
67
- transform : translateX (-10rem );
68
- /*positive to the right, negative to the left */ }
69
- /* 60% {
70
- tranform: rotate(180deg);
71
- } */
72
- 80% {
73
- transform : translateX (1rem );
74
- /* moves to right */ }
75
- 100% {
76
- opacity : 1 ;
77
- transform : translate (0 ); } }
82
+ .heading-secondary {
83
+ font-size : 3.5rem ;
84
+ font-weight : 700 ;
85
+ text-transform : uppercase;
86
+ display : inline-block;
87
+ background-image : linear-gradient (to right, # 7ed56f, # 28b485 );
88
+ background-clip : inherit;
89
+ -webkit-background-clip : text;
90
+ color : transparent;
91
+ letter-spacing : 2px ;
92
+ transition : all .2s ; }
93
+ .heading-secondary : hover {
94
+ transform : skewY (2deg ) skewX (15deg ) scale (1.1 );
95
+ text-shadow : 0.5rem 1rem 2rem rgba (0 , 0 , 0 , 0.2 ); }
78
96
79
- @keyframes moveInRight {
80
- 0% {
81
- opacity : 0 ;
82
- transform : translateX (10rem );
83
- /*positive to the right, negative to the left */ }
84
- 80% {
85
- transform : translateX (-1rem );
86
- /* moves to right */ }
87
- 100% {
88
- opacity : 1 ;
89
- transform : translate (0 ); } }
97
+ .heading-tertiary {
98
+ font-size : 1.6rem ;
99
+ font-weight : 700 ;
100
+ text-transform : uppercase; }
90
101
91
- @keyframes moveInButton {
92
- 0% {
93
- opacity : 0 ;
94
- transform : translateY (3rem );
95
- /*positive to the right/down, negative to the left/up */ }
96
- 100% {
97
- opacity : 1 ;
98
- transform : translate (0 ); } }
102
+ .paragraph {
103
+ font-size : 1.6rem ; }
104
+ .paragraph : not (: last-child ) {
105
+ margin-bottom : 3rem ; }
106
+
107
+ .u-center-text {
108
+ text-align : center; }
109
+
110
+ .u-margin-bottom-small {
111
+ margin-bottom : 2rem ; }
112
+
113
+ .u-margin-bottom-medium {
114
+ margin-bottom : 4rem ; }
115
+
116
+ .u-margin-bottom-big {
117
+ margin-bottom : 8rem ; }
99
118
100
119
.btn : link , .btn : visited {
101
120
text-transform : uppercase;
@@ -140,3 +159,73 @@ body {
140
159
/* animation-name, animation-duration, animation-timing-function, animation-delay */
141
160
animation-fill-mode : backwards;
142
161
/*automatically apply styles of 0% before animation starts */ }
162
+
163
+ .btn-text : link , .btn-text : visited {
164
+ color : # 55c57a ;
165
+ display : inline-block;
166
+ text-decoration : none;
167
+ border-bottom : 1px solid # 55c57a ;
168
+ padding : 3px ;
169
+ font-size : 1.6rem ;
170
+ transition : all 0.2s ; }
171
+
172
+ .btn-text : hover {
173
+ background-color : # 55c57a ;
174
+ color : # fff ;
175
+ box-shadow : 0 1rem 2rem rgba (0 , 0 , 0 , 0.15 );
176
+ transform : translateY (-2px ); }
177
+
178
+ .btn-text : active {
179
+ box-shadow : 0 0.5rem 2rem rgba (0 , 0 , 0 , 0.15 );
180
+ transform : translateY (0 ); }
181
+
182
+ .header {
183
+ height : 95vh ;
184
+ background-image : linear-gradient (to right bottom, rgba (126 , 213 , 111 , 0.8 ), rgba (126 , 213 , 111 , 0.8 )), url(../ img/hero.jpg);
185
+ background-size : cover;
186
+ background-position : top;
187
+ clip-path : polygon (0 0 , 100% 0 , 100% 75% , 0 100% );
188
+ position : relative; }
189
+ .header__logo .box {
190
+ position : absolute;
191
+ top : 4rem ;
192
+ left : 4rem ; }
193
+ .header__text-box {
194
+ position : absolute;
195
+ top : 40% ;
196
+ left : 50% ;
197
+ transform : translate (-50% , -50% );
198
+ text-align : center; }
199
+ .header__logo {
200
+ height : 3.5rem ; }
201
+
202
+ .row {
203
+ max-width : 114rem ;
204
+ margin : 0 auto; }
205
+ .row : not (: last-child ) {
206
+ margin-bottom : 8rem ; }
207
+ .row ::after {
208
+ content : "" ;
209
+ display : table;
210
+ clear : both; }
211
+ .row [class ^= "col-" ] {
212
+ float : left; }
213
+ .row [class ^= "col-" ]: not (: last-child ) {
214
+ margin-right : 6rem ; }
215
+ .row .col-1-of-2 {
216
+ width : calc ((100% - 6rem ) / 2 ); }
217
+ .row .col-1-of-3 {
218
+ width : calc ((100% - 2 * 6rem ) / 3 ); }
219
+ .row .col-2-of-3 {
220
+ width : calc (2 * ((100% - 2 * 6rem ) / 3 ) + 6rem ); }
221
+ .row .col-1-of-4 {
222
+ width : calc ((100% - 3 * 6rem ) / 4 ); }
223
+ .row .col-2-of-4 {
224
+ width : calc (2 * (( 100% - 3 * 6rem ) / 4 ) + 6rem ); }
225
+ .row .col-3-of-4 {
226
+ width : calc (3 * (( 100% - 3 * 6rem ) / 4 ) + 2 * (6rem )); }
227
+
228
+ .section-about {
229
+ background-color : # f7f7f7 ;
230
+ padding : 25rem 0 ;
231
+ margin-top : -20vh ; }
0 commit comments