-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexercise-2.html
More file actions
133 lines (116 loc) · 2.9 KB
/
exercise-2.html
File metadata and controls
133 lines (116 loc) · 2.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Exercise #2 || Hero section with video background</title>
<!-- Reset -->
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/modern-normalize@2.0.0/modern-normalize.min.css"
/>
<!-- Google Fonts -->
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Figtree:wght@400;700&display=swap"
rel="stylesheet"
/>
<style>
html {
font-size: 16px;
font-family: "Figtree", sans-serif;
line-height: 1.5;
}
img {
display: block;
}
#hero {
height: 60vh;
color: white;
position: relative;
}
#hero::before {
content: "";
position: absolute;
inset: 0;
background: rgba(15, 21, 37, 0.61);
z-index: -1;
}
.container {
width: 80%;
margin: 0 auto;
height: 100%;
padding: 4rem 0;
display: flex;
flex-direction: column;
justify-content: space-between;
align-items: flex-start;
}
header {
display: flex;
justify-content: space-between;
align-items: center;
width: 100%;
}
nav ul {
list-style: none;
padding: 0;
margin: 0;
display: flex;
gap: 3rem;
}
nav ul a {
text-decoration: none;
color: white;
}
h1 {
font-size: 4.875rem;
font-weight: 700;
max-width: 80%;
line-height: 1.2;
}
h1 span {
color: #ffbf1a;
}
/* Air */
video {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
object-fit: cover;
z-index: -2;
}
</style>
</head>
<body>
<section id="hero">
<div class="container">
<!-- Air -->
<video autoplay muted loop>
<source src="videos/video-2@c.mp4" type="video/mp4" />
<source src="videos/Video-2@C.webm" type="video/webm" />
</video>
<header>
<a href="/"><img src="images/logo-l3.svg" alt="Logo" /></a>
<nav>
<ul>
<li><a href="#">Work</a></li>
<li><a href="#">Company</a></li>
<li><a href="#">Blog</a></li>
<li><a href="#">Careers</a></li>
<li><a href="#">Contact</a></li>
</ul>
</nav>
</header>
<h1>
Crafting <span>digital masterpieces</span> with pixel-perfect
precision.
</h1>
<img src="icons/mouse.svg" alt="Mouse" />
</div>
</section>
</body>
</html>