Skip to content

Commit c2aec2b

Browse files
Refactor: Replace avatar with profile image
Replaced the circular avatar with a profile image on the home page and updated the profile header component.
1 parent a7108ab commit c2aec2b

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

src/components/ProfileHeader.tsx

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,15 @@ interface ProfileHeaderProps {
1010
const ProfileHeader = ({ name, imageUrl, title }: ProfileHeaderProps) => {
1111
return (
1212
<div className="flex flex-col items-center text-center animate-fade-up">
13-
<Avatar className="h-32 w-32 mb-4 border-4 border-white/20">
14-
<AvatarImage src={imageUrl} alt={name} />
15-
<AvatarFallback>{name.slice(0, 2).toUpperCase()}</AvatarFallback>
13+
<Avatar className="h-32 w-32 mb-4 border-4 border-white/20 shadow-xl">
14+
<AvatarImage src={imageUrl} alt={name} className="object-cover" />
15+
<AvatarFallback>
16+
<img
17+
src="/placeholder.svg"
18+
alt="Tech professional placeholder"
19+
className="w-full h-full object-cover bg-gray-200"
20+
/>
21+
</AvatarFallback>
1622
</Avatar>
1723
<h1 className="text-4xl font-bold">{name}</h1>
1824
{title && <p className="text-lg text-white/80 mt-2">{title}</p>}

src/pages/Home.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const Home = () => {
2020
id: project.id,
2121
title: project.title,
2222
slug: project.slug,
23-
tags: project.tags || ['kubernetes', 'cloud-native', 'sre']
23+
tags: ['kubernetes', 'cloud-native', 'sre'] // Fixed: Explicitly setting tags array
2424
}));
2525

2626
return (

0 commit comments

Comments
 (0)