Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
order-management-react
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ascend
order-management-react
Commits
3262e703
Commit
3262e703
authored
May 13, 2021
by
Shanelle Valencia
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[AFP-137]
💄
Fix searchbar styling [
@svalencia
]
parent
7cde4903
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
63 additions
and
37 deletions
+63
-37
Nav.tsx
src/components/Nav.tsx
+34
-30
searchicon.png
src/img/searchicon.png
+0
-0
index.css
src/index.css
+28
-6
OrderIndexPage.tsx
src/pages/OrderIndexPage.tsx
+1
-1
No files found.
src/components/Nav.tsx
View file @
3262e703
...
...
@@ -15,37 +15,41 @@ const Nav = () => {
<
Avatar
name=
{
manager
.
firstName
+
" "
+
manager
.
lastName
}
boxSize=
"40px"
borderRadius=
"full"
src=
{
manager
.
imageUrl
}
alt=
"profile"
/>
:
null
return
(
<
Flex
className=
"header"
>
<
Box
className=
"left-nav"
>
<
Link
to=
"/"
><
Image
src=
{
Logo
}
alt=
"project logo"
height=
"90%"
width=
"80%"
/></
Link
>
</
Box
>
<
Spacer
/>
<
Flex
className=
"right-nav"
>
<
Link
className=
"nav-link"
to=
"/account"
>
{
userIcon
}
</
Link
>
<
Button
p=
{
2
}
size=
"sm"
color=
"white"
fontWeight=
"bold"
borderRadius=
"sm"
bgGradient=
"linear(to-r, teal.500,blue.500)"
_hover=
{
{
bgGradient
:
"linear(to-r, blue.500, yellow.500)"
,
}
}
><
Link
to=
"/orders"
>
Orders
</
Link
></
Button
>
<
Button
p=
{
2
}
size=
"sm"
color=
"white"
fontWeight=
"bold"
borderRadius=
"sm"
bgGradient=
"linear(to-r, teal.500,blue.500)"
_hover=
{
{
bgGradient
:
"linear(to-r, blue.500, yellow.500)"
,
}
}
onClick=
{
handleAuth
}
>
{
authLinkText
}
</
Button
>
<
div
>
<
Flex
className=
"header"
>
{
/* <Box className="left-nav">
<Link to="/"><Image src={Logo} alt="project logo"height="90%" width="80%" /></Link>
</Box> */
}
<
Spacer
/>
<
Flex
className=
"right-nav"
>
<
Link
className=
"nav-link"
to=
"/account"
>
{
userIcon
}
</
Link
>
<
button
// p={2}
// size="sm"
// color="white"
// fontWeight="bold"
// borderRadius="sm"
// bgGradient="linear(to-r, teal.500,blue.500)"
// _hover={{
// bgGradient: "linear(to-r, blue.500, yellow.500)",
// }}
>
<
Link
to=
"/orders"
>
Orders
</
Link
></
button
>
<
button
// p={2}
// size="sm"
// color="white"
// fontWeight="bold"
// borderRadius="sm"
// bgGradient="linear(to-r, teal.500,blue.500)"
// _hover={{
// bgGradient: "linear(to-r, blue.500, yellow.500)",
// }}
onClick=
{
handleAuth
}
>
{
authLinkText
}
</
button
>
</
Flex
>
</
Flex
>
</
Flex
>
</
div
>
)
}
...
...
src/img/searchicon.png
0 → 100644
View file @
3262e703
18 KB
src/index.css
View file @
3262e703
...
...
@@ -49,7 +49,9 @@ body {
/* 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 {
.search-div
{
padding
:
5
px
;
padding
:
2
px
;
}
.searchbar
{
width
:
30
0px
;
/*
.searchbar {
width:
22
0px;
margin-right: 150px;
border: 1px solid blue;
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 {
.footer
{
padding
:
5px
0
;
/* border-top: 1.5px solid orange; */
background-color
:
rgba
(
2
53
,
165
,
0
,
0.404
);
background-color
:
rgba
(
2
16
,
130
,
32
,
0.404
);
flex-shrink
:
0
;
font-size
:
12px
;
/* height: 50px; */
}
\ No newline at end of file
src/pages/OrderIndexPage.tsx
View file @
3262e703
...
...
@@ -61,7 +61,7 @@ const OrderIndexPage = () => {
<
div
className=
"search-div"
>
<
input
type=
"text"
placeholder=
"
Search by
Order Number"
placeholder=
"
Search
Order Number"
value=
{
searchInput
}
onChange=
{
handleChange
}
onKeyDown=
{
handleChange
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment