Added image to contact us page
This commit is contained in:
BIN
public/person_laptop_focus.jpg
Normal file
BIN
public/person_laptop_focus.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.8 MiB |
@@ -5,6 +5,7 @@ import Footer from "@/components/Footer";
|
|||||||
import Navbar from "@/components/Navbar";
|
import Navbar from "@/components/Navbar";
|
||||||
import Title from "@/components/Title";
|
import Title from "@/components/Title";
|
||||||
import translation from "@/translation/contactus.json";
|
import translation from "@/translation/contactus.json";
|
||||||
|
import Image from "next/image";
|
||||||
|
|
||||||
type FormValues = {
|
type FormValues = {
|
||||||
name: string;
|
name: string;
|
||||||
@@ -93,10 +94,10 @@ export default function App({ language, page }: Props) {
|
|||||||
<Title>{translation.title[language]}</Title>
|
<Title>{translation.title[language]}</Title>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
<section className="w-full bg-white text-center p-8 md:p-16">
|
<section className="w-full bg-white text-center p-8 md:p-16 flex justify-center items-center gap-32">
|
||||||
<form
|
<form
|
||||||
onSubmit={handleSubmit(onSubmit)}
|
onSubmit={handleSubmit(onSubmit)}
|
||||||
className="form-control items-center gap-2 text-mti-black"
|
className="form-control items-center gap-2 text-mti-black flex flex-col w-96"
|
||||||
>
|
>
|
||||||
<input
|
<input
|
||||||
id="name"
|
id="name"
|
||||||
@@ -108,7 +109,6 @@ export default function App({ language, page }: Props) {
|
|||||||
{errors.name && errors.name.type === "required" && (
|
{errors.name && errors.name.type === "required" && (
|
||||||
<ErrorMessage message={translation.fieldRequired[language]} />
|
<ErrorMessage message={translation.fieldRequired[language]} />
|
||||||
)}
|
)}
|
||||||
|
|
||||||
<input
|
<input
|
||||||
id="email"
|
id="email"
|
||||||
placeholder={translation.email[language]}
|
placeholder={translation.email[language]}
|
||||||
@@ -122,7 +122,6 @@ export default function App({ language, page }: Props) {
|
|||||||
{errors.email && errors.email.type === "pattern" && (
|
{errors.email && errors.email.type === "pattern" && (
|
||||||
<ErrorMessage message={translation.invalidEmail[language]} />
|
<ErrorMessage message={translation.invalidEmail[language]} />
|
||||||
)}
|
)}
|
||||||
|
|
||||||
<input
|
<input
|
||||||
id="subject"
|
id="subject"
|
||||||
placeholder={translation.subject[language]}
|
placeholder={translation.subject[language]}
|
||||||
@@ -150,7 +149,6 @@ export default function App({ language, page }: Props) {
|
|||||||
{errors.type && errors.type.type === "required" && (
|
{errors.type && errors.type.type === "required" && (
|
||||||
<ErrorMessage message={translation.fieldRequired[language]} />
|
<ErrorMessage message={translation.fieldRequired[language]} />
|
||||||
)}
|
)}
|
||||||
|
|
||||||
<textarea
|
<textarea
|
||||||
id="description"
|
id="description"
|
||||||
placeholder={translation.description[language]}
|
placeholder={translation.description[language]}
|
||||||
@@ -161,13 +159,22 @@ export default function App({ language, page }: Props) {
|
|||||||
{errors.description && errors.description.type === "required" && (
|
{errors.description && errors.description.type === "required" && (
|
||||||
<ErrorMessage message={translation.fieldRequired[language]} />
|
<ErrorMessage message={translation.fieldRequired[language]} />
|
||||||
)}
|
)}
|
||||||
|
|
||||||
<input
|
<input
|
||||||
type="submit"
|
type="submit"
|
||||||
className="btn"
|
className="btn"
|
||||||
disabled={!isDirty || !isValid}
|
disabled={!isDirty || !isValid}
|
||||||
|
value={translation.submit[language]}
|
||||||
/>
|
/>
|
||||||
</form>
|
</form>
|
||||||
|
<div className="flex flex-col">
|
||||||
|
<Image
|
||||||
|
src="/person_laptop_focus.jpg"
|
||||||
|
alt="Contact Us"
|
||||||
|
width={500}
|
||||||
|
height={340}
|
||||||
|
className="rounded-xl"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
</section>
|
</section>
|
||||||
<Footer language={language} />
|
<Footer language={language} />
|
||||||
</main>
|
</main>
|
||||||
|
|||||||
Reference in New Issue
Block a user