Update club contact email handling and clear blank emails

This commit is contained in:
Amudieshwar
2026-08-13 12:05:02 +05:30
parent 241cb5c714
commit 64c5180549
2 changed files with 26 additions and 25 deletions

View File

@@ -534,7 +534,7 @@ export const CLUBS_DATA: Club[] = [
vicePresidentName: 'Harish A (CSE)', vicePresidentName: 'Harish A (CSE)',
coordinatorName: 'Pradakshina Rajesh Bhavani (AI&DS)', coordinatorName: 'Pradakshina Rajesh Bhavani (AI&DS)',
year: 'Senior Year', year: 'Senior Year',
contactEmail: 'nss@ritchennai.edu.in', contactEmail: '',
contactPhone: '+91 8668130804', contactPhone: '+91 8668130804',
icon: 'HeartHandshake', icon: 'HeartHandshake',
logoUrl: '/clubs/nss.png', logoUrl: '/clubs/nss.png',
@@ -553,7 +553,7 @@ export const CLUBS_DATA: Club[] = [
vicePresidentName: 'Supeckshana M (CSE)', vicePresidentName: 'Supeckshana M (CSE)',
coordinatorName: 'Dr. S. Niranjana (VLSI)', coordinatorName: 'Dr. S. Niranjana (VLSI)',
year: 'Senior Year', year: 'Senior Year',
contactEmail: 'uba@ritchennai.edu.in', contactEmail: '',
contactPhone: '+91 7305642992', contactPhone: '+91 7305642992',
icon: 'Users', icon: 'Users',
logoUrl: '/clubs/unnat_bharat.png', logoUrl: '/clubs/unnat_bharat.png',
@@ -572,7 +572,7 @@ export const CLUBS_DATA: Club[] = [
vicePresidentName: 'Danish (VLSI)', vicePresidentName: 'Danish (VLSI)',
coordinatorName: 'Rotaract Faculty Lead', coordinatorName: 'Rotaract Faculty Lead',
year: 'Senior Year', year: 'Senior Year',
contactEmail: 'rotaract@ritchennai.edu.in', contactEmail: '',
contactPhone: '+91 7200696226', contactPhone: '+91 7200696226',
icon: 'HeartHandshake', icon: 'HeartHandshake',
logoUrl: '/clubs/rotaract.png', logoUrl: '/clubs/rotaract.png',
@@ -591,7 +591,7 @@ export const CLUBS_DATA: Club[] = [
vicePresidentName: 'Julinsa (CSE)', vicePresidentName: 'Julinsa (CSE)',
coordinatorName: 'Niraimathy Marthandan (Biotech)', coordinatorName: 'Niraimathy Marthandan (Biotech)',
year: 'Senior Year', year: 'Senior Year',
contactEmail: 'yrc@ritchennai.edu.in', contactEmail: '',
contactPhone: '+91 9344061221', contactPhone: '+91 9344061221',
icon: 'Heart', icon: 'Heart',
logoUrl: '/clubs/nss.png', logoUrl: '/clubs/nss.png',
@@ -610,7 +610,7 @@ export const CLUBS_DATA: Club[] = [
vicePresidentName: 'Indhuvadhani M (ECE)', vicePresidentName: 'Indhuvadhani M (ECE)',
coordinatorName: 'Ms. N. Suganthi (ECE)', coordinatorName: 'Ms. N. Suganthi (ECE)',
year: 'Third Year', year: 'Third Year',
contactEmail: 'wec@ritchennai.edu.in', contactEmail: '',
contactPhone: '+91 6385227710', contactPhone: '+91 6385227710',
icon: 'Sparkles', icon: 'Sparkles',
logoUrl: '/clubs/wec.png', logoUrl: '/clubs/wec.png',
@@ -629,7 +629,7 @@ export const CLUBS_DATA: Club[] = [
vicePresidentName: 'Pradakshina RB', vicePresidentName: 'Pradakshina RB',
coordinatorName: 'YUVA Faculty Lead', coordinatorName: 'YUVA Faculty Lead',
year: 'Senior Year', year: 'Senior Year',
contactEmail: 'yuva@ritchennai.edu.in', contactEmail: '',
contactPhone: '+91 9677043565', contactPhone: '+91 9677043565',
icon: 'Rocket', icon: 'Rocket',
logoUrl: '/clubs/yuva.png', logoUrl: '/clubs/yuva.png',
@@ -648,7 +648,7 @@ export const CLUBS_DATA: Club[] = [
vicePresidentName: 'Keerthana S (III CSE)', vicePresidentName: 'Keerthana S (III CSE)',
coordinatorName: 'Dr. J. Anitha (H&S)', coordinatorName: 'Dr. J. Anitha (H&S)',
year: 'III Year, CSE', year: 'III Year, CSE',
contactEmail: 'wistem@ritchennai.edu.in', contactEmail: '',
contactPhone: '+91 9600110150', contactPhone: '+91 9600110150',
icon: 'Atom', icon: 'Atom',
logoUrl: '/clubs/wistem.png', logoUrl: '/clubs/wistem.png',
@@ -668,7 +668,7 @@ export const CLUBS_DATA: Club[] = [
vicePresidentName: 'Barath S (AIML)', vicePresidentName: 'Barath S (AIML)',
coordinatorName: 'Prof. Avudai Selvi (CSE)', coordinatorName: 'Prof. Avudai Selvi (CSE)',
year: 'Senior Year', year: 'Senior Year',
contactEmail: 'techspark@ritchennai.edu.in', contactEmail: '',
contactPhone: '+91 8667466390', contactPhone: '+91 8667466390',
icon: 'Zap', icon: 'Zap',
logoUrl: '/clubs/techspark.png', logoUrl: '/clubs/techspark.png',
@@ -687,7 +687,7 @@ export const CLUBS_DATA: Club[] = [
vicePresidentName: 'Sanjay Y (III ECE)', vicePresidentName: 'Sanjay Y (III ECE)',
coordinatorName: 'Dr. A. Thilagavathy Vinoth (H&S)', coordinatorName: 'Dr. A. Thilagavathy Vinoth (H&S)',
year: 'Third Year', year: 'Third Year',
contactEmail: 'infinitus@ritchennai.edu.in', contactEmail: '',
contactPhone: '+91 8838552068', contactPhone: '+91 8838552068',
icon: 'Calculator', icon: 'Calculator',
logoUrl: '/clubs/infinitus.png', logoUrl: '/clubs/infinitus.png',
@@ -706,7 +706,7 @@ export const CLUBS_DATA: Club[] = [
vicePresidentName: 'Abhi Harish (III VLSI)', vicePresidentName: 'Abhi Harish (III VLSI)',
coordinatorName: 'Mr. Mohan Ram (AP/ECE)', coordinatorName: 'Mr. Mohan Ram (AP/ECE)',
year: 'III Year, VLSI', year: 'III Year, VLSI',
contactEmail: 'steamclub@ritchennai.edu.in', contactEmail: '',
contactPhone: '+91 7550271227', contactPhone: '+91 7550271227',
icon: 'Printer', icon: 'Printer',
logoUrl: '/clubs/steam.png', logoUrl: '/clubs/steam.png',
@@ -725,7 +725,7 @@ export const CLUBS_DATA: Club[] = [
vicePresidentName: 'Jonathi (III AIDS)', vicePresidentName: 'Jonathi (III AIDS)',
coordinatorName: 'Prof. Shri Janani P (CSE)', coordinatorName: 'Prof. Shri Janani P (CSE)',
year: 'III Year, CSE', year: 'III Year, CSE',
contactEmail: 'artistleague@ritchennai.edu.in', contactEmail: '',
contactPhone: '+91 9025726185', contactPhone: '+91 9025726185',
icon: 'Sparkles', icon: 'Sparkles',
logoUrl: '/clubs/artist_league.png', logoUrl: '/clubs/artist_league.png',
@@ -744,7 +744,7 @@ export const CLUBS_DATA: Club[] = [
vicePresidentName: 'Sarvesh V (III VLSI)', vicePresidentName: 'Sarvesh V (III VLSI)',
coordinatorName: 'Mr. Keerthana Pandiyan (Biotech)', coordinatorName: 'Mr. Keerthana Pandiyan (Biotech)',
year: 'III Year, AIML', year: 'III Year, AIML',
contactEmail: 'vaarithi@ritchennai.edu.in', contactEmail: '',
contactPhone: '+91 8248701027', contactPhone: '+91 8248701027',
icon: 'BookOpen', icon: 'BookOpen',
logoUrl: '/clubs/vaarithi.png', logoUrl: '/clubs/vaarithi.png',
@@ -763,7 +763,7 @@ export const CLUBS_DATA: Club[] = [
vicePresidentName: 'Farren Jeanvil', vicePresidentName: 'Farren Jeanvil',
coordinatorName: 'Ms. Roopavathi', coordinatorName: 'Ms. Roopavathi',
year: 'Third Year', year: 'Third Year',
contactEmail: 'nippon@ritchennai.edu.in', contactEmail: '',
contactPhone: '+91 9042294493', contactPhone: '+91 9042294493',
icon: 'Globe', icon: 'Globe',
logoUrl: '/clubs/nippon.png', logoUrl: '/clubs/nippon.png',

View File

@@ -630,18 +630,19 @@ export default function Events() {
</div> </div>
)} )}
{/* Email Card - Emerald Theme */} {selectedClub.contactEmail && (
<div className="bg-emerald-50/80 border border-emerald-100 hover:border-emerald-300 transition-colors rounded-2xl p-3.5 flex items-center gap-3"> <div className="bg-emerald-50/80 border border-emerald-100 hover:border-emerald-300 transition-colors rounded-2xl p-3.5 flex items-center gap-3">
<div className="w-10 h-10 rounded-xl bg-gradient-to-br from-emerald-500 to-emerald-600 text-white flex items-center justify-center shadow-xs shadow-emerald-200 shrink-0"> <div className="w-10 h-10 rounded-xl bg-gradient-to-br from-emerald-500 to-emerald-600 text-white flex items-center justify-center shadow-xs shadow-emerald-200 shrink-0">
<Mail className="w-5 h-5 text-white" /> <Mail className="w-5 h-5 text-white" />
</div> </div>
<div className="min-w-0 flex-1"> <div className="min-w-0 flex-1">
<span className="text-[11px] text-emerald-500 font-semibold block">Contact Email</span> <span className="text-[11px] text-emerald-500 font-semibold block">Contact Email</span>
<a href={`mailto:${selectedClub.contactEmail}`} className="text-sm font-bold text-emerald-700 hover:text-emerald-800 hover:underline truncate block"> <a href={`mailto:${selectedClub.contactEmail}`} className="text-sm font-bold text-emerald-700 hover:text-emerald-800 hover:underline truncate block">
{selectedClub.contactEmail || 'club@ritchennai.edu.in'} {selectedClub.contactEmail}
</a> </a>
</div> </div>
</div> </div>
)}
{/* Phone Card - Sky Theme */} {/* Phone Card - Sky Theme */}
<div className="bg-sky-50/80 border border-sky-100 hover:border-sky-300 transition-colors rounded-2xl p-3.5 flex items-center gap-3"> <div className="bg-sky-50/80 border border-sky-100 hover:border-sky-300 transition-colors rounded-2xl p-3.5 flex items-center gap-3">