Skip to content

Commit f5e900f

Browse files
authored
Merge pull request #111 from sunithvs/default-about-issue
fix(about): default about fallback issue
2 parents 49de183 + 37ce7a6 commit f5e900f

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

www/components/AboutSection.tsx

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -72,13 +72,14 @@ export async function AboutSection({ username }: { username: string }) {
7272
className="flex flex-col gap-4 animate-slide-left"
7373
style={{ animationDelay: "200ms" }}
7474
>
75-
<div className="bg-white rounded-xl p-6 border-1 border-black border-b-4 transition-all duration-300 hover:shadow-lg hover:-translate-y-1">
76-
<h2 className="text-xl font-bold mb-4">🤔 About</h2>
77-
<p className="text-gray-700">
78-
{user?.about ||
79-
"Here's a professional profile summary that incorporates unique details from your profile: As a seasoned full-stack developer, I leverage my expertise in programming languages such as TypeScript, C, and JavaScript to drive business growth and innovation. With over 29 followers and 81 public repositories, I have established a strong online presence and contributed significantly to the developer community. Currently, I'm learning web development, blockchain, and Data Structures and Algorithms (DSA) to stay ahead of the curve. I'm excited to collaborate with like-minded professionals and tackle exciting projects. You can reach me on LinkedIn or Twitter, or email me at nayanprasad096@gmail.com."}
80-
</p>
81-
</div>
75+
{ user?.about &&
76+
<div
77+
className="bg-white rounded-xl p-6 border-1 border-black border-b-4 transition-all duration-300 hover:shadow-lg hover:-translate-y-1">
78+
<h2 className="text-xl font-bold mb-4">🤔 About</h2>
79+
<p className="text-gray-700">
80+
{user?.about}
81+
</p>
82+
</div>}
8283

8384
{user?.location && (<div
8485
className="bg-[#B9FF66] rounded-xl p-6 border-1 border-black border-b-4 col-span-2 transition-all duration-300 hover:shadow-lg hover:-translate-y-1 animate-fade-in"

0 commit comments

Comments
 (0)