Skip to content

Commit

Permalink
update: grid layout Navbar
Browse files Browse the repository at this point in the history
  • Loading branch information
sanchayan721 committed Aug 27, 2023
1 parent e4d0230 commit e26c5b1
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 21 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
import { Typography, TypographyProps, styled } from '@mui/material';
import React from 'react';

interface TitleProps extends TypographyProps {
children: React.ReactNode;
}
import { TitleProps } from '@interfaces/TypographyProps';
import { Typography, styled } from '@mui/material';

const Title = styled(({ children, ...props }: TitleProps) => {
return (
Expand Down
24 changes: 11 additions & 13 deletions src/components/navigation/NavMenu/Megamenu/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,19 +24,17 @@ const MegamenuSection = styled('section')(({ theme }) => ({

const Megamenu = () => {
return (
<React.Fragment>
<MegamenuSection>
{menuItems.map((item, index) => (
<React.Fragment key={index}>
<NavGropus
title={item.title}
videoUrl={item.videoUrl}
items={item.items}
/>
</React.Fragment>
))}
</MegamenuSection>
</React.Fragment>
<MegamenuSection>
{menuItems.map((item, index) => (
<React.Fragment key={index}>
<NavGropus
title={item.title}
videoUrl={item.videoUrl}
items={item.items}
/>
</React.Fragment>
))}
</MegamenuSection>
)
};

Expand Down
1 change: 1 addition & 0 deletions src/components/navigation/NavMenu/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ const NavigationContent = styled(Box)(({ theme }) => ({
gridTemplateRows: 'repeat(24, 1fr)',
alignItems: 'center',
alignContent: 'center',
justifyContent: 'center',
}));

const NavMenu = () => {
Expand Down
3 changes: 3 additions & 0 deletions src/interfaces/TypographyProps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ export interface TypographyProps extends TypographyPropsMui {
variant?: TypographyVariant;
};

export interface TitleProps extends TypographyProps {
};

export interface ContactTitleprops extends TypographyProps {
};

Expand Down
6 changes: 3 additions & 3 deletions src/theme/Heights/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ export interface Heights {

export const heights: Heights = {
header: {
expanded: '6rem',
default: '4rem',
contracted: '3.5rem',
expanded: '5.25rem',
default: '4.25rem',
contracted: '3.25rem',
},
navbar: {
hamburger: '1.5rem',
Expand Down

0 comments on commit e26c5b1

Please sign in to comment.