Skip to content

Instantly share code, notes, and snippets.

@terlef
Created June 21, 2025 08:16
Show Gist options
  • Save terlef/a551546aff2694788fb8469be99766c0 to your computer and use it in GitHub Desktop.
Save terlef/a551546aff2694788fb8469be99766c0 to your computer and use it in GitHub Desktop.
Untitled
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Nike Clone with Video Background</title>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<header>
<nav class="navbar">
<div class="logo">NIKE</div>
<ul class="nav-links">
<li><a href="#">New & Featured</a></li>
<li><a href="#">Men</a></li>
<li><a href="#">Women</a></li>
<li><a href="#">Kids</a></li>
<li><a href="#">Sale</a></li>
</ul>
<div class="icons">
<a href="#">๐Ÿ”</a>
<a href="#">๐Ÿ›’</a>
</div>
</nav>
</header>
<!-- Video Hero Section -->
<section class="hero">
<video autoplay loop controls playsinline class="bg-video">
<source src="Video_Request_Fulfilled.mp4" type="video/mp4" />
Your browser does not support the video tag.
</video>
<div class="hero-content">
<h1>Step Into Greatness</h1>
<p>Explore the latest drops and timeless classics.</p>
</div>
</section>
</body>
</html>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Helvetica Neue', sans-serif;
}
body {
background-color: #fff;
color: #111;
}
.navbar {
display: flex;
justify-content: space-between;
align-items: center;
padding: 1rem 2rem;
background-color: white;
border-bottom: 1px solid #ddd;
position: sticky;
top: 0;
z-index: 1000;
}
.logo {
font-size: 1.5rem;
font-weight: bold;
letter-spacing: 2px;
}
.nav-links {
list-style: none;
display: flex;
gap: 1.5rem;
}
.nav-links li a {
text-decoration: none;
color: #111;
font-weight: 500;
}
.icons a {
margin-left: 1rem;
font-size: 1.2rem;
color: #111;
}
.hero {
position: relative;
height: 90vh;
overflow: hidden;
display: flex;
align-items: center;
justify-content: center;
color: white;
text-align: center;
}
.bg-video {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
object-fit: cover;
z-index: -1;
}
.hero-content {
position: relative;
z-index: 1;
background: rgba(0, 0, 0, 0.4); /* optional dark overlay */
padding: 2rem;
border-radius: 10px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment