From bc309406bda9ae64572ef100385a5a02dc274903 Mon Sep 17 00:00:00 2001 From: Ameya Shenoy Date: Sun, 29 Jun 2025 18:03:41 +0530 Subject: [PATCH] chore: add socials everywhererequire Signed-off-by: Ameya Shenoy --- frontend/src/app/blog/page.tsx | 5 +++ frontend/src/app/page.tsx | 5 +++ frontend/src/app/portfolio/page.tsx | 27 ++------------- frontend/src/components/Socials.tsx | 53 +++++++++++++++++++++++++++++ 4 files changed, 66 insertions(+), 24 deletions(-) create mode 100644 frontend/src/components/Socials.tsx diff --git a/frontend/src/app/blog/page.tsx b/frontend/src/app/blog/page.tsx index cc470b9..a6224e6 100644 --- a/frontend/src/app/blog/page.tsx +++ b/frontend/src/app/blog/page.tsx @@ -1,5 +1,6 @@ import { promises as fs } from "fs"; import Link from "next/link"; +import Socials from "@/components/Socials"; async function getFolders(dirPath: string) { try { @@ -97,6 +98,10 @@ export default async function BlogList() { ))} + +
+ +
); } diff --git a/frontend/src/app/page.tsx b/frontend/src/app/page.tsx index 4766b04..764b279 100644 --- a/frontend/src/app/page.tsx +++ b/frontend/src/app/page.tsx @@ -1,5 +1,6 @@ import { NameComponent } from "@/components/NameComponent"; import { World } from "@/components/PhysicsSimulation"; +import Socials from "@/components/Socials"; export default function Home() { return ( @@ -8,6 +9,10 @@ export default function Home() { + +
+ +
); diff --git a/frontend/src/app/portfolio/page.tsx b/frontend/src/app/portfolio/page.tsx index d4b4e8a..96d1d81 100644 --- a/frontend/src/app/portfolio/page.tsx +++ b/frontend/src/app/portfolio/page.tsx @@ -1,12 +1,8 @@ import { MapPin, Code, Briefcase, Download } from "lucide-react"; -import { headers } from "next/headers"; import { Icon } from "@iconify/react"; import Link from "next/link"; -import { - Tooltip, - TooltipContent, - TooltipTrigger, -} from "@/components/ui/tooltip"; + +import Socials from "@/components/Socials"; export default async function Portfolio() { // const headersList = await headers(); @@ -228,24 +224,7 @@ export default async function Portfolio() { ai driven solutions while also maintaining the role of an individual contributor. -
- {socials.map((social, _) => ( - - - - - - - -

{social.hoverText}

-
-
- ))} -
+
diff --git a/frontend/src/components/Socials.tsx b/frontend/src/components/Socials.tsx new file mode 100644 index 0000000..83b6afc --- /dev/null +++ b/frontend/src/components/Socials.tsx @@ -0,0 +1,53 @@ +import { + Tooltip, + TooltipContent, + TooltipTrigger, +} from "@/components/ui/tooltip"; + +import { Icon } from "@iconify/react"; +import Link from "next/link"; + +export default async function Portfolio() { + const socials = [ + { + icon: "pajamas:mail", + link: "mailto:shenoy.ameya@gmail.com", + hoverText: "Shoot me an email!", + }, + + { + icon: "pajamas:linkedin", + link: "https://linkedin.com/in/codingcoffee", + hoverText: "Let's connect on LinkedIn", + }, + + { + icon: "pajamas:github", + link: "https://github.com/codingcoffee", + hoverText: "Checkout my opensource repos at GitHub", + }, + + { + icon: "pajamas:twitter", + link: "https://x.com/codingcoffeeX", + hoverText: "Follow me on X!", + }, + ]; + + return ( +
+ {socials.map((social, _) => ( + + + + + + + +

{social.hoverText}

+
+
+ ))} +
+ ); +}