Skip to content

Commit 021e571

Browse files
committed
handing over again
1 parent 7beebac commit 021e571

File tree

2 files changed

+46
-8
lines changed

2 files changed

+46
-8
lines changed

starter_code/index.html

+6-6
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,12 @@
3939
</ul>
4040
</div>
4141

42-
<div>
43-
<button>
42+
<div class="navmenu-container">
43+
<button class="navmenu-search">
4444
<img src="./images/icon-search.png" alt="Search icon" />
4545
</button>
4646

47-
<button>
47+
<button class="navmenu-sandwich">
4848
<img src="./images/icon-menu.png" alt="Menu icon" />
4949
</button>
5050

@@ -82,7 +82,7 @@ <h1>Great teamwork starts with a digital HQ</h1>
8282
</div>
8383
</div>
8484

85-
<div>
85+
<div class="container-hero">
8686
<img
8787
class="hero"
8888
src="./images/hero-product-ui.png"
@@ -170,7 +170,7 @@ <h2>Choose how you want to work</h2>
170170

171171
<div>
172172
<img
173-
class="img-benefits"
173+
class="img-benefits img-benefits-right"
174174
src="./images/flexibility-mobile.png"
175175
alt="flexibility"
176176
/>
@@ -186,7 +186,7 @@ <h2>Choose how you want to work</h2>
186186
/>
187187
</div>
188188

189-
<div>
189+
<div class="benefits-text">
190190
<h2>Move faster with your tools in one place</h2>
191191
<p>
192192
With your other work apps connected to Slack, you can work faster by

starter_code/stylesheets/style.css

+40-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ footer links grey: #454245
1212
body {
1313
margin: 0;
1414
padding: 0;
15-
background: #540b51;
1615
font-family: Arial, Helvetica, sans-serif;
1716
}
1817

@@ -23,9 +22,31 @@ body {
2322
height: 100px;
2423
}
2524

25+
.navmenu-container {
26+
width: 200px;
27+
text-align: right
28+
align-items: center;
29+
justify-content: center;
30+
}
31+
32+
.navmenu-search {
33+
width: 50px;
34+
display: inline-block;
35+
background:#540b51;
36+
border: none;
37+
padding: 2em;
38+
}
39+
40+
.navmenu-sandwich {
41+
width: 50px;
42+
display: inline-block;
43+
background:#540b51;
44+
border: none;
45+
}
46+
2647
.logo {
2748
width: auto;
28-
height: 50px;
49+
height: 20px;
2950
padding: 2rem;
3051
}
3152

@@ -90,9 +111,16 @@ header {
90111
color: #ecb12f;
91112
}
92113

114+
.container-hero {
115+
width: auto;
116+
overflow: hidden;
117+
}
118+
93119
.hero {
94120
width: auto;
95121
height: 350px;
122+
object-fit: cover;
123+
text-align: right;
96124
}
97125

98126
.logo-container {
@@ -125,6 +153,10 @@ header {
125153
width: 95%;
126154
}
127155

156+
.img-benefits-right {
157+
text-align: right;
158+
}
159+
128160
.benefits-text {
129161
margin: 16px;
130162
}
@@ -140,3 +172,9 @@ header {
140172
.facts {
141173
background-color: white;
142174
}
175+
176+
@media (max-width: 767px) {
177+
.navbar a{
178+
visibility: hidden;
179+
}
180+
}

0 commit comments

Comments
 (0)