website refactoring #7

Merged
boom merged 25 commits from dev into production 2025-06-28 14:05:50 +02:00
Showing only changes of commit 85fcff9793 - Show all commits

View File

@@ -22,9 +22,9 @@ const ContactFormSection = () => {
const [loading, setLoading] = useState(false);
const [error, setError] = useState("");
const hCaptchaSiteKey: string = process.env.NEXT_PUBLIC_HCAPTCHA_SITE_KEY ?? "null";
console.log(hCaptchaSiteKey);
// const hCaptchaSiteKey: string = process.env.NEXT_PUBLIC_HCAPTCHA_SITE_KEY ?? "null";
//
// console.log(hCaptchaSiteKey);
const handleChange = (e: React.ChangeEvent<HTMLInputElement | HTMLTextAreaElement>) => {
setForm({...form, [e.target.name]: e.target.value});
@@ -179,15 +179,15 @@ const ContactFormSection = () => {
/>
</motion.div>
<motion.div
className="pt-2"
initial={{opacity: 0, y: 10}}
whileInView={{opacity: 1, y: 0}}
viewport={{once: true}}
transition={{duration: 0.5, delay: 0.7}}
>
<HCaptcha sitekey={hCaptchaSiteKey} onVerify={setCaptchaToken}/>
</motion.div>
{/*<motion.div*/}
{/* className="pt-2"*/}
{/* initial={{opacity: 0, y: 10}}*/}
{/* whileInView={{opacity: 1, y: 0}}*/}
{/* viewport={{once: true}}*/}
{/* transition={{duration: 0.5, delay: 0.7}}*/}
{/*>*/}
{/* <HCaptcha sitekey={hCaptchaSiteKey} onVerify={setCaptchaToken}/>*/}
{/*</motion.div>*/}
{error && (
<div className="text-red-600 font-medium pt-2">