Skip to content

Commit

Permalink
contact page updated
Browse files Browse the repository at this point in the history
  • Loading branch information
chhaviii52 committed Jan 4, 2025
1 parent a92ea69 commit 5f9e452
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/Pages/contact.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,15 +76,26 @@ function Contact() {
initial={{ opacity: 0, y: -50 }}
animate={{ opacity: 1, y: 0 }}
transition={{ duration: 0.5 }}
style={{ fontWeight: 'bold' }}
>
Contact Us
</Title>
<Title
className = "mt-1"
initial={{ opacity: 0, y: -20}}
animate={{ opacity: 1, y: 2 }}
transition={{ duration: 0.5 }}
style={{ fontSize: "24px" }}
>
We would love to hear from you!
</Title>
<Form
onSubmit={handleSubmit}
initial={{ opacity: 0, y: 50 }}
animate={{ opacity: 1, y: 0 }}
transition={{ duration: 0.5, delay: 0.2 }}
>
<div style={{ display: 'flex',justifyContent:'space-between',gap:'10px' }}>
<Input
type="text"
name="name"
Expand All @@ -93,6 +104,7 @@ function Contact() {
onChange={handleChange}
required
pattern="[a-zA-Z\s]+" title="Name must only contain letters"
style={{ width: '50%' }}
/>
<Input
type="email"
Expand All @@ -101,7 +113,9 @@ function Contact() {
value={formData.email}
onChange={handleChange}
required
style={{ width: '50%' }}
/>
</div>
<TextArea
name="message"
placeholder="Your Message"
Expand Down

0 comments on commit 5f9e452

Please sign in to comment.