11import { useParams , Link } from 'react-router-dom' ;
2+ import { useSelector } from 'react-redux' ;
23import styles from './FollowUpEmailTemplate.module.css' ;
34import { FaLinkedin , FaInstagram , FaFacebook } from 'react-icons/fa' ;
45import companyLogo from '../../../assets/images/logo2.png' ;
56
67function FollowUpEmailTemplate ( ) {
7- const { eventId = 1234 , email = '' } = useParams ( ) ; // || { email: '' };
8+ const { eventId = 1234 , email = '' } = useParams ( ) ;
9+
10+ // Dark mode state from Redux
11+ const darkMode = useSelector ( state => state . theme . darkMode ) ;
12+
813 return (
9- < div className = { styles . emailTemplateContainer } >
14+ < div
15+ className = { `${ styles . emailTemplateContainer } ${
16+ darkMode ? styles . emailTemplateContainerDark : ''
17+ } `}
18+ >
1019 { /* Company Logo */ }
1120 < img src = { companyLogo } alt = "One Community Logo" className = { styles . emailLogo } />
1221
13- < h2 > Hi { email || '[Name]' } ,</ h2 >
14- < p >
22+ < h2 className = { darkMode ? styles . textLight : '' } > Hi { email || '[Name]' } ,</ h2 >
23+
24+ < p className = { darkMode ? styles . textLight : '' } >
1525 We hope you enjoyed our recent event. Your feedback is valuable to us as we strive to
1626 improve our future events.
1727 </ p >
1828
19- < p >
29+ < p className = { darkMode ? styles . textLight : '' } >
2030 Please take a moment to share your thoughts:
2131 < br />
2232 < Link
2333 to = { `/communityportal/activities/FeedbackForm/${ eventId } /${ email || 'no-email' } ` }
24- className = { styles . feedbackLink }
34+ className = { ` ${ styles . feedbackLink } ${ darkMode ? styles . feedbackLinkDark : '' } ` }
2535 >
2636 Survey Form
2737 </ Link >
2838 </ p >
2939
30- < p > If you’d like to:</ p >
31- < ul >
40+ < p className = { darkMode ? styles . textLight : '' } > If you’d like to:</ p >
41+ < ul className = { ` ${ darkMode ? styles . textLight : '' } ${ darkMode ? styles . linkSoftDark : '' } ` } >
3242 < li >
3343 Reschedule: < a href = "https://www.onecommunityevents.org/reschedule" > Reschedule Link</ a >
3444 </ li >
@@ -38,24 +48,24 @@ function FollowUpEmailTemplate() {
3848 </ li >
3949 </ ul >
4050
41- < p > Best regards,</ p >
42- < p > One Community Team</ p >
43- < p > Primary Email: jae@onecommunityglobal.org</ p >
44- < p > Google Email: onecommunityglobal@gmail.com</ p >
45- < p > Timezone: Los Angeles, CA - Pacific Time</ p >
51+ < p className = { darkMode ? styles . textLight : '' } > Best regards,</ p >
52+ < p className = { darkMode ? styles . textLight : '' } > One Community Team</ p >
53+ < p className = { darkMode ? styles . textLight : '' } > Primary Email: jae@onecommunityglobal.org</ p >
54+ < p className = { darkMode ? styles . textLight : '' } > Google Email: onecommunityglobal@gmail.com</ p >
55+ < p className = { darkMode ? styles . textLight : '' } > Timezone: Los Angeles, CA - Pacific Time</ p >
4656
47- { /* Horizontal Line */ }
48- < hr className = { styles . emailDivider } />
57+ { /* Divider */ }
58+ < hr className = { ` ${ styles . emailDivider } ${ darkMode ? styles . emailDividerDark : '' } ` } />
4959
50- { /* Social Media Icons */ }
51- < div className = { styles . socialIcons } >
60+ { /* Social Icons */ }
61+ < div className = { ` ${ styles . socialIcons } ${ darkMode ? styles . socialIconsDark : '' } ` } >
5262 < a
5363 href = "https://www.linkedin.com/company/one-community-global/"
5464 target = "_blank"
5565 rel = "noopener noreferrer"
5666 aria-label = "LinkedIn"
5767 >
58- < FaLinkedin className = { ` ${ styles . socialIcon } ${ styles . socialIconLinkedin } ` } />
68+ < FaLinkedin className = { styles . socialIcon } />
5969 </ a >
6070
6171 < a
@@ -64,7 +74,7 @@ function FollowUpEmailTemplate() {
6474 rel = "noopener noreferrer"
6575 aria-label = "Instagram"
6676 >
67- < FaInstagram className = { ` ${ styles . socialIcon } ${ styles . socialIconInstagram } ` } />
77+ < FaInstagram className = { styles . socialIcon } />
6878 </ a >
6979
7080 < a
@@ -73,19 +83,25 @@ function FollowUpEmailTemplate() {
7383 rel = "noopener noreferrer"
7484 aria-label = "Facebook"
7585 >
76- < FaFacebook className = { ` ${ styles . socialIcon } ${ styles . socialIconFacebook } ` } />
86+ < FaFacebook className = { styles . socialIcon } />
7787 </ a >
7888 </ div >
7989
80- { /* Horizontal Line */ }
81- < hr className = { styles . emailDivider } />
90+ { /* Divider */ }
91+ < hr className = { ` ${ styles . emailDivider } ${ darkMode ? styles . emailDividerDark : '' } ` } />
8292
83- < p style = { { fontWeight : 'bold' , textAlign : 'center' } } >
93+ < p
94+ style = { { fontWeight : 'bold' , textAlign : 'center' } }
95+ className = { darkMode ? styles . textLight : '' }
96+ >
8497 Jae M.Sabol < br /> Executive Director - One Community < br />
8598 "Open Source Sustainability for The Highest Good of All"
8699 </ p >
87100
88- < p style = { { fontSize : '12px' , textAlign : 'center' , color : '#888' } } >
101+ < p
102+ style = { { fontSize : '12px' , textAlign : 'center' } }
103+ className = { darkMode ? styles . textLight : '' }
104+ >
89105 You are receiving this mail because you registered to join the One Community Global platform
90106 as a user or a creator. This also shows that you agree to our Terms of Use and Privacy
91107 Policies. If you no longer want to receive mails from us, click the unsubscribe link below.
0 commit comments