To fill the entire page with white or another background color, you need an outer div with the height set to 100vh and the width set to 100vw. 100vh sets the height to 100% of the web browser screen viewport height, and 100vw sets the height to 100% of the viewport width.
return ( <div style={{height: "100vh", width: "100vw", maxWidth: "100%", background: "white"}}> <motion.nav className="flex items-center justify-between flex-wrap px-6 lg:px-12 ... </motion.nav> </div>
Setting maxWidth to 100% is to prevent the scroll bar from being displayed when the body tag has padding or other external components take up space.
The above makes the motion.nav component occupy the entire page. You may want to move the entire page div up to use the JSX of the component.
Hope this helps.