1
1
const ContactForm = ( ) => {
2
2
return (
3
- < div className = "w-full sm:w-1/2" >
4
- < div class = "leading-loose" >
5
- < form class = "max-w-xl m-4 p-6 sm:p-10 bg-secondary-light dark:bg-secondary-dark rounded-xl shadow-xl text-left" >
6
- < p class = "text-primary-dark dark:text-primary-light text-2xl font-semibold mb-8" >
3
+ < div classNameName = "w-full sm:w-1/2" >
4
+ < div className = "leading-loose" >
5
+ < form className = "max-w-xl m-4 p-6 sm:p-10 bg-secondary-light dark:bg-secondary-dark rounded-xl shadow-xl text-left" >
6
+ < p className = "text-primary-dark dark:text-primary-light text-2xl font-semibold mb-8" >
7
7
Contact Form
8
8
</ p >
9
- < div class = "" >
9
+ < div className = "" >
10
10
< label
11
- class = "block text-lg text-primary-dark dark:text-primary-light mb-2"
11
+ className = "block text-lg text-primary-dark dark:text-primary-light mb-2"
12
12
for = "name"
13
13
>
14
14
Full Name
15
15
</ label >
16
16
< input
17
- class = "w-full px-5 py-2 border-0 text-primary-dark dark:text-secondary-light bg-ternary-light dark:bg-ternary-dark rounded-md shadow-sm text-md dark:font-medium"
17
+ className = "w-full px-5 py-2 border-0 text-primary-dark dark:text-secondary-light bg-ternary-light dark:bg-ternary-dark rounded-md shadow-sm text-md dark:font-medium"
18
18
id = "name"
19
19
name = "name"
20
20
type = "text"
21
- required = ""
21
+ required
22
22
placeholder = "Your Name"
23
23
aria-label = "Name"
24
24
/>
25
25
</ div >
26
- < div class = "mt-6" >
26
+ < div className = "mt-6" >
27
27
< label
28
- class = "block text-lg text-primary-dark dark:text-primary-light mb-2"
28
+ className = "block text-lg text-primary-dark dark:text-primary-light mb-2"
29
29
for = "email"
30
30
>
31
31
Email
32
32
</ label >
33
33
< input
34
- class = "w-full px-5 py-2 border-0 text-primary-dark dark:text-secondary-light bg-ternary-light dark:bg-ternary-dark rounded-md shadow-sm text-md dark:font-medium"
34
+ className = "w-full px-5 py-2 border-0 text-primary-dark dark:text-secondary-light bg-ternary-light dark:bg-ternary-dark rounded-md shadow-sm text-md dark:font-medium"
35
35
id = "email"
36
36
name = "email"
37
37
type = "text"
38
- required = ""
38
+ required
39
39
placeholder = "Your Email"
40
40
aria-label = "Email"
41
41
/>
42
42
</ div >
43
- < div class = "mt-6" >
43
+ < div className = "mt-6" >
44
44
< label
45
- class = "block text-lg text-primary-dark dark:text-primary-light mb-2"
45
+ className = "block text-lg text-primary-dark dark:text-primary-light mb-2"
46
46
for = "subject"
47
47
>
48
48
Subject
49
49
</ label >
50
50
< input
51
- class = "w-full px-5 py-2 border-0 text-primary-dark dark:text-secondary-light bg-ternary-light dark:bg-ternary-dark rounded-md shadow-sm text-md dark:font-medium"
51
+ className = "w-full px-5 py-2 border-0 text-primary-dark dark:text-secondary-light bg-ternary-light dark:bg-ternary-dark rounded-md shadow-sm text-md dark:font-medium"
52
52
id = "subject"
53
53
name = "subject"
54
54
type = "text"
55
- required = ""
55
+ required
56
56
placeholder = "Subject"
57
57
aria-label = "Subject"
58
58
/>
59
59
</ div >
60
60
61
- < div class = "mt-6" >
61
+ < div className = "mt-6" >
62
62
< label
63
- class = "block text-lg text-primary-dark dark:text-primary-light mb-2"
63
+ className = "block text-lg text-primary-dark dark:text-primary-light mb-2"
64
64
for = "message"
65
65
>
66
66
Message
67
67
</ label >
68
68
< textarea
69
- class = "w-full px-5 py-2 border-0 text-primary-dark dark:text-secondary-light bg-ternary-light dark:bg-ternary-dark rounded-md shadow-sm text-md dark:font-medium"
69
+ className = "w-full px-5 py-2 border-0 text-primary-dark dark:text-secondary-light bg-ternary-light dark:bg-ternary-dark rounded-md shadow-sm text-md dark:font-medium"
70
70
id = "message"
71
71
name = "message"
72
72
cols = "14"
@@ -75,9 +75,9 @@ const ContactForm = () => {
75
75
> </ textarea >
76
76
</ div >
77
77
78
- < div class = "mt-6" >
78
+ < div className = "mt-6" >
79
79
< button
80
- class = "px-4 py-2.5 text-white font-medium tracking-wider bg-indigo-500 hover:bg-indigo-600 focus:ring-1 focus:ring-indigo-900 rounded-lg"
80
+ className = "px-4 py-2.5 text-white font-medium tracking-wider bg-indigo-500 hover:bg-indigo-600 focus:ring-1 focus:ring-indigo-900 rounded-lg"
81
81
type = "submit"
82
82
aria-label = "Send Message"
83
83
>
0 commit comments