|
| 1 | +import { Avatar, AvatarImage } from "../ui/avatar"; |
| 2 | +import { Card } from "../ui/card"; |
| 3 | + |
| 4 | +const ChatContent = () => { |
| 5 | + return ( |
| 6 | + <div className="flex-1 p-4 overflow-y-auto flex flex-col gap-2 scrollbar-thin scrollbar-thumb-current"> |
| 7 | + <div className="flex gap-2 items-start"> |
| 8 | + <Avatar className="w-6 h-6"> |
| 9 | + <AvatarImage src="https://img.freepik.com/free-psd/3d-illustration-human-avatar-profile_23-2150671142.jpg?size=338&ext=jpg&ga=GA1.1.1141335507.1717804800&semt=ais_user" /> |
| 10 | + </Avatar> |
| 11 | + <Card className="max-w-[70%] px-2 py-1 bg-secondary flex gap-2 items-end relative"> |
| 12 | + <p className="flex flex-wrap py-1"> Lorem ipsum dolor sit amet. </p> |
| 13 | + <span className="text-xs"> 11:00 </span> |
| 14 | + </Card> |
| 15 | + </div> |
| 16 | + <div className="flex gap-2 items-start justify-end"> |
| 17 | + <Card className="max-w-[70%] px-2 py-1 bg-primary text-foreground flex gap-2 items-end relative"> |
| 18 | + <p className="flex flex-wrap py-1"> Lorem ipsum dolor sit amet. </p> |
| 19 | + <span className="text-xs"> 11:00 </span> |
| 20 | + </Card> |
| 21 | + <Avatar className="w-6 h-6"> |
| 22 | + <AvatarImage src="https://img.freepik.com/free-psd/3d-illustration-human-avatar-profile_23-2150671142.jpg?size=338&ext=jpg&ga=GA1.1.1141335507.1717804800&semt=ais_user" /> |
| 23 | + </Avatar> |
| 24 | + </div> |
| 25 | + <div className="flex gap-2 items-start justify-end"> |
| 26 | + <div className="max-w-[70%] px-2 py-1 text-foreground flex gap-2 items-end relative"> |
| 27 | + <img |
| 28 | + src="https://img.ibxk.com.br/2024/01/17/17113534532068.jpg?ims=328x" |
| 29 | + className="w-full h-[250px] object-cover rounded-lg" |
| 30 | + /> |
| 31 | + </div> |
| 32 | + <Avatar className="w-6 h-6"> |
| 33 | + <AvatarImage src="https://img.freepik.com/free-psd/3d-illustration-human-avatar-profile_23-2150671142.jpg?size=338&ext=jpg&ga=GA1.1.1141335507.1717804800&semt=ais_user" /> |
| 34 | + </Avatar> |
| 35 | + </div> |
| 36 | + <div className="flex gap-2 items-start"> |
| 37 | + <Avatar className="w-6 h-6"> |
| 38 | + <AvatarImage src="https://img.freepik.com/free-psd/3d-illustration-human-avatar-profile_23-2150671142.jpg?size=338&ext=jpg&ga=GA1.1.1141335507.1717804800&semt=ais_user" /> |
| 39 | + </Avatar> |
| 40 | + <Card className="max-w-[70%] px-2 py-1 bg-secondary flex gap-2 items-end relative"> |
| 41 | + <p className="flex flex-wrap py-1"> Lorem ipsum dolor sit amet. </p> |
| 42 | + <span className="text-xs"> 11:00 </span> |
| 43 | + </Card> |
| 44 | + </div> |
| 45 | + <div className="flex gap-2 items-start"> |
| 46 | + <Avatar className="w-6 h-6"> |
| 47 | + <AvatarImage src="https://img.freepik.com/free-psd/3d-illustration-human-avatar-profile_23-2150671142.jpg?size=338&ext=jpg&ga=GA1.1.1141335507.1717804800&semt=ais_user" /> |
| 48 | + </Avatar> |
| 49 | + <Card className="max-w-[70%] px-2 py-1 bg-secondary flex gap-2 items-end relative"> |
| 50 | + <p className="flex flex-wrap py-1"> Lorem ipsum dolor sit amet. </p> |
| 51 | + <span className="text-xs"> 11:00 </span> |
| 52 | + </Card> |
| 53 | + </div> |
| 54 | + <div className="flex gap-2 items-start"> |
| 55 | + <Avatar className="w-6 h-6"> |
| 56 | + <AvatarImage src="https://img.freepik.com/free-psd/3d-illustration-human-avatar-profile_23-2150671142.jpg?size=338&ext=jpg&ga=GA1.1.1141335507.1717804800&semt=ais_user" /> |
| 57 | + </Avatar> |
| 58 | + <div className="max-w-[70%] px-2 py-1 text-foreground flex gap-2 items-end relative"> |
| 59 | + <img |
| 60 | + src="https://img.ibxk.com.br/2024/01/17/17113534532068.jpg?ims=328x" |
| 61 | + className="w-full h-[250px] object-cover rounded-lg" |
| 62 | + /> |
| 63 | + </div> |
| 64 | + </div> |
| 65 | + </div> |
| 66 | + ); |
| 67 | +}; |
| 68 | + |
| 69 | +export default ChatContent; |
0 commit comments