-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
task #2787:- youthNet UI implementation
- Loading branch information
1 parent
93ecdd4
commit 54e48f3
Showing
4 changed files
with
94 additions
and
25 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
import React from 'react'; | ||
import { Box, Typography } from '@mui/material'; | ||
import { VillageDetailProps } from '@/utils/Interfaces'; | ||
import { useTheme } from '@mui/material/styles'; | ||
import Image from 'next/image'; | ||
import mp from './../../assets/images/mp.png' | ||
import GetAppIcon from '@mui/icons-material/GetApp'; | ||
|
||
|
||
|
||
|
||
const UploadedFile: React.FC<VillageDetailProps> = ({ | ||
title, | ||
}) => { | ||
const theme = useTheme<any>(); | ||
return ( | ||
<Box | ||
sx={{ | ||
border: `1px solid ${theme.palette.warning['A100']}`, | ||
bgcolor: theme.palette.warning['800'], | ||
padding: '12px', | ||
margin: '100px', | ||
borderRadius: '8px', | ||
}} | ||
> | ||
<Box display="flex" justifyContent="space-between" alignItems="center"> | ||
<Box display="flex" gap="8px"> | ||
|
||
<Box> | ||
<Image | ||
src={mp} | ||
alt="Login Image" | ||
/> | ||
</Box> | ||
|
||
{title && ( | ||
<Typography | ||
variant="subtitle1" | ||
sx={{ | ||
fontWeight: 500, | ||
lineHeight: '24px', | ||
fontSize:'14px', | ||
color: 'black', | ||
}} | ||
className="one-line-text" | ||
> | ||
{title} | ||
</Typography> | ||
)} | ||
|
||
</Box> | ||
|
||
<GetAppIcon | ||
sx={{ | ||
fontSize: '20px', | ||
color: theme.palette.warning['300'] | ||
}} | ||
/> | ||
</Box> | ||
</Box> | ||
); | ||
}; | ||
|
||
export default UploadedFile; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters