Skip to content

Commit 7f5f93f

Browse files
committed
improve ui
1 parent 1d78ae4 commit 7f5f93f

1 file changed

Lines changed: 19 additions & 19 deletions

File tree

‎apps/codebility/app/home/feeds/_components/FirstPostPrompt.tsx‎

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { Box } from "@/components/shared/dashboard";
2-
import { Button } from "@codevs/ui";
32
import { Sparkles, PlusCircle } from "lucide-react";
43

54
interface FirstPostPromptProps {
@@ -10,28 +9,29 @@ export default function FirstPostPrompt({
109
onCreatePost,
1110
}: FirstPostPromptProps) {
1211
return (
13-
<Box className="group relative flex h-[340px] cursor-pointer flex-col justify-center rounded-xl p-6 transition hover:shadow-md">
12+
<Box className="group relative flex h-[300px] cursor-pointer flex-col justify-center rounded-xl p-6 transition hover:shadow-md">
1413
<div className="flex flex-col items-center text-center">
15-
<div className="mb-4 flex h-14 w-14 items-center justify-center rounded-full bg-primary/10">
16-
<Sparkles className="h-7 w-7 text-primary" />
17-
</div>
14+
{/* Icon */}
15+
<div className="mb-4 flex h-14 w-14 items-center justify-center rounded-full bg-gradient-to-br from-blue-500 to-cyan-500 text-white shadow-sm">
16+
<Sparkles className="h-7 w-7" />
17+
</div>
1818

19-
<h2 className="mb-2 text-xl font-semibold text-gray-800 dark:text-gray-100">
20-
Create your first post
21-
</h2>
19+
<h2 className="mb-2 text-xl font-semibold text-gray-800 dark:text-gray-100">
20+
Create your first post
21+
</h2>
2222

23-
<p className="mb-6 max-w-xs text-sm text-gray-500 dark:text-gray-400">
24-
Share something with the community and earn social points for your
25-
first post 🚀
26-
</p>
23+
<p className="mb-6 max-w-xs text-sm text-gray-500 dark:text-gray-400">
24+
Share something with the community and earn social points by posting 🚀
25+
</p>
2726

28-
<button
29-
onClick={onCreatePost}
30-
className="inline-flex items-center gap-2 rounded-lg bg-primary px-5 py-2.5 text-sm font-semibold text-white transition hover:bg-primary/90"
31-
>
32-
<PlusCircle className="h-4 w-4" />
33-
Create Post
34-
</button>
27+
{/* CTA */}
28+
<button
29+
onClick={onCreatePost}
30+
className="inline-flex items-center gap-2 rounded-lg bg-gradient-to-r from-blue-600 to-cyan-600 px-5 py-2.5 text-sm font-semibold text-white transition hover:from-blue-500 hover:to-cyan-500"
31+
>
32+
<PlusCircle className="h-4 w-4" />
33+
Create Post
34+
</button>
3535
</div>
3636
</Box>
3737
);

0 commit comments

Comments
 (0)