diff --git a/Zero/apps/mail/app/(full-width)/terms.tsx b/Zero/apps/mail/app/(full-width)/terms.tsx new file mode 100644 index 0000000..d9d5474 --- /dev/null +++ b/Zero/apps/mail/app/(full-width)/terms.tsx @@ -0,0 +1,367 @@ +import { useCopyToClipboard } from '@/hooks/use-copy-to-clipboard'; +import { Card, CardHeader, CardTitle } from '@/components/ui/card'; +import { Github, Mail, ArrowLeft, Link2 } from 'lucide-react'; +import { Navigation } from '@/components/navigation'; +import { Button } from '@/components/ui/button'; +import Footer from '@/components/home/footer'; +import { createSectionId } from '@/lib/utils'; + +const LAST_UPDATED = 'March 12, 2026'; + +export default function TermsOfService() { + const { copiedValue: copiedSection, copyToClipboard } = useCopyToClipboard(); + + const handleCopyLink = (sectionId: string) => { + const url = `${window.location.origin}${window.location.pathname}#${sectionId}`; + copyToClipboard(url, sectionId); + }; + + return ( +
+ +
+
+ + + +
+ +
+ + +
+ + Terms of Service + +
+

+ Last updated: {LAST_UPDATED} +

+
+
+
+ +
+ {sections.map((section) => { + const sectionId = createSectionId(section.title); + return ( +
+
+

+ {section.title} +

+ +
+
+ {section.content} +
+
+ ); + })} + +
+
+
+
+ +
+
+ ); +} + +const sections = [ + { + title: 'Acceptance of Terms', + content: ( +
+

+ By accessing or using SolMail, you agree to be bound by these Terms of Service. If you do + not agree to these terms, please do not use our service. +

+

+ SolMail is built on the open-source Zero email framework and provides a client-side email + application with integrated Solana micropayments. These terms govern your use of the + SolMail application and all related services. +

+
+ ), + }, + { + title: 'Description of Service', + content: ( +
+

SolMail provides the following services:

+ +

+ SolMail is a client-only application. We do not store your emails on our servers. All email + data is processed directly between your browser and Gmail. +

+
+ ), + }, + { + title: 'Account and Access', + content: ( +
+
+

Google Account

+ +
+
+

Solana Wallet

+ +
+
+ ), + }, + { + title: 'Micropayment System', + content: ( +
+
+

How It Works

+ +
+
+

Transaction Terms

+ +
+
+ ), + }, + { + title: 'Acceptable Use', + content: ( +
+

You agree not to use SolMail to:

+ +

+ Violation of these terms may result in suspension or termination of your access to SolMail. +

+
+ ), + }, + { + title: 'Intellectual Property', + content: ( +
+

+ SolMail is built on the open-source Zero email framework. The SolMail application and its + original content, features, and functionality are owned by SolMail and are protected by + applicable intellectual property laws. +

+

+ The open-source components of SolMail are licensed under their respective open-source + licenses. Your use of these components is governed by the terms of those licenses. +

+

+ You retain full ownership of your email content and any data you transmit through SolMail. +

+
+ ), + }, + { + title: 'Third-Party Services', + content: ( +
+

SolMail integrates with the following third-party services:

+ +

+ We are not responsible for the availability, accuracy, or policies of third-party services. +

+
+ ), + }, + { + title: 'Disclaimers and Limitation of Liability', + content: ( +
+

+ SolMail is provided "as is" and "as available" without warranties of + any kind, whether express or implied, including but not limited to implied warranties of + merchantability, fitness for a particular purpose, or non-infringement. +

+ +
+ ), + }, + { + title: 'Termination', + content: ( +
+

+ You may stop using SolMail at any time by revoking access through your Google Account + settings and disconnecting your Solana wallet. +

+

+ We reserve the right to suspend or terminate access to SolMail for any user who violates + these Terms of Service, without prior notice. +

+

+ Upon termination, any pending micropayment transactions will be processed according to + their existing terms. Blockchain transactions that have already been confirmed cannot be + reversed. +

+
+ ), + }, + { + title: 'Contact', + content: ( +
+

For questions about these Terms of Service:

+
+ + + solmailxyz@gmail.com + + + + Open an issue on GitHub + +
+
+ ), + }, + { + title: 'Changes to These Terms', + content: ( +

+ We may update these Terms of Service from time to time. We will notify users of any material + changes through our application or website. Continued use of SolMail after changes are posted + constitutes acceptance of the updated terms. +

+ ), + }, +]; diff --git a/Zero/apps/mail/app/routes.ts b/Zero/apps/mail/app/routes.ts index d02261c..c83f0df 100644 --- a/Zero/apps/mail/app/routes.ts +++ b/Zero/apps/mail/app/routes.ts @@ -13,6 +13,7 @@ export default [ route('/contributors', '(full-width)/contributors.tsx'), route('/hr', '(full-width)/hr.tsx'), route('/privacy', '(full-width)/privacy.tsx'), + route('/terms', '(full-width)/terms.tsx'), ]), route('/login', '(auth)/login/page.tsx'), diff --git a/Zero/apps/mail/components/home/footer.tsx b/Zero/apps/mail/components/home/footer.tsx index 242ae12..927b636 100644 --- a/Zero/apps/mail/components/home/footer.tsx +++ b/Zero/apps/mail/components/home/footer.tsx @@ -1,47 +1,35 @@ -import { Twitter } from '../icons/icons'; - -const socialLinks = [ - { - name: 'Twitter', - href: 'https://x.com/solmail_xyz', - icon: Twitter, - }, -]; - export default function Footer() { return (
-
-
-
-
- © 2025 SolMail +
+
+
+
+
+ © 2025 SolMail, All Rights Reserved
- - Privacy Policy - -
- -
- - logo - - {socialLinks.map((social) => ( +
diff --git a/Zero/apps/mail/components/navigation.tsx b/Zero/apps/mail/components/navigation.tsx index 049d39b..4f2cdcb 100644 --- a/Zero/apps/mail/components/navigation.tsx +++ b/Zero/apps/mail/components/navigation.tsx @@ -31,6 +31,16 @@ const aboutLinks = [ href: '/contributors', description: 'See the contributors to SolMail.', }, + { + title: 'Privacy Policy', + href: '/privacy', + description: 'How we handle and protect your data.', + }, + { + title: 'Terms of Service', + href: '/terms', + description: 'Terms and conditions for using SolMail.', + }, ]; interface GitHubApiResponse {