@@ -20,70 +20,4 @@ function Contact() {
20
20
) ;
21
21
}
22
22
23
-
24
- // function Contact() {
25
- // const { email, phone } = contactDetails;
26
-
27
- // const generateCaptcha = () => {
28
- // const characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';
29
- // let captcha = '';
30
- // const captchaLength = 6; // Set the desired length of the captcha string
31
-
32
- // for (let i = 0; i < captchaLength; i++) {
33
- // const randomIndex = Math.floor(Math.random() * characters.length);
34
- // captcha += characters[randomIndex];
35
- // }
36
-
37
- // return captcha;
38
- // };
39
-
40
- // const [captcha, setCaptcha] = useState(generateCaptcha());
41
- // const [userInput, setUserInput] = useState('');
42
- // const [showPhoneNumber, setShowPhoneNumber] = useState(false);
43
-
44
- // const refreshCaptcha = () => {
45
- // setCaptcha(generateCaptcha());
46
- // setUserInput('');
47
- // };
48
-
49
- // const validateCaptcha = () => {
50
- // if (userInput === captcha) {
51
- // setShowPhoneNumber(true);
52
- // } else {
53
- // alert('Incorrect captcha. Please try again.');
54
- // refreshCaptcha();
55
- // }
56
- // };
57
-
58
- // return (
59
- // <main className="container mx-auto max-width section">
60
- // <h1 className="text-center text-2xl md:text-3xl lg:text-6xl text-dark-heading dark:text-light-heading font-semibold md:font-bold">
61
- // For any questions, please drop a mail
62
- // </h1>
63
- // <h3 className="text-center text-3xl md:text-4xl lg:text-6xl text-gradient font-semibold md:font-bold pt-5 md:pt-10 md:pb-6">
64
- // <a href={`mailto:${email}`}>{email}</a>
65
- // </h3>
66
- // <span className="text-center text-content text-xl font-light block">or</span>
67
-
68
- // {showPhoneNumber ? (
69
- // <div className="text-center text-3xl md:text-4xl lg:text-6xl text-gradient font-semibold md:font-bold pt-2 md:py-6">
70
- // <a href={`tel:${phone}`}>{phone}</a>
71
- // </div>
72
- // ) : (
73
- // <div className="captcha-container">
74
- // <p className="captcha-text">To view the phone number, please solve the captcha:</p>
75
- // <input
76
- // type="text"
77
- // value={userInput}
78
- // onChange={(e) => setUserInput(e.target.value)}
79
- // placeholder="Enter the characters"
80
- // />
81
- // <img src="captcha_image.jpg" alt="Captcha Image" className="captcha-image" />
82
- // <button onClick={validateCaptcha}>Submit</button>
83
- // </div>
84
- // )}
85
- // </main>
86
- // );
87
- // }
88
-
89
23
export default Contact ;
0 commit comments