Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
final-exam
Project
Project
Details
Activity
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nawasan Wisitsingkhon
final-exam
Commits
5f81e2cc
Commit
5f81e2cc
authored
Oct 05, 2023
by
Nawasan Wisitsingkhon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update styles navbar
parent
1a0e2250
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
5 deletions
+22
-5
Navbar.js
src/components/Navbar.js
+22
-5
No files found.
src/components/Navbar.js
View file @
5f81e2cc
...
...
@@ -294,7 +294,11 @@ function Navbar(props) {
return
(
<>
<
AppBar
position
=
"fixed"
>
<
AppBar
className
=
"shadow-sm bg-white/90"
color
=
"inherit"
position
=
"fixed"
>
<
Toolbar
>
<
Typography
variant
=
"h6"
...
...
@@ -302,14 +306,20 @@ function Navbar(props) {
component
=
"div"
sx
=
{{
display
:
{
xs
:
"none"
,
md
:
"block"
}
}}
>
<
Link
href
=
{
"/"
}
>
OpenShop
<
/Link
>
<
Link
className
=
"bg-black p-4 rounded-lg inline-block py-2"
href
=
{
"/"
}
>
OpenShop
<
/Link
>
<
/Typography
>
<
Search
>
<
SearchIconWrapper
>
<
SearchIcon
/>
<
/SearchIconWrapper
>
<
StyledInputBase
placeholder
=
"Search…"
className
=
"hover:border border-gray-300 hover:border-solid rounded duration-200"
placeholder
=
"ค้นหา…"
inputProps
=
{{
"aria-label"
:
"search"
}}
onChange
=
{(
e
)
=>
{
return
onUpdateSearch
(
e
.
target
.
value
);
...
...
@@ -317,11 +327,18 @@ function Navbar(props) {
/
>
<
/Search
>
<
Box
sx
=
{{
flexGrow
:
1
}}
/
>
<
Box
sx
=
{{
display
:
{
xs
:
"none"
,
md
:
"flex"
}
}}
>
<
Box
className
=
"rounded-lg"
sx
=
{{
display
:
{
xs
:
"none"
,
md
:
"flex"
,
backgroundColor
:
"black"
},
}}
>
{
MenuList
.
map
((
menu
,
idx
)
=>
(
<
Link
title
=
{
menu
.
label
}
className
=
"text-white"
className
=
{
`text-white duration-200
${
router
.
pathname
===
menu
.
link
?
" -translate-y-1"
:
""
}
`
}
key
=
{
idx
}
href
=
{
menu
.
link
}
>
...
...
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