Ссылки футера, добавление эффекта на ссылки в заголовках

This commit is contained in:
ifraimka1 committed 2024-02-20 11:16:15 +03:00
1 parent a358f4d329
commit 928c062091
3 files changed
+29 -17

No files matched your search

+1 -1
View File
@@ -2,7 +2,7 @@ import { Link } from "react-router-dom";
function FooterLink({ link }) { function FooterLink({ link }) {
return ( return (
<Link to={ link.to } className="link"> <Link to={ link.to } className="link" target="_blank">
<img src={ link.icon } alt='icon' className='icon'/> <img src={ link.icon } alt='icon' className='icon'/>
</Link> </Link>
); );
-16
View File
@@ -29,8 +29,6 @@ $primary-text-color: white;
align-items: center; align-items: center;
.nav-link { .nav-link {
position: relative;
font-size: 16px; font-size: 16px;
font-weight: 500; font-weight: 500;
line-height: 20px; line-height: 20px;
@@ -43,21 +41,7 @@ $primary-text-color: white;
} }
.nav-link::after { .nav-link::after {
position: absolute;
content: '';
left: 50%;
transform: translateX(-50%);
bottom: 0;
display: block;
width: 0;
height: 1px;
background: white; background: white;
transition: 0.3s;
}
.nav-link:hover:after,
.nav-link.active:after {
width: 100%;
} }
} }
} }
+28
View File
@@ -80,4 +80,32 @@ $btn-dark: #585858;
color: white; color: white;
background-color: $btn-dark; background-color: $btn-dark;
}
.block .heading a,
.navbar .nav-link {
position: relative;
}
.block .heading a::after,
.navbar .nav-link::after {
position: absolute;
content: '';
left: 50%;
transform: translateX(-50%);
bottom: 0;
display: block;
width: 0;
height: 1px;
transition: 0.3s;
}
.block .heading a::after {
background: black;
}
.block .heading a:hover:after,
.navbar .nav-link:hover:after,
.navbar .nav-link.active:after {
width: 100%;
} }