Skip to content

Commit b80278d

Browse files
authored
Rendering Link on Volunteer Page (sugarlabs#120)
1 parent 85ca099 commit b80278d

File tree

1 file changed

+32
-3
lines changed

1 file changed

+32
-3
lines changed

src/pages/Volunteer.tsx

Lines changed: 32 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,23 @@ import JoinToggle from '@/components/JoinToggle';
44
import { roleCards } from '@/constants/VolunteerAndDev/RoleCards';
55
import groupimage from '/assets/Volunteer/volunteer-group.png';
66
import { motion } from 'framer-motion';
7+
import { developerLinks } from '@/constants/VolunteerAndDev/Links';
78
import {
89
slideInLeft,
910
slideInRight,
1011
slideInBottom,
1112
cardFadeIn,
1213
} from '@/styles/Animations';
14+
import { Link } from 'react-router-dom';
1315

1416
const Volunteer = () => {
17+
const matrixLink =
18+
developerLinks.find((link) => link.name.includes('Matrix'))?.url ||
19+
'https://matrix.to/#/#sugar:matrix.org';
20+
const mailLink =
21+
developerLinks.find((link) => link.name.includes('Mailing'))?.url ||
22+
'https://lists.sugarlabs.org/';
23+
1524
return (
1625
<div>
1726
<Header />
@@ -193,9 +202,29 @@ const Volunteer = () => {
193202
<hr className="w-32 border-t-2 border-gray-400 mx-auto mt-2" />
194203

195204
<p className="text-lg text-gray-700 font-[Inter] mt-6 leading-relaxed">
196-
Feel free to reach out to express your interest in volunteering via
197-
email or Matrix. Alternatively, you may send a direct message to one
198-
of our social media channels.
205+
Feel free to reach out to express your interest in volunteering via{' '}
206+
<a
207+
href={mailLink}
208+
className="text-blue-500 hover:underline"
209+
target="_blank"
210+
rel="noopener noreferrer"
211+
>
212+
email
213+
</a>{' '}
214+
or{' '}
215+
<a
216+
href={matrixLink}
217+
className="text-blue-500 hover:underline"
218+
target="_blank"
219+
rel="noopener noreferrer"
220+
>
221+
Matrix
222+
</a>
223+
. Alternatively, you may send{' '}
224+
<Link to="/contact-us" className="text-blue-600 hover:underline">
225+
direct message
226+
</Link>{' '}
227+
to one of our social media channels.
199228
</p>
200229
</motion.div>
201230
</main>

0 commit comments

Comments
 (0)