Skip to content

Commit

Permalink
feat: update <TweetCard> styles
Browse files Browse the repository at this point in the history
  • Loading branch information
AmirHosseinKarimi committed Jan 22, 2024
1 parent c99a204 commit 6487b2c
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 21 deletions.
40 changes: 19 additions & 21 deletions src/app/components/Tweets/TweetCard.tsx
Original file line number Diff line number Diff line change
@@ -1,42 +1,40 @@
import { RiTwitterXFill } from 'react-icons/ri';
import { Avatar, AvatarFallback, AvatarImage } from '@/components/ui/avatar';
import { RiTwitterXFill } from "react-icons/ri";
import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar";
import Link from "next/link";
import Saleh from "@/assets/images/tweets/saleh.png";

const TweetCard = () => {
return (
<div className="flex w-[17rem] flex-col gap-3 rounded-xl bg-zinc-800 p-4">
<div className="flex justify-between">
<span>
<RiTwitterXFill className="text-zinc-400" />{' '}
</span>
<article className="flex w-[17rem] flex-col gap-3 rounded-xl bg-zinc-800 p-4">
<header className="flex justify-between">
<RiTwitterXFill className="text-2xl text-zinc-400" />
<div className="flex gap-2">
<div
className="flex flex-col items-start justify-end"
style={{ direction: 'ltr' }}
>
<h4 className="text-base font-bold">Saleh Shojaei</h4>
<a
className="text-sm text-zinc-300"
<div className="flex flex-col items-end">
<h4 className="font-bold lg:text-lg">Saleh Shojaei</h4>
<Link
className="text-xs text-zinc-300"
target="_blank"
href="https://twitter.com/roxaleh"
>
@roxaleh
</a>
</Link>
</div>

{/* Avatar Component shadcn */}
<Avatar>
<AvatarImage src={""} alt="X | twitter avatar" />
<AvatarImage src={Saleh.src} alt="X | twitter avatar" />
<AvatarFallback>avatar</AvatarFallback>
</Avatar>
</div>
</div>
</header>
<div>
<p className="text-right text-sm font-normal text-zinc-300">
<p className="whitespace-pre-wrap text-xs text-zinc-300 lg:text-sm">
رفقا می‌تونید با رزرو زودتر بلیط اقامتگاهتون، راحت‌تر توی همایش شرکت
کنید
#frontchapter1402
کنید.
<br />
#front_chapter
</p>
</div>
</div>
</article>
);
};

Expand Down
Binary file added src/assets/images/tweets/saleh.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 6487b2c

Please sign in to comment.