<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Andijan Phoenix</title>
<!-- JS CDN -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.13.0/css/all.min.css">
<!-- Logo -->
<link rel="icon" href="img/logo.png">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
<!-- Custom CSS -->
<link rel="stylesheet" href="css/main.css">
<link rel="stylesheet" href="css/search.css">
<!-- Google Font -->
<link href='https://fonts.googleapis.com/css?family=Lato:400,700,900,300' rel='stylesheet' type='text/css'>
<!-- Font CSS -->
<link rel="stylesheet" type="text/css" href="css/font-awesome.min.css">
</head>
<body>
<!-- Header -->
<div class="page-col-1">
<div class="logo">
<h1>Andijan Phoenix</h1>
</div>
<div class="nav_bar">
<ul>
<li><a href="">Home</a></li>
<li><a href="">All Works</a></li>
<li><a href="">About Us</a></li>
</ul>
</div>
<!-- Search -->
<i class="search-icon fas fa-search"></i>
<div class="search-screen">
<i class="close-icon fas fa-times"></i>
<input type="text" class="search-box" placeholder="start typing...">
</div>
</div>
<!-- Body -->
<div class="page-col-2">
<div class="text-1">
<p>ВОТ ТУТ ТЕКСТ НЕ ОТОБРАЖАЕТСЯ</p>
</div>
</div>
<!-- Seacrh Script -->
<script>
document.querySelector(".search-icon").addEventListener('click',function(){
document.querySelector(".search-screen").classList.add("active");
});
document.querySelector(".close-icon").addEventListener('click',function(){
document.querySelector(".search-screen").classList.remove("active");
});
</script>
</body>
</html>
body {
margin: 0;
padding: 0;
}
.page-col-1 {
font-family: 'Lato', sans-serif;
top: 0px;
left: 0px;
width: 100%;
position: fixed;
background-color: #000;
}
.nav_bar {
text-transform: uppercase;
float: right;
padding: 15px;
margin-top: 25px;
}
.nav_bar ul li {
display: inline-block;
margin-right: 50px;
list-style: none;
}
.nav_bar a {
color: #fff;
text-decoration: none;
padding: 25px 10px;
}
.nav_bar ul li:hover {
transform: scale(1.1);
}
.logo {
float: left;
color: #fff;
font-size: 12px;
padding: 25px 50px;
}
*{
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: "Open Sans",sans-serif;
}
body{
display: flex;
align-items: center;
justify-content: center;
}
.search-icon{
width: 50px;
height: 50px;
background-color: #fff;
text-align: center;
line-height: 50px !important;
color: #000;
font-size: 18px;
cursor: pointer;
border-radius: 50%;
margin-top: 25px;
margin-left: -10px;
transition: .3s linear;
}
.search-icon:hover{
border-radius: 30%;
}
.search-screen{
position: fixed;
width: 100%;
height: 0;
background-color: #000000dd;
display: flex;
align-items: center;
justify-content: center;
left: 0;
top: 50%;
transform: translateY(-50%);
overflow: hidden;
transition: .3s linear .3s;
}
.close-icon{
position: absolute;
top: 40px;
right: 40px;
color: #fff;
font-size: 30px;
cursor: pointer;
opacity: 0;
}
.search-box{
width: 90%;
max-width: 600px;
height: 60px;
background: none;
border: none;
outline: none;
color: #fff;
font-size: 50px;
font-weight: 700;
text-transform: uppercase;
opacity: 0;
}
.search-screen.active{
transition-delay: 0s;
height: 100vh;
}
.search-screen.active .search-box,
.search-screen.active .close-icon{
transition: .2s linear .4s;
opacity: 1;
}