Skip to content

Commit

Permalink
feat: initialize promotions-center page
Browse files Browse the repository at this point in the history
  • Loading branch information
pooriaset committed May 4, 2024
1 parent 20f086b commit 4cb2f17
Show file tree
Hide file tree
Showing 4 changed files with 57 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/app/[locale]/(main)/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export default async function Home() {

return (
<main>
<Container maxWidth="xl">
<Container maxWidth="xl" sx={{ mt: 2 }}>
<Grid container spacing={2}>
<Grid item xs={12}>
<HomePageSlider items={sliders} />
Expand Down
34 changes: 34 additions & 0 deletions src/app/[locale]/(main)/promotion-center/components/Header.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
'use client';

import { Box, Typography } from '@mui/material';
import { useTranslations } from 'next-intl';
import React from 'react';

const Header = () => {
const t = useTranslations();
return (
<Box
sx={{
background: 'linear-gradient(45deg,#b500d0,#ff3a49)',
textAlign: 'center',
minHeight: 150,
display: 'flex',
justifyContent: 'center',
}}
>
<Typography
component="h1"
sx={{
color: '#fff',
fontWeight: 600,
fontSize: '1.75rem',
pt: 5,
}}
>
{t('header.navigation.promotions')}
</Typography>
</Box>
);
};

export default Header;
22 changes: 22 additions & 0 deletions src/app/[locale]/(main)/promotion-center/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import { Card, CardContent, Container } from '@mui/material';
import Header from './components/Header';

const page = () => {
return (
<>
<Header />
<Container
maxWidth="xl"
sx={{
mt: -4,
}}
>
<Card variant="outlined">
<CardContent></CardContent>
</Card>
</Container>
</>
);
};

export default page;
1 change: 0 additions & 1 deletion src/components/Header/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ const Header = () => {
top: 0,
zIndex: 10,
backgroundColor: '#ffffff',
mb: 2,
}}
>
<Container maxWidth="xl">
Expand Down

0 comments on commit 4cb2f17

Please sign in to comment.