Changes to spacing and microexpressions on hover
This commit is contained in:
parent
21199b765a
commit
a1844b29e6
@ -18,8 +18,8 @@ const Navbar = () => {
|
|||||||
<header>
|
<header>
|
||||||
<nav className={`nav`}>
|
<nav className={`nav`}>
|
||||||
<Link href={"/"}>
|
<Link href={"/"}>
|
||||||
<div className="flex items-center"><Image src="/shilohlogowhite.png" alt="Description of the image" width={50} height={50} />
|
<div className="flex items-center hover:fade"><Image src="/shilohlogowhite.png" alt="Description of the image" width={30} height={30} />
|
||||||
<h1 className="logo px-5">shiloh</h1></div>
|
<h1 className="logo px-2">shiloh</h1></div>
|
||||||
</Link>
|
</Link>
|
||||||
<div
|
<div
|
||||||
onClick={() => setNavActive(!navActive)}
|
onClick={() => setNavActive(!navActive)}
|
||||||
|
|||||||
@ -82,15 +82,28 @@ nav{
|
|||||||
}
|
}
|
||||||
.nav__menu-list.active{
|
.nav__menu-list.active{
|
||||||
right: 0;
|
right: 0;
|
||||||
|
background-color:rgba(0, 0, 0, 0.815);
|
||||||
}
|
}
|
||||||
.nav__link{
|
.nav__item{
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
position: relative;
|
position: relative;
|
||||||
transition: all 0.2s;
|
transition: all 0.2s;
|
||||||
}
|
}
|
||||||
|
|
||||||
.nav__link:hover{
|
.nav__item::before{
|
||||||
font-weight: bold;
|
content: '';
|
||||||
|
position: absolute;
|
||||||
|
width: 0%;
|
||||||
|
height: 1px;
|
||||||
|
bottom: -2px;
|
||||||
|
left: 0;
|
||||||
|
background-color: rgb(59, 130, 246);
|
||||||
|
transition: all 0.2s;
|
||||||
|
z-index: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.nav__item:hover::before{
|
||||||
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.center{
|
.center{
|
||||||
@ -99,6 +112,7 @@ nav{
|
|||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media screen and (min-width: 768px) {
|
@media screen and (min-width: 768px) {
|
||||||
.nav__menu-bar{
|
.nav__menu-bar{
|
||||||
display: none;
|
display: none;
|
||||||
@ -111,18 +125,21 @@ nav{
|
|||||||
column-gap: 24px;
|
column-gap: 24px;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
.nav__link::before{
|
.nav__item::before{
|
||||||
content: '';
|
content: '';
|
||||||
position: absolute;
|
position: absolute;
|
||||||
width: 0%;
|
width: 0%;
|
||||||
height: 6px;
|
height: 1px;
|
||||||
bottom: -16px;
|
bottom: -1px;
|
||||||
left: 0;
|
left: 0;
|
||||||
background-color: white;
|
background-color: white;
|
||||||
transition: all 0.2s;
|
transition: all 0.2s;
|
||||||
|
z-index: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
.nav__link:hover:before{
|
.nav__item:hover::before{
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -53,6 +53,7 @@ module.exports = {
|
|||||||
"px-20",
|
"px-20",
|
||||||
"px-5",
|
"px-5",
|
||||||
"text-base",
|
"text-base",
|
||||||
|
"px-2",
|
||||||
],
|
],
|
||||||
theme: {
|
theme: {
|
||||||
extend: {
|
extend: {
|
||||||
|
|||||||
Reference in New Issue
Block a user