Skip to content

Commit

Permalink
changed the social media icons to use react-icons and modified some b…
Browse files Browse the repository at this point in the history
…uttons to anchor , also removed the use client from the page
  • Loading branch information
benhur committed Aug 22, 2024
1 parent 3bc413d commit a46a6ca
Show file tree
Hide file tree
Showing 6 changed files with 59 additions and 76 deletions.
Binary file not shown.
Binary file not shown.

This file was deleted.

Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
"use client";

import Image from "next/image";
import wavingRalphImage from "../0xBC428Bb80B1cc3C29164820528819Abf6b20cB88/images/simpsonsPhotos/ralph-transparent.png";
import skillStack from "../0xBC428Bb80B1cc3C29164820528819Abf6b20cB88/images/skillStack.svg";
import buidlGuidlLogo from "../0xBC428Bb80B1cc3C29164820528819Abf6b20cB88/images/socialMediaIcons/buidlguidlSmallLogo.png";
import discordImage from "../0xBC428Bb80B1cc3C29164820528819Abf6b20cB88/images/socialMediaIcons/discord.png";
import gmailIcon from "../0xBC428Bb80B1cc3C29164820528819Abf6b20cB88/images/socialMediaIcons/gmail.png";
import instagramImage from "../0xBC428Bb80B1cc3C29164820528819Abf6b20cB88/images/socialMediaIcons/instagram.svg";
import twitterImage from "../0xBC428Bb80B1cc3C29164820528819Abf6b20cB88/images/socialMediaIcons/twitter.png";
import { IM_Fell_English_Sans, ImbueSans, ItalianaSans } from "./utils/font";
import { CopyDiscordHandle, CopyMailId } from "./utils/onclickButtonComponents";
import { FaInstagram } from "react-icons/fa";
import { FaTwitter } from "react-icons/fa";
import { Address } from "~~/components/scaffold-eth";

const PersonalPage: React.FC = () => {
Expand Down Expand Up @@ -38,59 +35,29 @@ const PersonalPage: React.FC = () => {
Come Say Hi <span className="text-5xl"></span>
</div>
<div className="flex flex-wrap gap-4 min-w-20 items-center">
<button
<a
className=" px-4 py-2 rounded-xl dark:hover:shadow-inner dark:hover:shadow-black hover:dark:bg-base-200 hover:bg-gray-100 transition-all hover:shadow-md shadow-black "
onClick={() => {
window.open(
"https://app.buidlguidl.com/builders/0xBC428Bb80B1cc3C29164820528819Abf6b20cB88",
"_blank",
);
}}
href="https://app.buidlguidl.com/builders/0xBC428Bb80B1cc3C29164820528819Abf6b20cB88"
target="_blank"
>
<Image width={8} height={8} unoptimized src={buidlGuidlLogo} alt="buidlguidl" className="w-8 h-8" />
</button>
<button
className=" px-4 py-2 rounded-xl dark:hover:shadow-inner dark:hover:shadow-black hover:dark:bg-base-200 hover:bg-gray-100 transition-all hover:shadow-md"
onClick={() => {
window.open("https://x.com/ruhneb0_0", "_blank");
}}
>
<Image width={8} height={8} unoptimized src={twitterImage} alt="twitter" className="w-8 h-8" />
</button>
<button
className=" px-4 py-2 rounded-xl dark:hover:shadow-inner dark:hover:shadow-black hover:dark:bg-base-200 hover:bg-gray-100 ransition-all hover:shadow-md "
onClick={() => {
navigator.clipboard
.writeText("[email protected]")
.then(() => {
alert("mail id copied!");
})
.catch(() => console.error);
}}
>
<Image width={8} height={8} unoptimized src={gmailIcon} alt="gmail" className="w-8 h-8" />
</button>
<button
</a>
<a
className=" px-4 py-2 rounded-xl dark:hover:shadow-inner dark:hover:shadow-black hover:dark:bg-base-200 hover:bg-gray-100 transition-all hover:shadow-md"
onClick={() => {
navigator.clipboard
.writeText("benhur_05751")
.then(() => {
alert("username copied!");
})
.catch(() => console.error);
}}
href="https://x.com/ruhneb0_0"
target="_blank"
>
<Image width={8} height={8} unoptimized src={discordImage} alt="twitter" className="w-10 h-8" />
</button>
<button
<FaTwitter className="h-8 w-8 fill-blue-400" />
</a>
<CopyMailId />
<CopyDiscordHandle />
<a
className=" px-4 py-2 rounded-xl dark:hover:shadow-inner dark:hover:shadow-black hover:dark:bg-base-200 hover:bg-gray-100 transition-all hover:shadow-md"
onClick={() => {
window.open("https://www.instagram.com/_benhurbenny._/", "_blank");
}}
href="https://www.instagram.com/_benhurbenny._/"
target="_blank"
>
<Image width={8} height={8} src={instagramImage} alt="twitter" className="w-8 h-8" />
</button>
<FaInstagram className="h-8 w-8 fill-red-400" />
</a>
</div>
</div>
<div className="h-20 w-20 absolute bottom-8">
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
"use client";

import { BiLogoGmail } from "react-icons/bi";
import { FaDiscord } from "react-icons/fa";

export const CopyMailId = () => {
return (
<button
className=" px-4 py-2 rounded-xl dark:hover:shadow-inner dark:hover:shadow-black hover:dark:bg-base-200 hover:bg-gray-100 ransition-all hover:shadow-md "
onClick={() => {
navigator.clipboard
.writeText("[email protected]")
.then(() => {
alert("mail id copied!");
})
.catch(() => console.error);
}}
>
<BiLogoGmail className="h-8 w-8 " />
</button>
);
};

export const CopyDiscordHandle = () => {
return (
<button
className=" px-4 py-2 rounded-xl dark:hover:shadow-inner dark:hover:shadow-black hover:dark:bg-base-200 hover:bg-gray-100 transition-all hover:shadow-md"
onClick={() => {
navigator.clipboard
.writeText("benhur_05751")
.then(() => {
alert("username copied!");
})
.catch(() => console.error);
}}
>
<FaDiscord className="h-8 w-8 fill-blue-500" />
</button>
);
};

0 comments on commit a46a6ca

Please sign in to comment.