Skip to content

Commit e13720a

Browse files
authored
feat(contact): activate contact form and update text content as per p… (#8)
* feat(contact): activate contact form and update text content as per program guidelines * feat(contact): simplify contact form and add WhatsApp redirect button for Financial Manager * feat(contact): add disclaimer about offers not applying when bypassing waiting list * feat(contact-section): Rebuilt the Contact section with the finalized layout and styling.
1 parent 09406aa commit e13720a

2 files changed

Lines changed: 112 additions & 16 deletions

File tree

src/components/sections/ContactSection.tsx

Lines changed: 51 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,65 @@
11
import React from 'react';
22
import '../../styles/ContactSection.css';
33
import '../../styles/ContactInfo.css';
4-
import { FaInfoCircle } from 'react-icons/fa';
54

65
const ContactSection: React.FC = () => {
6+
const openApplicationForm = () => {
7+
window.open(
8+
'https://forms.office.com/pages/responsepage.aspx?id=VMuHclbbA0SbDZvix-_OTiBS0-e3DjdBpyuSsEcOutNUQ002QVU3U1IyU0JWSzRXUlBDOTdNQkIyMiQlQCN0PWcu&route=shorturl',
9+
'_blank',
10+
'noopener,noreferrer'
11+
);
12+
};
13+
14+
const openWhatsApp = () => {
15+
window.open('https://wa.me/201224073193', '_blank', 'noopener,noreferrer');
16+
};
17+
718
return (
819
<section id="contact" className="contact-section">
920
<div className="contact-container">
10-
<h2 className="contact-section-title">Get in Touch</h2> <p className="contact-section-subtitle">
11-
Ready to connect with the Elmentor Program? We'd love to hear from you!
12-
</p>
13-
14-
<div className="contact-info-box">
15-
<div className="contact-info-icon">
16-
<FaInfoCircle />
21+
22+
<div className="contact-form">
23+
24+
<h1 className="contact-info-title">Apply to Join Elmentor Community</h1>
25+
26+
<p className="contact-info-text" > We’re excited to hear from you!</p>
27+
28+
<p className="contact-info-text">
29+
Due to high interest, applications may take several months to review.
30+
</p>
31+
32+
<div style={{ textAlign: 'center', margin: '1.5rem 0' }}>
33+
<button
34+
type="button"
35+
className="messenger-contact-button primary-button"
36+
onClick={openApplicationForm}
37+
aria-label="Start your application to join Elmentor Community"
38+
>
39+
Start Application
40+
</button>
41+
</div>
42+
43+
<p className="contact-info-text">
44+
Your application will be added to the waiting list — we’ll contact you once you’re selected for an interview.
45+
</p>
46+
47+
<h2 className="contact-info-title">Need a faster option?</h2>
48+
49+
<div style={{ textAlign: 'center', margin: '1.5rem 0' }}>
50+
<button
51+
type="button"
52+
className="messenger-contact-button secondary-button"
53+
onClick={openWhatsApp}
54+
aria-label="Message Financial Manager on WhatsApp"
55+
>
56+
Message Financial Manager on WhatsApp
57+
</button>
1758
</div>
18-
<h3 className="contact-info-title">Contact Form Coming Soon!</h3>
59+
1960
<p className="contact-info-text">
20-
We're working on implementing a contact form. For now, the best way to reach us is through Facebook.
61+
Please note that offers and discounts don't apply in this case.
2162
</p>
22-
<a href="https://www.facebook.com/mohamedradwan.me" className="messenger-contact-button" target="_blank" rel="noopener noreferrer">
23-
Message Eng Mohamed Radwan
24-
</a>
25-
<p className="contact-small-text">directly for questions, feedback, or to join our community.</p>
2663
</div>
2764
</div>
2865
</section>

src/styles/ContactSection.css

Lines changed: 61 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363

6464
.form-group label {
6565
display: block;
66-
font-size: var(--font-size-base);
66+
font-size: var(--font-size-lg);
6767
font-weight: var(--font-weight-semibold);
6868
color: var(--color-primary);
6969
margin-bottom: var(--spacing-sm);
@@ -75,7 +75,7 @@
7575
.form-group textarea {
7676
width: 100%;
7777
padding: var(--spacing-sm) var(--spacing-md);
78-
font-size: var(--font-size-base);
78+
font-size: var(--font-size-lg);
7979
color: var(--color-gray-800);
8080
background-color: var(--color-white);
8181
border: 2px solid var(--color-gray-300);
@@ -129,6 +129,34 @@
129129
border: 1px solid var(--color-error);
130130
}
131131

132+
.contact-info-title {
133+
color: var(--color-gray-700) !important;
134+
text-align: center;
135+
}
136+
137+
.contact-info-text {
138+
color: var(--color-gray-700) !important;
139+
text-align: center;
140+
font-size: xx-large;
141+
}
142+
143+
.contact-small-text {
144+
color: var(--color-gray-700) !important;
145+
text-align: center;
146+
font-size: xx-large;
147+
}
148+
149+
.contact-small-text {
150+
font-size: var(--font-size-lg);
151+
color: var(--color-gray-700) !important;
152+
text-align: center;
153+
max-width: 700px;
154+
margin: 0 auto var(--spacing-3xl) auto;
155+
line-height: var(--line-height-relaxed);
156+
font-family: var(--font-family-body);
157+
font-size: var(--font-size-sm);
158+
}
159+
132160
.message-icon {
133161
flex-shrink: 0;
134162
}
@@ -165,3 +193,34 @@
165193
padding: var(--spacing-md);
166194
}
167195
}
196+
197+
198+
.contact-link {
199+
color: var(--color-primary-light);
200+
font-weight: bold;
201+
text-decoration: underline;
202+
}
203+
204+
.contact-link:hover {
205+
text-decoration: none;
206+
color: var(--color-secondary-light);
207+
}
208+
209+
.messenger-contact-button {
210+
display: inline-block;
211+
background-color: var(--color-primary);
212+
color: var(--color-white);
213+
font-weight: var(--font-weight-semibold);
214+
padding: var(--spacing-sm) var(--spacing-lg);
215+
border-radius: var(--border-radius-md);
216+
transition: var(--transition-all);
217+
text-decoration: none;
218+
border: none;
219+
cursor: pointer;
220+
font-size: var(--font-size-lg);
221+
}
222+
223+
.messenger-contact-button:hover {
224+
background-color: var(--color-primary-dark);
225+
}
226+

0 commit comments

Comments
 (0)