Courses
Courses
aboutus.js
import React from 'react';
import './AboutUs.css'; // Ensure to create and import corresponding CSS file
.about-us {
max-width: 800px;
margin: 0 auto;
padding: 20px;
}
.orange-text {
color: orange;
}
.black-text {
color: black;
}
.orange-bullets {
list-style-type: disc;
padding-left: 20px;
}
.orange-bullets li {
color: black; /* Ensures text inside bullets is black */
}
maincontent.js
</div>
</div>
);
};
maincontent.css
.main-content {
display: flex;
justify-content: space-between;
padding: 20px;
}
.main-image {
width: 60%;
border: 1px solid #ddd;
}
.training-terms {
display: flex;
flex-direction: column;
justify-content: center;
font-size: 20px;
margin-left: 20px;
}
.training-terms p {
margin: 5px 0;
}
contactform.js
contactform.css
.contact-form {
position: fixed;
top: calc(50% + 60px); /* Adjusted to sit below the navigation bar */
right: 10%; /* Adjusted position slightly left from the right side */
transform: translateY(-50%);
background-color: #007bff;
padding: 30px;
border-radius: 8px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
width: 280px; /* Reduced width for a narrower form */
color: white;
z-index: 1000; /* Ensure contact form is above other elements */
}
.contact-form h2 {
margin-bottom: 20px;
}
.contact-form form {
display: flex;
flex-direction: column;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
margin-bottom: 20px;
padding: 12px;
border: 1px solid #ccc;
border-radius: 4px;
background-color: white;
width: 100%;
box-sizing: border-box;
}
.contact-form button[type="submit"] {
background-color: #0056b3;
color: white;
border: none;
padding: 14px;
border-radius: 4px;
cursor: pointer;
width: 100%;
box-sizing: border-box;
}
.contact-form button[type="submit"]:hover {
background-color: #004088;
}
return (
<div className="main-content">
<div className="carousel-container">
<img src={images[currentImageIndex]} alt="Training" className="main-
image" />
</div>
<div className="contact-form">
{/* Your contact form goes here */}
</div>
</div>
);
};
working maincontent.css
.main-content {
display: flex;
align-items: flex-start; /* Align items to the top */
gap: 20px; /* Space between the carousel and the contact form */
}
.carousel-container {
flex: 1;
max-width: 700px; /* Increase the max width for a wider image */
margin-left: 100px; /* Increase the left margin to leave more space */
}
.main-image {
width: 100%;
height: 400px; /* Set height for a rectangular format */
object-fit: cover; /* Ensure the image covers the entire area without stretching
*/
border-radius: 8px;
}
.contact-form {
flex: 2;
/* Add your contact form styles here */
}
additional content.js
AdditionalContent.css
.additional-content {
margin-top: 20px;
padding: 20px;
background-color: #f9f9f9;
border-radius: 8px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.section {
margin-bottom: 20px;
}
.section h2 {
font-size: 24px;
color: #007bff;
margin-bottom: 10px;
}
.section h3 {
font-size: 20px;
color: #007bff;
margin-bottom: 10px;
}
.section p {
margin-bottom: 10px;
}
.section ul {
list-style-type: none;
margin-left: 0;
padding-left: 0;
}
.section ul li {
margin-bottom: 8px;
line-height: 1.6;
}
.section img.institute-image {
width: 100%; /* Adjust image width as needed */
border-radius: 8px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
margin-bottom: 20px;
}
.course-list {
color: #333;
list-style-type: none;
margin-left: 0;
padding-left: 0;
}
.course-list li::before {
content: "\2022"; /* Bullet character (•) */
color: orange; /* Bullet color */
display: inline-block;
width: 1em;
margin-left: -1em;
margin-right: 5px; /* Adjust margin between bullet and text */
}
contactform.css
/* ContactForm.css */
.contact-form {
position: fixed;
top: calc(50% + 35px); /* Adjusted slightly below the middle */
right: 10%;
transform: translateY(-50%);
background-color: #007bff;
padding: 30px;
border-radius: 8px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
width: 280px;
color: white;
z-index: 1000;
}
.contact-form h2 {
margin-bottom: 20px;
}
.contact-form form {
display: flex;
flex-direction: column;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
margin-bottom: 20px;
padding: 12px;
border: 1px solid #ccc;
border-radius: 4px;
background-color: white;
width: 100%;
box-sizing: border-box;
}
.contact-form button[type="submit"] {
background-color: #0056b3;
color: white;
border: none;
padding: 14px;
border-radius: 4px;
cursor: pointer;
width: 100%;
box-sizing: border-box;
}
.contact-form button[type="submit"]:hover {
background-color: #004088;
}
footer.js
.footer {
background-color: #f9f9f9;
padding: 20px 0;
color: #333;
font-family: Arial, sans-serif;
}
.footer-container {
display: flex;
justify-content: space-around;
align-items: flex-start;
flex-wrap: wrap;
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
}
.footer-section {
flex: 1;
margin: 10px;
min-width: 250px;
}
.logo {
width: 150px;
margin-bottom: 10px;
}
.footer-section h4 {
color: #ff6600;
margin-bottom: 10px;
}
.footer-section p,
.footer-section ul {
margin: 0;
padding: 0;
list-style: none;
}
.footer-section ul li {
margin-bottom: 10px;
}
.footer-section ul li a {
color: #333;
text-decoration: none;
}
.footer-section ul li a:hover {
text-decoration: underline;
}
.footer-section ul li i {
margin-right: 10px;
color: #ff6600;
}
.footer-bottom {
text-align: center;
padding: 10px 0;
border-top: 1px solid #ccc;
margin-top: 20px;
}
.footer-bottom p {
margin: 0;
color: #666;
}
maincontent.js
import React, { useState, useEffect } from 'react';
import './MainContent.css';
return (
<div className="main-content">
<div className="carousel-container">
<img src={images[currentImageIndex]} alt="Training" className="main-
image" />
</div>
<div className="contact-form">
{/* Your contact form goes here */}
</div>
<div className="intro-text">
<h2>BEST SOFTWARE TRAINING INSTITUTE IN BANGALORE</h2>
<h3>ONLINE & OFFLINE CLASSES</h3>
<h3>REALTIME TRAINING & PROJECT</h3>
</div>
<div className="course-details">
<h2>COURSE DETAILS</h2>
<div className="details">
<div className="detail-item">
<img src={experiencedtrainers} alt="Experienced Trainers" />
<h3>Experienced Trainers</h3>
<p>All the trainers are well experienced, certified and working
professionals.</p>
</div>
<div className="detail-item">
<img src={afordablefees} alt="Affordable Fees" />
<h3>Affordable Fees</h3>
<p>Course fees is comparable to any other quality training institutes
in Bangalore.</p>
</div>
<div className="detail-item">
<img src={handsontraining} alt="Hands on Training" />
<h3>Hands on Training</h3>
<p>We are very sure that our training helps you to directly work in
projects by giving hands on training.</p>
</div>
<div className="detail-item">
<img src={interviewsupport} alt="100% Interview Support" />
<h3>100% Interview Support</h3>
<p>You can approach any time to trainer for any course related
assistance.</p>
</div>
<div className="detail-item">
<img src={flexibletimings} alt="Flexible Timings" />
<h3>Flexible Timings</h3>
<p>You have flexible timings for all the courses.</p>
</div>
<div className="detail-item">
<img src={decentenvironment} alt="Decent Environment" />
<h3>Decent Environment</h3>
<p>Institute is located in very calm and greenery environment.</p>
</div>
</div>
</div>
<div className="training-process">
<h2></h2>
<img src={trainingProcessImage} alt="Training Process" />
</div>
<div className="course-list">
<h2>COURSE LIST</h2>
<div className="course-column">
<ul>
<li>Data Analytics</li>
<li>Machine learning & AI</li>
<li>Chatgpt & AI Tools</li>
<li>Cyber Security</li>
<li>Data engineering</li>
</ul>
</div>
<div className="course-column">
<ul>
<li>Cloud-AWS,Azure,GCP</li>
<li>Hadoop & Spark</li>
<li>Python</li>
<li>Scala</li>
<li>c,c++,Java</li>
</ul>
</div>
<div className="course-column">
<ul>
<li>Android development</li>
<li>Website development</li>
<li>MS office </li>
<li>College Projects</li>
</ul>
</div>
</div>
<div className="separator"></div>
<div className="contact-info">
<p className="line1">Please Call/WhatsApp @96867 70604</p>
<p className="line2">[ For updated content, demo video & batch
Schedules]</p>
</div>
<div className="separator"></div>
</div>
);
};
maincontent.css
.main-content {
display: flex;
flex-direction: column;
align-items: center;
gap: 20px;
width: 100%;
}
.carousel-container {
align-self: flex-start;
width: 100%;
max-width: 700px;
margin-left: 100px;
}
.main-image {
width: 100%;
height: 400px;
object-fit: cover;
border-radius: 8px;
}
.intro-text {
text-align: center;
margin: 20px 0;
}
.intro-text h2 {
font-size: 24px;
color: #ff5722; /* Orange color */
}
.intro-text h3 {
font-size: 20px;
color: #000; /* Black color */
}
.course-details {
width: 100%;
text-align: center;
}
.course-details h2 {
font-size: 24px;
margin: 20px 0;
color: black; /* Orange color */
}
.details {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 20px;
}
.detail-item {
max-width: 300px;
text-align: center;
}
.detail-item img {
width: 50px;
height: 50px;
margin-bottom: 10px;
}
.detail-item h3 {
font-size: 18px;
color: #ff5722; /* Orange color */
}
.detail-item p {
font-size: 14px;
color: #000; /* Black color */
}
.training-process {
width: 100%;
text-align: center;
margin: 40px 0;
}
.training-process h2 {
font-size: 24px;
margin-bottom: 20px;
color: #ff5722; /* Orange color */
}
.training-process img {
width: 80%;
max-width: 800px;
margin: 0 auto;
display: block;
}
.course-list {
width: 100%;
text-align: center;
margin: 40px 0;
}
.course-list h2 {
font-size: 24px;
margin-bottom: 20px;
color: black; /* Orange color */
}
.course-column {
display: inline-block;
vertical-align: top;
width: 30%;
padding: 0 10px;
}
.course-column ul {
list-style: none;
padding: 0;
margin: 0;
text-align: left;
}
.course-column li {
font-size: 16px;
color: orange; /* Black color */
margin-bottom: 10px;
position: relative;
padding-left: 20px;
}
.course-column li::before {
content: '\2022';
color: #ff5722; /* Orange color */
font-size: 20px;
position: absolute;
left: 0;
top: 0;
}
.separator {
height: 2px;
width: 100%;
background-color: #ff5722; /* Orange color */
margin: 20px 0;
}
.contact-info {
text-align: center;
margin: 20px 0;
}
.contact-info p {
color: white; /* Black color */
font-size: 16px;
display: block; /* Ensure each line is on a new line */
margin: 0; /* Remove default margins */
}
.contact-info .line1 {
color: red; /* Red color for the first line */
}
.contact-info .line2 {
color: blue; /* Blue color for the second line */
margin-top: 10px; /* Space between the two lines */
}
.contact-info .line2::before,
.contact-info .line2::after {
content: '\2022'; /* Bullet point */
color: #ff5722; /* Orange color */
margin: 0 10px; /* Adjust spacing */
}
app.js
import React from 'react';
import { BrowserRouter as Router, Routes, Route } from 'react-router-dom';
import Header from './components/Header';
import Navbar from './components/Navbar';
import ContactForm from './components/ContactForm';
import MainContent from './components/MainContent';
import AboutUs from './pages/AboutUs';
import TrainersProfile from './pages/TrainersProfile';
import AdditionalContent from './components/AdditionalContent';
import Footer from './components/Footer'; // Import Footer component
import './App.css';
function App() {
return (
<Router>
<div className="App">
<Header />
<Navbar />
<div className="container">
<Routes>
<Route path="/" element={<MainContent />} />
<Route path="/about-us" element={<AboutUs />} />
<Route path="/trainers" element={<TrainersProfile />} />
<Route path="/additional-content" element={<AdditionalContent />} />
{/* Services Routes */}
<Route path="/services/classroom-training"
element={<ClassroomTraining />} />
<Route path="/services/online-training" element={<OnlineTraining />} />
<Route path="/services/interview-guidance"
element={<InterviewGuidance />} />
{/* Courses Routes */}
<Route path="/courses/data-analytics" element={<DataAnalytics />} />
<Route path="/courses/machine-learning-ai"
element={<MachineLearningAI />} />
<Route path="/courses/chatgpt-ai-tools" element={<ChatGPTAITools />} />
<Route path="/courses/cyber-security" element={<CyberSecurity />} />
<Route path="/courses/data-engineering" element={<DataEngineering
/>} />
<Route path="/courses/cloud" element={<Cloud />} />
<Route path="/courses/hadoop-spark" element={<HadoopSpark />} />
<Route path="/courses/python" element={<Python />} />
<Route path="/courses/scala" element={<Scala />} />
<Route path="/courses/c-java" element={<CCPJava />} />
<Route path="/courses/android-development" element={<AndroidDevelopment
/>} />
<Route path="/courses/website-development" element={<WebsiteDevelopment
/>} />
<Route path="/courses/ms-office" element={<MSOffice />} />
<Route path="/courses/college-projects" element={<CollegeProjects
/>} />
</Routes>
<ContactForm />
</div>
<Footer /> {/* Add Footer component */}
</div>
</Router>
);
}
app.css
.header h1 {
font-size: 2.5rem;
}
.navbar ul {
list-style-type: none;
display: flex;
justify-content: center;
}
.navbar li {
margin: 0 10px;
}
.navbar a {
color: #fff;
text-decoration: none;
padding: 10px;
}
.navbar a:hover {
text-decoration: underline;
}
.contact-form input,
.contact-form textarea {
width: 100%;
padding: 10px;
margin-bottom: 10px;
border: 1px solid #ccc;
border-radius: 4px;
}
.contact-form button {
background-color: #007bff;
color: #fff;
border: none;
padding: 10px 20px;
cursor: pointer;
border-radius: 4px;
}
.contact-form button:hover {
background-color: #0056b3;
}
contactform .js
contactform.css
/* ContactForm.css */
.contact-form {
position: fixed;
top: 50%; /* Adjust as needed to center vertically */
right: 10%; /* Adjust as needed for right spacing */
transform: translateY(-50%);
background-color: #007bff;
padding: 30px;
border-radius: 8px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
width: 280px;
color: white;
z-index: 1000;
}
.contact-form h2 {
margin-bottom: 20px;
}
.contact-form form {
display: flex;
flex-direction: column;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
margin-bottom: 20px;
padding: 12px;
border: 1px solid #ccc;
border-radius: 4px;
background-color: white;
width: 100%;
box-sizing: border-box;
}
.contact-form button[type="submit"] {
background-color: #0056b3;
color: white;
border: none;
padding: 14px;
border-radius: 4px;
cursor: pointer;
width: 100%;
box-sizing: border-box;
}
.contact-form button[type="submit"]:hover {
background-color: #004088;
}
return (
<>
{!isVisible && (
<button className="open-btn" onClick={handleOpen}>
Open Enquiry Form
</button>
)}
{isVisible && (
<div className={`contact-form ${isMinimized ? 'minimized' : ''}`}>
<div className="form-header">
<h2>Quick Enquiry</h2>
<div className="form-controls">
<button className="minimize-btn" onClick={handleMinimize}>
{isMinimized ? '+' : '-'}
</button>
<button className="close-btn" onClick={handleClose}>x</button>
</div>
</div>
{!isMinimized && (
<form>
<input type="text" placeholder="Name" required />
<input type="text" placeholder="Mobile No(WhatsApp)" required />
<select required>
<option value="" disabled selected>Select a Course</option>
<option value="Data Analytics">Data Analytics</option>
<option value="Machine learning & AI">Machine learning &
AI</option>
<option value="Chatgpt & AI Tools">Chatgpt & AI Tools</option>
<option value="Cyber Security">Cyber Security</option>
<option value="Data engineering">Data engineering</option>
<option value="Cloud-AWS,Azure,GCP">Cloud-AWS,Azure,GCP</option>
<option value="Hadoop & Spark">Hadoop & Spark</option>
<option value="Python">Python</option>
<option value="Scala">Scala</option>
<option value="c,c++,Java">C, C++, Java</option>
<option value="Android development">Android development</option>
<option value="Website development">Website development</option>
<option value="MS office">MS office</option>
<option value="College Projects">College Projects</option>
</select>
<select required>
<option value="" disabled selected>How & Where ??</option>
<option value="Classroom training">Classroom training</option>
<option value="Online training">Online training</option>
</select>
<textarea placeholder="Type your message here" required></textarea>
<button type="submit">Submit</button>
</form>
)}
</div>
)}
</>
);
};
.contact-form {
position: fixed;
top: 50%; /* Adjust as needed to center vertically */
right: 10%; /* Adjust as needed for right spacing */
transform: translateY(-50%);
background-color: #007bff;
padding: 30px;
border-radius: 8px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
width: 280px;
color: white;
z-index: 1000;
}
.contact-form.minimized {
height: 60px; /* Adjust height when minimized */
overflow: hidden;
}
.form-header {
display: flex;
justify-content: space-between;
align-items: center;
}
.form-controls {
display: flex;
gap: 10px;
}
.minimize-btn,
.close-btn {
background: none;
border: none;
color: white;
font-size: 20px;
cursor: pointer;
}
.contact-form h2 {
margin-bottom: 20px;
}
.contact-form.minimized h2 {
margin-bottom: 0;
}
.contact-form form {
display: flex;
flex-direction: column;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
margin-bottom: 20px;
padding: 12px;
border: 1px solid #ccc;
border-radius: 4px;
background-color: white;
width: 100%;
box-sizing: border-box;
}
.contact-form button[type="submit"] {
background-color: #0056b3;
color: white;
border: none;
padding: 14px;
border-radius: 4px;
cursor: pointer;
width: 100%;
box-sizing: border-box;
}
.contact-form button[type="submit"]:hover {
background-color: #004088;
}
.open-btn {
position: fixed;
top: 50%;
right: 10%;
background-color: #007bff;
color: white;
border: none;
padding: 10px 20px;
border-radius: 8px;
cursor: pointer;
z-index: 1000;
transform: translateY(-50%);
}
.open-btn:hover {
background-color: #0056b3;
}
return (
<div className="contact-form">
<h2>Quick Enquiry</h2>
<form onSubmit={handleSubmit}>
<input
type="text"
name="name"
placeholder="Name"
value={formData.name}
onChange={handleChange}
required
/>
<input
type="text"
name="mobile"
placeholder="Mobile No(WhatsApp)"
value={formData.mobile}
onChange={handleChange}
required
/>
<select
name="course"
value={formData.course}
onChange={handleChange}
required
>
<option value="" disabled>
Select a Course
</option>
<option value="Data Analytics">Data Analytics</option>
<option value="Machine learning & AI">Machine learning & AI</option>
<option value="Chatgpt & AI Tools">Chatgpt & AI Tools</option>
<option value="Cyber Security">Cyber Security</option>
<option value="Data engineering">Data engineering</option>
<option value="Cloud-AWS,Azure,GCP">Cloud-AWS,Azure,GCP</option>
<option value="Hadoop & Spark">Hadoop & Spark</option>
<option value="Python">Python</option>
<option value="Scala">Scala</option>
<option value="c,c++,Java">C, C++, Java</option>
<option value="Android development">Android development</option>
<option value="Website development">Website development</option>
<option value="MS office">MS office</option>
<option value="College Projects">College Projects</option>
</select>
<select
name="trainingMethod"
value={formData.trainingMethod}
onChange={handleChange}
required
>
<option value="" disabled>
How & Where ??
</option>
<option value="Classroom training">Classroom training</option>
<option value="Online training">Online training</option>
</select>
<textarea
name="message"
placeholder="Type your message here"
value={formData.message}
onChange={handleChange}
required
></textarea>
<button type="submit">Submit</button>
</form>
{submitMessage && (
<div className="submit-message">{submitMessage}</div>
)}
</div>
);
};
/* ContactForm.css */
.contact-form {
position: fixed;
top: 50%;
right: 10%;
transform: translateY(-50%);
background-color: #007bff;
padding: 30px;
border-radius: 8px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
width: 280px;
color: white;
z-index: 1000;
}
.contact-form h2 {
margin-bottom: 20px;
}
.contact-form form {
display: flex;
flex-direction: column;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
margin-bottom: 20px;
padding: 12px;
border: 1px solid #ccc;
border-radius: 4px;
background-color: white;
width: 100%;
box-sizing: border-box;
}
.contact-form button[type="submit"] {
background-color: #0056b3;
color: white;
border: none;
padding: 14px;
border-radius: 4px;
cursor: pointer;
width: 100%;
box-sizing: border-box;
}
.contact-form button[type="submit"]:hover {
background-color: #004088;
}
.submit-message {
margin-top: 20px;
padding: 10px;
background-color: #dff0d8;
color: #3c763d;
border: 1px solid #d6e9c6;
border-radius: 4px;
}
// src/index.js
// Middleware
app.use(cors());
app.use(bodyParser.json());
// MongoDB connection
mongoose.connect('mongodb://localhost:27017/contactForm', {
useNewUrlParser: true,
useUnifiedTopology: true,
}).then(() => {
console.log('Connected to MongoDB');
}).catch((err) => {
console.error('Error connecting to MongoDB:', err.message);
});
// Mongoose Schema
const enquirySchema = new mongoose.Schema({
name: String,
mobile: String,
course: String,
trainingMethod: String,
message: String,
});
// Nodemailer setup
const transporter = nodemailer.createTransport({
service: 'gmail',
auth: {
user: '[email protected]',
pass: 'muru ganp',
},
});
try {
const enquiry = new Enquiry({
name,
mobile,
course,
trainingMethod,
message,
});
await enquiry.save();
// Send email
const mailOptions = {
from: '[email protected]',
to: '[email protected]',
subject: 'New Enquiry',
text: `
Name: ${name}
Mobile: ${mobile}
Course: ${course}
Training Method: ${trainingMethod}
Message: ${message}
`,
};
transporter.sendMail(mailOptions, (error, info) => {
if (error) {
return console.log(error);
}
console.log('Email sent: ' + info.response);
});
app.listen(port, () => {
console.log(`Server is running on port: ${port}`);
});
PORT=5000
[email protected]
EMAIL_PASS=muruganp@123
[email protected]
whatsappbutton.js
// src/components/WhatsAppButton.js
import React from 'react';
import './WhatsAppButton.css';
import whatsappLogo from '../assets/whatsapp-logo.png'; // Adjust the path as
necessary
return (
<div className="whatsapp-button" onClick={handleClick}>
<img src={whatsappLogo} alt="WhatsApp" className="whatsapp-logo" />
<span className="tooltip">WhatsApp</span>
</div>
);
};
whatsappbutton.css
/* src/components/WhatsAppButton.css */
.whatsapp-button {
position: fixed;
bottom: 20px;
right: 20px;
cursor: pointer;
z-index: 1000;
display: flex;
align-items: center;
justify-content: center;
}
.whatsapp-logo {
width: 150px; /* Increased the size */
height: 150px; /* Increased the size */
transition: transform 0.3s ease;
}
.whatsapp-logo:hover {
transform: scale(1.1);
}
.whatsapp-button .tooltip {
visibility: hidden;
background-color: black;
color: #fff;
text-align: center;
border-radius: 6px;
padding: 5px 10px;
position: absolute;
left: -60px; /* Adjust position to the left side of the logo */
z-index: 1;
opacity: 0;
transition: opacity 0.3s;
white-space: nowrap; /* Prevent text from wrapping */
}
.whatsapp-button:hover .tooltip {
visibility: visible;
opacity: 1;
}