Skip to content

Commit

Permalink
fix after review
Browse files Browse the repository at this point in the history
  • Loading branch information
Matushl committed May 19, 2024
1 parent 36579a8 commit 28be946
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion src/components/PageLayout/Footer/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export const Footer: FC = () => {
color: 'white',
}}
>
<Grid xs={3} sx={{display: {xs: 'none', md: 'block'}}} />
<Grid xs={0} md={3} sx={{display: {xs: 'none', md: 'block'}}} />
<Grid xs={12} md={6}>
<Stack direction="row" m={2} gap={2} justifyContent="center" sx={{flexWrap: 'wrap'}}>
{menuItemsIsLoading && <Loading />}
Expand Down
8 changes: 4 additions & 4 deletions src/components/PageLayout/PageLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,13 @@ export const PageLayout: FC<PageLayoutProps> = ({contentWidth = 2, title = '', c
</Head>
<PageTitleContainer.Provider initialState={title}>
<BannerContainer.Provider>
<Stack sx={{minHeight: '100vh', position: 'relative'}}>
<Stack sx={{minHeight: '100dvh'}}>
<TopGrid />
<Grid container sx={{height: '100%', flex: 1}} columns={{xs: 6, md: 12}}>
<Grid md={3} sx={{position: 'relative', display: {xs: 'none', md: 'block'}}}>
<Grid container sx={{flex: 1}}>
<Grid xs={0} md={3} sx={{position: 'relative', display: {xs: 'none', md: 'block'}}}>
<StromLogo />
</Grid>
<Grid xs={6} md={contentWidth * 3} sx={{pb: 2, px: 1}}>
<Grid xs={12} md={contentWidth * 3} sx={{pb: 2, px: 1}}>
{children}
</Grid>
</Grid>
Expand Down
12 changes: 6 additions & 6 deletions src/components/PageLayout/TopGrid/TopGrid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@ export const TopGrid: FC = () => {

return (
<Stack sx={{position: 'sticky', top: 0, width: '100%', backgroundColor: 'white', zIndex: 3}}>
<Grid container disableEqualOverflow spacing={1} p={3} columns={{xs: 6, md: 12}}>
<Grid container disableEqualOverflow spacing={1} p={3}>
{/* first row */}
<Grid xs={6} md={3}>
<Grid xs={12} md={3}>
<Stack sx={{alignItems: {xs: 'end', md: 'start'}}}>
<MenuMain />
</Stack>
</Grid>
<Grid md={6} sx={{display: {xs: 'none', md: 'block'}}} />
<Grid md={3} sx={{display: {xs: 'none', md: 'block'}}}>
<Grid xs={0} md={6} sx={{display: {xs: 'none', md: 'block'}}} />
<Grid xs={0} md={3} sx={{display: {xs: 'none', md: 'block'}}}>
<Stack sx={{flexDirection: 'row', spacing: 2, justifyContent: 'flex-end'}}>
<Link
href="/malynar"
Expand All @@ -66,8 +66,8 @@ export const TopGrid: FC = () => {
</Grid>

{/* second row */}
<Grid md={3} sx={{display: {xs: 'none', md: 'block'}}} />
<Grid xs={6} md={6}>
<Grid xs={0} md={3} sx={{display: {xs: 'none', md: 'block'}}} />
<Grid xs={12} md={6}>
<Typography variant="h1">{pageTitle}</Typography>
</Grid>
{semesterPickerPage && (
Expand Down
8 changes: 4 additions & 4 deletions src/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ export const font = Poppins({
const _theme = createTheme({
breakpoints: {
values: {
xs: 0, // defualt
sm: 640, // defualt = 640
md: 900, // defualt = 900
xs: 0, // default
sm: 640, // default = 640
md: 900, // default = 900
lg: 1366, // changed to HD, default = 1200
xl: 1921, // changed to fullHD, default = 1536
},
Expand Down Expand Up @@ -188,7 +188,7 @@ const pxToRem = _theme.typography.pxToRem
const sm = _theme.breakpoints.up('sm') // 640px
const md = _theme.breakpoints.up('md') // 900px
const lg = _theme.breakpoints.up('lg') // 1366px
const xl = _theme.breakpoints.up('xl') // 1920px
const xl = _theme.breakpoints.up('xl') // 1921px

// manual font sizes
export const theme: Theme = {
Expand Down

0 comments on commit 28be946

Please sign in to comment.