diff --git a/components/about.tsx b/components/about.tsx index b8eaa3f..72a85db 100644 --- a/components/about.tsx +++ b/components/about.tsx @@ -1,16 +1,17 @@ -import Link from "next/link"; import Background from "./background"; const About: React.FC = () => { return ( - -
-
- {/* TODO: Display skills */} - {/* TODO: Display a quick about me */} +
+ +
+
+ {/* TODO: Display skills */} + {/* TODO: Display a quick about me */} +
-
- + + ); }; diff --git a/components/background.tsx b/components/background.tsx index d8cf8c9..4619b99 100644 --- a/components/background.tsx +++ b/components/background.tsx @@ -9,9 +9,8 @@ interface Props { const Background: React.FC = ({ children, styles }) => { return (
-
{children}
); diff --git a/components/contact.tsx b/components/contact.tsx index e69de29..6dafa62 100644 --- a/components/contact.tsx +++ b/components/contact.tsx @@ -0,0 +1,136 @@ +"use client"; +import { useState } from "react"; +import Background from "./background"; + +type Email = { + name: string; + email: string; + subject: string; + message: string; +}; + +const Contact: React.FC = () => { + const [formData, setFormData] = useState({ + name: "", + email: "", + subject: "", + message: "", + }); + + const handleChange = ( + e: React.ChangeEvent, + ) => { + const { name, value } = e.target; + setFormData({ ...formData, [name]: value }); + }; + + const handleSubmit = (e: React.FormEvent) => { + e.preventDefault(); + console.log("Form submitted:", formData); + // Here you can handle form submission (send data to backend) + }; + + return ( +
+ +
+

+ Contact Me +

+
+
+ {/* Name Field */} + + + +
+ + {/* Email Field */} +
+ + + +
+ + {/* Subject Field */} +
+ + +
+ + {/* Message Field */} +
+ +