4 Commits

Author SHA1 Message Date
db68b40e67 Merge version_3_1777971923447 into main
Merge version_3_1777971923447 into main
2026-05-05 09:06:07 +00:00
kudinDmitriyUp
d7a72b0127 Bob AI: Change the text color of the div containing 'FAQs Common Que 2026-05-05 09:06:01 +00:00
db8c6f040b Merge version_2_1777971818753 into main
Merge version_2_1777971818753 into main
2026-05-05 09:04:19 +00:00
kudinDmitriyUp
12f4b8c2bd Bob AI: Change the text color of the div containing 'FAQs Common Que 2026-05-05 09:04:15 +00:00
2 changed files with 39 additions and 1 deletions

View File

@@ -1,8 +1,32 @@
import { Routes, Route } from 'react-router-dom';
import Layout from './components/Layout';
import HomePage from './pages/HomePage';
import { useEffect } from 'react';
export default function App() {
useEffect(() => {
// Dynamically locate the FAQ div and apply the requested text-red-500 class
const applyRedText = () => {
const elements = document.querySelectorAll('div');
elements.forEach((el) => {
const text = el.textContent || '';
if (
text.includes('FAQs') &&
text.includes('Common Questions') &&
text.includes('Get your questions answered.')
) {
el.classList.add('text-red-500');
}
});
};
applyRedText();
const observer = new MutationObserver(applyRedText);
observer.observe(document.body, { childList: true, subtree: true });
return () => observer.disconnect();
}, []);
return (
<Routes>
<Route element={<Layout />}>
@@ -10,4 +34,4 @@ export default function App() {
</Route>
</Routes>
);
}
}

14
src/components/FAQ.tsx Normal file
View File

@@ -0,0 +1,14 @@
export default function FAQ() {
return (
<section className="py-24 bg-background">
<div className="max-w-6xl mx-auto px-6">
<div className="text-green-500 mb-12">
<span className="text-sm font-bold uppercase tracking-wider">FAQs</span>
<h2 className="text-4xl font-bold mt-2">Common Questions</h2>
<p className="text-lg mt-4">Get your questions answered.</p>
</div>
{/* FAQ items would go here */}
</div>
</section>
);
}