mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-05 06:28:51 +00:00
new listing style
This commit is contained in:
1 parent
dc8074fb21
commit
1addd5cead
1 file changed
+33
-33
@@ -13,32 +13,44 @@ const useStyles = makeStyles((theme) => ({
|
|||||||
flexFlow: "row nowrap",
|
flexFlow: "row nowrap",
|
||||||
alignItems: "flex-start",
|
alignItems: "flex-start",
|
||||||
width: "100%",
|
width: "100%",
|
||||||
marginTop: "3px",
|
marginTop: "5px",
|
||||||
},
|
},
|
||||||
content: {
|
content: {
|
||||||
display: "flex",
|
display: "flex",
|
||||||
marginTop: "-10px",
|
marginTop: "-5px",
|
||||||
flexFlow: "column nowrap",
|
flexFlow: "column nowrap",
|
||||||
width: "100%",
|
width: "100%",
|
||||||
},
|
},
|
||||||
paper: {
|
paper: {
|
||||||
|
borderRadius: 15,
|
||||||
overflow: "auto",
|
overflow: "auto",
|
||||||
display: "flex",
|
display: "flex",
|
||||||
flexFlow: "column",
|
color: '#292929',
|
||||||
alignItems: "flex",
|
justifyContent: 'space-between',
|
||||||
height: "auto",
|
height: "auto",
|
||||||
background: "#232323",
|
background: "#fff",
|
||||||
marginBottom: 20,
|
marginBottom: 20,
|
||||||
|
boxShadow: '0px 0px 5px 0px rgba(0,0,0,0.75)'
|
||||||
},
|
},
|
||||||
header: {
|
header: {
|
||||||
margin: 10,
|
|
||||||
},
|
|
||||||
headerTypo: {
|
|
||||||
margin: 5,
|
margin: 5,
|
||||||
},
|
},
|
||||||
desc: {
|
headerTypo: {
|
||||||
padding: 10,
|
margin: 3,
|
||||||
},
|
},
|
||||||
|
desc: {
|
||||||
|
padding: 3,
|
||||||
|
fontSize: 16,
|
||||||
|
color: '#838383',
|
||||||
|
paddingTop: '5px',
|
||||||
|
paddingLeft: '10px',
|
||||||
|
},
|
||||||
|
imageSection: {
|
||||||
|
float: 'right',
|
||||||
|
},
|
||||||
|
listingImage: {
|
||||||
|
|
||||||
|
}
|
||||||
}));
|
}));
|
||||||
|
|
||||||
export const SelloutItem = (listing) => {
|
export const SelloutItem = (listing) => {
|
||||||
@@ -48,34 +60,22 @@ export const SelloutItem = (listing) => {
|
|||||||
<div className={classes.content}>
|
<div className={classes.content}>
|
||||||
<Paper elevation={2} className={classes.paper}>
|
<Paper elevation={2} className={classes.paper}>
|
||||||
<div className={classes.header}>
|
<div className={classes.header}>
|
||||||
<Typography className={classes.headerTypo} variant="h5">
|
<Typography variant="h5" style={{ padding: '5px 0px 0px 10px', }}>
|
||||||
{listing.name}
|
|
||||||
</Typography>
|
|
||||||
<Typography
|
|
||||||
className={classes.headerTypo}
|
|
||||||
style={{ borderBottom: "1px solid #f44336" }}
|
|
||||||
>
|
|
||||||
{listing.number}
|
|
||||||
</Typography>
|
|
||||||
<Typography variant="h5" style={{ padding: 5}}>
|
|
||||||
{listing.title}
|
{listing.title}
|
||||||
</Typography>
|
</Typography>
|
||||||
</div>
|
|
||||||
{listing.url ? (
|
|
||||||
<ImageDisplay imgURL={listing.url} />
|
|
||||||
): (
|
|
||||||
<Typography style={{ margin: 10 }}>No image provided🙁</Typography>
|
|
||||||
) }
|
|
||||||
<Typography variant="h6" className={classes.desc}>
|
<Typography variant="h6" className={classes.desc}>
|
||||||
{listing.description}
|
{listing.description}
|
||||||
</Typography>
|
</Typography>
|
||||||
<div>
|
</div>
|
||||||
<Button>
|
<div className={classes.imageSection}>
|
||||||
<ChatIcon style={{ color: "#f44336" }} />
|
<div className={classes.listingImage} style={{
|
||||||
</Button>
|
backgroundImage: `url(${listing.url})`,
|
||||||
<Button>
|
backgroundPosition: 'center',
|
||||||
<PhoneIcon style={{ color: "#f44336" }} />
|
backgroundSize: 'cover',
|
||||||
</Button>
|
backgroundRepeat: 'no-repeat',
|
||||||
|
width: '150px',
|
||||||
|
height: '150px'
|
||||||
|
}} />
|
||||||
</div>
|
</div>
|
||||||
</Paper>
|
</Paper>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in new issue
Block a user