samirhosninet commited on
Commit
8a1aadc
·
1 Parent(s): 4033aff

feat(pages): add bilingual privacy and terms pages

Browse files
Files changed (2) hide show
  1. app/privacy/page.tsx +95 -0
  2. app/terms/page.tsx +109 -0
app/privacy/page.tsx ADDED
@@ -0,0 +1,95 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import { useLanguage } from "@/components/LanguageContext";
2
+
3
+ export default function PrivacyPage() {
4
+ const { language } = useLanguage();
5
+
6
+ if (language === "ar") {
7
+ return (
8
+ <main className="max-w-3xl mx-auto px-6 py-20 text-foreground">
9
+ <h1 className="text-3xl font-bold mb-6">سياسة الخصوصية</h1>
10
+ <p className="text-sm text-muted-foreground mb-8">آخر تحديث: مايو 2026</p>
11
+
12
+ <section className="space-y-8">
13
+ <div>
14
+ <h2 className="text-xl font-semibold mb-2">البيانات التي نجمعها</h2>
15
+ <p className="text-muted-foreground">
16
+ نجمع عنوان بريدك الإلكتروني فقط عند إرسال نموذج قائمة الانتظار. لا نجمع أي بيانات شخصية أخرى في هذا الوقت.
17
+ </p>
18
+ </div>
19
+
20
+ <div>
21
+ <h2 className="text-xl font-semibold mb-2">كيف نستخدم بياناتك</h2>
22
+ <p className="text-muted-foreground">
23
+ نستخدم بريدك الإلكتروني فقط لإعلامك عند إطلاق منصة HUBAPI. لا نبيع أو نأجر أو نشارك بريدك الإلكتروني مع أي طرف ثالث.
24
+ </p>
25
+ </div>
26
+
27
+ <div>
28
+ <h2 className="text-xl font-semibold mb-2">الكوكيز والتحليلات</h2>
29
+ <p className="text-muted-foreground">
30
+ هذا الموقع لا يستخدم ملفات تعريف ارتباط تتبع من طرف ثالث أو أدوات تحليلات. لا يتم إجراء أي تتبع سلوكي.
31
+ </p>
32
+ </div>
33
+
34
+ <div>
35
+ <h2 className="text-xl font-semibold mb-2">حقوقك (GDPR)</h2>
36
+ <p className="text-muted-foreground">
37
+ يمكنك طلب الوصول إلى بياناتك أو تصحيحها أو حذفها في أي وقت عن طريق الاتصال بنا.
38
+ </p>
39
+ </div>
40
+
41
+ <div>
42
+ <h2 className="text-xl font-semibold mb-2">الاحتفاظ بالبيانات</h2>
43
+ <p className="text-muted-foreground">
44
+ نحتفظ ببريدك الإلكتروني فقط حتى يتم إغلاق قائمة الانتظار وإطلاق المنتج، أو حتى تطلب الحذف.
45
+ </p>
46
+ </div>
47
+ </section>
48
+ </main>
49
+ );
50
+ }
51
+
52
+ return (
53
+ <main className="max-w-3xl mx-auto px-6 py-20 text-foreground">
54
+ <h1 className="text-3xl font-bold mb-6">Privacy Policy</h1>
55
+ <p className="text-sm text-muted-foreground mb-8">Last updated: May 2026</p>
56
+
57
+ <section className="space-y-8">
58
+ <div>
59
+ <h2 className="text-xl font-semibold mb-2">What We Collect</h2>
60
+ <p className="text-muted-foreground">
61
+ We collect your email address only when you submit the waitlist form. We do not collect any other personal data.
62
+ </p>
63
+ </div>
64
+
65
+ <div>
66
+ <h2 className="text-xl font-semibold mb-2">How We Use It</h2>
67
+ <p className="text-muted-foreground">
68
+ We use your email solely to notify you when the HUBAPI platform launches. We do not sell, rent, or share your email with third parties.
69
+ </p>
70
+ </div>
71
+
72
+ <div>
73
+ <h2 className="text-xl font-semibold mb-2">Cookies and Analytics</h2>
74
+ <p className="text-muted-foreground">
75
+ This site does not use third-party tracking cookies or analytics tools. No behavioral tracking is performed.
76
+ </p>
77
+ </div>
78
+
79
+ <div>
80
+ <h2 className="text-xl font-semibold mb-2">Your Rights (GDPR)</h2>
81
+ <p className="text-muted-foreground">
82
+ You may request access to, correction of, or deletion of your data at any time by contacting us.
83
+ </p>
84
+ </div>
85
+
86
+ <div>
87
+ <h2 className="text-xl font-semibold mb-2">Data Retention</h2>
88
+ <p className="text-muted-foreground">
89
+ We retain your email only until the waitlist is closed and the product is launched, or until you request deletion.
90
+ </p>
91
+ </div>
92
+ </section>
93
+ </main>
94
+ );
95
+ }
app/terms/page.tsx ADDED
@@ -0,0 +1,109 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import { useLanguage } from "@/components/LanguageContext";
2
+
3
+ export default function TermsPage() {
4
+ const { language } = useLanguage();
5
+
6
+ if (language === "ar") {
7
+ return (
8
+ <main className="max-w-3xl mx-auto px-6 py-20 text-foreground">
9
+ <h1 className="text-3xl font-bold mb-6">شروط الخدمة</h1>
10
+ <p className="text-sm text-muted-foreground mb-8">آخر تحديث: مايو 2026</p>
11
+
12
+ <section className="space-y-8">
13
+ <div>
14
+ <h2 className="text-xl font-semibold mb-2">الموافقة على الشروط</h2>
15
+ <p className="text-muted-foreground">
16
+ بالوصول إلى هذا الموقع أو استخدامه، فإنك توافق على هذه الشروط. إذا لم توافق، يرجى عدم استخدام الموقع.
17
+ </p>
18
+ </div>
19
+
20
+ <div>
21
+ <h2 className="text-xl font-semibold mb-2">وصف الخدمة</h2>
22
+ <p className="text-muted-foreground">
23
+ HUBAPI هو موقع معاينة قبل الإطلاق وقائمة انتظار لبوابة واجهة برمجة تطبيقات موحدة. لا توجد أي ميزات حية أو ضمانات متاحة في هذا الوقت.
24
+ </p>
25
+ </div>
26
+
27
+ <div>
28
+ <h2 className="text-xl font-semibold mb-2">التزامات المستخدم</h2>
29
+ <p className="text-muted-foreground">
30
+ أنت توافق على تقديم معلومات دقيقة عند الانضمام إلى قائمة الانتظار.
31
+ </p>
32
+ </div>
33
+
34
+ <div>
35
+ <h2 className="text-xl font-semibold mb-2">إخلاء المسؤولية</h2>
36
+ <p className="text-muted-foreground">
37
+ هذا الموقع عرض أولي قبل الإطلاق. جميع الواجهات والمقاييس والميزات المعروضة عبارة عن معاينات محاكاة وليست بيانات تشغيلية.
38
+ </p>
39
+ </div>
40
+
41
+ <div>
42
+ <h2 className="text-xl font-semibold mb-2">الحد من المسؤولية</h2>
43
+ <p className="text-muted-foreground">
44
+ لن نكون مسؤولين عن أي أضرار مباشرة أو غير مباشرة أو تبعية ناجمة عن استخدامك لهذا الموقع.
45
+ </p>
46
+ </div>
47
+
48
+ <div>
49
+ <h2 className="text-xl font-semibold mb-2">تغيير الشروط</h2>
50
+ <p className="text-muted-foreground">
51
+ قد نقوم بتحديث هذه الشروط في أي وقت. استمرار استخدامك للموقع بعد التغييرات يعني قبولك للشروط الجديدة.
52
+ </p>
53
+ </div>
54
+ </section>
55
+ </main>
56
+ );
57
+ }
58
+
59
+ return (
60
+ <main className="max-w-3xl mx-auto px-6 py-20 text-foreground">
61
+ <h1 className="text-3xl font-bold mb-6">Terms of Service</h1>
62
+ <p className="text-sm text-muted-foreground mb-8">Last updated: May 2026</p>
63
+
64
+ <section className="space-y-8">
65
+ <div>
66
+ <h2 className="text-xl font-semibold mb-2">Acceptance of Terms</h2>
67
+ <p className="text-muted-foreground">
68
+ By accessing or using this site, you agree to these Terms of Service. If you do not agree, please do not use the site.
69
+ </p>
70
+ </div>
71
+
72
+ <div>
73
+ <h2 className="text-xl font-semibold mb-2">Description of Service</h2>
74
+ <p className="text-muted-foreground">
75
+ HUBAPI is a pre-launch preview site and waitlist for a planned unified LLM API gateway. No live features or guarantees are available at this time.
76
+ </p>
77
+ </div>
78
+
79
+ <div>
80
+ <h2 className="text-xl font-semibold mb-2">User Obligations</h2>
81
+ <p className="text-muted-foreground">
82
+ You agree to provide accurate information when joining the waitlist.
83
+ </p>
84
+ </div>
85
+
86
+ <div>
87
+ <h2 className="text-xl font-semibold mb-2">Disclaimer</h2>
88
+ <p className="text-muted-foreground">
89
+ This site is a pre-launch preview. All product interfaces, metrics, and features shown are simulated previews and not live operational data.
90
+ </p>
91
+ </div>
92
+
93
+ <div>
94
+ <h2 className="text-xl font-semibold mb-2">Limitation of Liability</h2>
95
+ <p className="text-muted-foreground">
96
+ We are not liable for any direct, indirect, or consequential damages arising from your use of this preview site.
97
+ </p>
98
+ </div>
99
+
100
+ <div>
101
+ <h2 className="text-xl font-semibold mb-2">Changes to Terms</h2>
102
+ <p className="text-muted-foreground">
103
+ We may update these terms at any time. Continued use of the site after changes means you accept the updated terms.
104
+ </p>
105
+ </div>
106
+ </section>
107
+ </main>
108
+ );
109
+ }