Skip to content

Commit 83a2e4d

Browse files
Hero section
1 parent 261ee0e commit 83a2e4d

File tree

2 files changed

+65
-3
lines changed

2 files changed

+65
-3
lines changed

starter/07-Omnifood-Desktop/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<title>Omnifood</title>
99
</head>
1010
<body>
11-
<section class="hero">
11+
<section class="section-hero">
1212
<div class="hero">
1313
<div class="hero-text-box">
1414
<h1 class="heading-primary">

starter/07-Omnifood-Desktop/style.css

Lines changed: 64 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,74 @@ body {
1515
color: #555;
1616
}
1717

18+
.section-hero{
19+
background-color: #fdf2e9;
20+
padding: 9.6rem 0;
21+
}
22+
1823
.hero{
24+
max-width: 130rem;
25+
margin: 0 auto;
1926
display: grid;
2027
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;
2181

82+
/* Trick to add border inside */
83+
box-shadow: inset 0 0 0 3px #fff ;
2284
}
2385

24-
.hero-img-box{
25-
max-width:100%;
86+
.margin-right-sm{
87+
margin-right: 1.6rem !important;
2688
}

0 commit comments

Comments
 (0)