Skip to content

Commit a7108ab

Browse files
Refactor: Update header and remove duplicate titles
- Modified the header to match the design of the about page. - Removed duplicate titles from blog post and project detail pages.
1 parent e0cf859 commit a7108ab

File tree

3 files changed

+42
-23
lines changed

3 files changed

+42
-23
lines changed

src/components/ProfileHeader.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ interface ProfileHeaderProps {
77
title?: string;
88
}
99

10-
const ProfileHeader = ({ name, imageUrl, title = "Senior Site Reliability Engineer II" }: ProfileHeaderProps) => {
10+
const ProfileHeader = ({ name, imageUrl, title }: ProfileHeaderProps) => {
1111
return (
1212
<div className="flex flex-col items-center text-center animate-fade-up">
1313
<Avatar className="h-32 w-32 mb-4 border-4 border-white/20">

src/pages/BlogPost.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ const BlogPost = () => {
2929

3030
<article>
3131
<div className="mb-8">
32-
<h1 className="text-3xl md:text-4xl font-bold">{post.title}</h1>
3332
<p className="text-muted-foreground mt-2">{post.date}</p>
3433
</div>
3534

src/pages/Home.tsx

Lines changed: 41 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import ProfileHeader from '@/components/ProfileHeader';
44
import RecentPosts from '@/components/RecentPosts';
55
import RecentProjects from '@/components/RecentProjects';
66
import { blogPosts, projects } from '@/lib/data';
7-
import { ArrowRight } from 'lucide-react';
7+
import { ArrowRight, Github, Linkedin, Mail } from 'lucide-react';
88

99
const Home = () => {
1010
// Get the 3 most recent posts
@@ -20,30 +20,50 @@ const Home = () => {
2020
id: project.id,
2121
title: project.title,
2222
slug: project.slug,
23-
tags: ['kubernetes', 'cloud-native', 'sre']
23+
tags: project.tags || ['kubernetes', 'cloud-native', 'sre']
2424
}));
2525

2626
return (
27-
<div className="min-h-[calc(100vh-8rem)] max-w-2xl mx-auto bg-purple-gradient text-white rounded-lg p-8 md:p-12 shadow-xl">
28-
<ProfileHeader
29-
name="stafot"
30-
imageUrl="/lovable-uploads/14764fa4-1492-46b0-84a9-9f6b2fdafec1.png"
31-
/>
32-
33-
<div className="mt-8 max-w-lg mx-auto">
34-
<section className="mb-8 animate-fade-in" style={{ animationDelay: '0.1s' }}>
35-
<p className="text-white/90 leading-relaxed">
36-
Senior Site Reliability Engineer II at Mattermost, specializing in cloud-native solutions with a focus on data sovereignty, reliability, and FinOps practices.
37-
</p>
38-
<div className="mt-4">
39-
<Link to="/about" className="inline-flex items-center text-white/80 hover:text-white text-sm hover:underline transition-all duration-300 group">
40-
More about me <ArrowRight size={16} className="ml-1 group-hover:translate-x-1 transition-transform" />
41-
</Link>
42-
</div>
43-
</section>
27+
<div className="min-h-[calc(100vh-8rem)] mx-auto bg-purple-gradient text-white p-8 md:p-12">
28+
<div className="max-w-4xl mx-auto flex flex-col items-center">
29+
<ProfileHeader
30+
name="stafot"
31+
imageUrl="/lovable-uploads/14764fa4-1492-46b0-84a9-9f6b2fdafec1.png"
32+
title=""
33+
/>
34+
35+
<div className="flex justify-center space-x-4 mt-6">
36+
<a href="https://github.com/stafot" target="_blank" rel="noopener noreferrer"
37+
className="bg-white/10 rounded-full p-3 hover:bg-white/20 transition-colors">
38+
<Github size={24} />
39+
</a>
40+
<a href="https://linkedin.com/in/stafot" target="_blank" rel="noopener noreferrer"
41+
className="bg-white/10 rounded-full p-3 hover:bg-white/20 transition-colors">
42+
<Linkedin size={24} />
43+
</a>
44+
<a href="mailto:stafot@gmail.com"
45+
className="bg-white/10 rounded-full p-3 hover:bg-white/20 transition-colors">
46+
<Mail size={24} />
47+
</a>
48+
</div>
49+
50+
<div className="mt-12 max-w-lg mx-auto">
51+
<section className="mb-8 animate-fade-in" style={{ animationDelay: '0.1s' }}>
52+
<p className="text-white/90 leading-relaxed">
53+
Senior Site Reliability Engineer II at Mattermost, specializing in cloud-native solutions with a focus on data sovereignty, reliability, and FinOps practices.
54+
</p>
55+
<div className="mt-4">
56+
<Link to="/about" className="inline-flex items-center text-white/80 hover:text-white text-sm hover:underline transition-all duration-300 group">
57+
More about me <ArrowRight size={16} className="ml-1 group-hover:translate-x-1 transition-transform" />
58+
</Link>
59+
</div>
60+
</section>
4461

45-
<RecentPosts posts={recentPosts} />
46-
<RecentProjects projects={recentProjects} />
62+
<div className="space-y-8">
63+
<RecentPosts posts={recentPosts} />
64+
<RecentProjects projects={recentProjects} />
65+
</div>
66+
</div>
4767
</div>
4868
</div>
4969
);

0 commit comments

Comments
 (0)