203 lines
4.4 KiB
HTML
203 lines
4.4 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Right-side Image Expanding Cards</title>
|
|
<style>
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
font-family: "Segoe UI", sans-serif;
|
|
}
|
|
|
|
body {
|
|
background: #f9f9f9;
|
|
color: #1a1a1a;
|
|
padding: 40px;
|
|
}
|
|
|
|
h1 {
|
|
font-size: 26px;
|
|
font-weight: 600;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
p.subtext {
|
|
color: #555;
|
|
margin-bottom: 25px;
|
|
}
|
|
|
|
/* Flex container */
|
|
.cards-container {
|
|
display: flex;
|
|
gap: 15px;
|
|
height: 220px;
|
|
}
|
|
|
|
/* Card style */
|
|
.card {
|
|
flex: 1;
|
|
display: flex;
|
|
border-radius: 14px;
|
|
overflow: hidden;
|
|
transition: all 0.4s ease;
|
|
position: relative;
|
|
cursor: pointer;
|
|
color: #fff;
|
|
}
|
|
|
|
/* Different background colors */
|
|
.card:nth-child(1) { background: #1d4ed8; }
|
|
.card:nth-child(2) { background: #e11d48; }
|
|
.card:nth-child(3) { background: #9333ea; }
|
|
.card:nth-child(4) { background: #f59e0b; }
|
|
|
|
/* Card content */
|
|
.card-content {
|
|
flex: 1;
|
|
padding: 16px 20px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: space-between;
|
|
transition: all 0.4s ease;
|
|
min-width: 0; /* For text ellipsis */
|
|
}
|
|
|
|
/* Hide image initially */
|
|
.card img {
|
|
width: 0;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
transition: all 0.4s ease;
|
|
border-left: 0px solid #fff;
|
|
}
|
|
|
|
/* Icon style */
|
|
.icon {
|
|
width: 40px;
|
|
height: 40px;
|
|
border-radius: 50%;
|
|
background: rgba(255,255,255,0.3);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 20px;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.card h3 {
|
|
font-size: 18px;
|
|
margin-bottom: 6px;
|
|
}
|
|
|
|
.card p {
|
|
font-size: 14px;
|
|
}
|
|
|
|
.cta-btn {
|
|
margin-top: 10px;
|
|
background: rgba(255,255,255,0.3);
|
|
color: #fff;
|
|
padding: 6px 12px;
|
|
border-radius: 8px;
|
|
font-size: 13px;
|
|
font-weight: 500;
|
|
text-decoration: none;
|
|
width: fit-content;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.footer-text {
|
|
font-size: 13px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
/* Hover effects */
|
|
.cards-container:hover .card {
|
|
flex: 1;
|
|
}
|
|
|
|
.cards-container .card:hover {
|
|
flex: 2.5;
|
|
}
|
|
|
|
.cards-container .card:hover img {
|
|
width: 50%; /* show image on right */
|
|
}
|
|
|
|
/* Responsive */
|
|
@media (max-width: 992px) {
|
|
.cards-container {
|
|
flex-direction: column;
|
|
height: auto;
|
|
}
|
|
.card {
|
|
flex: none;
|
|
width: 100%;
|
|
flex-direction: column;
|
|
}
|
|
.cards-container .card:hover img {
|
|
width: 100%;
|
|
height: 180px;
|
|
margin-top: 10px;
|
|
}
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<h1>Practice Coding & Ace Hiring Assessments</h1>
|
|
<p class="subtext">Level up your coding skills by practicing the hiring assessments of your dream companies & ace your placement game!</p>
|
|
|
|
<div class="cards-container">
|
|
<!-- Card 1 -->
|
|
<div class="card">
|
|
<div class="card-content">
|
|
<div>
|
|
<div class="icon">💻</div>
|
|
<h3>Coding Practice</h3>
|
|
<p>Level up your coding skills by practicing the hiring Questions.</p>
|
|
<p><strong>400+ Questions</strong></p>
|
|
</div>
|
|
<a href="#" class="cta-btn">Start Now →</a>
|
|
</div>
|
|
<img src="https://images.pexels.com/photos/3762800/pexels-photo-3762800.jpeg?auto=compress&cs=tinysrgb&w=600&h=400" loading="lazy" alt="Coding Practice">
|
|
</div>
|
|
|
|
<!-- Card 2 -->
|
|
<div class="card">
|
|
<div class="card-content">
|
|
<div class="icon">📋</div>
|
|
<h3>Interview Preparation</h3>
|
|
<p>Crack top companies in just 5 days.</p>
|
|
<p class="footer-text">20+ Companies →</p>
|
|
</div>
|
|
<img src="https://images.pexels.com/photos/1438084/pexels-photo-1438084.jpeg?auto=compress&cs=tinysrgb&w=600&h=400" loading="lazy" alt="Interview Prep">
|
|
</div>
|
|
|
|
<!-- Card 3 -->
|
|
<div class="card">
|
|
<div class="card-content">
|
|
<div class="icon">📂</div>
|
|
<h3>Projects</h3>
|
|
<p>Projects epitomize perfect synergy for success.</p>
|
|
<p class="footer-text">15+ Projects →</p>
|
|
</div>
|
|
<img src="https://images.pexels.com/photos/267569/pexels-photo-267569.jpeg?auto=compress&cs=tinysrgb&w=600&h=400" loading="lazy" alt="Projects">
|
|
</div>
|
|
|
|
<!-- Card 4 -->
|
|
<div class="card">
|
|
<div class="card-content">
|
|
<div class="icon">📝</div>
|
|
<h3>Skill Based Assessments</h3>
|
|
<p>Assess your skills and get ahead of the curve.</p>
|
|
<p class="footer-text">2000+ Questions →</p>
|
|
</div>
|
|
<img src="https://images.pexels.com/photos/3769021/pexels-photo-3769021.jpeg?auto=compress&cs=tinysrgb&w=600&h=400" loading="lazy" alt="Assessments">
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html>
|