From e8451b8253d88d2ff13b3dd50ffe6f6cfb616937 Mon Sep 17 00:00:00 2001 From: Leo dev Date: Sat, 22 Nov 2025 11:34:41 +0100 Subject: [PATCH] Improved portfolio --- src/app/api/contribs/route.ts | 4 +- src/app/layout.tsx | 2 +- src/app/page.tsx | 167 ++++++++++++++++------------------ src/components/Background.tsx | 4 +- 4 files changed, 85 insertions(+), 92 deletions(-) diff --git a/src/app/api/contribs/route.ts b/src/app/api/contribs/route.ts index a107556..3f11ff3 100644 --- a/src/app/api/contribs/route.ts +++ b/src/app/api/contribs/route.ts @@ -27,8 +27,8 @@ export async function GET(req: NextRequest) { const data = await response.json(); const total = - data.data.user.contributionsCollection.contributionCalendar - .totalContributions; + data?.data?.user?.contributionsCollection?.contributionCalendar + ?.totalContributions; return NextResponse.json({ total }, { status: 200 }); } diff --git a/src/app/layout.tsx b/src/app/layout.tsx index 7db9358..28c1d98 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -17,7 +17,7 @@ export default function RootLayout({ -
{children}
+
{children}
diff --git a/src/app/page.tsx b/src/app/page.tsx index 41c8f45..59372e4 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -31,98 +31,91 @@ export default function App() { }, []); return ( -
-
-
-
-

Hey, I'm Klesti! 👋🏻

-

- A 15 year old Software Engineer from Tirane, Albania, with 6 years - of experience, specializing in full-stack web development, desktop - applications, TUI apps, and hacking. I also have a deep interest - in low-level programming. -

+
+
+

Hey, I'm Klesti! 👋🏻

+

+ A 15 year old Software Engineer from Tirane, Albania, with 6 years of + experience, specializing in full-stack web development, desktop + applications, TUI apps, and hacking. I also have a deep interest in + low-level programming. +

- {/* Socials and skill */} -
- {/* socials */} - -
-
-
- - - - - - -
-
+ {/* Socials and skill */} +
+ {/* socials */} + +
+
+
+ + + + + +
- -

Pinned Projects

-
- -
-

- {contribs || "Loading.."} contributions in the last year -

-
- -
-
- If you see this i ❤️ you -

- © 2025 Klesti. All rights reserved. -

-
+ +

Pinned Projects

+
+ +
+

+ {contribs || "Loading.."} contributions in the last year +

+
+ +
+
+ If you see this i ❤️ you +

+ © 2025 Klesti. All rights reserved. +

+
); diff --git a/src/components/Background.tsx b/src/components/Background.tsx index c0e6291..5d88653 100644 --- a/src/components/Background.tsx +++ b/src/components/Background.tsx @@ -72,9 +72,9 @@ export default function Background({ }} src="/logo.png" alt="Logo" - className="size-24 rounded-full border-slate-500 border" + className="size-24 rounded-full border-slate-500 border z-10 absolute" /> -
{children}
+
{children}
); }