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

Fix search bar styling

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