import React from "react" /** * Contact page component that encourages manual GitHub Issue submission. */ export default function Contact() { const owner = "onixbyte" const repo = "dev-hub" const handleRedirect = (e: React.FormEvent) => { e.preventDefault() const formData = new FormData(e.currentTarget) const subject = formData.get("subject") as string const name = formData.get("name") as string const email = formData.get("email") as string const message = formData.get("message") as string const type = formData.get("type") as string // Construct a professional body template for the GitHub issue const issueBody = ` ### Description ${message} --- *Generated via DevLab Contact Page* `.trim() const githubUrl = `https://github.com/${owner}/${repo}/issues/new?title=${encodeURIComponent( `[${type == "help wanted" ? "General Enquiry" : (type == "enhancement" ? "Feature request" : "Bug")}] ${subject}` )}&body=${encodeURIComponent(issueBody)}&labels=${type}` // Open in a new tab so they don't lose their place on your site window.open(githubUrl, "_blank", "noopener,noreferrer") } return (
{/* Header */}

Get in Touch

The best way to reach us is via our GitHub repository.

{/* Left Side: Information */}

🤝 Why GitHub Issues?

We use GitHub to track all bug reports and feature requests. This ensures our development process remains transparent and that your feedback is properly prioritised by the community.

How it works:

  1. Fill in the enquiry details in the form provided.
  2. Click "Prepare GitHub Issue".
  3. You will be redirected to GitHub with the data pre-filled.
  4. Simply hit "Submit new issue" on their site.

Alternatively, you can email us directly at:
real@zihluwang.me

{/* Right Side: Form */}

Selecting a type helps us categorise and prioritise your issue.