-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixed major bugs with posts component
- Loading branch information
1 parent
6da952d
commit 6b31d62
Showing
15 changed files
with
129 additions
and
123 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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
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 |
---|---|---|
@@ -1,52 +1,55 @@ | ||
import { makeStyles } from "@material-ui/core/styles"; | ||
import { makeStyles } from '@material-ui/core/styles'; | ||
|
||
export default makeStyles({ | ||
media: { | ||
height: 0, | ||
paddingTop: "56.25%", | ||
backgroundColor: "rgba(0, 0, 0, 0.5)", | ||
backgroundBlendMode: "darken", | ||
paddingTop: '56.25%', | ||
backgroundColor: 'rgba(0, 0, 0, 0.5)', | ||
backgroundBlendMode: 'darken', | ||
}, | ||
border: { | ||
border: "solid", | ||
border: 'solid', | ||
}, | ||
fullHeightCard: { | ||
height: "100%", | ||
height: '100%', | ||
}, | ||
card: { | ||
display: "flex", | ||
flexDirection: "column", | ||
justifyContent: "space-between", | ||
borderRadius: "15px", | ||
height: "100%", | ||
position: "relative", | ||
display: 'flex', | ||
flexDirection: 'column', | ||
justifyContent: 'space-between', | ||
borderRadius: '15px', | ||
height: '100%', | ||
position: 'relative', | ||
}, | ||
overlay: { | ||
position: "absolute", | ||
top: "20px", | ||
left: "20px", | ||
color: "white", | ||
position: 'absolute', | ||
top: '20px', | ||
left: '20px', | ||
color: 'white', | ||
}, | ||
overlay2: { | ||
position: "absolute", | ||
top: "20px", | ||
right: "20px", | ||
color: "white", | ||
position: 'absolute', | ||
top: '20px', | ||
right: '20px', | ||
color: 'white', | ||
}, | ||
grid: { | ||
display: "flex", | ||
display: 'flex', | ||
}, | ||
details: { | ||
display: "flex", | ||
justifyContent: "space-between", | ||
margin: "20px", | ||
display: 'flex', | ||
justifyContent: 'space-between', | ||
margin: '20px', | ||
}, | ||
title: { | ||
padding: "0 16px", | ||
padding: '0 16px', | ||
}, | ||
cardActions: { | ||
padding: "0 16px 8px 16px", | ||
display: "flex", | ||
justifyContent: "space-between", | ||
padding: '0 16px 8px 16px', | ||
display: 'flex', | ||
justifyContent: 'space-between', | ||
}, | ||
iconMargin: { | ||
marginRight: '10px', | ||
}, | ||
}); |
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,24 @@ | ||
import React, { useState } from 'react'; | ||
import { nanoid } from 'nanoid'; | ||
|
||
import Skeleton from '@material-ui/lab/Skeleton'; | ||
import { Grid } from '@material-ui/core'; | ||
import makeStyles from '../styles'; | ||
|
||
const PostSkeleton = () => { | ||
const classes = makeStyles(); | ||
const [id] = useState(nanoid); | ||
|
||
return ( | ||
<Grid key={id} className={classes.container} container alignItems="stretch" spacing={3}> | ||
{[1, 2, 3, 4].map((index) => ( | ||
<Grid key={`${id}_${index}`} item xs={12} sm={6} md={6}> | ||
<Skeleton variant="rect" width={300} height={300} /> | ||
<Skeleton variant="text" width={200} /> | ||
<Skeleton variant="text" width={250} /> | ||
</Grid> | ||
))} | ||
</Grid> | ||
); | ||
}; | ||
export default PostSkeleton; |
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.