Skip to content

Commit

Permalink
💄Nav
Browse files Browse the repository at this point in the history
  • Loading branch information
noeypatt committed Apr 6, 2020
1 parent 468f61b commit 7accd9f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 21 deletions.
21 changes: 12 additions & 9 deletions components/layout/nav.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,15 +113,18 @@ const NavBar = props => {
{
tab.map((item, index) => {
return (
<Link key={index} href={item.href}>
<a key={index} href={item.href}>
{
<React.Fragment>
<button className="btn">
<p>{item.name}</p>
</button>
</React.Fragment>
item.name == "เข้าสู่หน้าหลัก" ?
<p className="li-buttom-line-active">{item.name}</p>
:
<React.Fragment>
<button className="btn">
<p>{item.name}</p>
</button>
</React.Fragment>
}
</Link>
</a>
)
})
}
Expand All @@ -141,15 +144,15 @@ const NavBar = props => {
{
tab.map((item, index) => {
return (
<Link key={index} href={item.href}>
<a key={index} href={item.href}>
{
<React.Fragment>
<button className="btn">
<p>{item.name}</p>
</button>
</React.Fragment>
}
</Link>
</a>
)
})
}
Expand Down
13 changes: 1 addition & 12 deletions styles/nav.scss
Original file line number Diff line number Diff line change
Expand Up @@ -107,18 +107,6 @@ nav {
}
}

.warp-nav-sidebar {
width: 100% !important;
height: 4rem;
display: flex;
justify-content: center;
h2 {
display: flex;
align-items: center;
font-family: $font-header;
font-size: 1.5rem !important;
}
}
}

ul {
Expand All @@ -140,6 +128,7 @@ ul {
}
}
h2 {
cursor: pointer !important;
font-size: 2rem !important;
padding: 0 1rem !important;
font-family: $font-header;
Expand Down

1 comment on commit 7accd9f

@vercel
Copy link

@vercel vercel bot commented on 7accd9f Apr 6, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.