mirror of
https://gh.wpcy.net/https://github.com/elementor/one-click-accessibility.git
synced 2026-04-23 18:27:48 +08:00
58 lines
1.4 KiB
JavaScript
58 lines
1.4 KiB
JavaScript
import Box from '@elementor/ui/Box';
|
|
import { styled } from '@elementor/ui/styles';
|
|
import { BottomBar } from '@ea11y/components';
|
|
import SkipToContentSettings from '@ea11y/components/skip-to-content-settings';
|
|
import { MenuSettings, WidgetPreview } from '@ea11y/layouts';
|
|
import {
|
|
StyledBox,
|
|
StyledWideBox,
|
|
StyledTitle,
|
|
} from '@ea11y/pages/pages.styles';
|
|
import { mixpanelEvents, mixpanelService } from '@ea11y-apps/global/services';
|
|
import { useEffect } from '@wordpress/element';
|
|
import { __ } from '@wordpress/i18n';
|
|
|
|
const Menu = () => {
|
|
useEffect(() => {
|
|
mixpanelService.sendEvent(mixpanelEvents.pageView, {
|
|
page: 'Capabilities',
|
|
});
|
|
}, []);
|
|
|
|
return (
|
|
<StyledBox>
|
|
<StyledWideBox>
|
|
<StyledTitle
|
|
variant="h4"
|
|
color="text.primary"
|
|
sx={{ width: '50%', marginLeft: 'auto', marginRight: 'auto' }}
|
|
>
|
|
{__('Capabilities', 'pojo-accessibility')}
|
|
</StyledTitle>
|
|
|
|
<StyledSettingsWrapper>
|
|
<MenuSettings />
|
|
<WidgetPreview />
|
|
</StyledSettingsWrapper>
|
|
|
|
<SkipToContentSettings />
|
|
</StyledWideBox>
|
|
<BottomBar />
|
|
</StyledBox>
|
|
);
|
|
};
|
|
|
|
export default Menu;
|
|
|
|
const StyledSettingsWrapper = styled(Box)`
|
|
display: grid;
|
|
grid-template-columns: repeat(2, 1fr);
|
|
gap: ${({ theme }) => theme.spacing(4)};
|
|
width: 50%;
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
|
|
${({ theme }) => theme.breakpoints.down('xl')} {
|
|
width: 100%;
|
|
}
|
|
`;
|