Skip to content

Commit 871a2bc

Browse files
authored
Merge pull request #414 from Adez017/Adez017/FAQs
fixed faqs unreadable parts
2 parents 6062631 + e0b11fa commit 871a2bc

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-800
126-
dark:[&_strong]:text-gray-200`}
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)