-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
187 additions
and
113 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/** | ||
* Contains React components to wrap other components in framer-motion animations. | ||
*/ | ||
|
||
import React from "react"; | ||
import { motion } from "framer-motion"; | ||
|
||
// TODO: add type checking | ||
// @ts-ignore | ||
export function FadeInDiv({ children, ...props }) { | ||
const variants = { | ||
hidden: { y: 10, opacity: 0 }, | ||
visible: { y: 0, opacity: 1 }, | ||
}; | ||
|
||
return ( | ||
<motion.div | ||
initial="hidden" | ||
whileInView="visible" | ||
viewport={{ once: true }} | ||
transition={{ duration: 0.5, ease: "easeIn" }} | ||
variants={variants} | ||
{...props} | ||
> | ||
{children} | ||
</motion.div> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,31 @@ | ||
"use client" | ||
|
||
import Image from "next/image"; | ||
import BusinessForm from "@/app/components/contact-us/business-form"; | ||
import GeneralForm from "@/app/components/contact-us/general-form"; | ||
import { FadeInDiv } from "../components/animations"; | ||
|
||
export default function ContactPage() { | ||
return ( | ||
<div className="items-center bg-green-a space-y-20 px-4 md:px-12 lg:px-16 pb-12"> | ||
<div className="sm:grid sm:grid-cols-2 text-white py-10"> | ||
<FadeInDiv className="sm:grid sm:grid-cols-2 text-white py-10"> | ||
<div className="sm:place-self-center mx-auto my-auto"> | ||
<GeneralForm/> | ||
</div> | ||
<div className="sm:place-self-center hidden sm:block"> | ||
<Image src={'/images/logo/nuansa_logo.png'} alt={'logo'} width={0} height={0} sizes="100vw" | ||
style={{ width: '12rem', height: 'auto' }}/> | ||
</div> | ||
</div> | ||
<div className="sm:grid sm:grid-cols-2 bg-orange-a rounded-md text-black bottom-8 p-10"> | ||
</FadeInDiv> | ||
<FadeInDiv className="sm:grid sm:grid-cols-2 bg-orange-a rounded-md text-black bottom-8 p-10"> | ||
<div className="sm:place-self-center hidden sm:block"> | ||
<Image src={'/images/logo/nuansa_logo.png'} alt={'logo'} width={0} height={0} sizes="100vw" | ||
style={{width: '12rem', height: 'auto'}}/> | ||
</div> | ||
<div className="sm:place-self-center"> | ||
<BusinessForm/> | ||
</div> | ||
</div> | ||
</FadeInDiv> | ||
</div> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.