-
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.
- Loading branch information
Showing
3 changed files
with
177 additions
and
15 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
35 changes: 35 additions & 0 deletions
35
Client/reasn-client/packages/ui/src/components/shared/Comment.tsx
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,35 @@ | ||
import React from "react"; | ||
import { CommentDto, CommentDtoMapper } from "@reasn/common/models/CommentDto"; | ||
|
||
interface CommentProps { | ||
comment: CommentDto; | ||
} | ||
|
||
export const Comment = () => { | ||
const comment = CommentDtoMapper.fromObject({ | ||
EventId: 1, | ||
Content: | ||
"Lorem ipsum dolor, sit amet consectetur adipisicing elit. Soluta quidem sapiente odit maxime. Officiis, error laborum. Voluptatem quibusdam mollitia possimus?", | ||
CreatedAt: new Date(), | ||
UserId: 1, | ||
}); | ||
|
||
return ( | ||
<div className="flex flex-col gap-4 rounded-md bg-[#4b4e526d] p-2"> | ||
<p className="font-thin">{comment.Content}</p> | ||
<div className="flex items-center gap-2"> | ||
<div className="relative rounded-full bg-gradient-to-r from-[#32346A] to-[#4E4F75] p-[2px]"> | ||
<img | ||
src="https://avatars.githubusercontent.com/u/63869461?v=4" | ||
alt="avatar" | ||
className="relative z-10 h-6 w-6 rounded-full" | ||
/> | ||
</div> | ||
<p>username</p> | ||
<p className="ml-auto text-xs font-thin text-[#ccc]"> | ||
13 czerwca 2024r. 12:25 | ||
</p> | ||
</div> | ||
</div> | ||
); | ||
}; |
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