Skip to content

Commit

Permalink
Added hover effect to footer external links
Browse files Browse the repository at this point in the history
  • Loading branch information
Varunvaru524 committed Mar 12, 2023
1 parent 679e374 commit ca765ed
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/components/layout/Footer/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import { SiHashnode } from 'react-icons/si';

import styles from './index.module.css';

import HeaderLink from '@/components/links/HeaderLink';
import UnstyledLink from '@/components/links/UnstyledLink';

const Footer = () => {
Expand All @@ -25,7 +26,7 @@ const Footer = () => {
<ul>
{OrganizationLink.map((link) => (
<li key={link.name}>
<UnstyledLink href={link.link}>{link.name}</UnstyledLink>
<HeaderLink href={link.link}>{link.name}</HeaderLink>
</li>
))}
</ul>
Expand All @@ -35,9 +36,9 @@ const Footer = () => {
<ul>
{CommunityLinks.map((link) => (
<li key={link.name}>
<UnstyledLink href={link.link} openNewTab>
<HeaderLink href={link.link} openNewTab>
{link.name}
</UnstyledLink>
</HeaderLink>
</li>
))}
</ul>
Expand All @@ -48,7 +49,7 @@ const Footer = () => {
<ul>
{socialLinks.map((link) => (
<li key={link.name}>
<UnstyledLink href={link.link}>{link.name}</UnstyledLink>
<HeaderLink href={link.link}>{link.name}</HeaderLink>
</li>
))}
</ul>
Expand All @@ -58,7 +59,7 @@ const Footer = () => {
<ul>
{contactLinks.map((link) => (
<li key={link.name}>
<UnstyledLink href={link.link}>{link.name}</UnstyledLink>
<HeaderLink href={link.link}>{link.name}</HeaderLink>
</li>
))}
</ul>
Expand Down Expand Up @@ -105,7 +106,7 @@ const CommunityLinks = [
{ link: '/events', name: 'Events' },
{ link: '/courses', name: 'Courses' },
{ link: '/webinar', name: 'Webinars' },
{ link: 'https://github.com/WeMakeDevs/roadmaps', name: 'roadmaps' },
{ link: 'https://github.com/WeMakeDevs/roadmaps', name: 'Roadmaps' },
];

const socialLinks = [
Expand Down
4 changes: 4 additions & 0 deletions src/components/layout/Footer/index.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,10 @@
font-weight: 400;
}

.linkGroups li a {
padding-bottom: 3px;
}

@media (max-width: 900px) {
.footer {
padding-block: 2rem;
Expand Down

0 comments on commit ca765ed

Please sign in to comment.