|
|
|
@@ -0,0 +1,171 @@
|
|
|
|
|
import React from "react"
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Contact page component that displays contact information and a contact form.
|
|
|
|
|
*/
|
|
|
|
|
export default function Contact() {
|
|
|
|
|
const handleSubmit = (e: React.FormEvent<HTMLFormElement>) => {
|
|
|
|
|
e.preventDefault()
|
|
|
|
|
// Handle form submission logic here
|
|
|
|
|
alert("Thank you for your message! This is a demo form.")
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
|
<div className="space-y-8">
|
|
|
|
|
{/* Page Header */}
|
|
|
|
|
<div className="text-center">
|
|
|
|
|
<h1 className="text-3xl font-bold text-gray-900 sm:text-4xl">
|
|
|
|
|
Get in Touch
|
|
|
|
|
</h1>
|
|
|
|
|
<p className="mt-4 text-lg text-gray-600">
|
|
|
|
|
Have questions about this template? We'd love to hear from you.
|
|
|
|
|
</p>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div className="grid grid-cols-1 lg:grid-cols-2 gap-8">
|
|
|
|
|
{/* Contact Information */}
|
|
|
|
|
<div className="bg-white shadow rounded-lg p-6">
|
|
|
|
|
<h2 className="text-xl font-semibold text-gray-900 mb-6">
|
|
|
|
|
Contact Information
|
|
|
|
|
</h2>
|
|
|
|
|
|
|
|
|
|
<div className="space-y-4">
|
|
|
|
|
{/* Email */}
|
|
|
|
|
<div className="flex items-center">
|
|
|
|
|
<div className="flex-shrink-0">
|
|
|
|
|
<svg className="h-6 w-6 text-gray-400" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
|
|
|
|
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M3 8l7.89 4.26a2 2 0 002.22 0L21 8M5 19h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z" />
|
|
|
|
|
</svg>
|
|
|
|
|
</div>
|
|
|
|
|
<div className="ml-3">
|
|
|
|
|
<p className="text-sm font-medium text-gray-900">Email</p>
|
|
|
|
|
<p className="text-sm text-gray-600">zihlu.wang@outlook.com</p>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
{/* GitHub */}
|
|
|
|
|
<div className="flex items-center">
|
|
|
|
|
<div className="flex-shrink-0">
|
|
|
|
|
<svg className="h-6 w-6 text-gray-400" fill="currentColor" viewBox="0 0 24 24">
|
|
|
|
|
<path fillRule="evenodd" d="M12 2C6.477 2 2 6.484 2 12.017c0 4.425 2.865 8.18 6.839 9.504.5.092.682-.217.682-.483 0-.237-.008-.868-.013-1.703-2.782.605-3.369-1.343-3.369-1.343-.454-1.158-1.11-1.466-1.11-1.466-.908-.62.069-.608.069-.608 1.003.07 1.531 1.032 1.531 1.032.892 1.53 2.341 1.088 2.91.832.092-.647.35-1.088.636-1.338-2.22-.253-4.555-1.113-4.555-4.951 0-1.093.39-1.988 1.029-2.688-.103-.253-.446-1.272.098-2.65 0 0 .84-.27 2.75 1.026A9.564 9.564 0 0112 6.844c.85.004 1.705.115 2.504.337 1.909-1.296 2.747-1.027 2.747-1.027.546 1.379.202 2.398.1 2.651.64.7 1.028 1.595 1.028 2.688 0 3.848-2.339 4.695-4.566 4.943.359.309.678.92.678 1.855 0 1.338-.012 2.419-.012 2.747 0 .268.18.58.688.482A10.019 10.019 0 0022 12.017C22 6.484 17.522 2 12 2z" clipRule="evenodd" />
|
|
|
|
|
</svg>
|
|
|
|
|
</div>
|
|
|
|
|
<div className="ml-3">
|
|
|
|
|
<p className="text-sm font-medium text-gray-900"><a href="https://github.com/onixbyte/react-template">GitHub</a></p>
|
|
|
|
|
<p className="text-sm text-gray-600">github.com/onixbyte/react-template</p>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
{/* Documentation */}
|
|
|
|
|
<div className="flex items-center">
|
|
|
|
|
<div className="flex-shrink-0">
|
|
|
|
|
<svg className="h-6 w-6 text-gray-400" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
|
|
|
|
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z" />
|
|
|
|
|
</svg>
|
|
|
|
|
</div>
|
|
|
|
|
<div className="ml-3">
|
|
|
|
|
<p className="text-sm font-medium text-gray-900">Documentation</p>
|
|
|
|
|
<p className="text-sm text-gray-600">Check the README.md file</p>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
{/* Quick Links */}
|
|
|
|
|
<div className="mt-8">
|
|
|
|
|
<h3 className="text-lg font-medium text-gray-900 mb-4">Quick Links</h3>
|
|
|
|
|
<div className="space-y-2">
|
|
|
|
|
<a href="https://reactrouter.com" target="_blank" rel="noopener noreferrer" className="block text-blue-600 hover:text-blue-800 text-sm">
|
|
|
|
|
React Router Documentation →
|
|
|
|
|
</a>
|
|
|
|
|
<a href="https://tailwindcss.com" target="_blank" rel="noopener noreferrer" className="block text-blue-600 hover:text-blue-800 text-sm">
|
|
|
|
|
Tailwind CSS Documentation →
|
|
|
|
|
</a>
|
|
|
|
|
<a href="https://vitejs.dev" target="_blank" rel="noopener noreferrer" className="block text-blue-600 hover:text-blue-800 text-sm">
|
|
|
|
|
Vite Documentation →
|
|
|
|
|
</a>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
{/* Contact Form */}
|
|
|
|
|
<div className="bg-white shadow rounded-lg p-6">
|
|
|
|
|
<h2 className="text-xl font-semibold text-gray-900 mb-6">
|
|
|
|
|
Send us a Message
|
|
|
|
|
</h2>
|
|
|
|
|
|
|
|
|
|
<form onSubmit={handleSubmit} className="space-y-4">
|
|
|
|
|
{/* Name */}
|
|
|
|
|
<div>
|
|
|
|
|
<label htmlFor="name" className="block text-sm font-medium text-gray-700 mb-1">
|
|
|
|
|
Name
|
|
|
|
|
</label>
|
|
|
|
|
<input
|
|
|
|
|
type="text"
|
|
|
|
|
id="name"
|
|
|
|
|
name="name"
|
|
|
|
|
required
|
|
|
|
|
className="w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500"
|
|
|
|
|
placeholder="Your full name"
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
{/* Email */}
|
|
|
|
|
<div>
|
|
|
|
|
<label htmlFor="email" className="block text-sm font-medium text-gray-700 mb-1">
|
|
|
|
|
Email
|
|
|
|
|
</label>
|
|
|
|
|
<input
|
|
|
|
|
type="email"
|
|
|
|
|
id="email"
|
|
|
|
|
name="email"
|
|
|
|
|
required
|
|
|
|
|
className="w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500"
|
|
|
|
|
placeholder="your.email@example.com"
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
{/* Subject */}
|
|
|
|
|
<div>
|
|
|
|
|
<label htmlFor="subject" className="block text-sm font-medium text-gray-700 mb-1">
|
|
|
|
|
Subject
|
|
|
|
|
</label>
|
|
|
|
|
<input
|
|
|
|
|
type="text"
|
|
|
|
|
id="subject"
|
|
|
|
|
name="subject"
|
|
|
|
|
required
|
|
|
|
|
className="w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500"
|
|
|
|
|
placeholder="What is this about?"
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
{/* Message */}
|
|
|
|
|
<div>
|
|
|
|
|
<label htmlFor="message" className="block text-sm font-medium text-gray-700 mb-1">
|
|
|
|
|
Message
|
|
|
|
|
</label>
|
|
|
|
|
<textarea
|
|
|
|
|
id="message"
|
|
|
|
|
name="message"
|
|
|
|
|
rows={4}
|
|
|
|
|
required
|
|
|
|
|
className="w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500"
|
|
|
|
|
placeholder="Tell us more about your question or feedback..."
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
{/* Submit Button */}
|
|
|
|
|
<div>
|
|
|
|
|
<button
|
|
|
|
|
type="submit"
|
|
|
|
|
className="w-full flex justify-center py-2 px-4 border border-transparent rounded-md shadow-sm text-sm font-medium text-white bg-blue-600 hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500"
|
|
|
|
|
>
|
|
|
|
|
Send Message
|
|
|
|
|
</button>
|
|
|
|
|
</div>
|
|
|
|
|
</form>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
)
|
|
|
|
|
}
|