Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: contact us section added #277

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
108 changes: 108 additions & 0 deletions pages/templates/ebraj/contact.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
import React from 'react';
import {
MaxWidthContainer,
Footer,
Navbar,
} from '.';
import { Input } from '@/components/ui/input';
import { Button } from '@/components/ui/button';



/**
* ContactUsHeadingSection Component...
*/
export const ContactUsHeadingSection = () => {
return (
<MaxWidthContainer className="relative z-10 pb-20 pt-36">
<main className="text-center">
<div className="space-y-4">
<h1 className="custom-animated-text text-5xl font-black sm:text-6xl md:text-7xl">
Contact Us
</h1>
</div>
</main>
</MaxWidthContainer>
)
}
// Create ContactUs component
export const ContactUs: React.FC = () => {
return (
<>
{/* Navbar (assuming you want the same navbar on the Contact Us page) */}
<Navbar />

{/* Contact Us content */}
<section className="flex-1 flex justify-center items-center">
{/* Contact form */}
<MaxWidthContainer className="py-1">
<form className="bg-white p-6 rounded-md shadow-md ring-1 ring-gray-200 dark:bg-slate-800/20 dark:ring-slate-400/70">
{/* Your contact form fields here */}
<div className="mb-4">
<label htmlFor="name" className="block mb-1">
Name
</label>
<Input
id="name"
type="text"
placeholder="Enter your name"
className="w-[100%] bg-slate-100 px-4 py-7 text-lg dark:bg-slate-800/20 dark:ring-slate-400/70"
/>
</div>
<div className="mb-4">
<label htmlFor="email" className="block mb-1">
Email Address
</label>
<Input
id="email"
type="email"
placeholder="Enter your email"
className="w-[100%] bg-slate-100 px-4 py-7 text-lg dark:bg-slate-800/20 dark:ring-slate-400/70"
/>
</div>
<div className="mb-4">
<label htmlFor="message" className="block mb-1">
Message
</label>
<textarea
id="message"
placeholder="Enter your message"
className="w-[100%] bg-slate-100 px-4 py-7 text-lg dark:bg-slate-800/20 dark:ring-slate-400/70"
rows={4}
></textarea>
</div>
<Button
type="submit"
className="min-w-max bg-gradient-to-r from-[#845df1] via-[#e94389] to-[#e0ab18] py-7 text-lg font-semibold transition-all hover:scale-105"
>
Submit
</Button>
</form>
</MaxWidthContainer>
</section>
</>
);
};



const contact = () => {
return (
<>
<main className="z-10 flex min-h-screen w-full flex-col bg-white text-gray-900 dark:bg-[#05051E] dark:text-white">
{/* Navbar */}
<Navbar />
{/* Body Part */}
<section className="flex-1">
<ContactUsHeadingSection />
</section>
<ContactUs />
{/* Bottom sticky footer */}
<Footer />
</main>
</>
)
}

export default contact;

Loading