diff --git a/src/App.tsx b/src/App.tsx index 33d15f9..e8d4bec 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -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 ( }> @@ -10,4 +34,4 @@ export default function App() { ); -} +} \ No newline at end of file