-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
create profile page with components and style #55
- Loading branch information
mohammedsalah7
committed
Nov 2, 2021
1 parent
1b876bf
commit 6688ceb
Showing
12 changed files
with
614 additions
and
4 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -10,7 +10,7 @@ package-lock.json | |
|
||
# production | ||
/build | ||
|
||
.env | ||
# misc | ||
.DS_Store | ||
.env.local | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,108 @@ | ||
/* eslint-disable import/no-extraneous-dependencies */ | ||
import { | ||
Container, | ||
} from '@mui/material'; | ||
import Card from '@mui/material/Card'; | ||
// import CardActions from '@mui/material/CardActions'; | ||
import CardContent from '@mui/material/CardContent'; | ||
import DeleteIcon from '@mui/icons-material/Delete'; | ||
import Button from '@mui/material/Button'; | ||
import Typography from '@mui/material/Typography'; | ||
import House from '../../../asstes/house.jpeg'; | ||
import './style.css'; | ||
|
||
const AgenteEstate = () => ( | ||
<Container | ||
maxWidth="xl" | ||
sx={{ | ||
width: '100%', | ||
height: 300, | ||
mb: 15, | ||
|
||
}} | ||
> | ||
|
||
<Card sx={{ | ||
width: 500, | ||
height: 200, | ||
border: 'none', | ||
marginTop: 2, | ||
display: 'flex', | ||
color: '#000', | ||
|
||
}} | ||
> | ||
<CardContent sx={{ | ||
display: 'flex', width: '100%', | ||
|
||
}} | ||
> | ||
<img src={House} alt="publish house" className="img-house" /> | ||
|
||
<CardContent sx={{ | ||
display: 'flex', flexDirection: 'column', width: '100%', | ||
}} | ||
> | ||
|
||
<Typography sx={{ mt: -2, fontSize: 18 }}> | ||
Rhoncus sed vestibulum | ||
{' '} | ||
|
||
</Typography> | ||
<Typography | ||
component="div" | ||
sx={{ | ||
mb: 1, | ||
display: 'flex', | ||
flexDirection: 'row', | ||
fontSize: 15, | ||
color: '#5e5e5e', | ||
}} | ||
> | ||
massa volutpat convallis morbi odio odio elementum eu interdum eu tincidunt in | ||
</Typography> | ||
<Typography sx={{ mb: 1, display: 'flex', flexDirection: 'row' }}> | ||
|
||
House | ||
{' '} | ||
|
||
</Typography> | ||
<Typography sx={{ mb: 1, display: 'flex', flexDirection: 'row' }}> | ||
|
||
Buy | ||
{' '} | ||
|
||
</Typography> | ||
|
||
</CardContent> | ||
</CardContent> | ||
<Typography sx={{ mb: 1, display: 'flex', flexDirection: 'row' }}> | ||
<Button | ||
variant="outlined" | ||
sx={{ | ||
mt: 20, | ||
mr: 1, | ||
minWidth: 0, | ||
padding: 0, | ||
border: 'none', | ||
'&:hover': { border: 'none' }, | ||
|
||
}} | ||
> | ||
<DeleteIcon sx={{ | ||
color: 'red', | ||
'&:hover': { | ||
border: '1px solid red', | ||
borderRadius: 1, | ||
}, | ||
}} | ||
/> | ||
</Button> | ||
</Typography> | ||
|
||
</Card> | ||
|
||
</Container> | ||
); | ||
|
||
export default AgenteEstate; |
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,4 @@ | ||
.img-house{ | ||
width: 150px; | ||
height: 150px; | ||
} |
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,149 @@ | ||
/* eslint-disable import/no-extraneous-dependencies */ | ||
import { | ||
Container, | ||
} from '@mui/material'; | ||
import Card from '@mui/material/Card'; | ||
// import CardActions from '@mui/material/CardActions'; | ||
import CardContent from '@mui/material/CardContent'; | ||
import Button from '@mui/material/Button'; | ||
import Typography from '@mui/material/Typography'; | ||
import List from '@mui/material/List'; | ||
import ListItem from '@mui/material/ListItem'; | ||
import Divider from '@mui/material/Divider'; | ||
import ListItemText from '@mui/material/ListItemText'; | ||
import ListItemAvatar from '@mui/material/ListItemAvatar'; | ||
import Avatar from '@mui/material/Avatar'; | ||
import House from '../../../asstes/house.jpeg'; | ||
|
||
const AgenteFavariot = () => ( | ||
<Container | ||
maxWidth="xl" | ||
sx={{ | ||
width: '45%', | ||
mb: 15, | ||
|
||
}} | ||
> | ||
|
||
<Card sx={{ | ||
width: 400, | ||
marginLeft: 20, | ||
marginTop: 2, | ||
display: 'flex', | ||
color: '#000', | ||
|
||
}} | ||
> | ||
<CardContent sx={{ | ||
display: 'flex', width: '100%', | ||
|
||
}} | ||
> | ||
|
||
<CardContent sx={{ | ||
display: 'flex', flexDirection: 'column', width: '100%', | ||
}} | ||
> | ||
|
||
<Typography sx={{ mb: 1.5, fontSize: 18 }}> | ||
Favatiot Estate | ||
{' '} | ||
</Typography> | ||
|
||
<List sx={{ width: '100%', maxWidth: 360, bgcolor: 'background.paper' }}> | ||
<ListItem alignItems="flex-start"> | ||
<ListItemAvatar> | ||
<Avatar alt="Travis Howard" src={House} /> | ||
</ListItemAvatar> | ||
<ListItemText | ||
primary="Rhoncus sed vestibulum" | ||
secondary={( | ||
<> | ||
<Typography | ||
sx={{ | ||
display: 'inline', | ||
fontSize: 15, | ||
color: '#5e5e5e', | ||
}} | ||
component="span" | ||
variant="body2" | ||
color="text.primary" | ||
> | ||
massa volutpat convallis morbi odio odio elementum eu interdum eu tincidunt in | ||
|
||
</Typography> | ||
|
||
</> | ||
)} | ||
/> | ||
<Typography> | ||
<Button | ||
variant="outlined" | ||
sx={{ | ||
ml: 2, | ||
mt: 2, | ||
minWidth: 0, | ||
padding: 0, | ||
border: 'none', | ||
color: 'red', | ||
'&:hover': { border: 'none' }, | ||
|
||
}} | ||
> | ||
X | ||
</Button> | ||
</Typography> | ||
</ListItem> | ||
<Divider variant="inset" component="li" /> | ||
<ListItem alignItems="flex-start"> | ||
<ListItemAvatar> | ||
<Avatar alt="Travis Howard" src={House} /> | ||
</ListItemAvatar> | ||
<ListItemText | ||
primary="Rhoncus sed vestibulum" | ||
secondary={( | ||
<> | ||
<Typography | ||
sx={{ | ||
display: 'inline', | ||
fontSize: 15, | ||
color: '#5e5e5e', | ||
}} | ||
component="span" | ||
variant="body2" | ||
color="text.primary" | ||
> | ||
massa volutpat convallis morbi odio odio elementum eu interdum eu tincidunt in | ||
</Typography> | ||
</> | ||
)} | ||
/> | ||
<Typography> | ||
<Button | ||
variant="outlined" | ||
sx={{ | ||
ml: 2, | ||
mt: 2, | ||
minWidth: 0, | ||
padding: 0, | ||
color: 'red', | ||
border: 'none', | ||
'&:hover': { border: 'none' }, | ||
|
||
}} | ||
> | ||
X | ||
</Button> | ||
</Typography> | ||
</ListItem> | ||
</List> | ||
|
||
</CardContent> | ||
</CardContent> | ||
|
||
</Card> | ||
|
||
</Container> | ||
); | ||
|
||
export default AgenteFavariot; |
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,101 @@ | ||
/* eslint-disable import/no-extraneous-dependencies */ | ||
import { | ||
Container, Avatar, | ||
} from '@mui/material'; | ||
import Card from '@mui/material/Card'; | ||
import PhoneAndroidIcon from '@mui/icons-material/PhoneAndroid'; | ||
import RoomIcon from '@mui/icons-material/Room'; | ||
import CardContent from '@mui/material/CardContent'; | ||
import EditIcon from '@mui/icons-material/Edit'; | ||
import EmailIcon from '@mui/icons-material/Email'; | ||
import Button from '@mui/material/Button'; | ||
import Typography from '@mui/material/Typography'; | ||
|
||
import PresonImg from '../../../asstes/avatar.png'; | ||
|
||
const AgentInfo = () => ( | ||
<Container | ||
maxWidth="xl" | ||
sx={{ | ||
width: '100%', | ||
height: 300, | ||
backgroundColor: '#404d77', | ||
padding: 5, | ||
|
||
}} | ||
> | ||
|
||
<Card sx={{ | ||
width: 500, | ||
height: 200, | ||
border: 'none', | ||
marginLeft: 15, | ||
display: 'flex', | ||
backgroundColor: 'transparent', | ||
boxShadow: 'none', | ||
color: '#fff', | ||
|
||
}} | ||
> | ||
<CardContent sx={{ | ||
display: 'flex', width: '100%', | ||
|
||
}} | ||
> | ||
<Avatar | ||
src={PresonImg} | ||
sx={{ | ||
width: 100, | ||
height: 100, | ||
margin: 1, | ||
}} | ||
|
||
/> | ||
<CardContent sx={{ | ||
display: 'flex', flexDirection: 'column', width: '100%', | ||
}} | ||
> | ||
|
||
<Typography sx={{ mb: 1.5, fontSize: 18 }}> | ||
Mohammed M. Salah | ||
</Typography> | ||
<Typography component="div" sx={{ mb: 1.5, display: 'flex', flexDirection: 'row' }}> | ||
<PhoneAndroidIcon /> | ||
{' '} | ||
0597777777 | ||
</Typography> | ||
<Typography sx={{ mb: 1.5, display: 'flex', flexDirection: 'row' }}> | ||
|
||
<RoomIcon /> | ||
Palestine, Gaza | ||
</Typography> | ||
<Typography sx={{ mb: 1.5, display: 'flex', flexDirection: 'row' }}> | ||
|
||
<EmailIcon /> | ||
[email protected] | ||
</Typography> | ||
|
||
</CardContent> | ||
</CardContent> | ||
<Typography sx={{ mb: 1.5, display: 'flex', flexDirection: 'row' }}> | ||
|
||
<Button | ||
variant="contained" | ||
endIcon={<EditIcon />} | ||
sx={{ | ||
width: 80, | ||
height: 30, | ||
mt: 20, | ||
mr: 1, | ||
}} | ||
> | ||
Edit | ||
</Button> | ||
</Typography> | ||
|
||
</Card> | ||
|
||
</Container> | ||
); | ||
|
||
export default AgentInfo; |
Oops, something went wrong.