From 81b875ff26045c2504e6a60d9ebc41d4fbb14c2f Mon Sep 17 00:00:00 2001
From: Thibault Friedrich
Date: Wed, 21 Oct 2026 15:24:07 -0400
Subject: [PATCH] feat(contact): send "Start a conversation" to LinkedIn
The contact CTA and the 3D Enter key now open the LinkedIn profile in a
new tab instead of the mailto form dialog, which is removed.
Co-Authored-By: Claude Opus 5.5
---
src/features/sections/contact/Contact.tsx | 22 ++---
.../sections/contact/ContactDialog.tsx | 90 -------------------
2 files changed, 8 insertions(+), 104 deletions(-)
delete mode 100644 src/features/sections/contact/ContactDialog.tsx
diff --git a/src/features/sections/contact/Contact.tsx b/src/features/sections/contact/Contact.tsx
index 067fc2e..ef1bdea 100644
--- a/src/features/sections/contact/Contact.tsx
+++ b/src/features/sections/contact/Contact.tsx
@@ -1,18 +1,18 @@
"use client";
-import { useEffect, useState } from "react";
+import { useEffect } from "react";
import { profile } from "@/content/profile";
-import { liveSocials } from "@/content/socials";
+import { liveSocials, socials } from "@/content/socials";
import { CONTACT_EVENT } from "@/lib/runtime";
import { Keycap } from "@/ui/Keycap";
import { SocialIcon } from "@/ui/SocialIcon";
-import { ContactDialog } from "./ContactDialog";
-export function Contact() {
- const [open, setOpen] = useState(false);
+const linkedin = socials.find((s) => s.id === "linkedin")!.href;
+export function Contact() {
useEffect(() => {
- const onOpen = () => setOpen(true);
+ // The 3D Enter key dispatches this from its click handler, so the popup is user-initiated.
+ const onOpen = () => window.open(linkedin, "_blank", "noopener,noreferrer");
window.addEventListener(CONTACT_EVENT, onOpen);
return () => window.removeEventListener(CONTACT_EVENT, onOpen);
}, []);
@@ -39,16 +39,12 @@ export function Contact() {
A role, a mission or a collaboration. Press the key, or write to me directly.
-
+
{profile.email}
@@ -76,8 +72,6 @@ export function Contact() {
Built with Next.js, React Three Fiber, Rapier & GSAP. Every key is real code.
-
- setOpen(false)} />
);
}
diff --git a/src/features/sections/contact/ContactDialog.tsx b/src/features/sections/contact/ContactDialog.tsx
deleted file mode 100644
index f3a2301..0000000
--- a/src/features/sections/contact/ContactDialog.tsx
+++ /dev/null
@@ -1,90 +0,0 @@
-"use client";
-
-import { useId } from "react";
-import { profile } from "@/content/profile";
-import { Dialog } from "@/ui/Dialog";
-import { Keycap } from "@/ui/Keycap";
-
-const TOPICS = ["Role", "Mission", "Collab"];
-
-// TODO: post to a form backend instead of opening the mail client.
-export function ContactDialog({ open, onClose }: { open: boolean; onClose: () => void }) {
- const titleId = useId();
- return (
-
- );
-}