File tree Expand file tree Collapse file tree 2 files changed +65
-3
lines changed
starter/07-Omnifood-Desktop Expand file tree Collapse file tree 2 files changed +65
-3
lines changed Original file line number Diff line number Diff line change 8
8
< title > Omnifood</ title >
9
9
</ head >
10
10
< body >
11
- < section class ="hero ">
11
+ < section class ="section- hero ">
12
12
< div class ="hero ">
13
13
< div class ="hero-text-box ">
14
14
< h1 class ="heading-primary ">
Original file line number Diff line number Diff line change @@ -15,12 +15,74 @@ body {
15
15
color : # 555 ;
16
16
}
17
17
18
+ .section-hero {
19
+ background-color : # fdf2e9 ;
20
+ padding : 9.6rem 0 ;
21
+ }
22
+
18
23
.hero {
24
+ max-width : 130rem ;
25
+ margin : 0 auto;
19
26
display : grid;
20
27
grid-template-columns : 1fr 1fr ;
28
+ gap : 9.6rem ;
29
+ align-items : center
30
+ }
31
+
32
+ .heading-primary {
33
+ font-size : 5.2rem ;
34
+ line-height : 1.05 ;
35
+ font-weight : 700 ;
36
+ color : # 333 ;
37
+ letter-spacing : -0.5px ;
38
+ margin-bottom : 3.2rem ;
39
+ }
40
+
41
+ .hero-description {
42
+ font-size : 2rem ;
43
+ line-height : 1.5 ;
44
+ margin-bottom : 4.8rem ;;
45
+ }
46
+
47
+ .hero-img {
48
+ width : 100% ;
49
+ }
50
+
51
+ .btn : link ,
52
+ .btn : visited {
53
+ display : inline-block;
54
+ text-decoration : none;
55
+ font-size : 2rem ;
56
+ padding : 1.6rem 3.2rem ;
57
+ border-radius : 9px ;
58
+ transition : background-color 0.3s ;
59
+ }
60
+
61
+ .btn--full : link ,
62
+ .btn--full : visited {
63
+ background-color : # e67e22 ;
64
+ color : # fff ;
65
+ }
66
+
67
+ .btn--full : hover ,
68
+ .btn--full : active {
69
+ background-color : # cf711f ;
70
+ }
71
+
72
+ .btn--outline : link ,
73
+ .btn--visited : visited {
74
+ background-color : # fff ;
75
+ color : # 555 ;
76
+ }
77
+
78
+ .btn--outline : hover ,
79
+ .btn--outline : active {
80
+ background-color : # fdf2e9 ;
21
81
82
+ /* Trick to add border inside */
83
+ box-shadow : inset 0 0 0 3px # fff ;
22
84
}
23
85
24
- .hero-img-box {
25
- max-width : 100 % ;
86
+ .margin-right-sm {
87
+ margin-right : 1.6 rem !important ;
26
88
}
You can’t perform that action at this time.
0 commit comments