diff --git a/apps/mail/app/(full-width)/privacy.tsx b/apps/mail/app/(full-width)/privacy.tsx index 167b34ce5..0b5e8b8ae 100644 --- a/apps/mail/app/(full-width)/privacy.tsx +++ b/apps/mail/app/(full-width)/privacy.tsx @@ -337,6 +337,66 @@ const sections = [ ), }, + { + title: 'Pricing and Refund Policy', + content: ( +
+
+

Free Plan and Trial Period

+ +
+
+

Payment and Billing

+ +
+
+

Non-Refundable Policy

+ +
+
+

Subscription Management

+ +
+
+

Price Changes

+ +
+
+ ), + }, { title: 'Contact', content: ( diff --git a/apps/mail/app/globals.css b/apps/mail/app/globals.css index 646721fa1..4ce37a8ab 100644 --- a/apps/mail/app/globals.css +++ b/apps/mail/app/globals.css @@ -359,5 +359,5 @@ /* Add scrollbar styling */ .style-scrollbar { - @apply scrollbar scrollbar-w-1 scrollbar-thumb-accent/40 scrollbar-track-transparent hover:scrollbar-thumb-accent scrollbar-thumb-rounded-full; + @apply scrollbar scrollbar-w-0 scrollbar-thumb-accent/40 scrollbar-track-transparent hover:scrollbar-thumb-accent scrollbar-thumb-rounded-full; } diff --git a/apps/mail/components/ai-toggle-button.tsx b/apps/mail/components/ai-toggle-button.tsx index bc9bf5c7e..5b9658db0 100644 --- a/apps/mail/components/ai-toggle-button.tsx +++ b/apps/mail/components/ai-toggle-button.tsx @@ -14,7 +14,7 @@ const AIToggleButton = () => { @@ -858,7 +862,7 @@ export function ThreadDisplay() { @@ -900,7 +904,7 @@ export function ThreadDisplay() { @@ -914,7 +918,7 @@ export function ThreadDisplay() { - diff --git a/apps/mail/components/navigation.tsx b/apps/mail/components/navigation.tsx index c1e5b133f..eb92cc010 100644 --- a/apps/mail/components/navigation.tsx +++ b/apps/mail/components/navigation.tsx @@ -8,14 +8,17 @@ import { ListItem, } from '@/components/ui/navigation-menu'; import { Sheet, SheetContent, SheetHeader, SheetTitle, SheetTrigger } from '@/components/ui/sheet'; -import { GitHub, Twitter, Discord, LinkedIn } from './icons/icons'; +import { GitHub, Twitter, Discord, LinkedIn, Star } from './icons/icons'; +import { AnimatedNumber } from '@/components/ui/animated-number'; import { signIn, useSession } from '@/lib/auth-client'; import { Separator } from '@/components/ui/separator'; import { Link, useNavigate } from 'react-router'; import { Button } from '@/components/ui/button'; import { Menu } from 'lucide-react'; -import { useState } from 'react'; +import { useState, useEffect } from 'react'; +import { useQuery } from '@tanstack/react-query'; import { toast } from 'sonner'; +import { cn } from '@/lib/utils'; const resources = [ { @@ -74,11 +77,37 @@ const IconComponent = { linkedin: LinkedIn, }; +interface GitHubApiResponse { + stargazers_count: number; +} + export function Navigation() { const [open, setOpen] = useState(false); + const [stars, setStars] = useState(0); // Default fallback value const { data: session } = useSession(); const navigate = useNavigate(); + const { data: githubData } = useQuery({ + queryKey: ['githubStars'], + queryFn: async () => { + const response = await fetch('https://api.github.com/repos/Mail-0/Zero', { + headers: { + 'Accept': 'application/vnd.github.v3+json', + }, + }); + if (!response.ok) { + throw new Error('Failed to fetch GitHub stars'); + } + return response.json() as Promise; + }, + }); + + useEffect(() => { + if (githubData) { + setStars(githubData.stargazers_count || 0); + } + }, [githubData]); + return ( <> {/* Desktop Navigation - Hidden on mobile */} @@ -133,6 +162,27 @@ export function Navigation() {
+ +
+ + Star + Stars on GitHub +
+
+ + +
+
@@ -439,7 +439,7 @@ export function NavUser() { )}
-
+
{isSessionPending ? null : false ? : } @@ -523,7 +523,7 @@ export function NavUser() { {state !== 'collapsed' && (
-
+

{activeAccount?.name || session.user.name || 'User'} diff --git a/apps/mail/locales/en.json b/apps/mail/locales/en.json index d6eae27c1..133759ed7 100644 --- a/apps/mail/locales/en.json +++ b/apps/mail/locales/en.json @@ -83,7 +83,7 @@ "goToArchive": "Go to Archive", "goToBin": "Go to Bin", "goToSettings": "Go to Settings", - "newEmail": "New Email", + "newEmail": "New email", "composeMessage": "New Email", "searchEmails": "Search Emails", "toggleTheme": "Toggle Theme",