From 5dfffe7e86cb9d04bdf155cf6963867cd3dc733f Mon Sep 17 00:00:00 2001 From: Abiram070207 Date: Wed, 17 Jun 2026 08:31:04 +0530 Subject: [PATCH] Altered the contact section, department and working hours. --- src/components/FooterContact.tsx | 8 ++--- src/components/Hero.tsx | 33 ++++++++++--------- src/components/PitchBooking.tsx | 56 +++++++++++++++++++++++--------- 3 files changed, 62 insertions(+), 35 deletions(-) diff --git a/src/components/FooterContact.tsx b/src/components/FooterContact.tsx index 76edb5c..40314ec 100644 --- a/src/components/FooterContact.tsx +++ b/src/components/FooterContact.tsx @@ -18,7 +18,7 @@ export const FooterContact: React.FC = ({ onScrollToSection }) => { {/* Brand Column */}
- RAISE Incubator Logo + RAISE Incubator Logo
RAISE @@ -142,9 +142,9 @@ export const FooterContact: React.FC = ({ onScrollToSection }) => { Campus Lab Address

- 1st Floor, Innovation Cell, Steve Jobs Building,
- RIT Campus, Kuthambakkam Post,
- Chembarambakkam, Chennai – 600124. + C Block 3rd floor, C306,
+ Panel 4 Inside Placement Cell,
+ RIT Campus, Chennai – 600124.

diff --git a/src/components/Hero.tsx b/src/components/Hero.tsx index c01d937..500d93a 100644 --- a/src/components/Hero.tsx +++ b/src/components/Hero.tsx @@ -73,15 +73,9 @@ export const Hero: React.FC = ({ onScrollToSection }) => { >
onScrollToSection('hero')}>
- RAISE Incubator Logo + RAISE Incubator Logo
-
- RAISE - - Incubation Cell - -
{/* Nav links */} @@ -123,15 +117,22 @@ export const Hero: React.FC = ({ onScrollToSection }) => {
- RIT College Logo { - // Hide broken image frame if RIT logo is missing or placeholder is empty - (e.target as HTMLElement).style.display = 'none'; - }} - /> + + RIT College Logo { + // Hide broken image frame if RIT logo is missing or placeholder is empty + (e.target as HTMLElement).style.display = 'none'; + }} + /> +
diff --git a/src/components/PitchBooking.tsx b/src/components/PitchBooking.tsx index 23b49d8..3ac35fe 100644 --- a/src/components/PitchBooking.tsx +++ b/src/components/PitchBooking.tsx @@ -19,6 +19,20 @@ export const PitchBooking: React.FC = () => { const handleInputChange = (e: React.ChangeEvent) => { const { name, value } = e.target; + + if (name === 'slotDate' && value) { + const date = new Date(value); + const day = date.getUTCDay(); + if (day === 6 || day === 0) { + setErrors(prev => ({ + ...prev, + slotDate: 'Sessions cannot be scheduled on weekends (Saturday/Sunday)' + })); + setFormData(prev => ({ ...prev, slotDate: '' })); + return; + } + } + setFormData(prev => ({ ...prev, [name]: value })); if (errors[name]) { setErrors(prev => { @@ -44,7 +58,15 @@ export const PitchBooking: React.FC = () => { } else if (formData.uniqueness.trim().length < 20) { newErrors.uniqueness = 'Please provide a more detailed description (min 20 characters)'; } - if (!formData.slotDate) newErrors.slotDate = 'Please select a date'; + if (!formData.slotDate) { + newErrors.slotDate = 'Please select a date'; + } else { + const date = new Date(formData.slotDate); + const day = date.getUTCDay(); + if (day === 6 || day === 0) { + newErrors.slotDate = 'Sessions cannot be scheduled on weekends (Saturday/Sunday)'; + } + } if (!formData.slotTime) newErrors.slotTime = 'Please select a time slot'; setErrors(newErrors); @@ -64,10 +86,9 @@ export const PitchBooking: React.FC = () => { }; const timeSlots = [ - "09:30 AM - 11:00 AM", - "11:30 AM - 01:00 PM", - "02:00 PM - 03:30 PM", - "03:45 PM - 05:00 PM" + "09:00 AM - 11:00 AM", + "11:00 AM - 01:00 PM", + "01:00 PM - 03:00 PM" ]; return ( @@ -157,12 +178,15 @@ export const PitchBooking: React.FC = () => { }`} > - - - - - - + + + + + + + + + {errors.department && {errors.department}} @@ -221,8 +245,9 @@ export const PitchBooking: React.FC = () => {
{/* Date Input */}
-