Compare commits

..

6 Commits

Author SHA1 Message Date
Abhishek-unni-2
d6fd076fa8 content:fixit 2025-09-27 02:00:34 +05:30
94315ae34d Merge pull request 'dynamic card' (#21) from rajesh into main
Reviewed-on: #21
2025-09-26 20:02:08 +00:00
ae6c207114 dynamic card 2025-09-27 01:18:33 +05:30
9739a5a04a Merge pull request 'change UI' (#20) from rajesh into main
Reviewed-on: #20
2025-09-26 18:12:21 +00:00
dd543361ac change UI 2025-09-26 23:40:31 +05:30
e04089042d Merge pull request 'content fix' (#19) from content into main
Reviewed-on: #19
2025-09-26 16:54:53 +00:00
12 changed files with 451 additions and 323 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 54 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 53 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 652 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 110 KiB

View 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

View File

@ -4,7 +4,7 @@
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Kodepilot Clone</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="assets/images/logo/favicon.ico">
@ -479,7 +479,7 @@
</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>
@ -500,7 +500,7 @@
</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>
@ -520,7 +520,7 @@
</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>
@ -548,11 +548,12 @@
<div class="practice-card-icon">💻</div> <div class="practice-card-icon">💻</div>
<h3>Coding Practice</h3> <h3>Coding Practice</h3>
<p>Level up your coding skills by practicing the hiring Questions.</p> <p>Level up your coding skills by practicing the hiring Questions.</p>
<div class="practice-footer-text">400+ Questions</div>
</div> </div>
<a href="#" class="practice-cta-btn">Start Now ➤</a> <a href="#" class="practice-cta-btn">Start Now ➤</a>
</div> </div>
<div class="practice-card-svg"> <div class="practice-card-svg">
<img src="assets/images/mit-ico/ebmpapst.svg" alt="Coding Practice"> <img src="assets/images/codinghiringassesments/nope_1.png" alt="Coding Practice">
</div> </div>
</div> </div>
@ -562,13 +563,13 @@
<div> <div>
<div class="practice-card-icon">📋</div> <div class="practice-card-icon">📋</div>
<h3>Interview Preparation</h3> <h3>Interview Preparation</h3>
<p>Crack Top companies in just 5 days.</p> <p>Crack Top companies in just 5 days with unbelivable learning</p>
<div class="practice-footer-text">20+ Companies</div> <div class="practice-footer-text">20+ Companies</div>
</div> </div>
<a href="#" class="practice-cta-btn">Start Now ➤</a> <a href="#" class="practice-cta-btn">Start Now ➤</a>
</div> </div>
<div class="practice-card-svg"> <div class="practice-card-svg">
<img src="assets/images/mit-ico/ebmpapst.svg" alt="Coding Practice"> <img src="assets/images/codinghiringassesments/nope_2.png" alt="Coding Practice">
</div> </div>
</div> </div>
@ -584,7 +585,7 @@
<a href="#" class="practice-cta-btn">Start Now ➤</a> <a href="#" class="practice-cta-btn">Start Now ➤</a>
</div> </div>
<div class="practice-card-svg"> <div class="practice-card-svg">
<img src="assets/images/mit-ico/ebmpapst.svg" alt="Coding Practice"> <img src="assets/images/codinghiringassesments/nope_3.webp" alt="Coding Practice">
</div> </div>
</div> </div>
@ -600,7 +601,7 @@
<a href="#" class="practice-cta-btn">Start Now ➤</a> <a href="#" class="practice-cta-btn">Start Now ➤</a>
</div> </div>
<div class="practice-card-svg"> <div class="practice-card-svg">
<img src="assets/images/mit-ico/ebmpapst.svg" alt="Coding Practice"> <img src="assets/images/codinghiringassesments/nope_4.webp" alt="Coding Practice">
</div> </div>
</div> </div>
</div> </div>

694
main.css
View File

@ -1105,6 +1105,7 @@
align-items: center; align-items: center;
gap: 20px; gap: 20px;
margin-top: 76px; margin-top: 76px;
padding-bottom: 40px;
} }
.move-slider-box-static { .move-slider-box-static {
@ -1540,355 +1541,440 @@
/*----------------------------------------------------------------------------------------------------------------------*/ /*----------------------------------------------------------------------------------------------------------------------*/
/* Practice Cards Component CSS - Unique class names to prevent conflicts */
/* Practice Cards Component CSS - Unique class names to prevent conflicts */
.practice-cards-container * {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Segoe UI', system-ui, sans-serif;
}
.practice-cards-container { /* Practice Cards Component CSS - Unique class names to prevent conflicts */
background-color: #ffffff; /* Practice Cards Component CSS - Unique class names to prevent conflicts */
color: #1f2937; .practice-cards-container * {
padding: 40px 20px; margin: 0;
display: flex; padding: 0;
flex-direction: column; box-sizing: border-box;
align-items: center; font-family: 'Segoe UI', system-ui, sans-serif;
} }
.practice-container { .practice-cards-container {
max-width: 1300px; background-color: #ffffff;
width: 100%; color: #1f2937;
} padding: 40px 20px;
display: flex;
flex-direction: column;
align-items: flex-start;
}
.practice-title { .practice-container {
font-size: 32px; max-width: 1200px;
font-weight: 700; width: 100%;
margin-bottom: 12px; margin: 0 auto;
color: #111827; padding: 0 20px;
text-align: left; }
}
.practice-subtitle { .practice-title {
font-size: 18px; font-size: 32px;
color: #6b7280; font-weight: 700;
max-width: 700px; margin-bottom: 12px;
/* margin: 0 auto 40px; */ color: #111827;
line-height: 1.5; text-align: left;
text-align: left; width: 100%;
} }
.practice-cards-wrapper { .practice-subtitle {
margin: 30px 0; font-size: 18px;
display: flex; color: #6b7280;
height: 380px; max-width: 700px;
border-radius: 12px; line-height: 1.5;
overflow: hidden; text-align: left;
/* box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1); */ width: 100%;
position: relative; }
gap: 1px;
background-color: #d1d5db;
padding: 1px;
}
.practice-card { .practice-cards-wrapper {
flex: 1; margin: 30px 0;
display: flex; display: flex;
transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1); height: 380px;
cursor: pointer; border-radius: 12px;
position: relative; overflow: hidden;
overflow: hidden; position: relative;
transform-origin: center; gap: 1px;
background-color: white; background-color: #d1d5db;
border-radius: 0; padding: 1px;
} width: 100%;
}
.practice-card:first-child { .practice-card {
border-radius: 11px 0 0 11px; flex: 1;
} display: flex;
transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
cursor: pointer;
position: relative;
overflow: hidden;
transform-origin: center;
background-color: white;
border-radius: 0;
min-width: 80px;
}
.practice-card:last-child { .practice-card:first-child {
border-radius: 0 11px 11px 0; border-radius: 11px 0 0 11px;
} }
.practice-card-content { .practice-card:last-child {
flex: 1; border-radius: 0 11px 11px 0;
padding: 24px; }
display: flex;
flex-direction: column;
justify-content: space-between;
transition: all 0.7s ease;
min-width: 0;
z-index: 2;
position: relative;
}
/* Color changes for active and hover states */ .practice-card-content {
.practice-card.active { flex: 1;
background-color: #c6e0f1; padding: 24px;
} display: flex;
flex-direction: column;
justify-content: space-between;
transition: all 0.5s ease;
min-width: 280px;
z-index: 2;
position: relative;
}
.practice-card:nth-child(1):hover, /* Default state - first card expanded */
.practice-card:nth-child(1).active { .practice-card:first-child {
background-color: #89CFF0; flex: 2.5;
} z-index: 10;
}
.practice-card:nth-child(2):hover, .practice-card:not(:first-child) {
.practice-card:nth-child(2).active { flex: 1;
background-color: #FEB4CF; }
}
.practice-card:nth-child(3):hover, .practice-card .practice-card-svg {
.practice-card:nth-child(3).active { width: 0;
background-color: #DFC5FE; opacity: 0;
} }
.practice-card:nth-child(4):hover, .practice-card .practice-cta-btn {
.practice-card:nth-child(4).active { opacity: 0;
background-color: #FFE186; transform: translateY(15px);
} }
/* SVG Container */ /* Show SVG and CTA for first card by default */
.practice-card-svg { .practice-card:first-child .practice-card-svg {
width: 0; width: 35%;
height: 100%; opacity: 1;
display: flex; }
align-items: center;
justify-content: center;
transition: all 1.3s cubic-bezier(0.23, 1, 0.32, 1);
opacity: 0;
padding: 20px;
background: transparent;
}
.practice-card-svg svg { .practice-card:first-child .practice-cta-btn {
width: 100%; opacity: 1;
height: 100%; transform: translateY(0);
max-width: 180px; }
max-height: 180px;
filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}
.practice-card-icon { .practice-card:first-child .practice-card-icon {
width: 48px; transform: scale(1.05) rotate(3deg);
height: 48px; }
border-radius: 10px;
display: flex;
align-items: center;
justify-content: center;
font-size: 24px;
margin-bottom: 16px;
transition: transform 0.5s ease;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.practice-card:nth-child(1) .practice-card-icon { .practice-card:first-child h3 {
background-color: #1268f3; transform: translateY(-2px);
color: white; }
}
.practice-card:nth-child(2) .practice-card-icon { .practice-card:first-child p,
background-color: #ef4444; .practice-card:first-child .practice-meta-info,
color: white; .practice-card:first-child .practice-footer-text {
} transform: translateY(-1px);
}
.practice-card:nth-child(3) .practice-card-icon { /* Hover state - expand hovered card, shrink others */
background-color: #8b5cf6; .practice-cards-wrapper .practice-card {
color: white; transform: scale(1);
} }
.practice-card:nth-child(4) .practice-card-icon { .practice-cards-wrapper .practice-card:hover {
background-color: #f59e0b; flex: 2.5;
color: white; z-index: 10;
} }
.practice-card h3 { .practice-cards-wrapper .practice-card:not(:hover) {
font-size: 20px; flex: 1;
font-weight: 600; }
margin-bottom: 12px;
color: #111827;
transition: transform 0.5s ease;
}
.practice-card p { /* Color changes for hover states */
font-size: 15px; .practice-card:nth-child(1):hover {
color: #6b7280; background-color: #89CFF0;
line-height: 1.5; }
margin-bottom: 16px;
transition: transform 0.5s ease;
}
.practice-meta-info { .practice-card:nth-child(2):hover {
display: flex; background-color: #FEB4CF;
align-items: center; }
margin-bottom: 16px;
font-size: 14px;
color: #4b5563;
transition: transform 0.5s ease;
}
.practice-meta-logo { .practice-card:nth-child(3):hover {
width: 24px; background-color: #DFC5FE;
height: 24px; }
background-color: #3b82f6;
border-radius: 4px;
margin-right: 8px;
display: flex;
align-items: center;
justify-content: center;
color: white;
font-size: 12px;
font-weight: bold;
}
.practice-footer-text { .practice-card:nth-child(4):hover {
font-size: 14px; background-color: #FFE186;
font-weight: 600; }
color: #374151;
margin-top: auto;
transition: transform 0.5s ease;
}
.practice-cta-btn { /* SVG Container - UPDATED FOR IMAGES */
margin-top: 16px; .practice-card-svg {
background-color: #111827; width: 0;
color: white; height: 100%;
padding: 10px 16px; display: flex;
border-radius: 8px; align-items: center;
font-size: 14px; justify-content: center;
font-weight: 600; transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
text-decoration: none; opacity: 0;
width: fit-content; padding: 20px;
display: inline-flex; background: transparent;
align-items: center; flex-shrink: 0;
gap: 6px; overflow: hidden; /* Added to contain the image */
transition: all 0.7s cubic-bezier(0.23, 1, 0.32, 1); }
opacity: 0;
transform: translateY(15px);
position: relative;
overflow: hidden;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.practice-cta-btn::before { /* Image styling - NEW RULES */
content: ''; .practice-card-svg img {
position: absolute; width: 500%;
top: 0; height:1200%;
left: -100%; object-fit: contain; /* This will scale the image properly */
width: 100%; max-width: 200%;
height: 100%; max-height: 200%;
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent); border-radius: 8px;
transition: left 0.8s; }
}
.practice-cta-btn:hover::before { /* Show SVG only on hovered card and first card by default */
left: 100%; .practice-card:hover .practice-card-svg {
} width: 35%;
opacity: 1;
}
.practice-cta-btn:hover { .practice-card-icon {
background-color: #374151; width: 48px;
transform: translateY(-2px); height: 48px;
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15); border-radius: 10px;
} display: flex;
align-items: center;
justify-content: center;
font-size: 24px;
margin-bottom: 16px;
transition: transform 0.5s ease;
}
/* Active card styles */ .practice-card:nth-child(1) .practice-card-icon {
.practice-card.active { background-color: #1268f3;
flex: 3.5; color: white;
transform: translateY(-8px) scale(1.02); }
box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
z-index: 10;
}
.practice-card.active .practice-card-svg { .practice-card:nth-child(2) .practice-card-icon {
width: 45%; background-color: #ef4444;
opacity: 1; color: white;
} }
.practice-card.active .practice-cta-btn { .practice-card:nth-child(3) .practice-card-icon {
opacity: 1; background-color: #8b5cf6;
transform: translateY(0); color: white;
} }
.practice-card.active .practice-card-icon { .practice-card:nth-child(4) .practice-card-icon {
transform: scale(1.1) rotate(5deg); background-color: #f59e0b;
} color: white;
}
.practice-card.active h3 { /* Icon animation on hover */
transform: translateY(-3px); .practice-card:hover .practice-card-icon {
} transform: scale(1.05) rotate(3deg);
}
.practice-card.active p, .practice-card h3 {
.practice-card.active .practice-meta-info, font-size: 20px;
.practice-card.active .practice-footer-text { font-weight: 600;
transform: translateY(-2px); margin-bottom: 12px;
} color: #111827;
transition: transform 0.5s ease;
}
/* Hover effects for non-active cards */ .practice-card p {
.practice-card:hover:not(.active) { font-size: 15px;
flex: 1.3; color: #6b7280;
transform: translateY(-4px) scale(1.01); line-height: 1.5;
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1); margin-bottom: 16px;
z-index: 5; transition: transform 0.5s ease;
} }
.practice-card:hover:not(.active) .practice-card-svg { .practice-meta-info {
width: 25%; display: flex;
opacity: 0.8; align-items: center;
} margin-bottom: 16px;
font-size: 14px;
color: #4b5563;
transition: transform 0.5s ease;
}
/* Subtle overlay effect */ .practice-meta-logo {
.practice-card::after { width: 24px;
content: ''; height: 24px;
position: absolute; background-color: #3b82f6;
top: 0; border-radius: 4px;
left: 0; margin-right: 8px;
width: 100%; display: flex;
height: 100%; align-items: center;
background: linear-gradient(to bottom, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%); justify-content: center;
opacity: 0; color: white;
transition: opacity 0.6s ease; font-size: 12px;
pointer-events: none; font-weight: bold;
} }
.practice-card.active::after, .practice-footer-text {
.practice-card:hover::after { font-size: 14px;
opacity: 1; font-weight: 600;
} color: #374151;
margin-top: auto;
transition: transform 0.5s ease;
}
@media (max-width: 992px) { /* Text animation on hover */
.practice-cards-wrapper { .practice-card:hover h3 {
flex-direction: column; transform: translateY(-2px);
height: auto; }
border-radius: 12px;
}
.practice-card { .practice-card:hover p,
flex-direction: column; .practice-card:hover .practice-meta-info,
height: auto; .practice-card:hover .practice-footer-text {
border-radius: 0 !important; transform: translateY(-1px);
} }
.practice-card:first-child { .practice-cta-btn {
border-radius: 12px 12px 0 0 !important; margin-top: 16px;
} background-color: #111827;
color: white;
padding: 10px 16px;
border-radius: 8px;
font-size: 14px;
font-weight: 600;
text-decoration: none;
width: fit-content;
display: inline-flex;
align-items: center;
gap: 6px;
transition: all 0.7s cubic-bezier(0.23, 1, 0.32, 1);
opacity: 0;
transform: translateY(15px);
position: relative;
overflow: hidden;
}
.practice-card:last-child { .practice-cta-btn::before {
border-radius: 0 0 12px 12px !important; content: '';
} position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
transition: left 0.8s;
}
.practice-card.active .practice-card-svg, .practice-cta-btn:hover::before {
.practice-card:hover .practice-card-svg { left: 100%;
width: 100%; }
height: 200px;
}
.practice-card.active { .practice-cta-btn:hover {
transform: translateY(-5px) scale(1.01); background-color: #374151;
} transform: translateY(-2px);
}
.practice-card:hover:not(.active) { /* Show CTA button only on hovered card and first card by default */
transform: translateY(-3px) scale(1.005); .practice-card:hover .practice-cta-btn {
} opacity: 1;
} transform: translateY(0);
}
/* Subtle overlay effect */
.practice-card::after {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(to bottom, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
opacity: 0;
transition: opacity 0.6s ease;
pointer-events: none;
}
.practice-card:hover::after {
opacity: 1;
}
/* Mobile responsiveness */
@media (max-width: 992px) {
.practice-cards-container {
align-items: flex-start;
padding: 30px 15px;
}
.practice-cards-wrapper {
flex-direction: column;
height: auto;
border-radius: 12px;
gap: 0;
}
.practice-card {
flex-direction: row;
height: 120px;
border-radius: 0 !important;
min-width: auto;
}
.practice-card:first-child {
border-radius: 12px 12px 0 0 !important;
height: 120px;
flex: 1;
}
.practice-card:last-child {
border-radius: 0 0 12px 12px !important;
}
.practice-card:hover {
height: 300px;
flex-direction: column;
}
.practice-card:hover .practice-card-svg {
width: 100%;
height: 120px;
}
/* Mobile image styling */
.practice-card:hover .practice-card-svg img {
object-fit: cover; /* Better fit for mobile */
}
.practice-card-content {
min-width: auto;
padding: 20px;
}
}
@media (max-width: 768px) {
.practice-cards-container {
padding: 25px 10px;
}
.practice-title {
font-size: 28px;
}
.practice-subtitle {
font-size: 16px;
}
}
@media (max-width: 480px) {
.practice-cards-container {
padding: 20px 8px;
}
.practice-title {
font-size: 24px;
}
.practice-subtitle {
font-size: 14px;
}
}

45
main.js
View File

@ -502,16 +502,45 @@ function stepScroll() {
setInterval(stepScroll, 3000); setInterval(stepScroll, 3000);
document.querySelectorAll('.course-slider').forEach(slider => {
const track = slider.querySelector('.course-track');
const prev = slider.querySelector('.prev-btn');
const next = slider.querySelector('.next-btn');
prev.addEventListener('click', () => { /*--------------------------------------------------------*/
track.scrollBy({ left: -300, behavior: 'smooth' });
document.addEventListener('DOMContentLoaded', function() {
const cards = document.querySelectorAll('.practice-card');
let activeCard = document.querySelector('.practice-card.active');
let lastActiveCard = activeCard;
// Function to set active card
function setActiveCard(card) {
// Remove active class from all cards
cards.forEach(c => {
c.classList.remove('active');
});
// Add active class to the specified card
card.classList.add('active');
// Update last active card
lastActiveCard = card;
}
// Set first card as active by default if none is active
if (!activeCard && cards.length > 0) {
setActiveCard(cards[0]);
}
// Add click event listeners (better for mobile and accessibility)
cards.forEach(card => {
card.addEventListener('click', function() {
setActiveCard(this);
});
}); });
next.addEventListener('click', () => { // Optional: Add hover effect for desktop (complementary to click)
track.scrollBy({ left: 300, behavior: 'smooth' }); cards.forEach(card => {
card.addEventListener('mouseenter', function() {
// Only activate on hover if you want that behavior
// setActiveCard(this);
});
}); });
}); });