Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added solutions/position/1/decktop-view.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
48 changes: 48 additions & 0 deletions solutions/position/1/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Navbar-bottom</title>
<!-- font awosome -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/all.min.css"/>
<!-- css -->
<link rel="stylesheet" href="style.css">
</head>
<body>
<a href="#" class="test"></a>
<div class="wrapper">
<nav class="navbar">
<div class="nav-container">
<div class="icons home"><a href="#"><i class="fa-solid fa-home"></i></a></div>
<div class="icons search">
<a class="search-btn" href="#"><i class="fa-solid fa-search"></i></a>
<div class="search-input-container ">
<form action="">
<input type="text" placeholder="Search">
</form>
</div>
</div>
<div class="icons chat"><a href="#"><i class="fa-solid fa-comment"></i></a></div>
<div class="icons user"><a href="#"><i class="fa-solid fa-user"></i></a></div>
</div>
</nav>
</div>

<script>
let searchBtn = document.querySelector('.search-btn').addEventListener('click', searchInput);

function searchInput(){
let inputBox = document.querySelector('.search-input-container');
inputBox.classList.toggle('showSearch');

// window.addEventListener('click', (event) =>{
// if(event.target !== searchBtn){
// inputBox.classList.remove('showSearch');
// }
// })
};
</script>

</body>
</html>
Binary file added solutions/position/1/mobile-view.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
85 changes: 85 additions & 0 deletions solutions/position/1/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@


*{
margin: 0;
}
.wrapper{
height: 100vh;
width: 100vw;
background: #FFBFCB;
}
nav.navbar{
position: fixed;
bottom: 0;
width: 100%;
}
.nav-container{
display: flex;
justify-content: space-between;
padding: 20px;
background: #FFF;
}
.wrapper a{
color: initial;
text-decoration: none;
}
.icons{
display: flex;
justify-content: center;
width: 100%;
}
.icons i{
font-size: 40px;
}
.search{
position: relative;
}
.search-input-container{
position: absolute;
transform: translateY(0);
width: 100%;
height: 30px;
transition: transform 0.3s linear;
z-index: -1;
}
.showSearch.search-input-container{
transform: translateY(-80px);
}
.search-input-container form{
width: 100%;
height: 100%;
}
.search-input-container input{
width: 100%;
height: 100%;
border: 1px solid #000;
border-radius: 5px;
padding: 0;
padding-left: 10px;
font: 400 18px;
}
.search-input-container input:focus{
outline: none;
}

.chat i{
position: relative;
}
.chat i::after{
position: absolute;
content: '';
width: 10px;
height: 10px;
border-radius: 50%;
right: 0;
top: 0;
background-color: red;
}
@media only screen and (max-width:768px){
.icons i{
font-size: 30px;
}
.search-input-container{
width: 200%;
}
}
Binary file added solutions/position/2/bg.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
28 changes: 28 additions & 0 deletions solutions/position/2/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Blog Card</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/all.min.css"/>
<link rel="stylesheet" href="style.css">
</head>
<body>

<div class="wrapper">
<div class="blog-wrap">
<div class="blogtop">
<div class="food">
<button>Food <i class="fa-solid fa-caret-down"></i></button>
</div>
<div class="save"><button>Save</button> </div>
</div>
<div class="blogbottom">
<button class="upload"><i class="fa-solid fa-upload"></i></button>
<button class="dots"><span></span><span></span><span></span></button>
</div>
</div>
</div>

</body>
</html>
Binary file added solutions/position/2/preveiw.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
103 changes: 103 additions & 0 deletions solutions/position/2/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@


*{
margin: 0;
}
body{
background: #bf8a8a;
}
.wrapper{
display: flex;
align-items: center;
justify-content: center;
height: 100vh;
width: 100vw;
}
.blog-wrap{
display: flex;
flex-direction: column;
justify-content: space-between;
min-width: 300px;
min-height: 300px;
background: url('bg.jpg') no-repeat center/cover;
position: relative;
border-radius: 15px;
overflow: hidden;
padding: 10px;
}
.blog-wrap::before{
position: absolute;
content: '';
width: 100%;
height: 100%;
background: #000;
filter: opacity(0.5);
top: 0;
left: 0;
}
.blogtop,
.blogbottom{
display: flex;
position: relative;
}
.blogtop{
justify-content: space-between;
align-items: center;
}
.blogbottom{
justify-content: end;
gap: 10px;
}
.food button{
background: transparent;
padding: 5px;
border: none;
cursor: pointer;
font-size: 25px;
color: #fff;
}
.save button{
background: red;
padding: 20px;
border: none;
cursor: pointer;
font-size: 20px;
color: #fff;
border-radius: 20px;
}
.upload,
.dots {
filter: brightness(0.7);
}
.upload{
background: #fff;
height: 50px;
width: 50px;
display: flex;
align-items: center;
justify-content: center;
border: none;
border-radius: 100%;
cursor: pointer;
> i {
font-size: 18px;
}
}
.dots{
background: #fff;
border: none;
height: 50px;
width: 50px;
border-radius: 50%;
cursor: pointer;
display: flex;
justify-content: center;
align-items: center;
gap: 3px;
> span{
height: 10px;
width: 9px;
border-radius:50%;
background-color: #000;
}
}