Skip to content

Commit

Permalink
💡 (components/Footer.tsx): update Footer component to include 'noope…
Browse files Browse the repository at this point in the history
…ner noreferrer' and 'aria-label' attributes for accessibility purposes

🌐 (styles/footer.css): refactor CSS to remove unnecessary color inheritance in hover states, improve readability by adding comments, and make the Discord icon visible on hover
✨ (components/Footer.tsx, styles/footer.css): update Footer component and its associated styles to be responsive on mobile devices with a center-justified layout when screen width is less than or equal to 768px
  • Loading branch information
danieldanielecki committed Aug 12, 2024
1 parent 50faf73 commit 2e4197b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
11 changes: 8 additions & 3 deletions components/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import {
SiX,
} from "react-icons/si";
import "styles/footer.css";

const Footer = () => {
const currentYear = new Date().getFullYear();
const iconSize = 28;
Expand Down Expand Up @@ -42,7 +41,6 @@ const Footer = () => {
url: "https://play.google.com/store/books/collection/cluster?gsr=SheCARQKEAoMWjZNR0VRQUFRQkFKEAkQBA%3D%3D:S:ANO1ljK1zJ0",
icon: <SiGoogleplay className="googleplay" size={iconSize} />,
},

{
url: "https://instagram.com/ditectrev",
icon: <SiInstagram className="instagram" size={iconSize} />,
Expand Down Expand Up @@ -72,7 +70,14 @@ const Footer = () => {
className="mx-3 my-3 social-icons-container"
>
{socialMediaLinks.map((link, index) => (
<a key={index} className="px-2" href={link.url} target="_blank">
<a
key={index}
className="px-2"
href={link.url}
target="_blank"
rel="noopener noreferrer"
aria-label={`Visit ${link.url}`}
>
{link.icon}
</a>
))}
Expand Down
8 changes: 2 additions & 6 deletions styles/footer.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@

.social-icons-container a {
transition: transform 0.5s ease, color 0.5s ease;
color: inherit;
}

.social-icons-container a:hover {
color: inherit;
transform: scale(1.2);
}

.social-icons-container a:hover .discord {
Expand Down Expand Up @@ -55,11 +56,6 @@
color: #aaa;
}

.social-icons-container a:hover {
transform: scale(1.2);

}

@media (max-width: 768px) {
.social-icons-container {
justify-content: center;
Expand Down

0 comments on commit 2e4197b

Please sign in to comment.