Skip to content

Commit 15070a0

Browse files
Merge pull request #665 from Himanshukumar2211/delete/communityFeedback
Removed whole community feedback section from project pages.
2 parents 3fa685f + 969ac22 commit 15070a0

File tree

1 file changed

+0
-38
lines changed

1 file changed

+0
-38
lines changed

src/app/projects/[slug]/page.jsx

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -141,44 +141,6 @@ export default function ProductPage({ params }) {
141141
</ReactMarkdown>
142142
</Prose>
143143
</div>
144-
145-
{/* Community Feedback */}
146-
<div className="mb-16">
147-
<h2 className="text-2xl font-bold tracking-tight text-zinc-800 dark:text-zinc-100 sm:text-3xl font-mono mb-8 border-b border-zinc-200 dark:border-zinc-700 pb-4">
148-
Community Feedback
149-
</h2>
150-
<div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
151-
{product.feedbacks && product.feedbacks.length > 0 ? (
152-
product.feedbacks.map((feedback, idx) => (
153-
<div key={idx} className="bg-zinc-50 dark:bg-zinc-800/50 p-4 rounded-xl border border-zinc-100 dark:border-zinc-700/50">
154-
<div className="flex items-center gap-2 mb-2 text-yellow-400">
155-
{[...Array(5)].map((_, i) => (
156-
<FontAwesomeIcon
157-
key={i}
158-
icon={faStar}
159-
className={i < feedback.rating ? "text-yellow-400" : "text-zinc-300 dark:text-zinc-600"}
160-
size="xs"
161-
/>
162-
))}
163-
</div>
164-
<p className="text-zinc-600 dark:text-zinc-300 italic mb-4 font-mono text-sm">
165-
&quot;{feedback.comment}&quot;
166-
</p>
167-
<div className="flex items-center gap-3 text-xs text-zinc-500 dark:text-zinc-400 font-bold font-mono">
168-
<div className="w-6 h-6 rounded-full bg-zinc-200 dark:bg-zinc-700 flex items-center justify-center">
169-
<FontAwesomeIcon icon={faUsers} size="2xs" />
170-
</div>
171-
{feedback.user}
172-
</div>
173-
</div>
174-
))
175-
): (
176-
<p className="text-zinc-500 dark:text-zinc-400 font-mono italic col-span-full">
177-
No reviews yet. Be the first to try it out!
178-
</p>
179-
)}
180-
</div>
181-
</div>
182144

183145
</Container>
184146
);

0 commit comments

Comments
 (0)