Skip to content

Commit

Permalink
Refactor: Rename 'AnimatedButton' to 'ExpertiseLinks' UI component
Browse files Browse the repository at this point in the history
- Enhance accessibility.
- Rename component import and usage in 'AboutPage'.
- Rename style file and class names.
  • Loading branch information
ITurres committed Mar 13, 2024
1 parent c2a8c88 commit 51450c6
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 35 deletions.
32 changes: 0 additions & 32 deletions src/components/UI/AnimatedButton.tsx

This file was deleted.

41 changes: 41 additions & 0 deletions src/components/UI/ExpertiseLinks.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
import React from 'react';
import { Link } from 'react-router-dom';

import '../../styles/UI/ExpertiseLinks.scss';

const ExpertiseLinks: React.FC = () => (
<div className="expertise-links">
<Link
to="/homepage/expertise"
className="text-hue-rotate"
aria-label="navigate to expertise section"
>
languages
</Link>
<Link
to="/homepage/expertise"
className="text-hue-rotate"
aria-label="navigate to expertise section"
>
frameworks
</Link>
<Link
to="/homepage/expertise"
className="text-hue-rotate"
aria-label="navigate to expertise section"
>
skills
</Link>
<a
href="https://docs.google.com/document/d/1vfOALwpILAh8Jn29zV6aO6jwuGZQwLyYjRb3_YKZfQ0/edit?usp=sharing"
className="text-hue-rotate"
aria-label="navigate to Arthur's resume which is hosted on Google Docs"
target="_blank"
rel="noreferrer noopener"
>
resume
</a>
</div>
);

export default ExpertiseLinks;
4 changes: 2 additions & 2 deletions src/components/pages/AboutPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import profileImage from '../../assets/images/profile/profile.png';
import homepageDotsImage from '../../assets/images/bg/homepage-dots-img.png';
import '../../styles/pages/AboutPage.scss';

import AnimatedButton from '../UI/AnimatedButton.tsx';
import ExpertiseLinks from '../UI/ExpertiseLinks.tsx';

import setPageTitle from '../../utils/setPageTitle.ts';

Expand Down Expand Up @@ -42,7 +42,7 @@ const AboutPage: React.FC = () => {
with diverse teams worldwide.
</p>

<AnimatedButton />
<ExpertiseLinks />

<Link
to="/homepage/contact"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ $color1-hover: colors.$color1;
$color2-hover: colors.$color2;
$dark: colors.$dark;

.animated-button {
.expertise-links {
display: flex;
flex-direction: column;
position: relative;
Expand All @@ -22,6 +22,7 @@ $dark: colors.$dark;
max-width: 550px;
width: 100%;
margin-bottom: 0.7rem;
cursor: pointer; // * Even though the element is not a button, emulate the button hover effect.

&::before {
content: '';
Expand Down

0 comments on commit 51450c6

Please sign in to comment.