Skip to content

Commit e0b11fa

Browse files
committed
fixed dark visiblity
1 parent c526461 commit e0b11fa

File tree

1 file changed

+16
-9
lines changed

1 file changed

+16
-9
lines changed

src/components/faqs/faqs.tsx

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const faqData = [
77
{
88
question: "What is the recode hive?",
99
answer:
10-
"Recode Hive is a comprehensive platform focused on providing students with the right resources at the right time. We help you focus on important topics and tools used in current industry standards compared to traditional university curricula. This includes data engineering tutorials, blogs, and opportunities for open-source contributions with earning potential. <br><br>🌐 <a href='https://recodehive.com/' target='_blank' rel='noopener noreferrer' class='text-indigo-600 hover:text-indigo-800 underline'>Visit our official website</a> | 📚 <a href='/docs/intro' class='text-indigo-600 hover:text-indigo-800 underline'>Explore our documentation</a>",
10+
"Recode Hive is a comprehensive platform focused on providing students with the right resources at the right time. We help you focus on important topics and tools used in current industry standards compared to traditional university curricula. This includes data engineering tutorials, blogs, and opportunities for open-source contribution with earning potential. <br><br>🌐 <a href='https://recodehive.com/' target='_blank' rel='noopener noreferrer' class='text-indigo-600 hover:text-indigo-800 underline'>Visit our official website</a> | 📚 <a href='/docs/intro' class='text-indigo-600 hover:text-indigo-800 underline'>Explore our documentation</a>",
1111
},
1212
{
1313
question: "What features do the recode hive provides?",
@@ -118,13 +118,20 @@ const FAQs: React.FC = () => {
118118
>
119119
<div
120120
className={`mt-2 text-base transition-colors duration-200 ${
121-
isDark ? "text-gray-400" : "text-gray-600"
122-
}
123-
[&_a]:text-indigo-600 [&_a]:hover:text-indigo-800
124-
dark:[&_a]:text-indigo-400 dark:[&_a]:hover:text-indigo-300
125-
[&_strong]:font-semibold [&_strong]:text-gray-500
126-
dark:[&_strong]:text-gray-600`}
127-
dangerouslySetInnerHTML={{ __html: faq.answer }}
121+
isDark ? "text-gray-300" : "text-gray-900"
122+
}`}
123+
style={{
124+
color: isDark ? '#d1d5db' : '#111827'
125+
}}
126+
dangerouslySetInnerHTML={{
127+
__html: faq.answer.replace(
128+
/<strong>/g,
129+
`<strong style="color: ${isDark ? '#f3f4f6' : '#000000'}; font-weight: 600;">`
130+
).replace(
131+
/<a /g,
132+
`<a style="color: ${isDark ? '#818cf8' : '#4f46e5'};" `
133+
)
134+
}}
128135
/>
129136
</motion.div>
130137
</motion.div>
@@ -137,4 +144,4 @@ const FAQs: React.FC = () => {
137144
);
138145
};
139146

140-
export default FAQs;
147+
export default FAQs;

0 commit comments

Comments
 (0)