added PostViewer component

This commit is contained in:
SrGooglo 2023-02-24 14:33:58 +00:00
parent 6af3b17b7f
commit 09fa45c6f2
2 changed files with 34 additions and 0 deletions

View File

@ -0,0 +1,14 @@
import React from "react"
import { PostCard, CommentsCard } from "components"
import "./index.less"
export default (props) => {
const { post } = props
return <div className="post_viewer">
<PostCard
data={post}
/>
</div>
}

View File

@ -0,0 +1,20 @@
.post_viewer {
position: absolute;
z-index: 50;
top: 0;
left: 0;
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
width: 100vw;
height: 100vh;
background-color: rgba(var(--layoutBackgroundColor), 0.6);
backdrop-filter: blur(10px);
}