1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
|
"use client"
import { dmSans125ClassName } from "@/lib/fonts"
import { cn } from "@lib/utils"
import { ArrowUpRight } from "lucide-react"
const FAQS = [
{
question: "How do I upgrade to Pro?",
answer:
'Go to the Billing tab in settings and click "Upgrade to Pro". You\'ll be redirected to our secure payment processor.',
},
{
question: "What's included in the Pro plan?",
answer:
'Go to the Billing tab in settings and click "Upgrade to Pro". You\'ll be redirected to our secure payment processor.',
},
{
question: "How do connections work?",
answer:
"Connections let you sync documents from Google Drive, Notion, and OneDrive automatically. supermemory will index and make them searchable.",
},
{
question: "Can I cancel my subscription anytime?",
answer:
"Yes. You can cancel anytime from the Billing tab. Your Pro features will remain active until the end of your billing period.",
},
]
function SectionTitle({ children }: { children: React.ReactNode }) {
return (
<p
className={cn(
dmSans125ClassName(),
"font-semibold text-[20px] tracking-[-0.2px] text-[#FAFAFA] px-2",
)}
>
{children}
</p>
)
}
function SupportCard({ children }: { children: React.ReactNode }) {
return (
<div
className={cn(
"relative bg-[#14161A] rounded-[14px] p-6 w-full overflow-hidden",
"shadow-[inset_2.42px_2.42px_4.263px_rgba(11,15,21,0.7)]",
)}
>
{children}
</div>
)
}
function PillButton({
children,
onClick,
className,
}: {
children: React.ReactNode
onClick?: () => void
className?: string
}) {
return (
<button
type="button"
onClick={onClick}
className={cn(
"relative flex items-center justify-center gap-2",
"bg-[#0D121A]",
"rounded-full h-11 px-4 flex-1",
"cursor-pointer transition-opacity hover:opacity-80",
"shadow-[inset_1.5px_1.5px_4.5px_rgba(0,0,0,0.7)]",
dmSans125ClassName(),
className,
)}
>
{children}
</button>
)
}
export default function Support() {
const handleMessageOnX = () => {
window.open("https://x.com/supermemory", "_blank", "noopener,noreferrer")
}
const handleSendEmail = () => {
window.location.href = "mailto:[email protected]"
}
const handleJoinDiscord = () => {
window.open(
"https://supermemory.link/discord",
"_blank",
"noopener,noreferrer",
)
}
const handleShareFeedback = () => {
window.open("https://x.com/supermemory", "_blank", "noopener,noreferrer")
}
return (
<div className="flex flex-col gap-8 pt-4 w-full">
{/* Support & Help Section */}
<section className="flex flex-col gap-4">
<SectionTitle>Support & Help</SectionTitle>
<SupportCard>
<div className="flex flex-col gap-4">
<div className="flex flex-col gap-1.5">
<p
className={cn(
dmSans125ClassName(),
"font-normal text-[16px] tracking-[-0.16px] text-[#FAFAFA]",
)}
>
Get help
</p>
<p
className={cn(
dmSans125ClassName(),
"font-medium text-[16px] tracking-[-0.16px] text-[#737373]",
)}
>
Need assistance? We're here to help! Choose the best way to
reach us.
</p>
</div>
<div className="flex flex-col sm:flex-row gap-4">
<PillButton onClick={handleMessageOnX}>
<span className="text-[14px] tracking-[-0.14px] text-[#FAFAFA] font-medium">
Message us on X
</span>
<ArrowUpRight className="size-4 text-[#FAFAFA]" />
</PillButton>
<PillButton onClick={handleJoinDiscord}>
<span className="text-[14px] tracking-[-0.14px] text-[#FAFAFA] font-medium">
Join our Discord
</span>
<ArrowUpRight className="size-4 text-[#FAFAFA]" />
</PillButton>
<PillButton onClick={handleSendEmail}>
<span className="text-[14px] tracking-[-0.14px] text-[#FAFAFA] font-medium">
Send us an email
</span>
<ArrowUpRight className="size-4 text-[#FAFAFA]" />
</PillButton>
</div>
</div>
</SupportCard>
</section>
{/* FAQ Section */}
<section className="flex flex-col gap-4">
<SectionTitle>Frequently Asked Questions</SectionTitle>
<SupportCard>
<div className="flex flex-col gap-6">
{FAQS.map((faq, index) => (
<div key={faq.question}>
<div className="flex flex-col gap-1">
<p
className={cn(
dmSans125ClassName(),
"font-medium text-[16px] tracking-[-0.16px] text-[#FAFAFA]",
)}
>
{faq.question}
</p>
<p
className={cn(
dmSans125ClassName(),
"font-medium text-[16px] tracking-[-0.16px] text-[#737373]",
)}
>
{faq.answer}
</p>
</div>
{index < FAQS.length - 1 && (
<div className="bg-[#1F2125] h-px w-full mt-6" />
)}
</div>
))}
</div>
</SupportCard>
</section>
{/* Feedback Section */}
<section className="flex flex-col gap-4">
<SectionTitle>Feedback & Feature Requests</SectionTitle>
<SupportCard>
<div className="flex flex-col gap-4">
<p
className={cn(
dmSans125ClassName(),
"font-normal text-[16px] tracking-[-0.16px] text-[#FAFAFA]",
)}
>
Have ideas for new features or improvements? We'd love to hear
from you!
</p>
<PillButton
onClick={handleShareFeedback}
className="w-full flex-none"
>
<span className="text-[14px] tracking-[-0.14px] text-[#FAFAFA] font-medium">
Share your feedback on X/Twitter
</span>
<ArrowUpRight className="size-4 text-[#FAFAFA]" />
</PillButton>
</div>
</SupportCard>
</section>
</div>
)
}
|