import * as React from 'react'; import { PaletteMode } from '@mui/material'; import Box from '@mui/material/Box'; import AppBar from '@mui/material/AppBar'; import Toolbar from '@mui/material/Toolbar'; import Button from '@mui/material/Button'; import Container from '@mui/material/Container'; import Divider from '@mui/material/Divider'; import Typography from '@mui/material/Typography'; import MenuItem from '@mui/material/MenuItem'; import Drawer from '@mui/material/Drawer'; import MenuIcon from '@mui/icons-material/Menu'; import { Logout, OpenInNew } from '@mui/icons-material'; const logoStyle = { width: '140px', height: 'auto', cursor: 'pointer', }; interface AppAppBarProps { user: any; } function AppAppBar({ user }: AppAppBarProps) { const [open, setOpen] = React.useState(false); const toggleDrawer = (newOpen: boolean) => () => { setOpen(newOpen); }; const scrollToSection = (sectionId: string) => { const sectionElement = document.getElementById(sectionId); const offset = 128; if (sectionElement) { const targetScroll = sectionElement.offsetTop - offset; sectionElement.scrollIntoView({ behavior: 'smooth' }); window.scrollTo({ top: targetScroll, behavior: 'smooth', }); setOpen(false); } }; return (
({ display: 'flex', alignItems: 'center', justifyContent: 'space-between', flexShrink: 0, borderRadius: '10px', bgcolor: theme.palette.mode === 'light' ? 'rgba(255, 255, 255, 0.6)' : 'rgba(0, 0, 0, 0.4)', backdropFilter: 'blur(24px)', maxHeight: 40, border: '1px solid', borderColor: 'divider', boxShadow: theme.palette.mode === 'light' ? `0 0 1px rgba(85, 166, 246, 0.1), 1px 1.5px 2px -1px rgba(85, 166, 246, 0.15), 4px 4px 12px -2.5px rgba(85, 166, 246, 0.15)` : '0 0 1px rgba(2, 31, 59, 0.7), 1px 1.5px 2px -1px rgba(2, 31, 59, 0.65), 4px 4px 12px -2.5px rgba(2, 31, 59, 0.65)', })} > REQUEST.BOX scrollToSection('home')} sx={{ py: '6px', px: '12px' }} > Home scrollToSection('features')} sx={{ py: '6px', px: '12px' }} > Features scrollToSection('beta-access')} sx={{ py: '6px', px: '12px' }} > Beta Testing scrollToSection('faq')} sx={{ py: '6px', px: '12px' }} > FAQ {(user ? ( <> ) : ( ) )} scrollToSection('features')}> Features scrollToSection('testimonials')}> Testimonials scrollToSection('highlights')}> Highlights scrollToSection('pricing')}> Pricing scrollToSection('faq')}>FAQ
); } export default AppAppBar;