-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
changed the social media icons to use react-icons and modified some b…
…uttons to anchor , also removed the use client from the page
- Loading branch information
benhur
committed
Aug 22, 2024
1 parent
3bc413d
commit a46a6ca
Showing
6 changed files
with
59 additions
and
76 deletions.
There are no files selected for viewing
Binary file removed
BIN
-505 KB
.../0xBC428Bb80B1cc3C29164820528819Abf6b20cB88/images/socialMediaIcons/discord.png
Binary file not shown.
Binary file removed
BIN
-492 KB
...rs/0xBC428Bb80B1cc3C29164820528819Abf6b20cB88/images/socialMediaIcons/gmail.png
Binary file not shown.
24 changes: 0 additions & 24 deletions
24
...xBC428Bb80B1cc3C29164820528819Abf6b20cB88/images/socialMediaIcons/instagram.svg
This file was deleted.
Oops, something went wrong.
Binary file removed
BIN
-13.3 KB
.../0xBC428Bb80B1cc3C29164820528819Abf6b20cB88/images/socialMediaIcons/twitter.png
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 = () => { | ||
|
@@ -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"> | ||
|
40 changes: 40 additions & 0 deletions
40
...app/builders/0xBC428Bb80B1cc3C29164820528819Abf6b20cB88/utils/onclickButtonComponents.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> | ||
); | ||
}; |