From 51450c632cd2c4018ade8b9174cd3c3201fac6e4 Mon Sep 17 00:00:00 2001 From: ITurres Date: Wed, 13 Mar 2024 17:07:00 -0300 Subject: [PATCH] Refactor: Rename 'AnimatedButton' to 'ExpertiseLinks' UI component - Enhance accessibility. - Rename component import and usage in 'AboutPage'. - Rename style file and class names. --- src/components/UI/AnimatedButton.tsx | 32 --------------- src/components/UI/ExpertiseLinks.tsx | 41 +++++++++++++++++++ src/components/pages/AboutPage.tsx | 4 +- ...nimatedButton.scss => ExpertiseLinks.scss} | 3 +- 4 files changed, 45 insertions(+), 35 deletions(-) delete mode 100644 src/components/UI/AnimatedButton.tsx create mode 100644 src/components/UI/ExpertiseLinks.tsx rename src/styles/UI/{AnimatedButton.scss => ExpertiseLinks.scss} (92%) diff --git a/src/components/UI/AnimatedButton.tsx b/src/components/UI/AnimatedButton.tsx deleted file mode 100644 index a52d527..0000000 --- a/src/components/UI/AnimatedButton.tsx +++ /dev/null @@ -1,32 +0,0 @@ -import React from 'react'; -import { Link } from 'react-router-dom'; - -import '../../styles/UI/AnimatedButton.scss'; - -const AnimatedButton: React.FC = () => ( - -); - -export default AnimatedButton; diff --git a/src/components/UI/ExpertiseLinks.tsx b/src/components/UI/ExpertiseLinks.tsx new file mode 100644 index 0000000..a7d05a2 --- /dev/null +++ b/src/components/UI/ExpertiseLinks.tsx @@ -0,0 +1,41 @@ +import React from 'react'; +import { Link } from 'react-router-dom'; + +import '../../styles/UI/ExpertiseLinks.scss'; + +const ExpertiseLinks: React.FC = () => ( +
+ + languages + + + frameworks + + + skills + + + resume + +
+); + +export default ExpertiseLinks; diff --git a/src/components/pages/AboutPage.tsx b/src/components/pages/AboutPage.tsx index a44e522..28804ac 100644 --- a/src/components/pages/AboutPage.tsx +++ b/src/components/pages/AboutPage.tsx @@ -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'; @@ -42,7 +42,7 @@ const AboutPage: React.FC = () => { with diverse teams worldwide.

- +