You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/app/(public)/faqs/page.tsx
+76-7Lines changed: 76 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -2,22 +2,91 @@ import type { Metadata } from "next";
2
2
3
3
import{Heading}from"@/components/ui";
4
4
import{PROJECT_NAME}from"@/config/constants";
5
+
importFaqListfrom"./_components/faq-list";
5
6
6
7
exportconstmetadata: Metadata={
7
8
title: `FAQs - ${PROJECT_NAME}`,
8
9
description: "Frequently asked questions",
9
10
};
10
11
11
12
exportdefaultfunctionFaqsPage(){
13
+
constfaqs=[
14
+
{
15
+
id: "faq-1",
16
+
question: "What is DevResources?",
17
+
answer:
18
+
"DevResources is a curated platform where developers can discover, share, and bookmark high-quality resources such as tools, articles, libraries, and tutorials.",
19
+
created_at: "2023-05-01T00:00:00.000Z",
20
+
},
21
+
{
22
+
id: "faq-2",
23
+
question: "Do I need an account to use DevResources?",
24
+
answer:
25
+
"No account is required to browse resources. However, you’ll need to sign in to like, comment, or save resources to your personal collection.",
26
+
created_at: "2023-05-01T00:00:00.000Z",
27
+
},
28
+
{
29
+
id: "faq-3",
30
+
question: "How are resources categorized?",
31
+
answer:
32
+
"Resources are organized by categories such as Frontend, Backend, DevOps, Machine Learning, Tools, and more. You can also filter by tags or search by keywords.",
33
+
created_at: "2023-05-01T00:00:00.000Z",
34
+
},
35
+
{
36
+
id: "faq-4",
37
+
question: "Can I submit my own resources?",
38
+
answer:
39
+
"Yes, registered users can submit their favorite tools, articles, or libraries. All submissions are reviewed before being published to ensure quality.",
40
+
created_at: "2023-05-01T00:00:00.000Z",
41
+
},
42
+
{
43
+
id: "faq-5",
44
+
question: "How does upvoting work?",
45
+
answer:
46
+
"Users can upvote resources they find useful. Resources with higher upvotes gain visibility on the homepage and in category listings.",
47
+
created_at: "2023-05-01T00:00:00.000Z",
48
+
},
49
+
{
50
+
id: "faq-6",
51
+
question: "Is there an API available?",
52
+
answer:
53
+
"An API for public data is under development. In the meantime, you can contact us if you have specific data needs.",
54
+
created_at: "2023-05-01T00:00:00.000Z",
55
+
},
56
+
{
57
+
id: "faq-7",
58
+
question: "Can I report inappropriate or broken resources?",
59
+
answer:
60
+
"Yes, every resource has a report button. Reports are reviewed by moderators, and content violating guidelines is removed promptly.",
61
+
created_at: "2023-05-01T00:00:00.000Z",
62
+
},
63
+
{
64
+
id: "faq-8",
65
+
question: "Is DevResources free to use?",
66
+
answer:
67
+
"Yes, the platform is free. In the future, premium features like personal dashboards and advanced metrics may be introduced.",
68
+
created_at: "2023-05-01T00:00:00.000Z",
69
+
},
70
+
{
71
+
id: "faq-9",
72
+
question: "How often is the content updated?",
73
+
answer:
74
+
"New resources are added daily. Community contributions and internal curation help keep the content fresh and relevant.",
75
+
created_at: "2023-05-01T00:00:00.000Z",
76
+
},
77
+
{
78
+
id: "faq-10",
79
+
question: "Can I follow other users or creators?",
80
+
answer:
81
+
"Following functionality is planned. Right now, you can view a user’s public submissions and likes on their profile page.",
0 commit comments