Skip to content

Commit 9e82d25

Browse files
committed
add project 1
0 parents  commit 9e82d25

File tree

3 files changed

+90
-0
lines changed

3 files changed

+90
-0
lines changed

project-1/bg-video.mp4

1.99 MB
Binary file not shown.

project-1/index.html

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6+
<title>Background video</title>
7+
<link rel="stylesheet" href="./style.css" />
8+
</head>
9+
<body>
10+
<section class="hero">
11+
<video autoplay loop muted class="bg-video">
12+
<source src="./bg-video.mp4" />
13+
</video>
14+
15+
<section class="contact">
16+
<h1>Explore the depth of sea !</h1>
17+
<a href="">Explore Now</a>
18+
</section>
19+
</section>
20+
</body>
21+
</html>

project-1/style.css

+69
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
* {
2+
margin: 0%;
3+
padding: 0%;
4+
font-family: sans-serif;
5+
}
6+
7+
.hero {
8+
width: 100%;
9+
height: 100dvh;
10+
background-image: linear-gradient(rgba(12, 3, 51, 0.3), rgba(12, 3, 51, 0.3));
11+
position: relative;
12+
padding: 0% 5%;
13+
display: flex;
14+
align-items: center;
15+
justify-content: center;
16+
overflow: hidden;
17+
}
18+
.bg-video {
19+
position: absolute;
20+
top: 0;
21+
left: 0;
22+
bottom: 0;
23+
z-index: -1;
24+
width: 100%;
25+
}
26+
.contact {
27+
text-align: center;
28+
}
29+
.contact h1 {
30+
font-size: 80px;
31+
font: 600;
32+
color: #fff;
33+
margin-bottom: 25px;
34+
transition: 0.7s;
35+
}
36+
.contact h1:hover {
37+
color: transparent;
38+
-webkit-text-stroke: 2px white;
39+
}
40+
41+
.contact a {
42+
text-decoration: none;
43+
padding: 14px 25px;
44+
background: #fff;
45+
margin-top: 14px;
46+
color: #000;
47+
font-weight: 700;
48+
font-size: 22px;
49+
transition: 0.7s;
50+
}
51+
52+
.contact a:hover {
53+
background: transparent;
54+
border: 1px solid white;
55+
color: white;
56+
}
57+
58+
@media (min-aspect-ratio: 16/9) {
59+
.bg-video {
60+
width: 100%;
61+
height: auto;
62+
}
63+
}
64+
@media (max-aspect-ratio: 16/9) {
65+
.bg-video {
66+
width: auto;
67+
height: 100%;
68+
}
69+
}

0 commit comments

Comments
 (0)