File tree Expand file tree Collapse file tree 2 files changed +67
-9
lines changed
starter/07-Omnifood-Desktop Expand file tree Collapse file tree 2 files changed +67
-9
lines changed Original file line number Diff line number Diff line change @@ -14,17 +14,12 @@ Default: 1
14
14
--- 02 Colors System
15
15
16
16
- Primary: #e67e22
17
-
18
- - 比较暗的
19
- - Tints:
20
-
21
- - 比较亮的
17
+ - Tints: #fdf2e9
22
18
- Shades:
23
-
24
19
- Accents:
25
-
26
20
- Greys:
27
21
#555
22
+ #333
28
23
29
24
30
25
--- 05 Shadows
@@ -55,13 +50,74 @@ body {
55
50
color : # 555 ;
56
51
}
57
52
53
+ .section-hero {
54
+ background-color : # fdf2e9 ;
55
+ padding : 9.6rem 0 ;
56
+ }
57
+
58
58
.hero {
59
59
max-width : 130rem ;
60
60
margin : 0 auto;
61
61
display : grid;
62
62
grid-template-columns : 1fr 1fr ;
63
+ align-items : center;
64
+ gap : 9.6rem ;
65
+ }
66
+
67
+ .heading-primary {
68
+ font-size : 5.2rem ;
69
+ font-weight : 700 ;
70
+ line-height : 1.05 ;
71
+ color : # 333 ;
72
+ letter-spacing : -0.5px ;
73
+ margin-bottom : 3.2rem ;
74
+ }
75
+ .hero-description {
76
+ font-size : 2rem ;
77
+ line-height : 1.6 ;
78
+ margin-bottom : 4.8rem ;
79
+ }
80
+
81
+ .btn : link ,
82
+ .btn : visited {
83
+ display : inline-block;
84
+ font-size : 2rem ;
85
+ text-decoration : none;
86
+ padding : 1.6rem 3.2rem ;
87
+ border-radius : 9px ;
88
+ /* Put transition on original "state" */
89
+ transition : background-color 0.3s ;
63
90
}
64
91
92
+ .btn--full : link ,
93
+ .btn--full : visited {
94
+ background-color : # e67e22 ;
95
+ color : # fff ;
96
+ }
97
+
98
+ .btn--full : hover ,
99
+ .btn--full : active {
100
+ background-color : # cf711f ;
101
+ }
102
+
103
+ .btn--outline : link ,
104
+ .btn--outline : visited {
105
+ background-color : # fff ;
106
+ color : # 555 ;
107
+ }
108
+
109
+ .btn--outline : hover ,
110
+ .btn--outline : active {
111
+ background-color : # fdf2e9 ;
112
+ /* border: 3px solid #fff; */
113
+
114
+ /* Trick to add border inside */
115
+ box-shadow : inset 0 0 3px # fff ;
116
+ }
65
117
.hero-img {
66
118
width : 100% ;
67
119
}
120
+
121
+ .margin-right-sm {
122
+ margin-right : 1.6rem !important ;
123
+ }
Original file line number Diff line number Diff line change @@ -19,8 +19,10 @@ <h1 class="heading-primary">
19
19
healthy again. Tailored to your personal tastes and nutritional
20
20
needs. We have delivered 250,000+ meals last year!
21
21
</ p >
22
- < a href ="# " class ="btn "> Start eating well</ a >
23
- < a href ="# " class ="btn "> Lear more →</ a >
22
+ < a href ="# " class ="btn btn--full margin-right-sm "
23
+ > Start eating well</ a
24
+ >
25
+ < a href ="# " class ="btn btn--outline "> Lear more →</ a >
24
26
</ div >
25
27
< div class ="hero-img-box ">
26
28
< img
You can’t perform that action at this time.
0 commit comments