From 96db959044b354e00a44b966e715858724b8a85a Mon Sep 17 00:00:00 2001 From: Aj Wazzan Date: Thu, 1 May 2025 10:32:04 -0700 Subject: [PATCH] Refactor About and Privacy pages to update contact email and improve text formatting. Remove Navbar component as it is no longer needed. --- apps/mail/app/(full-width)/about/page.tsx | 39 ++++-- apps/mail/app/(full-width)/privacy/page.tsx | 6 +- apps/mail/components/home/footer.tsx | 5 +- apps/mail/components/home/navbar.tsx | 127 -------------------- 4 files changed, 33 insertions(+), 144 deletions(-) delete mode 100644 apps/mail/components/home/navbar.tsx diff --git a/apps/mail/app/(full-width)/about/page.tsx b/apps/mail/app/(full-width)/about/page.tsx index 621d3d590..4acd47eed 100644 --- a/apps/mail/app/(full-width)/about/page.tsx +++ b/apps/mail/app/(full-width)/about/page.tsx @@ -37,10 +37,7 @@ export default function AboutPage() {
{sections.map((section) => ( -
+

{section.title}

@@ -64,7 +61,10 @@ const sections = [ title: 'Our Mission', content: (

- Zero is an AI-powered email client that manages your inbox, so you don't have to. We help busy professionals unclutter their inboxes, prioritize important messages, summarize conversations, complete tasks, and even chat with their inbox — letting them spend less time managing email and more time getting things done. + Zero is an AI-powered email client that manages your inbox, so you don't have to. We help + busy professionals unclutter their inboxes, prioritize important messages, summarize + conversations, complete tasks, and even chat with their inbox — letting them spend less time + managing email and more time getting things done.

), }, @@ -72,7 +72,11 @@ const sections = [ title: 'Why We Started', content: (

- We started Zero because we were frustrated that email — the most-used communication tool in the world — hasn't meaningfully evolved in decades. Despite countless new apps, none actually solve the real problem: helping you finish what you intend to do. We realized the real solution isn't just a new interface — it's AI acting like a true assistant inside your inbox. + We started Zero because we were frustrated that email — the most-used communication tool in + the world — hasn't meaningfully evolved in decades. Despite countless new apps, none + actually solve the real problem: helping you finish what you intend to do. We realized the + real solution isn't just a new interface — it's AI acting like a true assistant inside your + inbox.

), }, @@ -81,7 +85,8 @@ const sections = [ content: (

- Zero is built on the principles of transparency and community collaboration. Our entire codebase is open source, allowing anyone to: + Zero is built on the principles of transparency and community collaboration. Our entire + codebase is open source, allowing anyone to:

  • Review our code for security and privacy
  • @@ -90,7 +95,8 @@ const sections = [
  • Learn from and build upon our work

- We believe that email is too important to be controlled by a single entity. By being open source, we ensure that Zero remains transparent, trustworthy, and accessible to everyone. + We believe that email is too important to be controlled by a single entity. By being open + source, we ensure that Zero remains transparent, trustworthy, and accessible to everyone.

), @@ -100,10 +106,15 @@ const sections = [ content: (

- We launched our early access program and have already seen strong demand, with over 15,000 signups in just under 3 months. What we found is that users want an assistant that streamlines their inbox, providing features to summarize emails, compose responses, and take necessary actions. + We launched our early access program and have already seen strong demand, with over 15,000 + signups in just under 3 months. What we found is that users want an assistant that + streamlines their inbox, providing features to summarize emails, compose responses, and + take necessary actions.

- The opportunity is massive: over 4 billion people use email daily, and most still manage it manually. Zero is poised to fundamentally change the way the world deals with communication and tasks — and we're just getting started. + The opportunity is massive: over 4 billion people use email daily, and most still manage + it manually. Zero is poised to fundamentally change the way the world deals with + communication and tasks — and we're just getting started.

), @@ -113,7 +124,9 @@ const sections = [ content: (

- Adam and Nizar, the cofounders of Zero, met through family friends. Coming from backgrounds in product design and software engineering, we both felt the pain of drowning in email firsthand while trying to build and grow companies. + Adam and Nizar, the cofounders of Zero, met through family friends. Coming from + backgrounds in product design and software engineering, we both felt the pain of drowning + in email firsthand while trying to build and grow companies.

We're driven by a shared belief that email should help you move faster, not slow you down. @@ -128,11 +141,11 @@ const sections = [

Want to learn more about Zero? Get in touch:

@@ -257,11 +257,11 @@ const sections = [

For privacy-related questions or concerns:

diff --git a/apps/mail/components/home/navbar.tsx b/apps/mail/components/home/navbar.tsx deleted file mode 100644 index 738c8e383..000000000 --- a/apps/mail/components/home/navbar.tsx +++ /dev/null @@ -1,127 +0,0 @@ -'use client'; -import { Sheet, SheetContent, SheetHeader, SheetTitle, SheetTrigger } from '../ui/sheet'; -import { VisuallyHidden } from '@radix-ui/react-visually-hidden'; -import { useSession } from '@/lib/auth-client'; -import { useEffect, useState } from 'react'; -import { redirect } from 'next/navigation'; -import { Menu, X } from 'lucide-react'; -import { Button } from '../ui/button'; -import Image from 'next/image'; -import Link from 'next/link'; - -export default function Navbar() { - const [open, setOpen] = useState(false); - const { data: session } = useSession(); - - if (session) { - redirect('/mail'); - } - - // Automatically lose sheet on lg screen - useEffect(() => { - const mediaQuery = window.matchMedia('(min-width: 1024px)'); - function handleChange(e: MediaQueryListEvent | MediaQueryList) { - if (e.matches) setOpen(false); - } - handleChange(mediaQuery); - mediaQuery.addEventListener('change', handleChange); - return () => mediaQuery.removeEventListener('change', handleChange); - }, []); - - const mobileNavContent = () => { - return ( - <> - - - - ); - }; - - const desktopNavContent = () => { - return ( - <> - - - {/* It is better to enable this button when we implement our own mail server, no need for it honestly */} - {/* */} - - ); - }; - - return ( -
- - zerodotemail - zerodotemail - - {/* Mobile Navigation */} -
- - - - - - - - Navigation Menu - - -
-
- zerodotemail - zerodotemail - - - -
-
{mobileNavContent()}
-
-
- -
- -
{desktopNavContent()}
-
- ); -}