Skip to content

Commit

Permalink
Merge pull request #86 from hannah-maria/feature3/hannah
Browse files Browse the repository at this point in the history
Improved the searchbar
  • Loading branch information
aslams2020 authored Oct 2, 2024
2 parents 98db939 + ddef4a0 commit fbd213a
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 42 deletions.
10 changes: 7 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Stark Tech Portfolio</title>
<link rel="stylesheet" href="style.css">
<link rel="website icon" href="assets/logo/icon.png">

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
<link rel="website icon" href="/assets/logo/icon.png">
<link href="https://unpkg.com/[email protected]/dist/aos.css" rel="stylesheet">

</head>
Expand All @@ -26,8 +28,10 @@
</ul>

<div class="rightNav visibility">
<input type="text" name="search" id="search" placeholder="Search the website">
<button class="btn btn-sm">Search</button>
<form class="search-bar">
<input type="text" name="search" placeholder="Search the website">
<button type="submit"><i class="fa-solid fa-magnifying-glass"></i></button>
</form>
</div>
<div class="burger">
<div class="line"></div>
Expand Down
78 changes: 39 additions & 39 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ html{
width: 75%;
display: flex;
align-items: center;
margin-right: 75px;
}
.nav-list li{
list-style: none;
Expand All @@ -143,59 +144,58 @@ html{

/* Right Nav */

.rightNav{
.rightNav{
width: 40%;
text-align: right;
padding: 0px 23px;
}
}

.rightNav button {
.rightNav button {
color: black;
border: none;
background-color: white;
background-color: rgb(238, 10, 10);
margin-bottom: 10px;
}

#search{
padding: 5px;
font-size: 17px;
border: 1px solid rgba(163, 0, 0, 0.801);
border-radius: 9px;
}
}

#search::placeholder {
color: rgba(127, 20, 1, 0.715);
font-style: italic;
font-size: 15px;
.search-bar{
margin-left: 90px;
width:300px;
height:40px;
max-width: 600px;
display: flex;
align-items: center;
background-color: white;
border-radius: 60px;
padding: 5px 10px;
}

.btn{
padding: 8px 20px;
border: 2px solid black;
border-radius: 8px;
margin: 7px 3px;
.search-bar input{
background: transparent;
font-family: 'Alkatra', cursive;
flex: 1;
border: none;
outline: none;
font-size: 15px;
background: none;
color: black;
cursor: pointer;
align-items: center;
padding-left: 25px;
color: rgb(238, 10, 10);
margin-top: 3px;
}
.btn a{
color: white;
text-decoration: none;
::placeholder{
color: rgb(238, 10, 10);
}
.btn a:hover{
color: black;
background-color: rgba(255, 255, 255, 0.357);

.search-bar button{
border: 0;
border-radius: 50%;
width: 30px;
height: 30px;
cursor: pointer;
transition: 0.3s;
margin-top: 9px;
margin-right: 7px;
}
.btn:hover{
background-color: white;
color: red;
font-weight: bolder;
}
.btn-sm{
padding: 6px 10px;
vertical-align: middle;
.search-bar button:hover{
transform: scale(1.1);
}
.box-main{
display: flex;
Expand Down

0 comments on commit fbd213a

Please sign in to comment.