From fe332a8a9fa016d1f9ec38d1679d5138e25e93c2 Mon Sep 17 00:00:00 2001 From: GiovaniFZ Date: Sun, 16 Mar 2025 20:47:43 -0300 Subject: [PATCH] ref: separate and refactor contact page --- components/pages/Contact.tsx | 44 +++++++++++++++++++----------------- 1 file changed, 23 insertions(+), 21 deletions(-) diff --git a/components/pages/Contact.tsx b/components/pages/Contact.tsx index a7c662a..42bc0fc 100644 --- a/components/pages/Contact.tsx +++ b/components/pages/Contact.tsx @@ -4,6 +4,15 @@ import { Phone } from 'lucide-react' import ContactButton from '../objects/ContactButton' export default function Contact() { + const firstSectionStrings = ["I do a lot of things during the day and I'm not always able to respond to messages right away. Please be patient and remember not to demand things from me... Somehow this is an issue for people :(", "For the best chance of a response, please send me a message on Telegram. If you've made a pull request on one of my repos, I will most likely respond by the next day. If you've sent me an email, I will most likely respond within three days or less."] + const secondSectionStrings = ["I have a phone number listed above. Please do not call or text me unless you absolutely need to. I will likely not respond, or use an automated recording system to handle your call. No, I haven't provided you my real phone number. I may be able to respond to your call/text, just know this is not checked/used often.", "If you need to get in touch with me, please send me a message on Telegram or an email."] + const sections = [ + { title: "I'm a busy person", texts: firstSectionStrings }, + { title: "A note about calling and texting", texts: secondSectionStrings }, + ] + const contactButtonLabels = ["ihatenodejs", "@p0ntu5", "@aidxn.cc", "(802) 416-9516", "aidan@p0ntus.com"] + const contactButtonHrefs = ["https://github.com/ihatenodejs", "https://t.me/p0ntu5", "https://bsky.app/profile/aidxn.cc", "tel:+18024169516", "mailto:aidan@p0ntus.com"] + const contactButtonIcons = [faGithub, faTelegram, faBluesky, faPhone, faEnvelope] return (
@@ -13,28 +22,21 @@ export default function Contact() { Contact
- - - - - -
-
-

I'm a busy person

-

- I do a lot of things during the day and I'm not always able to respond to messages right away. Please be patient and remember not to demand things from me... Somehow this is an issue for people :( -

-

- For the best chance of a response, please send me a message on Telegram. If you've made a pull request on one of my repos, I will most likely respond by the next day. If you've sent me an email, I will most likely respond within three days or less. -

-

A note about calling and texting

-

- I have a phone number listed above. Please do not call or text me unless you absolutely need to. I will likely not respond, or use an automated recording system to handle your call. No, I haven't provided you my real phone number. I may be able to respond to your call/text, just know this is not checked/used often. -

-

- If you need to get in touch with me, please send me a message on Telegram or an email. -

+ {contactButtonLabels.map((label, index) => ( + + )) + }
+ + {sections.map((section, sectionIndex) => ( +
+

{section.title}

+ {section.texts.map((text, index) => ( +

{text}

+ ))} +
+ )) + }
) }