Skip to content

Commit 2511c8e

Browse files
Fixed the grey badges issue and changed the color of the text on the button of Join Community Discord from green to white.
1 parent 8433de5 commit 2511c8e

File tree

2 files changed

+39
-5
lines changed

2 files changed

+39
-5
lines changed

src/css/custom.css

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1625,11 +1625,45 @@ html[data-theme="light"] .company-outer {
16251625
-webkit-backdrop-filter: none !important;
16261626
backdrop-filter: none !important;
16271627
mix-blend-mode: normal !important;
1628-
isolation: isolate !important;
16291628
}
16301629
html[data-theme="light"] .company-outer::before,
16311630
html[data-theme="light"] .company-outer::after {
16321631
display: none !important;
16331632
background: none !important;
16341633
content: none !important;
16351634
}
1635+
1636+
/* Strong, final overrides for pill buttons and community button text in light mode */
1637+
html[data-theme="light"] .pill-badge,
1638+
html[data-theme="light"] .company-outer .pill-badge,
1639+
html[data-theme="light"] [data-slot="card-header"] .pill-badge,
1640+
html[data-theme="light"] .company-border .pill-badge,
1641+
html[data-theme="light"] .pill-badge[class*="bg-"],
1642+
html[data-theme="light"] span.bg-gray-100.pill-badge {
1643+
background-color: #f3f4f6 !important; /* gray-100 visible in light mode */
1644+
color: #1f2937 !important; /* dark text */
1645+
mix-blend-mode: normal !important;
1646+
background-clip: padding-box !important;
1647+
z-index: 9999 !important;
1648+
opacity: 1 !important;
1649+
}
1650+
1651+
/* Force link text inside gradient buttons to be white */
1652+
html[data-theme="light"] .company-tab-link,
1653+
html[data-theme="light"] .company-tab-community-link,
1654+
html[data-theme="light"] .company-border a,
1655+
html[data-theme="light"] button [class*="company-tab-link"],
1656+
html[data-theme="light"] a.company-tab-link {
1657+
color: #ffffff !important;
1658+
text-decoration: none !important;
1659+
}
1660+
1661+
/* If any Tailwind gradient utility still applies, remove it for these containers in light mode */
1662+
html[data-theme="light"] .company-outer.bg-gradient-to-br,
1663+
html[data-theme="light"] [data-slot="card-header"].bg-gradient-to-br {
1664+
background-image: linear-gradient(135deg,#ffffff 0%, #f8fafc 100%) !important;
1665+
background-color: #ffffff !important;
1666+
-webkit-backdrop-filter: none !important;
1667+
backdrop-filter: none !important;
1668+
mix-blend-mode: normal !important;
1669+
}

src/pages/interview-prep/CompaniesTab.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ const CompaniesTab: React.FC<CompaniesTabProps> = ({ companyTips = [] }) => {
227227
<p className="text-sm text-gray-600 dark:text-gray-300 mb-3 leading-relaxed">
228228
{item.description}
229229
</p>
230-
<div className="inline-flex items-center px-3 py-1 bg-gray-100 dark:bg-gray-700 rounded-full text-xs font-semibold text-gray-700 dark:text-gray-300">
230+
<div className="inline-flex items-center px-3 py-1 bg-gray-100 dark:bg-gray-700 rounded-full text-xs font-semibold text-gray-700 dark:text-gray-300 pill-badge">
231231
{item.stats}
232232
</div>
233233
</motion.div>
@@ -678,7 +678,7 @@ const CompaniesTab: React.FC<CompaniesTabProps> = ({ companyTips = [] }) => {
678678
</p>
679679
</div>
680680

681-
<div className="grid md:grid-cols-2 lg:grid-cols-4 gap-8 mb-12">
681+
<div className="grid md:grid-cols-2 lg:grid-cols-4 gap-8 mb-12 pill-badge">
682682
{[
683683
{
684684
title: "Share Experiences",
@@ -747,7 +747,7 @@ const CompaniesTab: React.FC<CompaniesTabProps> = ({ companyTips = [] }) => {
747747
<p className="text-sm text-gray-600 dark:text-gray-300 mb-4 leading-relaxed">
748748
{item.description}
749749
</p>
750-
<div className="inline-flex items-center px-3 py-1 bg-gray-100 dark:bg-gray-700 rounded-full text-xs font-semibold text-gray-700 dark:text-gray-300">
750+
<div className="inline-flex items-center px-3 py-1 bg-gray-100 dark:bg-gray-700 rounded-full text-xs font-semibold text-gray-700 dark:text-gray-300 pill-badge">
751751
{item.benefit}
752752
</div>
753753
</motion.div>
@@ -762,7 +762,7 @@ const CompaniesTab: React.FC<CompaniesTabProps> = ({ companyTips = [] }) => {
762762
>
763763
<Button className="bg-gradient-to-r from-indigo-600 to-purple-600 text-white hover:from-indigo-700 hover:to-purple-700 px-12 py-4 text-mdx`x rounded-2xl shadow-lg">
764764
<Users className="w-5 h-5 mr-3" />
765-
<Link to="/community" className="company-tab-link">
765+
<Link to="/community" className="company-tab-link text-white">
766766
Join Community Discord
767767
</Link>
768768
</Button>

0 commit comments

Comments
 (0)