From 843e1dd246e730e3eba6140fd3c4c94dd845eefc Mon Sep 17 00:00:00 2001 From: Poyraz Avsever Date: Wed, 11 Mar 2026 12:00:55 +0300 Subject: [PATCH] feat(contact): replace form with direct social contact cards --- components/contact-content.tsx | 134 +++++++++++---------------------- 1 file changed, 46 insertions(+), 88 deletions(-) diff --git a/components/contact-content.tsx b/components/contact-content.tsx index 5b8ef86..1a66e5a 100644 --- a/components/contact-content.tsx +++ b/components/contact-content.tsx @@ -1,97 +1,55 @@ -"use client"; +import Link from "next/link"; +import { Icon } from "@iconify/react"; +import { Card, Typography } from "poyraz-ui/atoms"; -import { useState } from "react"; -import { Button, Card, Input, Label, Textarea, Typography } from "poyraz-ui/atoms"; +const CONTACT_LINKS = [ + { + id: "email", + label: "E-posta", + value: "poyrazavsever@gmail.com", + href: "mailto:poyrazavsever@gmail.com", + icon: "mdi:email-outline", + }, + { + id: "linkedin", + label: "LinkedIn", + value: "linkedin.com/in/poyrazavsever", + href: "https://www.linkedin.com/in/poyrazavsever/", + icon: "mdi:linkedin", + }, + { + id: "instagram", + label: "Instagram", + value: "@poyraz_avsever", + href: "https://instagram.com/poyraz_avsever", + icon: "mdi:instagram", + }, +] as const; export function ContactContent() { - const [name, setName] = useState(""); - const [email, setEmail] = useState(""); - const [message, setMessage] = useState(""); - - const isValid = name.trim() && email.trim() && message.trim(); - - const handleSubmit = (event: React.FormEvent) => { - event.preventDefault(); - if (!isValid) return; - - const subject = encodeURIComponent(`Portfolyo İletişim - ${name.trim()}`); - const body = encodeURIComponent( - `Ad Soyad: ${name.trim()}\nE-posta: ${email.trim()}\n\nMesaj:\n${message.trim()}`, - ); - - window.location.href = `mailto:poyrazavsever@gmail.com?subject=${subject}&body=${body}`; - }; - return ( -
- - - İletişim - -
-
- - E-posta +
+ {CONTACT_LINKS.map((item) => ( + + +
+ +
+ + {item.label} - - poyrazavsever@gmail.com - -
-
- - Dönüş Süresi + + {item.value} - Genelde 24 saat içinde. -
-
-
- - -
-
- - setName(event.target.value)} - placeholder="Adın soyadın" - className="rounded-sm" - /> -
- -
- - setEmail(event.target.value)} - placeholder="ornek@eposta.com" - className="rounded-sm" - /> -
- -
- -