Skip to content

Commit 8d2af3d

Browse files
committed
fix: Update GIF paths and replace Image component with native img for better performance
1 parent 4b5f36c commit 8d2af3d

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

app/page.tsx

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -82,31 +82,31 @@ const projects: Project[] = [
8282
"A personal portfolio website built with Next.js, Tailwind CSS, and Framer Motion. Features a responsive design, animated transitions, and showcases projects, skills, and contact information.",
8383
technologies: ["Next.js", "Tailwind CSS", "Framer Motion"],
8484
link: "https://github.com/recule556688/portfolio",
85-
gif: "/tessdev2x.gif?height=300&width=400",
85+
gif: "/tessdev2x.gif",
8686
},
8787
{
8888
title: "GlobalSort GUI",
8989
description:
9090
"Python-based utility tool to organize files in directories. Offers features like sorting files by type, customizable folders, and extensions, all within a user-friendly GUI.",
9191
technologies: ["Python", "Pyinstaller", "PyQt"],
9292
link: "https://github.com/recule556688/GlobalSort_GUI",
93-
gif: "/GlobalSort2x.gif?height=300&width=400",
93+
gif: "/GlobalSort2x.gif",
9494
},
9595
{
9696
title: "VALORANT Instalocker",
9797
description:
9898
"A VALORANT Instalocker with a clean GUI that automatically selects agents using the VALORANT API via valclient. Features agent selection, API error handling, and customization options for agent banners and previews.",
9999
technologies: ["Python", "VALORANT API", "valclient", "GUI"],
100100
link: "https://github.com/recule556688/VALORANT-Instalocker",
101-
gif: "/valorant2x.gif?height=300&width=400",
101+
gif: "/valorant2x.gif",
102102
},
103103
{
104104
title: "Discord Bot Private",
105105
description:
106106
"A custom Discord bot designed to automate tasks, moderate servers, and provide entertainment features. Built using Python and the discord.py library with slash commands, Control by API of Minecraft Servers, and a lot more.",
107107
technologies: ["Python", "discord.py", "API integration", "Slash commands"],
108108
link: "https://github.com/recule556688/Discord_Bot_Private",
109-
gif: "/discord2x.gif?height=300&width=400",
109+
gif: "/discord2x.gif",
110110
},
111111
];
112112

@@ -170,13 +170,15 @@ const ProjectCard: React.FC<ProjectCardProps> = ({ project, isReversed }) => {
170170
whileHover={{ scale: 1.05 }}
171171
transition={{ duration: 0.2 }}
172172
>
173-
<Image
173+
{/* Use native img for animated GIFs to avoid Next.js optimization issues */}
174+
<img
174175
src={project.gif}
175176
alt={`${project.title} demonstration`}
176177
width={600}
177178
height={400}
178-
layout="responsive"
179-
style={{ objectFit: "cover" }}
179+
decoding="async"
180+
loading="lazy"
181+
style={{ width: "100%", height: "auto", objectFit: "cover" }}
180182
className="rounded-lg"
181183
/>
182184
</motion.div>
@@ -417,7 +419,7 @@ export default function Portfolio() {
417419
className="flex flex-col gap-2 sm:flex-row py-6 w-full shrink-0 items-center px-4 md:px-6 border-t border-gray-700 bg-gray-800"
418420
>
419421
<p className="text-xs text-gray-400">
420-
© 2024 Tess Corp. All rights reserved.
422+
© 2025 Tess Corp. All rights reserved.
421423
</p>
422424
<nav className="sm:ml-auto flex gap-4 sm:gap-6">
423425
<Link

0 commit comments

Comments
 (0)