diff --git a/app/newsletter/page.tsx b/app/newsletter/page.tsx deleted file mode 100644 index 0044da4..0000000 --- a/app/newsletter/page.tsx +++ /dev/null @@ -1,5 +0,0 @@ -import { NewsletterContent } from "@/components/newsletter-content"; - -export default function NewsletterPage() { - return ; -} diff --git a/components/newsletter-content.tsx b/components/newsletter-content.tsx deleted file mode 100644 index d6a6a71..0000000 --- a/components/newsletter-content.tsx +++ /dev/null @@ -1,90 +0,0 @@ -"use client"; - -import { useState } from "react"; -import { Button, Card, Input, Label, Typography } from "poyraz-ui/atoms"; - -export function NewsletterContent() { - const [name, setName] = useState(""); - const [email, setEmail] = useState(""); - - const isValid = name.trim() && email.trim(); - - const handleSubmit = (event: React.FormEvent) => { - event.preventDefault(); - if (!isValid) return; - - const subject = encodeURIComponent(`Bülten Aboneliği - ${name.trim()}`); - const body = encodeURIComponent( - `Merhaba,\n\nHaftalık "Poyraz ile Yazılım" bültenine abone olmak istiyorum.\n\nAd Soyad: ${name.trim()}\nE-posta: ${email.trim()}`, - ); - - window.location.href = `mailto:poyrazavsever@gmail.com?subject=${subject}&body=${body}`; - }; - - return ( -
- - - Haftalık Yazılım Bülteni - - - Poyraz ile Yazılım'ın e-posta versiyonu. - - -
-
- - Yayın Günü - - Her pazar -
-
- - Seni neler bekliyor - - Haftalık yazılım gündemi ve pratik notlar. -
-
- - Teslimat - - Doğrudan e-posta kutuna. -
-
-
- - -
-
- - setName(event.target.value)} - placeholder="Adın soyadın" - className="rounded-sm" - /> -
- -
- - setEmail(event.target.value)} - placeholder="ornek@eposta.com" - className="rounded-sm" - /> -
- -
- -
-
-
-
- ); -} diff --git a/lib/links.ts b/lib/links.ts index 0d82d73..fe1c9f4 100644 --- a/lib/links.ts +++ b/lib/links.ts @@ -1,8 +1,7 @@ -export const NAV_LINKS = [ +export const NAV_LINKS = [ { id: "about", label: "Hakkımda", href: "/about" }, { id: "blog", label: "Blog", href: "/blog" }, { id: "content", label: "İçerikler", href: "/content" }, - { id: "newsletter", label: "Bülten", href: "/newsletter" }, { id: "projects", label: "Projeler", href: "/projects" }, { id: "contact", label: "İletişim", href: "/contact" }, ] as const;