Skip to content

Commit a77f9f2

Browse files
authored
Merge pull request #582 from Mansi2007275/fix-challege-overlapping
remove the overlapping in challenge section
2 parents 73a35e7 + d9c8b69 commit a77f9f2

2 files changed

Lines changed: 1048 additions & 987 deletions

File tree

index.html

Lines changed: 103 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -374,6 +374,109 @@ <h5 class="card-Header">JavaScript Mini Projects</h5>
374374
</div>
375375
</div>
376376
</section>
377+
<style>
378+
/* Section spacing */
379+
#challengeSection {
380+
padding: 2rem 0;
381+
}
382+
383+
/* Bootstrap row gap fix */
384+
.challengeContainer {
385+
row-gap: 1.5rem; /* vertical spacing between rows */
386+
}
387+
388+
/* Card styles */
389+
.challengeContainer .card {
390+
box-shadow: rgba(19, 117, 216, 0.2) 0px 8px 24px;
391+
border: none;
392+
border-radius: 15px;
393+
transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
394+
height: 100%;
395+
word-wrap: break-word; /* prevent long words from breaking layout */
396+
overflow-wrap: break-word;
397+
}
398+
399+
/* Card hover */
400+
.challengeContainer .card:hover {
401+
transform: translateY(-3px) scale(1.01);
402+
box-shadow: 0 0 18px rgba(37, 99, 235, 0.45);
403+
}
404+
405+
/* Card top container */
406+
.card-TopContainer {
407+
display: flex;
408+
align-items: center;
409+
justify-content: space-between;
410+
flex-wrap: wrap; /* makes sure text + icons don’t overlap */
411+
gap: 8px;
412+
}
413+
414+
/* Header */
415+
.card-Header {
416+
font-size: 20px;
417+
font-weight: 600;
418+
margin-bottom: 0;
419+
flex: 1 1 auto;
420+
min-width: 120px;
421+
}
422+
423+
/* Difficulty badge */
424+
.card-Level {
425+
font-size: 12px;
426+
padding: 4px 20px;
427+
border-radius: 17px;
428+
font-weight: 700;
429+
margin: 0 7px 0 0;
430+
white-space: nowrap; /* keeps badge text on one line */
431+
}
432+
.medium-Col {
433+
background-color: #fff3cd;
434+
color: #a88825;
435+
}
436+
.hard-Col {
437+
background-color: #f8d7da;
438+
color: #7d1c1c;
439+
}
440+
441+
/* Participation info */
442+
.card-Participate {
443+
font-size: 13px;
444+
color: #666;
445+
margin: 6px 0;
446+
opacity: 0.9;
447+
line-height: 1.4;
448+
}
449+
450+
/* Description text */
451+
.card-Text {
452+
font-size: 14px;
453+
opacity: 0.85;
454+
text-align: justify;
455+
line-height: 1.6;
456+
hyphens: auto; /* breaks long words cleanly */
457+
}
458+
459+
/* Button */
460+
.card-CTAButton {
461+
display: flex;
462+
justify-content: flex-end;
463+
}
464+
.card-Btn {
465+
text-decoration: none;
466+
font-size: 13px;
467+
padding: 8px 28px;
468+
border-radius: 5px;
469+
background-color: #2563eb;
470+
color: white;
471+
font-weight: 700;
472+
transition: all 0.2s ease-in-out;
473+
}
474+
.card-Btn:hover {
475+
background-color: #1d4ed8;
476+
box-shadow: 0px 3px 8px rgba(0,0,0,0.25);
477+
}
478+
479+
</style>
377480
<!-- ================================ Challenge Section End Here ================================ -->
378481

379482
<!-- ================================ Leaderboard Section Starts Here ================================ -->

0 commit comments

Comments
 (0)