chore: add socials everywhererequire
Signed-off-by: Ameya Shenoy <shenoy.ameya@gmail.com>
This commit is contained in:
parent
898a236510
commit
bc309406bd
4 changed files with 66 additions and 24 deletions
|
|
@ -1,5 +1,6 @@
|
||||||
import { promises as fs } from "fs";
|
import { promises as fs } from "fs";
|
||||||
import Link from "next/link";
|
import Link from "next/link";
|
||||||
|
import Socials from "@/components/Socials";
|
||||||
|
|
||||||
async function getFolders(dirPath: string) {
|
async function getFolders(dirPath: string) {
|
||||||
try {
|
try {
|
||||||
|
|
@ -97,6 +98,10 @@ export default async function BlogList() {
|
||||||
))}
|
))}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div className="pt-20 text-2xl md:text-3xl">
|
||||||
|
<Socials />
|
||||||
|
</div>
|
||||||
</main>
|
</main>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
import { NameComponent } from "@/components/NameComponent";
|
import { NameComponent } from "@/components/NameComponent";
|
||||||
import { World } from "@/components/PhysicsSimulation";
|
import { World } from "@/components/PhysicsSimulation";
|
||||||
|
import Socials from "@/components/Socials";
|
||||||
|
|
||||||
export default function Home() {
|
export default function Home() {
|
||||||
return (
|
return (
|
||||||
|
|
@ -8,6 +9,10 @@ export default function Home() {
|
||||||
<World />
|
<World />
|
||||||
|
|
||||||
<NameComponent />
|
<NameComponent />
|
||||||
|
|
||||||
|
<div className="pt-20 text-2xl md:text-3xl">
|
||||||
|
<Socials />
|
||||||
|
</div>
|
||||||
</>
|
</>
|
||||||
</main>
|
</main>
|
||||||
);
|
);
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,8 @@
|
||||||
import { MapPin, Code, Briefcase, Download } from "lucide-react";
|
import { MapPin, Code, Briefcase, Download } from "lucide-react";
|
||||||
import { headers } from "next/headers";
|
|
||||||
import { Icon } from "@iconify/react";
|
import { Icon } from "@iconify/react";
|
||||||
import Link from "next/link";
|
import Link from "next/link";
|
||||||
import {
|
|
||||||
Tooltip,
|
import Socials from "@/components/Socials";
|
||||||
TooltipContent,
|
|
||||||
TooltipTrigger,
|
|
||||||
} from "@/components/ui/tooltip";
|
|
||||||
|
|
||||||
export default async function Portfolio() {
|
export default async function Portfolio() {
|
||||||
// const headersList = await headers();
|
// const headersList = await headers();
|
||||||
|
|
@ -228,24 +224,7 @@ export default async function Portfolio() {
|
||||||
ai driven solutions while also maintaining the role of an
|
ai driven solutions while also maintaining the role of an
|
||||||
individual contributor.
|
individual contributor.
|
||||||
</div>
|
</div>
|
||||||
<div className="flex text-red-500 gap-5">
|
<Socials />
|
||||||
{socials.map((social, _) => (
|
|
||||||
<Tooltip>
|
|
||||||
<TooltipTrigger asChild>
|
|
||||||
<Link
|
|
||||||
href={social.link}
|
|
||||||
target="_blank"
|
|
||||||
rel="noopener noreferrer"
|
|
||||||
>
|
|
||||||
<Icon icon={social.icon} className="inline-block" />
|
|
||||||
</Link>
|
|
||||||
</TooltipTrigger>
|
|
||||||
<TooltipContent>
|
|
||||||
<p className="text-xl">{social.hoverText}</p>
|
|
||||||
</TooltipContent>
|
|
||||||
</Tooltip>
|
|
||||||
))}
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div className="md:w-[40vw] w-[95vw] md:min-w-3xl">
|
<div className="md:w-[40vw] w-[95vw] md:min-w-3xl">
|
||||||
|
|
|
||||||
53
frontend/src/components/Socials.tsx
Normal file
53
frontend/src/components/Socials.tsx
Normal file
|
|
@ -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 (
|
||||||
|
<div className="flex text-red-500 gap-5">
|
||||||
|
{socials.map((social, _) => (
|
||||||
|
<Tooltip key={social.link}>
|
||||||
|
<TooltipTrigger asChild>
|
||||||
|
<Link href={social.link} target="_blank" rel="noopener noreferrer">
|
||||||
|
<Icon icon={social.icon} className="inline-block" />
|
||||||
|
</Link>
|
||||||
|
</TooltipTrigger>
|
||||||
|
<TooltipContent>
|
||||||
|
<p className="text-xl">{social.hoverText}</p>
|
||||||
|
</TooltipContent>
|
||||||
|
</Tooltip>
|
||||||
|
))}
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
}
|
||||||
Loading…
Reference in a new issue