From 12f4b8c2bd18c9198165bad445c572305b4700e5 Mon Sep 17 00:00:00 2001 From: kudinDmitriyUp Date: Tue, 5 May 2026 09:04:15 +0000 Subject: [PATCH] Bob AI: Change the text color of the div containing 'FAQs Common Que --- src/App.tsx | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) 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 -- 2.49.1