MehulBatra commented on code in PR #2002:
URL: https://github.com/apache/fluss/pull/2002#discussion_r2549861462
##########
website/src/pages/index.tsx:
##########
@@ -70,16 +72,81 @@ function HomepageHeader() {
export default function Home(): JSX.Element {
const {siteConfig} = useDocusaurusContext();
+
+ // Add class to body for homepage-specific navbar styling using
useLayoutEffect for immediate execution
+ useLayoutEffect(() => {
+ if (ExecutionEnvironment.canUseDOM) {
+ document.body.classList.add('homepage');
+ }
+ return () => {
+ if (ExecutionEnvironment.canUseDOM) {
+ document.body.classList.remove('homepage');
+ }
+ };
Review Comment:
removed, inline style is taking care of homepage navbar.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]