Compare commits
9 Commits
d6fd076fa8
...
a53a954958
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a53a954958 | ||
| 66f96fb672 | |||
| b8964de1ad | |||
| 8bacac0854 | |||
| 5d3b418602 | |||
| bf2ea5698a | |||
| 6c25c410a4 | |||
| 6d6269925b | |||
| 6b8f7e616b |
12
assets/images/hai1/user-icon.svg
Normal file
12
assets/images/hai1/user-icon.svg
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||||
|
<!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools -->
|
||||||
|
<svg height="800px" width="800px" version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
|
||||||
|
viewBox="0 0 60.671 60.671" xml:space="preserve">
|
||||||
|
<g>
|
||||||
|
<g>
|
||||||
|
<ellipse style="fill:#010002;" cx="30.336" cy="12.097" rx="11.997" ry="12.097"/>
|
||||||
|
<path style="fill:#010002;" d="M35.64,30.079H25.031c-7.021,0-12.714,5.739-12.714,12.821v17.771h36.037V42.9
|
||||||
|
C48.354,35.818,42.661,30.079,35.64,30.079z"/>
|
||||||
|
</g>
|
||||||
|
</g>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 594 B |
Binary file not shown.
|
Before Width: | Height: | Size: 322 KiB After Width: | Height: | Size: 301 KiB |
254
index.html
254
index.html
@ -7,7 +7,7 @@
|
|||||||
<title>Kodepilot</title>
|
<title>Kodepilot</title>
|
||||||
<link rel="stylesheet" href="main.css">
|
<link rel="stylesheet" href="main.css">
|
||||||
<link rel="stylesheet" href="templateapi/main.css">
|
<link rel="stylesheet" href="templateapi/main.css">
|
||||||
<link rel="icon" type="image/x-icon" href="assets/images/logo/favicon.ico">
|
<link rel="icon" type="image/x-icon" href="templateapi/assets/images/logo/favicon.ico">
|
||||||
<style>
|
<style>
|
||||||
.center-container {
|
.center-container {
|
||||||
display: flex;
|
display: flex;
|
||||||
@ -161,10 +161,8 @@
|
|||||||
<header class="navbar">
|
<header class="navbar">
|
||||||
<div class="logo">Kodepilot</div>
|
<div class="logo">Kodepilot</div>
|
||||||
<input type="text" class="search" placeholder="Search Opportunities">
|
<input type="text" class="search" placeholder="Search Opportunities">
|
||||||
<nav>
|
|
||||||
<a href="/login">Log in</a>
|
|
||||||
</nav>
|
|
||||||
<div class="buttons">
|
<div class="buttons">
|
||||||
|
<a href="/login">Log in</a>
|
||||||
<button class="business" onclick="getInTouch()">Get in touch</button>
|
<button class="business" onclick="getInTouch()">Get in touch</button>
|
||||||
<button class="login" onclick="goToApplay()">Apply</button>
|
<button class="login" onclick="goToApplay()">Apply</button>
|
||||||
</div>
|
</div>
|
||||||
@ -178,11 +176,59 @@
|
|||||||
by
|
by
|
||||||
your
|
your
|
||||||
dream company.</p>
|
dream company.</p>
|
||||||
<button class="button_blue_box"><img
|
<button class="button_blue_box">
|
||||||
src="https://d8it4huxumps7.cloudfront.net/uploads/images/655edc8c1fab9_diamond_1.png?d=82x84"
|
<img src="https://d8it4huxumps7.cloudfront.net/uploads/images/655edc8c1fab9_diamond_1.png?d=82x84"
|
||||||
width="41" height="42" alt="diamond" loading="lazy"><span><span
|
width="41" height="42" alt="diamond" loading="lazy">
|
||||||
class="nameContainer">Aditya</span><strong> Just Went
|
<span>
|
||||||
Kodepilot!</strong></span></button>
|
<span class="nameContainer">Aditya</span>
|
||||||
|
<strong class="descContainer"> Just Went Kodepilot!</strong>
|
||||||
|
</span>
|
||||||
|
</button>
|
||||||
|
<style>
|
||||||
|
.nameContainer,
|
||||||
|
.descContainer {
|
||||||
|
transition: opacity 0.5s;
|
||||||
|
}
|
||||||
|
|
||||||
|
.fade-out {
|
||||||
|
opacity: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.fade-in {
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
<script>
|
||||||
|
const data = [
|
||||||
|
{ name: "Ben", text: "Just Went HCL!" },
|
||||||
|
{ name: "Rakul", text: "Just Went Accenture!" },
|
||||||
|
{ name: "Anjali", text: "Joined a Ebmpapst!" },
|
||||||
|
{ name: "Sneha", text: "joined a Infosys!" },
|
||||||
|
{ name: "Amit", text: "Just Went JBL!" },
|
||||||
|
{ name: "Vikram", text: "Just Went UST!" },
|
||||||
|
{ name: "Priya", text: "Just Went Serviceplaingroup!" }
|
||||||
|
];
|
||||||
|
let index1 = 0;
|
||||||
|
const nameEl1 = document.querySelector(".nameContainer");
|
||||||
|
const descEl1 = document.querySelector(".descContainer");
|
||||||
|
setInterval(() => {
|
||||||
|
nameEl1.classList.add("fade-out");
|
||||||
|
descEl1.classList.add("fade-out");
|
||||||
|
setTimeout(() => {
|
||||||
|
index1 = (index1 + 1) % data.length;
|
||||||
|
nameEl1.textContent = data[index1].name;
|
||||||
|
descEl1.textContent = " " + data[index1].text;
|
||||||
|
nameEl1.classList.remove("fade-out");
|
||||||
|
descEl1.classList.remove("fade-out");
|
||||||
|
nameEl1.classList.add("fade-in");
|
||||||
|
descEl1.classList.add("fade-in");
|
||||||
|
setTimeout(() => {
|
||||||
|
nameEl1.classList.remove("fade-in");
|
||||||
|
descEl1.classList.remove("fade-in");
|
||||||
|
}, 500);
|
||||||
|
}, 500);
|
||||||
|
}, 2000);
|
||||||
|
</script>
|
||||||
</div>
|
</div>
|
||||||
<div class="cards">
|
<div class="cards">
|
||||||
<div class="card green">Internships<br><small>Gain Practical Experience</small></div>
|
<div class="card green">Internships<br><small>Gain Practical Experience</small></div>
|
||||||
@ -274,7 +320,7 @@
|
|||||||
<div class="slide1">
|
<div class="slide1">
|
||||||
<div class="slide1-box">
|
<div class="slide1-box">
|
||||||
<div class="image-container">
|
<div class="image-container">
|
||||||
<img src="assets/images/hai1/qa.jpg" alt="Business Meeting">
|
<img src="templateapi/assets/images/hai1/qa.jpg" alt="Business Meeting">
|
||||||
<div class="image-overlay">
|
<div class="image-overlay">
|
||||||
<h4>QA & Testing</h4>
|
<h4>QA & Testing</h4>
|
||||||
<p>A close-up of a developer's screen showing a green 'Tests Passed' status and
|
<p>A close-up of a developer's screen showing a green 'Tests Passed' status and
|
||||||
@ -282,7 +328,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="image-container">
|
<div class="image-container">
|
||||||
<img src="assets/images/hai1/hai12.jpg" alt="Architecture">
|
<img src="templateapi/assets/images/hai1/hai12.jpg" alt="Architecture">
|
||||||
<div class="image-overlay">
|
<div class="image-overlay">
|
||||||
<h4>Software Dev</h4>
|
<h4>Software Dev</h4>
|
||||||
<p>A sleek image of a professional wireframe/design on a large monitor, with a
|
<p>A sleek image of a professional wireframe/design on a large monitor, with a
|
||||||
@ -296,7 +342,7 @@
|
|||||||
<div class="slide1">
|
<div class="slide1">
|
||||||
<div class="slide1-box">
|
<div class="slide1-box">
|
||||||
<div class="image-container">
|
<div class="image-container">
|
||||||
<img src="assets/images/hai1/ai.jpg" alt="Analytics">
|
<img src="templateapi/assets/images/hai1/ai.jpg" alt="Analytics">
|
||||||
<div class="image-overlay">
|
<div class="image-overlay">
|
||||||
<h4>AI & Data</h4>
|
<h4>AI & Data</h4>
|
||||||
<p>A stunning, large-scale data visualization or chart (like a complex network
|
<p>A stunning, large-scale data visualization or chart (like a complex network
|
||||||
@ -305,7 +351,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="image-container">
|
<div class="image-container">
|
||||||
<img src="assets/images/hai1/cyber.jpg" alt="Technology">
|
<img src="templateapi/assets/images/hai1/cyber.jpg" alt="Technology">
|
||||||
<div class="image-overlay">
|
<div class="image-overlay">
|
||||||
<h4>Cybersecurity</h4>
|
<h4>Cybersecurity</h4>
|
||||||
<p>A digital shield or lock icon overlaid on a dark, technical background with
|
<p>A digital shield or lock icon overlaid on a dark, technical background with
|
||||||
@ -317,7 +363,7 @@
|
|||||||
<div class="slide1">
|
<div class="slide1">
|
||||||
<div class="slide1-box">
|
<div class="slide1-box">
|
||||||
<div class="image-container">
|
<div class="image-container">
|
||||||
<img src="assets/images/hai1/qa.jpg" alt="Analytics">
|
<img src="templateapi/assets/images/hai1/qa.jpg" alt="Analytics">
|
||||||
<div class="image-overlay">
|
<div class="image-overlay">
|
||||||
<h4>QA & Testing</h4>
|
<h4>QA & Testing</h4>
|
||||||
<p>A close-up of a developer's screen showing a green 'Tests Passed' status and
|
<p>A close-up of a developer's screen showing a green 'Tests Passed' status and
|
||||||
@ -325,7 +371,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="image-container">
|
<div class="image-container">
|
||||||
<img src="assets/images/hai1/cyber.jpg" alt="Technology">
|
<img src="templateapi/assets/images/hai1/cyber.jpg" alt="Technology">
|
||||||
<div class="image-overlay">
|
<div class="image-overlay">
|
||||||
<h4>Cybersecurity</h4>
|
<h4>Cybersecurity</h4>
|
||||||
<p>A digital shield or lock icon overlaid on a dark, technical background with
|
<p>A digital shield or lock icon overlaid on a dark, technical background with
|
||||||
@ -337,7 +383,7 @@
|
|||||||
<div class="slide1">
|
<div class="slide1">
|
||||||
<div class="slide1-box">
|
<div class="slide1-box">
|
||||||
<div class="image-container">
|
<div class="image-container">
|
||||||
<img src="assets/images/hai1/hai12.jpg" alt="Analytics">
|
<img src="templateapi/assets/images/hai1/hai12.jpg" alt="Analytics">
|
||||||
<div class="image-overlay">
|
<div class="image-overlay">
|
||||||
<h4>Software Dev</h4>
|
<h4>Software Dev</h4>
|
||||||
<p>A sleek image of a professional wireframe/design on a large monitor, with a
|
<p>A sleek image of a professional wireframe/design on a large monitor, with a
|
||||||
@ -345,7 +391,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="image-container">
|
<div class="image-container">
|
||||||
<img src="assets/images/hai1/qa.jpg" alt="Technology">
|
<img src="templateapi/assets/images/hai1/qa.jpg" alt="Technology">
|
||||||
<div class="image-overlay">
|
<div class="image-overlay">
|
||||||
<h4>QA & Testing</h4>
|
<h4>QA & Testing</h4>
|
||||||
<p>A close-up of a developer's screen showing a green 'Tests Passed' status and
|
<p>A close-up of a developer's screen showing a green 'Tests Passed' status and
|
||||||
@ -357,7 +403,7 @@
|
|||||||
<div class="slide1">
|
<div class="slide1">
|
||||||
<div class="slide1-box">
|
<div class="slide1-box">
|
||||||
<div class="image-container">
|
<div class="image-container">
|
||||||
<img src="assets/images/hai1/ai.jpg" alt="Analytics">
|
<img src="templateapi/assets/images/hai1/ai.jpg" alt="Analytics">
|
||||||
<div class="image-overlay">
|
<div class="image-overlay">
|
||||||
<h4>AI & Data</h4>
|
<h4>AI & Data</h4>
|
||||||
<p>A stunning, large-scale data visualization or chart (like a complex network
|
<p>A stunning, large-scale data visualization or chart (like a complex network
|
||||||
@ -366,7 +412,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="image-container">
|
<div class="image-container">
|
||||||
<img src="assets/images/hai1/aws..jpg" alt="Technology">
|
<img src="templateapi/assets/images/hai1/aws..jpg" alt="Technology">
|
||||||
<div class="image-overlay">
|
<div class="image-overlay">
|
||||||
<h4>Cloud & DevOps</h4>
|
<h4>Cloud & DevOps</h4>
|
||||||
<p>An abstract, interconnected graphic of servers and data pipelines with subtle
|
<p>An abstract, interconnected graphic of servers and data pipelines with subtle
|
||||||
@ -379,7 +425,7 @@
|
|||||||
<div class="slide1">
|
<div class="slide1">
|
||||||
<div class="slide1-box">
|
<div class="slide1-box">
|
||||||
<div class="image-container">
|
<div class="image-container">
|
||||||
<img src="assets/images/hai1/ai.jpg" alt="Analytics">
|
<img src="templateapi/assets/images/hai1/ai.jpg" alt="Analytics">
|
||||||
<div class="image-overlay">
|
<div class="image-overlay">
|
||||||
<h4>AI & Data</h4>
|
<h4>AI & Data</h4>
|
||||||
<p>A stunning, large-scale data visualization or chart (like a complex network
|
<p>A stunning, large-scale data visualization or chart (like a complex network
|
||||||
@ -388,7 +434,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="image-container">
|
<div class="image-container">
|
||||||
<img src="assets/images/hai1/cyber.jpg" alt="Technology">
|
<img src="templateapi/assets/images/hai1/cyber.jpg" alt="Technology">
|
||||||
<div class="image-overlay">
|
<div class="image-overlay">
|
||||||
<h4>Cybersecurity</h4>
|
<h4>Cybersecurity</h4>
|
||||||
<p>A digital shield or lock icon overlaid on a dark, technical background with
|
<p>A digital shield or lock icon overlaid on a dark, technical background with
|
||||||
@ -401,7 +447,7 @@
|
|||||||
<div class="slide1">
|
<div class="slide1">
|
||||||
<div class="slide1-box">
|
<div class="slide1-box">
|
||||||
<div class="image-container">
|
<div class="image-container">
|
||||||
<img src="assets/images/hai1/hai12.jpg" alt="Creativity">
|
<img src="templateapi/assets/images/hai1/hai12.jpg" alt="Creativity">
|
||||||
<div class="image-overlay">
|
<div class="image-overlay">
|
||||||
<h4>Software Dev</h4>
|
<h4>Software Dev</h4>
|
||||||
<p>A sleek image of a professional wireframe/design on a large monitor, with a
|
<p>A sleek image of a professional wireframe/design on a large monitor, with a
|
||||||
@ -409,7 +455,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="image-container">
|
<div class="image-container">
|
||||||
<img src="assets/images/hai1/aws..jpg" alt="Beach">
|
<img src="templateapi/assets/images/hai1/aws..jpg" alt="Beach">
|
||||||
<div class="image-overlay">
|
<div class="image-overlay">
|
||||||
<h4>Cloud & DevOps</h4>
|
<h4>Cloud & DevOps</h4>
|
||||||
<p>An abstract, interconnected graphic of servers and data pipelines with subtle
|
<p>An abstract, interconnected graphic of servers and data pipelines with subtle
|
||||||
@ -475,11 +521,12 @@
|
|||||||
"
|
"
|
||||||
</p>
|
</p>
|
||||||
<p class="slide-text">
|
<p class="slide-text">
|
||||||
"The Kodepilot curriculum is laser-focused on job placement. I mastered the required skills and secured my position at GBL with confidence."
|
"The Kodepilot curriculum is laser-focused on job placement. I mastered the required
|
||||||
|
skills and secured my position at GBL with confidence."
|
||||||
</p>
|
</p>
|
||||||
<div class="slide-logo-box">
|
<div class="slide-logo-box">
|
||||||
<div class="profile-box">
|
<div class="profile-box">
|
||||||
<img src="https://images.unsplash.com/photo-1542744094-24638eff58bb?w=500&h=400&fit=crop&crop=entropy&cs=tinysrgb"
|
<img src="assets/images/hai1/user-icon.svg"
|
||||||
alt="Client Logo" class="slide-logo">
|
alt="Client Logo" class="slide-logo">
|
||||||
<div class="profile-info">
|
<div class="profile-info">
|
||||||
<p class="slide-name">Dhanush</p>
|
<p class="slide-name">Dhanush</p>
|
||||||
@ -496,11 +543,12 @@
|
|||||||
"
|
"
|
||||||
</p>
|
</p>
|
||||||
<p class="slide-text">
|
<p class="slide-text">
|
||||||
"After taking the QA and DevOps courses, Kodepilot made me ready for the global stage. I was immediately placed with a top-tier company: Accenture."
|
"After taking the QA and DevOps courses, Kodepilot made me ready for the global stage. I
|
||||||
|
was immediately placed with a top-tier company: Accenture."
|
||||||
</p>
|
</p>
|
||||||
<div class="slide-logo-box">
|
<div class="slide-logo-box">
|
||||||
<div class="profile-box">
|
<div class="profile-box">
|
||||||
<img src="https://images.unsplash.com/photo-1542744094-24638eff58bb?w=500&h=400&fit=crop&crop=entropy&cs=tinysrgb"
|
<img src="assets/images/hai1/user-icon.svg"
|
||||||
alt="Client Logo" class="slide-logo">
|
alt="Client Logo" class="slide-logo">
|
||||||
<div class="profile-info">
|
<div class="profile-info">
|
||||||
<p class="slide-name">kevin</p>
|
<p class="slide-name">kevin</p>
|
||||||
@ -516,11 +564,12 @@
|
|||||||
"
|
"
|
||||||
</p>
|
</p>
|
||||||
<p class="slide-text">
|
<p class="slide-text">
|
||||||
"Kodepilot's training in AWS and DevOps was the key to my career breakthrough. I went from learning the skills to successfully landing a role at Infosys."
|
"Kodepilot's training in AWS and DevOps was the key to my career breakthrough. I went
|
||||||
|
from learning the skills to successfully landing a role at Infosys."
|
||||||
</p>
|
</p>
|
||||||
<div class="slide-logo-box">
|
<div class="slide-logo-box">
|
||||||
<div class="profile-box">
|
<div class="profile-box">
|
||||||
<img src="https://images.unsplash.com/photo-1542744094-24638eff58bb?w=500&h=400&fit=crop&crop=entropy&cs=tinysrgb"
|
<img src="assets/images/hai1/user-icon.svg"
|
||||||
alt="Client Logo" class="slide-logo">
|
alt="Client Logo" class="slide-logo">
|
||||||
<div class="profile-info">
|
<div class="profile-info">
|
||||||
<p class="slide-name">John Doe</p>
|
<p class="slide-name">John Doe</p>
|
||||||
@ -536,77 +585,83 @@
|
|||||||
<section>
|
<section>
|
||||||
<!-- <div class="practice-cards-container"> -->
|
<!-- <div class="practice-cards-container"> -->
|
||||||
<div class="practice-container">
|
<div class="practice-container">
|
||||||
<h1 class="practice-title">Practice Coding & Ace Hiring Assessments</h1>
|
<div class="practice-container-box">
|
||||||
<p class="practice-subtitle">Level up your coding skills by practicing the hiring assessments of your
|
<div class="practice-container-text-box">
|
||||||
dream companies & ace your placement game!</p>
|
<h1 class="practice-title">Practice Coding & Ace Hiring Assessments</h1>
|
||||||
|
<p class="practice-subtitle">Level up your coding skills by practicing the hiring assessments of
|
||||||
<div class="practice-cards-wrapper">
|
your
|
||||||
<!-- Coding Practice Card -->
|
dream companies & ace your placement game!</p>
|
||||||
<div class="practice-card active">
|
|
||||||
<div class="practice-card-content">
|
|
||||||
<div>
|
|
||||||
<div class="practice-card-icon">💻</div>
|
|
||||||
<h3>Coding Practice</h3>
|
|
||||||
<p>Level up your coding skills by practicing the hiring Questions.</p>
|
|
||||||
<div class="practice-footer-text">400+ Questions</div>
|
|
||||||
</div>
|
|
||||||
<a href="#" class="practice-cta-btn">Start Now ➤</a>
|
|
||||||
</div>
|
|
||||||
<div class="practice-card-svg">
|
|
||||||
<img src="assets/images/codinghiringassesments/nope_1.png" alt="Coding Practice">
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
<div class="practice-cards-wrapper">
|
||||||
<!-- Interview Preparation Card -->
|
<div class="practice-card active">
|
||||||
<div class="practice-card">
|
<div class="practice-card-content">
|
||||||
<div class="practice-card-content">
|
<div>
|
||||||
<div>
|
<div class="practice-card-icon">💻</div>
|
||||||
<div class="practice-card-icon">📋</div>
|
<h3>Coding Practice</h3>
|
||||||
<h3>Interview Preparation</h3>
|
<p>Level up your coding skills by practicing the hiring Questions.</p>
|
||||||
<p>Crack Top companies in just 5 days with unbelivable learning</p>
|
<div class="practice-footer-text">400+ Questions</div>
|
||||||
<div class="practice-footer-text">20+ Companies</div>
|
</div>
|
||||||
|
<a href="#" class="practice-cta-btn">Start Now ➤</a>
|
||||||
</div>
|
</div>
|
||||||
<a href="#" class="practice-cta-btn">Start Now ➤</a>
|
<div class="practice-card-svg">
|
||||||
</div>
|
<img src="templateapi/assets/images/codinghiringassesments/nope_1.png"
|
||||||
<div class="practice-card-svg">
|
alt="Coding Practice">
|
||||||
<img src="assets/images/codinghiringassesments/nope_2.png" alt="Coding Practice">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- Projects Card -->
|
|
||||||
<div class="practice-card">
|
|
||||||
<div class="practice-card-content">
|
|
||||||
<div>
|
|
||||||
<div class="practice-card-icon">📂</div>
|
|
||||||
<h3>Projects</h3>
|
|
||||||
<p>Projects epitomize perfect synergy for success.</p>
|
|
||||||
<div class="practice-footer-text">15+ Projects</div>
|
|
||||||
</div>
|
</div>
|
||||||
<a href="#" class="practice-cta-btn">Start Now ➤</a>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="practice-card-svg">
|
|
||||||
<img src="assets/images/codinghiringassesments/nope_3.webp" alt="Coding Practice">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- Skill Based Assessments Card -->
|
<!-- Interview Preparation Card -->
|
||||||
<div class="practice-card">
|
<div class="practice-card">
|
||||||
<div class="practice-card-content">
|
<div class="practice-card-content">
|
||||||
<div>
|
<div>
|
||||||
<div class="practice-card-icon">📝</div>
|
<div class="practice-card-icon">📋</div>
|
||||||
<h3>Skill Based Assessments</h3>
|
<h3>Interview Preparation</h3>
|
||||||
<p>Assess your skills and get ahead of the curve.</p>
|
<p>Crack Top companies in just 5 days with unbelivable learning</p>
|
||||||
<div class="practice-footer-text">2000+ Questions</div>
|
<div class="practice-footer-text">20+ Companies</div>
|
||||||
|
</div>
|
||||||
|
<a href="#" class="practice-cta-btn">Start Now ➤</a>
|
||||||
|
</div>
|
||||||
|
<div class="practice-card-svg">
|
||||||
|
<img src="templateapi/assets/images/codinghiringassesments/nope_2.png"
|
||||||
|
alt="Coding Practice">
|
||||||
</div>
|
</div>
|
||||||
<a href="#" class="practice-cta-btn">Start Now ➤</a>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="practice-card-svg">
|
|
||||||
<img src="assets/images/codinghiringassesments/nope_4.webp" alt="Coding Practice">
|
<!-- Projects Card -->
|
||||||
|
<div class="practice-card">
|
||||||
|
<div class="practice-card-content">
|
||||||
|
<div>
|
||||||
|
<div class="practice-card-icon">📂</div>
|
||||||
|
<h3>Projects</h3>
|
||||||
|
<p>Projects epitomize perfect synergy for success.</p>
|
||||||
|
<div class="practice-footer-text">15+ Projects</div>
|
||||||
|
</div>
|
||||||
|
<a href="#" class="practice-cta-btn">Start Now ➤</a>
|
||||||
|
</div>
|
||||||
|
<div class="practice-card-svg">
|
||||||
|
<img src="templateapi/assets/images/codinghiringassesments/nope_3.webp"
|
||||||
|
alt="Coding Practice">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Skill Based Assessments Card -->
|
||||||
|
<div class="practice-card">
|
||||||
|
<div class="practice-card-content">
|
||||||
|
<div>
|
||||||
|
<div class="practice-card-icon">📝</div>
|
||||||
|
<h3>Skill Based Assessments</h3>
|
||||||
|
<p>Assess your skills and get ahead of the curve.</p>
|
||||||
|
<div class="practice-footer-text">2000+ Questions</div>
|
||||||
|
</div>
|
||||||
|
<a href="#" class="practice-cta-btn">Start Now ➤</a>
|
||||||
|
</div>
|
||||||
|
<div class="practice-card-svg">
|
||||||
|
<img src="templateapi/assets/images/codinghiringassesments/nope_4.webp"
|
||||||
|
alt="Coding Practice">
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- </div> -->
|
|
||||||
|
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
@ -615,11 +670,12 @@
|
|||||||
<section class="card-simple">
|
<section class="card-simple">
|
||||||
<div class="card-easy">
|
<div class="card-easy">
|
||||||
<div class="card-easy-left">
|
<div class="card-easy-left">
|
||||||
<img src="assets/images/learn/learn.png" alt="Student Image">
|
<img src="templateapi/assets/images/learn/learn.png" alt="Student Image">
|
||||||
</div>
|
</div>
|
||||||
<div class="card-easy-right">
|
<div class="card-easy-right">
|
||||||
<h2>The Future of Your Career Starts Now. Learn, Grow, Achieve</h2>
|
<h2>The Future of Your Career Starts Now. Learn, Grow, Achieve</h2>
|
||||||
<p>Stop waiting for opportunity—create it. Dive into our extensive library to level up your expertise and unlock your next big career move.</p>
|
<p>Stop waiting for opportunity—create it. Dive into our extensive library to level up your
|
||||||
|
expertise and unlock your next big career move.</p>
|
||||||
<div class="features">
|
<div class="features">
|
||||||
<div class="feature"><span>✓</span>50+ Courses</div>
|
<div class="feature"><span>✓</span>50+ Courses</div>
|
||||||
<div class="feature"><span>✓</span>Certificate</div>
|
<div class="feature"><span>✓</span>Certificate</div>
|
||||||
@ -676,8 +732,8 @@
|
|||||||
<footer class="footer">
|
<footer class="footer">
|
||||||
<div class="footer-container">
|
<div class="footer-container">
|
||||||
<div class="footer-section company-section">
|
<div class="footer-section company-section">
|
||||||
<div class="logo" style="text-align: left; margin-left: 0; padding-left: 0;">Kodepilot</div>
|
<div class="logo" style="text-align: left; margin-left: 0; padding-left: 0;">Kodepilot</div>
|
||||||
<p class="tagline">Built with <span class="heart">❤</span> in India for the world</p>
|
<p class="tagline">Built with <span class="heart">❤</span> in India for the world</p>
|
||||||
<div class="contact-info">
|
<div class="contact-info">
|
||||||
<h4>Stay Connected</h4>
|
<h4>Stay Connected</h4>
|
||||||
|
|
||||||
@ -686,22 +742,22 @@
|
|||||||
|
|
||||||
<div class="contact-item">
|
<div class="contact-item">
|
||||||
<i class="fas fa-envelope"></i>
|
<i class="fas fa-envelope"></i>
|
||||||
sales@kodepilot.com
|
careers@kodepilot.com
|
||||||
</div>
|
</div>
|
||||||
<div class="contact-item">
|
<div class="contact-item">
|
||||||
<i class="fas fa-phone"></i>
|
<i class="fas fa-phone"></i>
|
||||||
+91-9311777388 <span style="font-size: 12px;"> </span>
|
+91 88707 60431<span style="font-size: 12px;"> </span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div >
|
<div>
|
||||||
<strong style="color: white; font-size: 14px; line-height: 30px;">Support Inquiries</strong>
|
<strong style="color: white; font-size: 14px; line-height: 30px;">Support Inquiries</strong>
|
||||||
<div style="margin-bottom: 20px; line-height: 23px; margin-left: -27px;">
|
<div style="margin-bottom: 20px; line-height: 23px; margin-left: -27px;">
|
||||||
<div class="contact-item">
|
<div class="contact-item">
|
||||||
<i class="fas fa-envelope"></i>
|
<i class="fas fa-envelope"></i>
|
||||||
support@kodepilot.com
|
support@kodepilot.com
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
355
main.js
355
main.js
@ -1,5 +1,5 @@
|
|||||||
function goToApplay() {
|
function goToApplay() {
|
||||||
window.location.href = "/applay/";
|
window.location.href = "/apply/";
|
||||||
}
|
}
|
||||||
|
|
||||||
function getInTouch() {
|
function getInTouch() {
|
||||||
@ -234,150 +234,150 @@ const observer = new IntersectionObserver((entries) => {
|
|||||||
|
|
||||||
console.log("test");
|
console.log("test");
|
||||||
document.addEventListener('DOMContentLoaded', async () => {
|
document.addEventListener('DOMContentLoaded', async () => {
|
||||||
// const allCourses = [];
|
const allCourses = [];
|
||||||
|
|
||||||
// const baseUrl = 'https://kodepilot.in/course/index.php';
|
const baseUrl = 'https://kodepilot.in/course/index.php';
|
||||||
// const res = await fetch(baseUrl);
|
const res = await fetch(baseUrl);
|
||||||
// const html = await res.text();
|
const html = await res.text();
|
||||||
|
|
||||||
// const categoryRegex = /<h3 class="categoryname aabtn"><a href="([^"]+)">([^<]+)<\/a><\/h3>/g;
|
const categoryRegex = /<h3 class="categoryname aabtn"><a href="([^"]+)">([^<]+)<\/a><\/h3>/g;
|
||||||
// const categories = [];
|
const categories = [];
|
||||||
// let match;
|
let match;
|
||||||
// while ((match = categoryRegex.exec(html)) !== null) {
|
while ((match = categoryRegex.exec(html)) !== null) {
|
||||||
// categories.push({ url: match[1], name: match[2] });
|
categories.push({ url: match[1], name: match[2] });
|
||||||
// }
|
}
|
||||||
|
|
||||||
// for (const category of categories) {
|
for (const category of categories) {
|
||||||
// const resCat = await fetch(category.url);
|
const resCat = await fetch(category.url);
|
||||||
// const catHtml = await resCat.text();
|
const catHtml = await resCat.text();
|
||||||
// const cleanHtml = catHtml.replace(/\n/g, ' ');
|
const cleanHtml = catHtml.replace(/\n/g, ' ');
|
||||||
|
|
||||||
// const courseRegex = /<div class="card dashboard-card [^"]*"[^>]*>.*?<a href="([^"]+)"[^>]*>.*?background-image: url\(([^)]+)\);".*?<span class="sr-only">(.*?)<\/span>.*?<div class="course-category">\s*([^<]+)<\/div>.*?<div class="course-summary">.*?<p>(.*?)<\/p>/g;
|
const courseRegex = /<div class="card dashboard-card [^"]*"[^>]*>.*?<a href="([^"]+)"[^>]*>.*?background-image: url\(([^)]+)\);".*?<span class="sr-only">(.*?)<\/span>.*?<div class="course-category">\s*([^<]+)<\/div>.*?<div class="course-summary">.*?<p>(.*?)<\/p>/g;
|
||||||
|
|
||||||
// while ((match = courseRegex.exec(cleanHtml)) !== null) {
|
while ((match = courseRegex.exec(cleanHtml)) !== null) {
|
||||||
// allCourses.push({
|
allCourses.push({
|
||||||
// category: match[4].trim(),
|
category: match[4].trim(),
|
||||||
// link: match[1].trim(),
|
link: match[1].trim(),
|
||||||
// image: match[2].trim(),
|
image: match[2].trim(),
|
||||||
// name: match[3].trim(),
|
name: match[3].trim(),
|
||||||
// description: match[5].replace(/<br\s*\/?>/g, ' ').trim()
|
description: match[5].replace(/<br\s*\/?>/g, ' ').trim()
|
||||||
// });
|
});
|
||||||
// }
|
|
||||||
// }
|
|
||||||
const allCourses = [
|
|
||||||
{
|
|
||||||
category: "Software Development & Engineering",
|
|
||||||
link: "https://kodepilot.in/course/view.php?id=16",
|
|
||||||
image: "https://kodepilot.in/pluginfile.php/53/course/overviewfiles/UiUx.png",
|
|
||||||
name: "UI/UX Design",
|
|
||||||
description: "Learn the fundamentals of user interface and user experience design."
|
|
||||||
},
|
|
||||||
{
|
|
||||||
category: "Software Development & Engineering",
|
|
||||||
link: "https://kodepilot.in/course/view.php?id=9",
|
|
||||||
image: "https://kodepilot.in/pluginfile.php/39/course/overviewfiles/IOS.png",
|
|
||||||
name: "iOS Development",
|
|
||||||
description: "Build iOS apps using Swift and Apple’s development tools."
|
|
||||||
},
|
|
||||||
{
|
|
||||||
category: "Software Development & Engineering",
|
|
||||||
link: "https://kodepilot.in/course/view.php?id=7",
|
|
||||||
image: "https://kodepilot.in/pluginfile.php/35/course/overviewfiles/RD.png",
|
|
||||||
name: "React Development",
|
|
||||||
description: "Master React.js for building fast and scalable web apps."
|
|
||||||
},
|
|
||||||
{
|
|
||||||
category: "Software Development & Engineering",
|
|
||||||
link: "https://kodepilot.in/course/view.php?id=5",
|
|
||||||
image: "https://kodepilot.in/pluginfile.php/31/course/overviewfiles/PFS.png",
|
|
||||||
name: "Full Stack Development",
|
|
||||||
description: "End-to-end training in frontend, backend, and databases."
|
|
||||||
},
|
|
||||||
{
|
|
||||||
category: "Software Development & Engineering",
|
|
||||||
link: "https://kodepilot.in/course/view.php?id=3",
|
|
||||||
image: "https://kodepilot.in/pluginfile.php/25/course/overviewfiles/JFS.png",
|
|
||||||
name: "Java Full Stack",
|
|
||||||
description: "Become a full stack developer with Java, Spring, and modern tools."
|
|
||||||
},
|
|
||||||
{
|
|
||||||
category: "Quality & Testing",
|
|
||||||
link: "https://kodepilot.in/course/view.php?id=13",
|
|
||||||
image: "https://kodepilot.in/pluginfile.php/46/course/overviewfiles/PT.png",
|
|
||||||
name: "Performance Testing",
|
|
||||||
description: "Learn tools and techniques for testing system performance."
|
|
||||||
},
|
|
||||||
{
|
|
||||||
category: "Quality & Testing",
|
|
||||||
link: "https://kodepilot.in/course/view.php?id=10",
|
|
||||||
image: "https://kodepilot.in/pluginfile.php/41/course/overviewfiles/QA.png",
|
|
||||||
name: "QA Testing",
|
|
||||||
description: "Understand quality assurance practices for reliable software."
|
|
||||||
},
|
|
||||||
{
|
|
||||||
category: "Cloud & DevOps",
|
|
||||||
link: "https://kodepilot.in/course/view.php?id=17",
|
|
||||||
image: "https://kodepilot.in/pluginfile.php/55/course/overviewfiles/GC.png",
|
|
||||||
name: "Google Cloud",
|
|
||||||
description: "Get hands-on with Google Cloud Platform services and tools."
|
|
||||||
},
|
|
||||||
{
|
|
||||||
category: "Cloud & DevOps",
|
|
||||||
link: "https://kodepilot.in/course/view.php?id=4",
|
|
||||||
image: "https://kodepilot.in/pluginfile.php/28/course/overviewfiles/AWSA.png",
|
|
||||||
name: "AWS Associate",
|
|
||||||
description: "Prepare for AWS certifications and cloud computing skills."
|
|
||||||
},
|
|
||||||
{
|
|
||||||
category: "AI, Data & Emerging Tech (On-demand & trending)",
|
|
||||||
link: "https://kodepilot.in/course/view.php?id=26",
|
|
||||||
image: "https://kodepilot.in/pluginfile.php/73/course/overviewfiles/DE.png",
|
|
||||||
name: "Data Engineering",
|
|
||||||
description: "Build pipelines and manage data at scale for analytics."
|
|
||||||
},
|
|
||||||
{
|
|
||||||
category: "AI, Data & Emerging Tech (On-demand & trending)",
|
|
||||||
link: "https://kodepilot.in/course/view.php?id=18",
|
|
||||||
image: "https://kodepilot.in/pluginfile.php/58/course/overviewfiles/PE.png",
|
|
||||||
name: "Prompt Engineering",
|
|
||||||
description: "Learn to design prompts for AI models like ChatGPT."
|
|
||||||
},
|
|
||||||
{
|
|
||||||
category: "AI, Data & Emerging Tech (On-demand & trending)",
|
|
||||||
link: "https://kodepilot.in/course/view.php?id=12",
|
|
||||||
image: "https://kodepilot.in/pluginfile.php/44/course/overviewfiles/AI%28Ess%29.png",
|
|
||||||
name: "AI Essentials",
|
|
||||||
description: "Introduction to AI, ML concepts, and real-world use cases."
|
|
||||||
},
|
|
||||||
{
|
|
||||||
category: "Enterprise & Business Tech",
|
|
||||||
link: "https://kodepilot.in/course/view.php?id=24",
|
|
||||||
image: "https://kodepilot.in/pluginfile.php/70/course/overviewfiles/ServiceNow.png",
|
|
||||||
name: "ServiceNow",
|
|
||||||
description: "Learn ITSM and workflow automation with ServiceNow."
|
|
||||||
},
|
|
||||||
{
|
|
||||||
category: "Enterprise & Business Tech",
|
|
||||||
link: "https://kodepilot.in/course/view.php?id=19",
|
|
||||||
image: "https://kodepilot.in/pluginfile.php/61/course/overviewfiles/SAP.png",
|
|
||||||
name: "SAP",
|
|
||||||
description: "Master SAP ERP modules for enterprise solutions."
|
|
||||||
},
|
|
||||||
{
|
|
||||||
category: "Cybersecurity & Compliance",
|
|
||||||
link: "https://kodepilot.in/course/view.php?id=23",
|
|
||||||
image: "https://kodepilot.in/pluginfile.php/69/course/overviewfiles/Security.png",
|
|
||||||
name: "Security Fundamentals",
|
|
||||||
description: "Understand core concepts of IT security and defense."
|
|
||||||
},
|
|
||||||
{
|
|
||||||
category: "Cybersecurity & Compliance",
|
|
||||||
link: "https://kodepilot.in/course/view.php?id=22",
|
|
||||||
image: "https://kodepilot.in/pluginfile.php/68/course/overviewfiles/CyE.png",
|
|
||||||
name: "Cyber Essentials",
|
|
||||||
description: "Learn the basics of cybersecurity and compliance standards."
|
|
||||||
}
|
}
|
||||||
];
|
}
|
||||||
|
// const allCourses = [
|
||||||
|
// {
|
||||||
|
// category: "Software Development & Engineering",
|
||||||
|
// link: "https://kodepilot.in/course/view.php?id=16",
|
||||||
|
// image: "https://kodepilot.in/pluginfile.php/53/course/overviewfiles/UiUx.png",
|
||||||
|
// name: "UI/UX Design",
|
||||||
|
// description: "Learn the fundamentals of user interface and user experience design."
|
||||||
|
// },
|
||||||
|
// {
|
||||||
|
// category: "Software Development & Engineering",
|
||||||
|
// link: "https://kodepilot.in/course/view.php?id=9",
|
||||||
|
// image: "https://kodepilot.in/pluginfile.php/39/course/overviewfiles/IOS.png",
|
||||||
|
// name: "iOS Development",
|
||||||
|
// description: "Build iOS apps using Swift and Apple’s development tools."
|
||||||
|
// },
|
||||||
|
// {
|
||||||
|
// category: "Software Development & Engineering",
|
||||||
|
// link: "https://kodepilot.in/course/view.php?id=7",
|
||||||
|
// image: "https://kodepilot.in/pluginfile.php/35/course/overviewfiles/RD.png",
|
||||||
|
// name: "React Development",
|
||||||
|
// description: "Master React.js for building fast and scalable web apps."
|
||||||
|
// },
|
||||||
|
// {
|
||||||
|
// category: "Software Development & Engineering",
|
||||||
|
// link: "https://kodepilot.in/course/view.php?id=5",
|
||||||
|
// image: "https://kodepilot.in/pluginfile.php/31/course/overviewfiles/PFS.png",
|
||||||
|
// name: "Full Stack Development",
|
||||||
|
// description: "End-to-end training in frontend, backend, and databases."
|
||||||
|
// },
|
||||||
|
// {
|
||||||
|
// category: "Software Development & Engineering",
|
||||||
|
// link: "https://kodepilot.in/course/view.php?id=3",
|
||||||
|
// image: "https://kodepilot.in/pluginfile.php/25/course/overviewfiles/JFS.png",
|
||||||
|
// name: "Java Full Stack",
|
||||||
|
// description: "Become a full stack developer with Java, Spring, and modern tools."
|
||||||
|
// },
|
||||||
|
// {
|
||||||
|
// category: "Quality & Testing",
|
||||||
|
// link: "https://kodepilot.in/course/view.php?id=13",
|
||||||
|
// image: "https://kodepilot.in/pluginfile.php/46/course/overviewfiles/PT.png",
|
||||||
|
// name: "Performance Testing",
|
||||||
|
// description: "Learn tools and techniques for testing system performance."
|
||||||
|
// },
|
||||||
|
// {
|
||||||
|
// category: "Quality & Testing",
|
||||||
|
// link: "https://kodepilot.in/course/view.php?id=10",
|
||||||
|
// image: "https://kodepilot.in/pluginfile.php/41/course/overviewfiles/QA.png",
|
||||||
|
// name: "QA Testing",
|
||||||
|
// description: "Understand quality assurance practices for reliable software."
|
||||||
|
// },
|
||||||
|
// {
|
||||||
|
// category: "Cloud & DevOps",
|
||||||
|
// link: "https://kodepilot.in/course/view.php?id=17",
|
||||||
|
// image: "https://kodepilot.in/pluginfile.php/55/course/overviewfiles/GC.png",
|
||||||
|
// name: "Google Cloud",
|
||||||
|
// description: "Get hands-on with Google Cloud Platform services and tools."
|
||||||
|
// },
|
||||||
|
// {
|
||||||
|
// category: "Cloud & DevOps",
|
||||||
|
// link: "https://kodepilot.in/course/view.php?id=4",
|
||||||
|
// image: "https://kodepilot.in/pluginfile.php/28/course/overviewfiles/AWSA.png",
|
||||||
|
// name: "AWS Associate",
|
||||||
|
// description: "Prepare for AWS certifications and cloud computing skills."
|
||||||
|
// },
|
||||||
|
// {
|
||||||
|
// category: "AI, Data & Emerging Tech (On-demand & trending)",
|
||||||
|
// link: "https://kodepilot.in/course/view.php?id=26",
|
||||||
|
// image: "https://kodepilot.in/pluginfile.php/73/course/overviewfiles/DE.png",
|
||||||
|
// name: "Data Engineering",
|
||||||
|
// description: "Build pipelines and manage data at scale for analytics."
|
||||||
|
// },
|
||||||
|
// {
|
||||||
|
// category: "AI, Data & Emerging Tech (On-demand & trending)",
|
||||||
|
// link: "https://kodepilot.in/course/view.php?id=18",
|
||||||
|
// image: "https://kodepilot.in/pluginfile.php/58/course/overviewfiles/PE.png",
|
||||||
|
// name: "Prompt Engineering",
|
||||||
|
// description: "Learn to design prompts for AI models like ChatGPT."
|
||||||
|
// },
|
||||||
|
// {
|
||||||
|
// category: "AI, Data & Emerging Tech (On-demand & trending)",
|
||||||
|
// link: "https://kodepilot.in/course/view.php?id=12",
|
||||||
|
// image: "https://kodepilot.in/pluginfile.php/44/course/overviewfiles/AI%28Ess%29.png",
|
||||||
|
// name: "AI Essentials",
|
||||||
|
// description: "Introduction to AI, ML concepts, and real-world use cases."
|
||||||
|
// },
|
||||||
|
// {
|
||||||
|
// category: "Enterprise & Business Tech",
|
||||||
|
// link: "https://kodepilot.in/course/view.php?id=24",
|
||||||
|
// image: "https://kodepilot.in/pluginfile.php/70/course/overviewfiles/ServiceNow.png",
|
||||||
|
// name: "ServiceNow",
|
||||||
|
// description: "Learn ITSM and workflow automation with ServiceNow."
|
||||||
|
// },
|
||||||
|
// {
|
||||||
|
// category: "Enterprise & Business Tech",
|
||||||
|
// link: "https://kodepilot.in/course/view.php?id=19",
|
||||||
|
// image: "https://kodepilot.in/pluginfile.php/61/course/overviewfiles/SAP.png",
|
||||||
|
// name: "SAP",
|
||||||
|
// description: "Master SAP ERP modules for enterprise solutions."
|
||||||
|
// },
|
||||||
|
// {
|
||||||
|
// category: "Cybersecurity & Compliance",
|
||||||
|
// link: "https://kodepilot.in/course/view.php?id=23",
|
||||||
|
// image: "https://kodepilot.in/pluginfile.php/69/course/overviewfiles/Security.png",
|
||||||
|
// name: "Security Fundamentals",
|
||||||
|
// description: "Understand core concepts of IT security and defense."
|
||||||
|
// },
|
||||||
|
// {
|
||||||
|
// category: "Cybersecurity & Compliance",
|
||||||
|
// link: "https://kodepilot.in/course/view.php?id=22",
|
||||||
|
// image: "https://kodepilot.in/pluginfile.php/68/course/overviewfiles/CyE.png",
|
||||||
|
// name: "Cyber Essentials",
|
||||||
|
// description: "Learn the basics of cybersecurity and compliance standards."
|
||||||
|
// }
|
||||||
|
// ];
|
||||||
|
|
||||||
console.table(allCourses);
|
console.table(allCourses);
|
||||||
|
|
||||||
@ -422,56 +422,73 @@ function renderCourses(allCourses) {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
// If temp still has >= 4, push it
|
|
||||||
if (temp.courses.length >= 4) {
|
if (temp.courses.length >= 4) {
|
||||||
mergedSections.push(temp);
|
mergedSections.push(temp);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Render sections
|
|
||||||
mergedSections.forEach(sectionData => {
|
mergedSections.forEach(sectionData => {
|
||||||
const section = document.createElement('div');
|
const section = document.createElement('div');
|
||||||
section.className = 'course-section';
|
section.className = 'course-section';
|
||||||
section.innerHTML = `
|
section.innerHTML = `
|
||||||
<h2 class="course-category-title">${sectionData.category}</h2>
|
<h2 class="course-category-title">${sectionData.category}</h2>
|
||||||
<div class="course-slider-box">
|
<div class="course-slider-box">
|
||||||
<div class="course-slider">
|
<div class="course-slider">
|
||||||
<button class="prev-btn nav-button"></button>
|
<button class="prev-btn nav-button"></button>
|
||||||
<div class="course-track"></div>
|
<div class="course-track"></div>
|
||||||
<button class="next-btn nav-button"></button>
|
<button class="next-btn nav-button"></button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
`;
|
`;
|
||||||
|
|
||||||
const track = section.querySelector('.course-track');
|
const track = section.querySelector('.course-track');
|
||||||
|
const prevBtn = section.querySelector('.prev-btn');
|
||||||
|
const nextBtn = section.querySelector('.next-btn');
|
||||||
|
|
||||||
sectionData.courses.forEach(course => {
|
sectionData.courses.forEach(course => {
|
||||||
const courseDiv = document.createElement('div');
|
const courseDiv = document.createElement('div');
|
||||||
courseDiv.className = 'course-card';
|
courseDiv.className = 'course-card';
|
||||||
courseDiv.innerHTML = `
|
courseDiv.innerHTML = `
|
||||||
<a href="${course.link}" target="_blank">
|
<a href="${course.link}" target="_blank">
|
||||||
<div class="course-image" style="background-image: url(${course.image});"></div>
|
<div class="course-image" style="background-image: url(${course.image});"></div>
|
||||||
</a>
|
</a>
|
||||||
<div class="course-content">
|
<div class="course-content">
|
||||||
<a href="${course.link}" class="course-name" target="_blank">${course.name}</a>
|
<a href="${course.link}" class="course-name" target="_blank">${course.name}</a>
|
||||||
<div class="course-description">${course.description}</div>
|
<div class="course-description">${course.description}</div>
|
||||||
</div>
|
</div>
|
||||||
`;
|
`;
|
||||||
track.appendChild(courseDiv);
|
track.appendChild(courseDiv);
|
||||||
});
|
});
|
||||||
|
|
||||||
// Slider buttons
|
// Button scrolling
|
||||||
const prevBtn = section.querySelector('.prev-btn');
|
const scrollAmount = 300;
|
||||||
const nextBtn = section.querySelector('.next-btn');
|
prevBtn.addEventListener('click', () => track.scrollBy({ left: -scrollAmount, behavior: 'smooth' }));
|
||||||
|
nextBtn.addEventListener('click', () => track.scrollBy({ left: scrollAmount, behavior: 'smooth' }));
|
||||||
|
|
||||||
prevBtn.addEventListener('click', () => {
|
// Touch swipe
|
||||||
track.scrollBy({ left: -300, behavior: 'smooth' });
|
let startX = 0;
|
||||||
|
let isDragging = false;
|
||||||
|
|
||||||
|
track.addEventListener('touchstart', e => {
|
||||||
|
startX = e.touches[0].clientX;
|
||||||
|
isDragging = true;
|
||||||
});
|
});
|
||||||
nextBtn.addEventListener('click', () => {
|
|
||||||
track.scrollBy({ left: 300, behavior: 'smooth' });
|
track.addEventListener('touchmove', e => {
|
||||||
|
if (!isDragging) return;
|
||||||
|
const x = e.touches[0].clientX;
|
||||||
|
const walk = (startX - x) * 10;
|
||||||
|
track.scrollLeft += walk;
|
||||||
|
startX = x;
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
track.addEventListener('touchend', () => {
|
||||||
|
isDragging = false;
|
||||||
});
|
});
|
||||||
|
|
||||||
container.appendChild(section);
|
container.appendChild(section);
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -493,7 +510,7 @@ function stepScroll() {
|
|||||||
track.appendChild(first);
|
track.appendChild(first);
|
||||||
track.style.transition = 'none';
|
track.style.transition = 'none';
|
||||||
track.style.transform = 'translateX(0)';
|
track.style.transform = 'translateX(0)';
|
||||||
void track.offsetWidth; // force reflow
|
void track.offsetWidth;
|
||||||
track.style.transition = 'transform 0.5s ease';
|
track.style.transition = 'transform 0.5s ease';
|
||||||
track.removeEventListener('transitionend', handler);
|
track.removeEventListener('transitionend', handler);
|
||||||
});
|
});
|
||||||
@ -505,7 +522,7 @@ setInterval(stepScroll, 3000);
|
|||||||
|
|
||||||
/*--------------------------------------------------------*/
|
/*--------------------------------------------------------*/
|
||||||
|
|
||||||
document.addEventListener('DOMContentLoaded', function() {
|
document.addEventListener('DOMContentLoaded', function () {
|
||||||
const cards = document.querySelectorAll('.practice-card');
|
const cards = document.querySelectorAll('.practice-card');
|
||||||
let activeCard = document.querySelector('.practice-card.active');
|
let activeCard = document.querySelector('.practice-card.active');
|
||||||
let lastActiveCard = activeCard;
|
let lastActiveCard = activeCard;
|
||||||
@ -531,14 +548,14 @@ document.addEventListener('DOMContentLoaded', function() {
|
|||||||
|
|
||||||
// Add click event listeners (better for mobile and accessibility)
|
// Add click event listeners (better for mobile and accessibility)
|
||||||
cards.forEach(card => {
|
cards.forEach(card => {
|
||||||
card.addEventListener('click', function() {
|
card.addEventListener('click', function () {
|
||||||
setActiveCard(this);
|
setActiveCard(this);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
// Optional: Add hover effect for desktop (complementary to click)
|
// Optional: Add hover effect for desktop (complementary to click)
|
||||||
cards.forEach(card => {
|
cards.forEach(card => {
|
||||||
card.addEventListener('mouseenter', function() {
|
card.addEventListener('mouseenter', function () {
|
||||||
// Only activate on hover if you want that behavior
|
// Only activate on hover if you want that behavior
|
||||||
// setActiveCard(this);
|
// setActiveCard(this);
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user