Skip to content

Commit

Permalink
Merge pull request Girl-Code-It#241 from ShrutiOmer/search
Browse files Browse the repository at this point in the history
Search icon added
  • Loading branch information
vaishali614 authored May 8, 2021
2 parents 50a4788 + 5221759 commit 21b122a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
10 changes: 8 additions & 2 deletions src/CSS/Navbar.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,15 @@ a:not([href]):hover{
.searchContainer{
margin-right: 10px;
align-self: center;
padding-left: 10px;
background-color: #f0f0f0;
}
.searchContainer input{
outline: none;
}

.searchBar{
height: 2.25rem;
width:200px;
width:163px;
background-color: #f0f0f0;
border:none;
border-radius: 5px;
Expand Down Expand Up @@ -285,6 +289,8 @@ a:not([href]):hover{
.searchContainer{
align-self: flex-start;
margin-left: 20px;
padding-left: 10px;
background-color: #f0f0f0;
}
.link{
align-self: flex-start;
Expand Down
6 changes: 5 additions & 1 deletion src/Components/ViewOpportunity/Navbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ import React from 'react';
import styles from '../../CSS/Navbar.module.css';
import { Navbar, Nav, Button } from 'react-bootstrap';
import { Link } from 'react-router-dom'
import {
FiSearch
} from 'react-icons/fi';
// import { AiOutlineSearch } from 'react-icons/ai';

function Navbar1() {
Expand All @@ -28,7 +31,8 @@ function Navbar1() {
<Navbar.Collapse id="responsive-navbar-nav" >
<Nav className="ml-auto">
<div className={styles.searchContainer} >
<input type="text" className={styles.searchBar} placeholder="Search" />
<FiSearch />
<input type="text" className={styles.searchBar} placeholder="Search" />
</div>
<Link className={styles.link} to={postOpportunityPath}>
<Button className={styles.Button} >
Expand Down

0 comments on commit 21b122a

Please sign in to comment.