Skip to content

Commit fd04a05

Browse files
committed
added changes to contact us
1 parent 1ae54a4 commit fd04a05

File tree

1 file changed

+46
-20
lines changed

1 file changed

+46
-20
lines changed

src/pages/About/ContactUs.tsx

Lines changed: 46 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,16 @@ import {
1717

1818
const theme = {
1919
colors: {
20-
primary: '#1E3A8A',
21-
secondary: '#3B82F6',
22-
textDark: '#1F2937',
20+
primary: '#1E3A8A',
21+
secondary: '#3B82F6',
22+
textDark: '#1F2937',
2323
textLight: '#E5E7EB',
24-
bgLight: '#F9FAFB',
25-
bgDark: '#111827',
26-
border: '#D1D5DB',
24+
bgLight: '#F9FAFB',
25+
bgDark: '#111827',
26+
border: '#D1D5DB',
2727
},
2828
typography: {
29-
heading: 'font-extrabold tracking-tight',
29+
heading: 'font-extrabold tracking-tight',
3030
subheading: 'font-semibold tracking-wide',
3131
body: 'font-normal leading-relaxed',
3232
},
@@ -46,14 +46,30 @@ const ContactUs: React.FC = () => {
4646
>
4747
<div className="absolute inset-0 z-0 opacity-10">
4848
<svg className="w-full h-full" fill="none" viewBox="0 0 960 540">
49-
<pattern id="pattern-zigzag" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse">
50-
<path d="M0 10L10 0L20 10M10 20L0 10" stroke="white" strokeWidth="0.5" />
49+
<pattern
50+
id="pattern-zigzag"
51+
x="0"
52+
y="0"
53+
width="20"
54+
height="20"
55+
patternUnits="userSpaceOnUse"
56+
>
57+
<path
58+
d="M0 10L10 0L20 10M10 20L0 10"
59+
stroke="white"
60+
strokeWidth="0.5"
61+
/>
5162
</pattern>
52-
<rect x="0" y="0" width="100%" height="100%" fill="url(#pattern-zigzag)" />
63+
<rect
64+
x="0"
65+
y="0"
66+
width="100%"
67+
height="100%"
68+
fill="url(#pattern-zigzag)"
69+
/>
5370
</svg>
5471
</div>
5572

56-
5773
<div className="container mx-auto px-4 sm:px-6 lg:px-8 relative z-10 text-center">
5874
<motion.div
5975
className="max-w-4xl mx-auto"
@@ -123,7 +139,9 @@ const ContactUs: React.FC = () => {
123139
iconSrc="assets/Icons/mail.svg"
124140
title="By Mail"
125141
description={
126-
<address className={`mt-2 not-italic ${theme.typography.body} text-gray-600 text-sm`}>
142+
<address
143+
className={`mt-2 not-italic ${theme.typography.body} text-gray-600 text-sm`}
144+
>
127145
Sugar Labs
128146
<br />
129147
2028 E Ben White Blvd <b>STE 240 PMB 1271</b>
@@ -137,7 +155,7 @@ const ContactUs: React.FC = () => {
137155

138156
{/* Phone */}
139157
<ContactMethod
140-
iconSrc="/assets/Icons/phone.svg"
158+
iconSrc="/assets/Icons/phone.svg"
141159
title="By Phone"
142160
description={
143161
<a
@@ -154,7 +172,7 @@ const ContactUs: React.FC = () => {
154172
iconSrc="/assets/Icons/email.svg"
155173
title="By Email"
156174
description={
157-
<a
175+
<a
158176
href="mailto:[email protected]"
159177
className={`mt-2 ${theme.typography.body} text-blue-600 hover:text-blue-800 transition duration-200 block text-sm`}
160178
>
@@ -241,7 +259,9 @@ const ContactUs: React.FC = () => {
241259
aria-hidden="true"
242260
/>
243261
</div>
244-
<span className={`text-sm ${theme.typography.subheading} text-gray-100 group-hover:text-blue-200 transition-colors duration-200 text-center`}>
262+
<span
263+
className={`text-sm ${theme.typography.subheading} text-gray-100 group-hover:text-blue-200 transition-colors duration-200 text-center`}
264+
>
245265
{social.name}
246266
</span>
247267
</motion.a>
@@ -256,10 +276,14 @@ const ContactUs: React.FC = () => {
256276
animate="visible"
257277
transition={{ delay: 0.4 }}
258278
>
259-
<h3 className={`text-sm uppercase ${theme.typography.subheading} text-gray-300 tracking-wider mb-2`}>
279+
<h3
280+
className={`text-sm uppercase ${theme.typography.subheading} text-gray-300 tracking-wider mb-2`}
281+
>
260282
Follow Our Progress
261283
</h3>
262-
<p className={`text-xs ${theme.typography.body} text-gray-400 leading-relaxed`}>
284+
<p
285+
className={`text-xs ${theme.typography.body} text-gray-400 leading-relaxed`}
286+
>
263287
Stay updated with our latest developments and educational
264288
initiatives.
265289
</p>
@@ -287,18 +311,20 @@ const ContactMethod: React.FC<ContactMethodProps> = ({
287311
<motion.div className="flex items-start" variants={subtleRise}>
288312
<motion.div
289313
className="flex-shrink-0 p-3 bg-blue-50 rounded-xl text-blue-600 border border-blue-100 shadow-sm"
290-
whileHover={{ scale: 1.05, rotate: 5 }}
314+
whileHover={{ scale: 1.05, rotate: 5 }}
291315
transition={{ type: 'spring', stiffness: 400, damping: 10 }}
292316
>
293317
<img src={iconSrc} alt="" className="h-5 w-5" aria-hidden="true" />
294318
</motion.div>
295319
<div className="ml-4">
296-
<h3 className={`text-base font-bold text-gray-800 uppercase tracking-wider mb-1 ${theme.typography.subheading}`}>
320+
<h3
321+
className={`text-base font-bold text-gray-800 uppercase tracking-wider mb-1 ${theme.typography.subheading}`}
322+
>
297323
{title}
298324
</h3>
299325
{description}
300326
</div>
301327
</motion.div>
302328
);
303329

304-
export default ContactUs;
330+
export default ContactUs;

0 commit comments

Comments
 (0)