Skip to content

Commit ae00668

Browse files
committed
refactor: Improve code organization and styles
1 parent c1f0848 commit ae00668

File tree

8 files changed

+22
-12
lines changed

8 files changed

+22
-12
lines changed

src/app/[lang]/about/ga/page.tsx

-3
This file was deleted.

src/components/molecules/header/header.tsx

+13-2
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,12 @@ export const Header = ({ lang }: { lang: Locale }) => {
4747
return (
4848
<header className="relative z-50 top-0 w-full ">
4949
<div className="w-full h-full flex justify-between items-center p-4">
50-
<CustomLink lang={lang} href="/" className="grow-0 text-4xl">
50+
<CustomLink
51+
lang={lang}
52+
href="/"
53+
className="grow-0 text-4xl"
54+
aria-label="Home page"
55+
>
5156
👋
5257
</CustomLink>
5358
<div className="flex grow justify-center gap-6">
@@ -70,7 +75,13 @@ export const Header = ({ lang }: { lang: Locale }) => {
7075
{theme === "dark" ? <LightMode /> : <DarkMode />}
7176
</i>
7277
</div>
73-
<Link href={getNewHref("en")} passHref replace>
78+
79+
<Link
80+
href={getNewHref("en")}
81+
passHref
82+
replace
83+
aria-label="Change language"
84+
>
7485
<i className="cursor-pointer">
7586
<WorldIcon />
7687
</i>

src/components/molecules/project-card.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ export const ProjectCard = ({
7474
group-hover:-translate-x-3
7575
group-hover:translate-y-3
7676
group-hover:-rotate-2
77-
opacity-0 bg-opacity-80 backdrop-blur-sm transition-opacity group-hover:opacity-100"
77+
opacity-0 bg-opacity-80 transition-opacity group-hover:opacity-100"
7878
>
7979
<div className="flex gap-4 mt-28 ml-20">
8080
<ProjectButtons repo={repo} website={website} />

src/components/organisms/experience-section.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export const ExperienceSection = ({ dictionary }: ExperienceSectionProps) => {
3636
{position}
3737
{isCurrent && (
3838
<Badge
39-
text="Latest"
39+
text={dictionary.LATEST}
4040
className="text-sm font-medium mr-2 px-2.5 py-0.5 rounded dark:bg-blue-200 dark:text-blue-800 ml-3"
4141
/>
4242
)}
@@ -52,7 +52,7 @@ export const ExperienceSection = ({ dictionary }: ExperienceSectionProps) => {
5252
</Link>
5353
</h4>
5454
</div>
55-
<time className="block mb-2 text-sm font-normal leading-none text-white dark:text-white/70">
55+
<time className="block mb-2 text-sm font-normal leading-none text-black/70 dark:text-white/70">
5656
{startDate} - {endDate}
5757
</time>
5858
<ul className="pb-4 text-base font-normal text-black-800 dark:text-black-200">

src/components/organisms/personal-info-section.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export const PersonalInfoSection = ({
2929
{dictionary.SOFT_SKILLS.LIST.map((skill) => (
3030
<li
3131
key={skill}
32-
className="bg-black/[0.7] text-sm tracking-wider text-white rounded-full dark:text-white/70 dark:bg-white/10 flex items-center px-4 py-2"
32+
className="bg-black/10 text-sm tracking-wider text-black/70 rounded-full dark:text-white/70 dark:bg-white/10 flex items-center px-4 py-2"
3333
>
3434
{skill}
3535
</li>

src/components/organisms/stack-section.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export const StackSection = ({ title, skills }: StackSectionProps) => {
3737
<ul className="grid grid-cols-2 gap-6 sm:grid-cols-3 md:grid-cols-4">
3838
{skills.map((skill, index) => (
3939
<motion.li
40-
className="bg-black/10 rounded-xl px-5 py-3 dark:bg-white/10 dark:text-white/80"
40+
className="bg-black/10 rounded-xl dark:bg-white/10 dark:text-white/80"
4141
key={index}
4242
variants={fadeInAnimationVariants}
4343
initial="initial"

src/lib/lang/en.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@
5050
"Developed mobile applications using the Flutter framework."
5151
]
5252
}
53-
}
53+
},
54+
"LATEST": "Latest"
5455
}
5556
},
5657
"STACK": {

src/lib/lang/es.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@
5050
"Desarrollé aplicaciones móviles utilizando el framework de Flutter."
5151
]
5252
}
53-
}
53+
},
54+
"LATEST": "Reciente"
5455
}
5556
},
5657

0 commit comments

Comments
 (0)