From cff8173987b99c3384d61c67ac2ebeeafce344cc Mon Sep 17 00:00:00 2001 From: priyanshuvish Date: Fri, 5 Sep 2025 15:06:26 +0530 Subject: [PATCH] changes and scroll top --- src/App.tsx | 7 + src/components/Contact.tsx | 346 +++---- src/components/FooterNew.tsx | 10 +- src/components/LearningFacilityNew.tsx | 6 +- src/components/LearningOnline.tsx | 9 +- src/components/Navigation.tsx | 2 +- src/components/ScrollToTop.tsx | 14 + src/components/SelfLearnerSignIn.tsx | 4 +- src/components/SelfLearnerSignUp.tsx | 8 +- src/components/services/LearningFacility.tsx | 1 - src/main.tsx | 2 + src/pages/FAQ.tsx | 222 +++++ src/pages/Privacy.tsx | 948 +++++++++++++++++++ src/pages/TermsCondition.tsx | 760 +++++++++++++++ 14 files changed, 2102 insertions(+), 237 deletions(-) create mode 100644 src/components/ScrollToTop.tsx create mode 100644 src/pages/FAQ.tsx create mode 100644 src/pages/Privacy.tsx create mode 100644 src/pages/TermsCondition.tsx diff --git a/src/App.tsx b/src/App.tsx index 5c04c5a..a686824 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -35,6 +35,9 @@ import { Services } from './components/Services'; import { LearningFacilityNew } from './components/LearningFacilityNew'; import HomePageNew from './pages/HomePageNew'; import { FooterNew } from './components/FooterNew'; +import { Privacy } from "./pages/Privacy"; +import { TermsCondition } from "./pages/TermsCondition"; +import { FAQ } from "./pages/FAQ"; // import EnrollPlaceholder from "./components/EnrollPlaceholder"; // import ForgotPasswordPlaceholder from "./components/ForgotPasswordPlaceholder"; // import DashboardPlaceholder from "./components/DashboardPlaceholder"; @@ -110,6 +113,10 @@ export default function App() { {/* Learning Facility */} } /> + {/* Privacy policy */} + } /> + } /> + } /> {/* Placeholder Pages */} {/* } /> diff --git a/src/components/Contact.tsx b/src/components/Contact.tsx index 97e7fff..0bcdf9c 100644 --- a/src/components/Contact.tsx +++ b/src/components/Contact.tsx @@ -15,15 +15,11 @@ interface ContactProps { export function Contact({ topic }: ContactProps) { const [formData, setFormData] = useState({ - firstName: '', - lastName: '', - email: '', - phone: '', - company: '', - jobTitle: '', - subject: topic || '', - message: '', - source: '' + name: '', + mobileNumber: '', + emailId: '', + interestedIn: topic || '', + message: '' }); const [isSubmitted, setIsSubmitted] = useState(false); @@ -31,13 +27,13 @@ export function Contact({ topic }: ContactProps) { useEffect(() => { console.log('Contact component mounted with topic:', topic); - // Set default subject based on topic parameter + // Set default interested in based on topic parameter if (topic) { - const subject = getTopicSubject(topic); - console.log('Setting form subject to:', subject); + const interestedIn = getTopicSubject(topic); + console.log('Setting form interestedIn to:', interestedIn); setFormData(prev => ({ ...prev, - subject: subject + interestedIn: interestedIn })); } }, [topic]); @@ -77,7 +73,7 @@ export function Contact({ topic }: ContactProps) { if (isSubmitted) { return ( -
+
@@ -100,19 +96,19 @@ export function Contact({ topic }: ContactProps) { } return ( -
- {/* Hero Section with CTA Banner Styling */} -
- {/* Background Image */} +
+ {/* Hero Section with Google Map Background */} +
+ {/* Google Map Background */}
- {/* 40% black overlay for better text readability */} -
+ {/* Dark overlay for better text readability */} +
{/* Content Container */} @@ -120,22 +116,16 @@ export function Contact({ topic }: ContactProps) { {/* Hero Content Block */}
{/* Branded Tag */} - + {/* Main Headline */}

- Ready to transform your leadership? - - {" "}Let's connect{" "} - + Reach us

{/* Supporting Text */}

- To start your development journey. + Get in touch with us to start your leadership development journey.

@@ -161,7 +151,7 @@ export function Contact({ topic }: ContactProps) { {/* Contact Details */}
- {/* Office Location */} + {/* Corporate Office */}
-

Office Location

+

Corporate Office

- 123 Leadership Avenue
- Business District, New Delhi
- 110001, India + Leadership Centre Pvt. Ltd.
+ No. 107, 1st Floor
+ T.V. Industrial Estate, Worli
+ Mumbai 400030

- {/* Phone */} + {/* Registered Office */}
- +
-

Phone

+

Registered Office

- +91 11 4567 8900
- +91 98765 43210 + Kautilya Leadership Services
+ R.S. No. 5/6, Savaroli Kharpada Road
+ Dhamani Taluk, Khalapur District
+ Raigad – 410202

@@ -207,26 +200,25 @@ export function Contact({ topic }: ContactProps) {

Email

- info@klc.edu
- leadership@klc.edu + connect@leadershipcentre.in
+ connect@kautilyaservices.in

- {/* Business Hours */} + {/* Phone */}
- +
-

Business Hours

+

Phone

- Monday - Friday: 9:00 AM - 6:00 PM
- Saturday: 10:00 AM - 4:00 PM
- Sunday: Closed + +91-22-2084 0097
+ +91-8928738661

@@ -280,7 +272,7 @@ export function Contact({ topic }: ContactProps) { >
-

Send us a Message

+

Enquiry Form

Fill out the form below and we'll get back to you within 24 hours. @@ -290,184 +282,99 @@ export function Contact({ topic }: ContactProps) { {/* Form Content */}

-
-
- - handleInputChange('firstName', e.target.value)} - placeholder="John" - className="w-full h-12 border-gray-200 focus:border-blue-500 focus:ring-blue-500" - style={{ - fontFamily: 'var(--font-family-base)', - fontSize: 'var(--font-body)' - }} - /> -
-
- - handleInputChange('lastName', e.target.value)} - placeholder="Doe" - className="w-full h-12 border-gray-200 focus:border-blue-500 focus:ring-blue-500" - style={{ - fontFamily: 'var(--font-family-base)', - fontSize: 'var(--font-body)' - }} - /> -
-
- -
-
- - handleInputChange('email', e.target.value)} - placeholder="john.doe@company.com" - className="w-full h-12 border-gray-200 focus:border-blue-500 focus:ring-blue-500" - style={{ - fontFamily: 'var(--font-family-base)', - fontSize: 'var(--font-body)' - }} - /> -
-
- - handleInputChange('phone', e.target.value)} - placeholder="+91 98765 43210" - className="w-full h-12 border-gray-200 focus:border-blue-500 focus:ring-blue-500" - style={{ - fontFamily: 'var(--font-family-base)', - fontSize: 'var(--font-body)' - }} - /> -
-
- -
-
- - handleInputChange('company', e.target.value)} - placeholder="Company Name" - className="w-full h-12 border-gray-200 focus:border-blue-500 focus:ring-blue-500" - style={{ - fontFamily: 'var(--font-family-base)', - fontSize: 'var(--font-body)' - }} - /> -
-
- - handleInputChange('jobTitle', e.target.value)} - placeholder="CEO, HR Director, etc." - className="w-full h-12 border-gray-200 focus:border-blue-500 focus:ring-blue-500" - style={{ - fontFamily: 'var(--font-family-base)', - fontSize: 'var(--font-body)' - }} - /> -
-
- -
-
- - -
-
- - -
+
+ + handleInputChange('name', e.target.value)} + placeholder="Enter your full name" + className="w-full h-12 border-gray-200 focus:border-blue-500 focus:ring-blue-500" + style={{ + fontFamily: 'var(--font-family-base)', + fontSize: 'var(--font-body)' + }} + />
+ handleInputChange('mobileNumber', e.target.value)} + placeholder="+91 98765 43210" + className="w-full h-12 border-gray-200 focus:border-blue-500 focus:ring-blue-500" + style={{ + fontFamily: 'var(--font-family-base)', + fontSize: 'var(--font-body)' + }} + /> +
+ +
+ + handleInputChange('emailId', e.target.value)} + placeholder="example@company.com" + className="w-full h-12 border-gray-200 focus:border-blue-500 focus:ring-blue-500" + style={{ + fontFamily: 'var(--font-family-base)', + fontSize: 'var(--font-body)' + }} + /> +
+ +
+ + +
+ +
+