Skip to content

Commit 648419e

Browse files
committed
fix: icons and video src
1 parent 441232e commit 648419e

File tree

2 files changed

+41
-6
lines changed

2 files changed

+41
-6
lines changed

051-video background/index.html

+37-4
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ <h2 class="logo">Travel</h2>
1616
<div class="toggle"></div>
1717
</header>
1818
<video
19-
src="https://designsupply-web.com/samplecontent/vender/codepen/20181014.mp4"
19+
src="https://test-videos.co.uk/vids/bigbuckbunny/mp4/h264/360/Big_Buck_Bunny_360_10s_1MB.mp4"
2020
muted
2121
loop
2222
autoplay
@@ -35,13 +35,46 @@ <h3>Exploring The World</h3>
3535
</div>
3636
<ul class="social">
3737
<li>
38-
<a href="#"><img src="https://i.ibb.co/x7P24fL/facebook.png" /></a>
38+
<a href="#">
39+
<svg
40+
xmlns="http://www.w3.org/2000/svg"
41+
width="48"
42+
height="48"
43+
viewBox="0 0 24 24"
44+
>
45+
<path
46+
d="M12.001 2.002c-5.522 0-9.999 4.477-9.999 9.999 0 4.99 3.656 9.126 8.437 9.879v-6.988h-2.54v-2.891h2.54V9.798c0-2.508 1.493-3.891 3.776-3.891 1.094 0 2.24.195 2.24.195v2.459h-1.264c-1.24 0-1.628.772-1.628 1.563v1.875h2.771l-.443 2.891h-2.328v6.988C18.344 21.129 22 16.992 22 12.001c0-5.522-4.477-9.999-9.999-9.999z"
47+
/>
48+
</svg>
49+
</a>
3950
</li>
4051
<li>
41-
<a href="#"><img src="https://i.ibb.co/Wnxq2Nq/twitter.png" /></a>
52+
<a href="#">
53+
<svg
54+
xmlns="http://www.w3.org/2000/svg"
55+
width="48"
56+
height="48"
57+
viewBox="0 0 24 24"
58+
>
59+
<path
60+
d="M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"
61+
/>
62+
</svg>
63+
</a>
4264
</li>
4365
<li>
44-
<a href="#"><img src="https://i.ibb.co/ySwtH4B/instagram.png" /></a>
66+
<a href="#">
67+
<svg
68+
xmlns="http://www.w3.org/2000/svg"
69+
width="48"
70+
height="48"
71+
viewBox="0 0 24 24"
72+
>
73+
<path
74+
d="M12 2.163c3.204 0 3.584.012 4.85.07 3.252.148 4.771 1.691 4.919 4.919.058 1.265.069 1.645.069 4.849 0 3.205-.012 3.584-.069 4.849-.149 3.225-1.664 4.771-4.919 4.919-1.266.058-1.644.07-4.85.07-3.204 0-3.584-.012-4.849-.07-3.26-.149-4.771-1.699-4.919-4.92-.058-1.265-.07-1.644-.07-4.849 0-3.204.013-3.583.07-4.849.149-3.227 1.664-4.771 4.919-4.919 1.266-.057 1.645-.069 4.849-.069zM12 0C8.741 0 8.333.014 7.053.072 2.695.272.273 2.69.073 7.052.014 8.333 0 8.741 0 12c0 3.259.014 3.668.072 4.948.2 4.358 2.618 6.78 6.98 6.98C8.333 23.986 8.741 24 12 24c3.259 0 3.668-.014 4.948-.072 4.354-.2 6.782-2.618 6.979-6.98.059-1.28.073-1.689.073-4.948 0-3.259-.014-3.667-.072-4.947-.196-4.354-2.617-6.78-6.979-6.98C15.668.014 15.259 0 12 0zm0 5.838a6.162 6.162 0 100 12.324 6.162 6.162 0 000-12.324zM12 16a4 4 0 110-8 4 4 0 010 8zm6.406-11.845a1.44 1.44 0 100 2.881 1.44 1.44 0 000-2.881z"
75+
/>
76+
</svg>
77+
</a>
4578
</li>
4679
</ul>
4780
</section>

051-video background/style.css

+4-2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
:root {
44
--overlay-color: #31385c;
5+
--menu-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cline x1='3' y1='12' x2='21' y2='12'%3E%3C/line%3E%3Cline x1='3' y1='6' x2='21' y2='6'%3E%3C/line%3E%3Cline x1='3' y1='18' x2='21' y2='18'%3E%3C/line%3E%3C/svg%3E");
6+
--close-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cline x1='18' y1='6' x2='6' y2='18'%3E%3C/line%3E%3Cline x1='6' y1='6' x2='18' y2='18'%3E%3C/line%3E%3C/svg%3E");
57
}
68

79
* {
@@ -51,15 +53,15 @@
5153
position: relative;
5254
width: 60px;
5355
height: 60px;
54-
background: url(https://i.ibb.co/HrfVRcx/menu.png);
56+
background: var(--menu-icon);
5557
background-repeat: no-repeat;
5658
background-size: 30px;
5759
background-position: center;
5860
cursor: pointer;
5961
}
6062

6163
.toggle.active {
62-
background: url(https://i.ibb.co/rt3HybH/close.png);
64+
background: var(--close-icon);
6365
background-repeat: no-repeat;
6466
background-size: 25px;
6567
background-position: center;

0 commit comments

Comments
 (0)