mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-11 03:24:16 +00:00
added PostViewer
component
This commit is contained in:
parent
6af3b17b7f
commit
09fa45c6f2
14
packages/app/src/components/PostViewer/index.jsx
Normal file
14
packages/app/src/components/PostViewer/index.jsx
Normal 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>
|
||||||
|
}
|
20
packages/app/src/components/PostViewer/index.less
Normal file
20
packages/app/src/components/PostViewer/index.less
Normal 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);
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user