Add files via upload

This commit is contained in:
Sam 2023-03-27 01:39:13 +03:00 committed by GitHub
parent 9a7df99d19
commit 62949e3814
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
13 changed files with 124 additions and 0 deletions

View File

@ -0,0 +1,6 @@
const toggle = document.getElementById('toggle');
const nav = document.getElementById('nav');
toggle.addEventListener('click', () => {
nav.classList.toggle('active');
});

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,84 @@
@import url('https://fonts.googleapis.com/css?family=Roboto:700&display=swap');
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
/* background-image: url('../img/photo.avif'); */
background-repeat: no-repeat;
background-size: cover;
background-position: center center;
min-height: 100vh;
}
video{
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
object-fit: cover;
}
nav {
background-color: #FFEFD5;
display: flex;
align-items: center;
justify-content: center;
padding: 0 30px 0 50px;
position: fixed;
top: 0;
left: 0;
height: 100vh;
transform: translateX(-100%);
transition: transform .5s ease;
border-radius: 5px;
}
nav.active {
transform: translateX(0);
}
nav ul {
padding: 0;
list-style-type: none;
}
nav ul li {
margin: 14px 0;
text-align: right;
}
nav a {
color: #111;
font-size: 24px;
text-decoration: none;
text-transform: uppercase;
transition: .3s;
}
nav a:hover {
color: #fff;
background: #111;
}
.toggle {
border: none;
cursor: pointer;
font-size: 20px;
padding: 10px 15px 10px 22px;
position: absolute;
top: 0;
right: 8px;
transform: translateX(100%);
background: #FFEFD5;
border-radius: 3px;
}
.toggle:focus {
outline: none;
}
.toggle .fa-bars {
display: block;
}
.toggle .fa-times {
display: none;
}
nav.active .toggle .fa-bars {
display: none;
}
nav.active .toggle .fa-times {
display: block;
}

View File

@ -0,0 +1,28 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="css/style.css">
<link rel="stylesheet" href="css/all.min.css">
<title>Document</title>
</head>
<body>
<video src="pexels.mp4" type="video/mp4" autoplay muted></video>
<nav id="nav">
<button class="toggle" id="toggle">
<i class="fas fa-bars"></i>
<i class="fas fa-times"></i>
</button>
<ul>
<li><a href="#">Home</a></li>
<li><a href="#">About</a></li>
<li><a href="#">Blog</a></li>
<li><a href="#">Shop</a></li>
<li><a href="#">Contact</a></li>
</ul>
</nav>
<script src="app.js"></script>
</body>
</html>

Binary file not shown.