@@ -21,9 +21,12 @@ import RecorderGradientIcon from "@/app/components/theme/Icon/recorderGradientIc
2121import SEOComponent from "@/app/components/theme/SEOComponent/SEOComponent" ;
2222import { detectBrowser } from "@/app/libs/helpers" ;
2323import EdgeIcon from "@/app/components/theme/Icon/edgeIcon" ;
24+ import { useTheme } from "@/app/contexts/themeContext" ;
2425
2526const Page = ( { params : { slug } } : { params : { slug : string } } ) => {
2627 const [ browser , setBrowser ] = useState ( "chrome" ) ;
28+ const { isLightTheme } = useTheme ( ) ;
29+ const logoSrc = isLightTheme ? "/images/bb-logo-light.svg" : "/images/bb-logo.svg" ;
2730
2831 useEffect ( ( ) => {
2932 setBrowser ( detectBrowser ( ) ) ;
@@ -56,16 +59,16 @@ const Page = ({ params: { slug } }: { params: { slug: string } }) => {
5659 ogDescription = { meta_data ?. og_description }
5760 ogImage = { meta_data ?. og_image }
5861 />
59- < div className = " md:max-w-[1170px] mx-auto" >
62+ < div className = { ` md:max-w-[1170px] mx-auto ${ DevelopmentToolsStyles . pageContainer } ` } >
6063 < div className = "px-3 md:px-auto mx-auto" >
6164 { /*Hero cta section */ }
6265 < section className = "md:pt-0 pt-9" >
63- < div className = " bg-[#090B0B] text-white flex flex-col items-center justify-center pl-6 pr-4 mt-10 rounded-lg" >
66+ < div className = { ` bg-[#090B0B] text-white flex flex-col items-center justify-center pl-6 pr-4 mt-10 rounded-lg ${ DevelopmentToolsStyles . promoPanel } ` } >
6467 < div className = "w-full flex md:flex-row flex-col md:items-center items-start md:justify-between justify-start gap-8 md:py-4 py-8 md:px-7" >
6568 { /* Left Section */ }
6669 < div className = "text-left flex-1" >
6770 < Image
68- src = "/images/bb-logo.svg"
71+ src = { logoSrc }
6972 alt = "BetterBugs Logo"
7073 className = "mb-8"
7174 width = { 200 }
@@ -86,7 +89,9 @@ const Page = ({ params: { slug } }: { params: { slug: string } }) => {
8689 </ p >
8790 < div className = "flex items-center gap-3 mt-6 mb-4" >
8891 < Link target = "_blank" href = { Extension_URL } >
89- < Button className = "btn-primary flex items-center z-20 justify-center gap-3 rounded-full px-4" >
92+ < Button
93+ className = { `btn-primary flex items-center z-20 justify-center gap-3 rounded-full px-4 ${ DevelopmentToolsStyles . addToChromeButton } ` }
94+ >
9095 { browser === "edge" ? (
9196 < EdgeIcon className = "w-7 h-7" />
9297 ) : (
@@ -169,7 +174,7 @@ const Page = ({ params: { slug } }: { params: { slug: string } }) => {
169174 </ div >
170175 </ section >
171176
172- < div className = " md:pb-[70px] md:pt-[30px] py-[50px]" >
177+ < div className = { ` md:pb-[70px] md:pt-[30px] py-[50px] ${ DevelopmentToolsStyles . contentWrapper } ` } >
173178 { /* Heading section */ }
174179 { hero_section && (
175180 < section >
@@ -209,7 +214,7 @@ const Page = ({ params: { slug } }: { params: { slug: string } }) => {
209214 { /* Tools Panel - 20% width, fixed */ }
210215 { development_tools_list ?. length > 0 && (
211216 < div className = "md:w-1/4 md:sticky left-0 md:top-8 top-2 h-full overflow-y-auto flex flex-col" >
212- < div className = "bg-[#FFFFFF1A] p-4 rounded-xl" >
217+ < div className = { DevelopmentToolsStyles . sidePanel } >
213218 < div className = "flex items-center mb-6" >
214219 < h2 className = "text-xl font-bold text-gray-800" >
215220 Other Tools
@@ -218,7 +223,7 @@ const Page = ({ params: { slug } }: { params: { slug: string } }) => {
218223 { development_tools_list ?. map ( ( tool : any , index : any ) => (
219224 < Link key = { index } href = { tool ?. url } >
220225 < div
221- className = { `p-3 mb-2 cursor-pointer rounded-xl border-[1px] border-transparent hover:border-1 hover:border-primary bg-black text-white hover:text-primary` }
226+ className = { `p-3 mb-2 cursor-pointer rounded-xl border-[1px] border-transparent hover:border-1 hover:border-primary bg-black text-white hover:text-primary ${ DevelopmentToolsStyles . sidePanelItem } ` }
222227 >
223228 { tool ?. tool }
224229 </ div >
@@ -884,12 +889,12 @@ const Page = ({ params: { slug } }: { params: { slug: string } }) => {
884889
885890 { /* cta section */ }
886891 < section >
887- < div className = " bg-[#090B0B] text-white flex flex-col items-center justify-center pl-6 pr-4 mt-10" >
892+ < div className = { ` bg-[#090B0B] text-white flex flex-col items-center justify-center pl-6 pr-4 mt-10 ${ DevelopmentToolsStyles . promoPanel } ` } >
888893 < div className = "w-full flex md:flex-row flex-col md:items-center items-start md:justify-between justify-start gap-8 md:py-4 py-8 md:px-7" >
889894 { /* Left Section */ }
890895 < div className = "text-left flex-1" >
891896 < Image
892- src = "/images/bb-logo.svg"
897+ src = { logoSrc }
893898 alt = "BetterBugs Logo"
894899 className = "mb-8"
895900 width = { 200 }
@@ -910,7 +915,9 @@ const Page = ({ params: { slug } }: { params: { slug: string } }) => {
910915 </ p >
911916 < div className = "flex items-center gap-3 mt-6 mb-4" >
912917 < Link target = "_blank" href = { Extension_URL } >
913- < Button className = "btn-primary flex items-center z-20 justify-center gap-3 rounded-full px-4" >
918+ < Button
919+ className = { `btn-primary flex items-center z-20 justify-center gap-3 rounded-full px-4 ${ DevelopmentToolsStyles . addToChromeButton } ` }
920+ >
914921 { browser === "edge" ? (
915922 < EdgeIcon className = "w-7 h-7" />
916923 ) : (
@@ -933,7 +940,10 @@ const Page = ({ params: { slug } }: { params: { slug: string } }) => {
933940 "https://www.loom.com/share/beb5310bed634e4783d10becd4a291f2?sid=7bcb9a6f-0290-4d5b-9eb0-12ed04e9167e"
934941 }
935942 >
936- < PlayIcon className = "hover:text-primary" />
943+ < PlayIcon
944+ className = { isLightTheme ? "text-[#111827] hover:text-primary" : "hover:text-primary" }
945+ arrowFill = { isLightTheme ? "#ffffff" : "#000000" }
946+ />
937947 </ Link >
938948 </ div >
939949 < p className = "text-sm mt-2 text-white" >
0 commit comments