Commit 3262e703 authored by Shanelle Valencia's avatar Shanelle Valencia

[AFP-137] 💄 Fix searchbar styling [@svalencia]

parent 7cde4903
...@@ -15,37 +15,41 @@ const Nav = () => { ...@@ -15,37 +15,41 @@ const Nav = () => {
<Avatar name={manager.firstName + " " + manager.lastName} boxSize="40px" borderRadius="full" src={manager.imageUrl} alt="profile"/> : null <Avatar name={manager.firstName + " " + manager.lastName} boxSize="40px" borderRadius="full" src={manager.imageUrl} alt="profile"/> : null
return ( return (
<Flex className="header"> <div >
<Box className="left-nav"> <Flex className="header">
<Link to="/"><Image src={Logo} alt="project logo"height="90%" width="80%" /></Link> {/* <Box className="left-nav">
</Box> <Link to="/"><Image src={Logo} alt="project logo"height="90%" width="80%" /></Link>
<Spacer /> </Box> */}
<Flex className="right-nav"> <Spacer />
<Link className="nav-link" to="/account">{userIcon}</Link> <Flex className="right-nav">
<Button <Link className="nav-link" to="/account">{userIcon}</Link>
p={2} <button
size="sm" // p={2}
color="white" // size="sm"
fontWeight="bold" // color="white"
borderRadius="sm" // fontWeight="bold"
bgGradient="linear(to-r, teal.500,blue.500)" // borderRadius="sm"
_hover={{ // bgGradient="linear(to-r, teal.500,blue.500)"
bgGradient: "linear(to-r, blue.500, yellow.500)", // _hover={{
}} // bgGradient: "linear(to-r, blue.500, yellow.500)",
><Link to="/orders">Orders</Link></Button> // }}
<Button >
p={2} <Link to="/orders">Orders</Link></button>
size="sm" <button
color="white" // p={2}
fontWeight="bold" // size="sm"
borderRadius="sm" // color="white"
bgGradient="linear(to-r, teal.500,blue.500)" // fontWeight="bold"
_hover={{ // borderRadius="sm"
bgGradient: "linear(to-r, blue.500, yellow.500)", // bgGradient="linear(to-r, teal.500,blue.500)"
}} // _hover={{
onClick={handleAuth}>{authLinkText}</Button> // bgGradient: "linear(to-r, blue.500, yellow.500)",
// }}
onClick={handleAuth}>{authLinkText}</button>
</Flex>
</Flex> </Flex>
</Flex> </div>
) )
} }
......
...@@ -49,7 +49,9 @@ body { ...@@ -49,7 +49,9 @@ body {
/* header */ /* header */
.header { .header {
border-bottom: 1.5px solid orange; /* border-bottom: 1.5px solid orange; */
background-color: rgba(216, 130, 32, 0.404);
} }
...@@ -88,14 +90,35 @@ body { ...@@ -88,14 +90,35 @@ body {
.search-div { .search-div {
padding: 5px; padding: 2px;
} }
.searchbar { /* .searchbar {
width: 300px; width: 220px;
margin-right: 150px; margin-right: 150px;
border: 1px solid blue; border: 1px solid blue;
border-radius: 2px; border-radius: 2px;
} */
input[type=text] {
width: 220px;
border: 2px solid rgb(184, 180, 180);
border-radius: 4px;
font-size: 14px;
background-color: white;
background-image: url('./img/searchicon.png');
background-size: 18px;
background-position: 10px 8px;
background-repeat: no-repeat;
padding: 12px 20px 12px 40px;
transition: width 0.4s ease-in-out;
height: 35px;
}
input[type=text]:focus {
width: 100%;
} }
...@@ -145,8 +168,7 @@ body { ...@@ -145,8 +168,7 @@ body {
.footer { .footer {
padding: 5px 0; padding: 5px 0;
/* border-top: 1.5px solid orange; */ /* border-top: 1.5px solid orange; */
background-color: rgba(253, 165, 0, 0.404); background-color: rgba(216, 130, 32, 0.404);
flex-shrink: 0; flex-shrink: 0;
font-size: 12px; font-size: 12px;
/* height: 50px; */
} }
\ No newline at end of file
...@@ -61,7 +61,7 @@ const OrderIndexPage = () => { ...@@ -61,7 +61,7 @@ const OrderIndexPage = () => {
<div className="search-div"> <div className="search-div">
<input <input
type="text" type="text"
placeholder=" Search by Order Number" placeholder="Search Order Number"
value={searchInput} value={searchInput}
onChange={handleChange} onChange={handleChange}
onKeyDown={handleChange} onKeyDown={handleChange}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment