Commit 2d0ba0a3 authored by Shanelle Valencia's avatar Shanelle Valencia

Fix search bar styling

parent 26d296ea
......@@ -17,7 +17,7 @@ const Nav = () => {
return (
<Flex className="header">
<Box className="left-nav">
<Link to="/"><Image src={Logo} alt="project logo" height="90%" width="80%" /></Link>
<Link to="/"><Image src={Logo} alt="project logo"height="90%" width="80%" /></Link>
</Box>
<Spacer />
<Flex className="right-nav">
......@@ -41,7 +41,7 @@ const Nav = () => {
borderRadius="sm"
bgGradient="linear(to-r, teal.500,blue.500)"
_hover={{
bgGradient: "linear(to-r, yellow.500, blue.500)",
bgGradient: "linear(to-r, blue.500, yellow.500)",
}}
onClick={handleAuth}>{authLinkText}</Button>
</Flex>
......
......@@ -62,9 +62,30 @@ code {
/* body */
.body-div {
padding-top: 50px;
}
.search-div {
padding: 5px;
}
.searchbar {
width: 300px;
margin-right: 150px;
border: 1px solid blue;
border-radius: 2px;
}
.searchbar:focus {
outline: none;
}
.table-div {
padding: 150px;
padding-top: 80px;
padding-top: 20px;
}
.index-table {
......@@ -72,6 +93,7 @@ code {
padding: 0 10px 15px 10px;
border-radius: 2px;
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
padding-top: 10px;
}
.show-div {
......@@ -92,6 +114,11 @@ code {
}
.account {
padding: 250px 0;
}
/* footer */
......
......@@ -3,7 +3,7 @@ import {useGoogleAuth} from 'hooks'
const AccountPage = () => {
const { manager } = useGoogleAuth();
return (
<Center>
<Center className="account">
<Box>
<Box>
<Avatar name={manager.firstName + " " + manager.lastName} size="2xl" src={manager.imageUrl} alt="profile" />
......
......@@ -43,7 +43,7 @@ const OrderIndexPage = () => {
useEffect(() => {
const newArray: Order[] = []
for (const ele of allOrders) {
if (ele.id.includes(searchInput)) {
if (ele.id.includes(searchInput.toLowerCase())) {
newArray.push(ele)
}
}
......@@ -56,16 +56,19 @@ const OrderIndexPage = () => {
}
return (
<div className="body-div">
<div className="table-div">
<Input
<div className="search-div">
<input
type="text"
placeholder="Search by Order Number"
focusBorderColor="telegram.400"
placeholder=" Search by Order Number"
value={searchInput}
onChange={handleChange}
onKeyDown={handleChange}
className="searchbar"
>
</Input>
</input>
</div>
<br/>
<div className="index-table">
<Table variant="striped" colorScheme="messenger" size="sm">
......@@ -82,6 +85,7 @@ const OrderIndexPage = () => {
</Table>
</div>
</div>
</div>
)
}
......
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