Skip to content

Commit 8433de5

Browse files
Fixed the dark gradient issues on the company containers.
1 parent b523236 commit 8433de5

File tree

2 files changed

+44
-2
lines changed

2 files changed

+44
-2
lines changed

src/css/custom.css

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -846,6 +846,32 @@ html[data-theme="light"] .interview-prep-page .technical-outer {
846846
z-index: 10 !important;
847847
}
848848

849+
/* Companies tab: use white gradients in light mode and remove overlays */
850+
[data-theme="light"] .company-outer {
851+
background-image: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%) !important;
852+
background-color: #ffffff !important;
853+
color: #0f172a !important;
854+
isolation: isolate !important;
855+
-webkit-backdrop-filter: none !important;
856+
backdrop-filter: none !important;
857+
mix-blend-mode: normal !important;
858+
}
859+
860+
/* hide the subtle pattern overlay added inside the component */
861+
[data-theme="light"] .company-outer > .absolute.inset-0,
862+
[data-theme="light"] .company-outer .absolute.inset-0.opacity-5 {
863+
display: none !important;
864+
background: none !important;
865+
opacity: 1 !important;
866+
}
867+
868+
/* ensure badges & inner panels render normally */
869+
[data-theme="light"] .company-outer,
870+
[data-theme="light"] .company-outer * {
871+
mix-blend-mode: normal !important;
872+
background-blend-mode: normal !important;
873+
}
874+
849875
/*==== SECTION 13 Modern Blog Enhancements ======*/
850876
.modern-gradient-bg {
851877
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
@@ -1591,3 +1617,19 @@ html[data-theme="light"] .bg-gradient-to-r.from-blue-50.to-purple-50 {
15911617
background-image: none !important;
15921618
background-color: #ffffff !important;
15931619
}
1620+
1621+
/* Companies: force white/near-white surface in light mode for .company-outer */
1622+
html[data-theme="light"] .company-outer {
1623+
background-image: linear-gradient(135deg,#ffffff 0%, #f8fafc 100%) !important;
1624+
background-color: #ffffff !important;
1625+
-webkit-backdrop-filter: none !important;
1626+
backdrop-filter: none !important;
1627+
mix-blend-mode: normal !important;
1628+
isolation: isolate !important;
1629+
}
1630+
html[data-theme="light"] .company-outer::before,
1631+
html[data-theme="light"] .company-outer::after {
1632+
display: none !important;
1633+
background: none !important;
1634+
content: none !important;
1635+
}

src/pages/interview-prep/CompaniesTab.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ const CompaniesTab: React.FC<CompaniesTabProps> = ({ companyTips = [] }) => {
131131
</motion.div>
132132

133133
<motion.div
134-
className="relative bg-gradient-to-br from-slate-50 via-blue-50 to-indigo-50 dark:from-slate-900/50 dark:via-blue-900/20 dark:to-indigo-900/20 rounded-3xl p-12 mb-16 overflow-hidden border company-blue-border"
134+
className="company-outer relative bg-gradient-to-br from-slate-50 via-blue-50 to-indigo-50 dark:from-slate-900/50 dark:via-blue-900/20 dark:to-indigo-900/20 rounded-3xl p-12 mb-16 overflow-hidden border company-blue-border"
135135
variants={fadeIn}
136136
>
137137
{/* Background pattern */}
@@ -340,7 +340,7 @@ const CompaniesTab: React.FC<CompaniesTabProps> = ({ companyTips = [] }) => {
340340
<motion.div key={companyIndex} variants={fadeIn} className="group">
341341
<Card className="overflow-hidden shadow-xl hover:shadow-2xl transition-all duration-500 transform hover:scale-[1.02] border-0">
342342
{/* --------- HEADER --------- */}
343-
<CardHeader className="pb-6 bg-gradient-to-br from-gray-50 via-blue-50 to-indigo-50 dark:from-gray-800 dark:via-blue-900/20 dark:to-indigo-900/20 relative">
343+
<CardHeader className="company-outer pb-6 bg-gradient-to-br from-gray-50 via-blue-50 to-indigo-50 dark:from-gray-800 dark:via-blue-900/20 dark:to-indigo-900/20 relative">
344344
{/* Background pattern */}
345345
<div className="absolute inset-0 opacity-5">
346346
<div

0 commit comments

Comments
 (0)