Skip to content

Commit 0510d14

Browse files
Sai Sridhar Tarraclaude
authored andcommitted
Fix legal pages background bleed and backend timeout
- Wrap gdpr/terms/cookies/privacy pages in full-page white div with minHeight 100vh to prevent home page content showing through during Next.js navigation - Add logo nav bar to all legal pages - Fix privacy page: update domain from inbox-iq-lilac.vercel.app → mailair.company, Stripe → Razorpay - Increase API timeout from 30s → 60s to handle Render free-tier cold starts Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent e327717 commit 0510d14

5 files changed

Lines changed: 26 additions & 6 deletions

File tree

frontend/lib/api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ const api: AxiosInstance = axios.create({
3333
headers: {
3434
'Content-Type': 'application/json',
3535
},
36-
timeout: 30000,
36+
timeout: 60000,
3737
});
3838

3939
// Request interceptor: inject Supabase auth token

frontend/pages/cookies.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ export default function CookiePolicy() {
1818
return (
1919
<>
2020
<Head><title>Cookie Policy — Mailair</title></Head>
21+
<div style={{ background: '#fff', minHeight: '100vh' }}>
22+
<nav style={{ borderBottom: '1px solid #e5e7eb', padding: '0 24px', height: 56, display: 'flex', alignItems: 'center', background: '#fff' }}>
23+
<Link href="/"><img src="/logo.svg" alt="Mailair" style={{ height: 32 }} /></Link>
24+
</nav>
2125
<div style={s.wrap}>
2226
<Link href="/" style={s.back}>← Back to Mailair</Link>
2327
<h1 style={s.h1}>Cookie Policy</h1>
@@ -74,6 +78,7 @@ export default function CookiePolicy() {
7478

7579
<p style={{ ...s.meta, marginTop: 48, borderTop: '1px solid #e5e7eb', paddingTop: 24 }}>© 2025 Mailair. All rights reserved.</p>
7680
</div>
81+
</div>
7782
</>
7883
);
7984
}

frontend/pages/gdpr.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ export default function GDPRPage() {
1515
return (
1616
<>
1717
<Head><title>GDPR & Data Rights Mailair</title></Head>
18+
<div style={{ background: '#fff', minHeight: '100vh' }}>
19+
<nav style={{ borderBottom: '1px solid #e5e7eb', padding: '0 24px', height: 56, display: 'flex', alignItems: 'center', background: '#fff' }}>
20+
<Link href="/"><img src="/logo.svg" alt="Mailair" style={{ height: 32 }} /></Link>
21+
</nav>
1822
<div style={s.wrap}>
1923
<Link href="/" style={s.back}>← Back to Mailair</Link>
2024
<h1 style={s.h1}>GDPR & Data Rights</h1>
@@ -81,6 +85,7 @@ export default function GDPRPage() {
8185

8286
<p style={{ ...s.meta, marginTop: 48, borderTop: '1px solid #e5e7eb', paddingTop: 24 }}>© 2025 Mailair. All rights reserved.</p>
8387
</div>
88+
</div>
8489
</>
8590
);
8691
}

frontend/pages/privacy.tsx

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,20 @@ export default function PrivacyPolicy() {
77
<Head>
88
<title>Privacy Policy — Mailair</title>
99
</Head>
10-
<div style={{ maxWidth: 760, margin: '60px auto', padding: '0 24px', fontFamily: 'sans-serif', lineHeight: 1.7, color: '#1a1a1a' }}>
11-
<Link href="/" style={{ color: '#6366f1', textDecoration: 'none', fontSize: 14 }}>← Back to Mailair</Link>
10+
<div style={{ background: '#fff', minHeight: '100vh' }}>
11+
<nav style={{ borderBottom: '1px solid #e5e7eb', padding: '0 24px', height: 56, display: 'flex', alignItems: 'center', background: '#fff' }}>
12+
<Link href="/"><img src="/logo.svg" alt="Mailair" style={{ height: 32 }} /></Link>
13+
</nav>
14+
<div style={{ maxWidth: 760, margin: '60px auto', padding: '0 24px', fontFamily: 'ui-sans-serif, system-ui, sans-serif', lineHeight: 1.8, color: '#1a1a1a' }}>
15+
<Link href="/" style={{ color: '#2563eb', textDecoration: 'none', fontSize: 14 }}>← Back to Mailair</Link>
1216

1317
<h1 style={{ marginTop: 32, fontSize: 32, fontWeight: 700 }}>Privacy Policy</h1>
1418
<p style={{ color: '#666', fontSize: 14 }}>Last updated: March 15, 2026</p>
1519

1620
<h2>1. Introduction</h2>
1721
<p>
1822
Mailair ("we", "our", or "us") operates the Mailair email management application
19-
available at <strong>inbox-iq-lilac.vercel.app</strong>. This Privacy Policy explains
23+
available at <strong>mailair.company</strong>. This Privacy Policy explains
2024
how we collect, use, and protect your information when you use our service.
2125
</p>
2226

@@ -70,7 +74,7 @@ export default function PrivacyPolicy() {
7074
<li><strong>Anthropic (Claude AI):</strong> Email content is sent to Anthropic's API to generate summaries and reply drafts. Anthropic's privacy policy applies.</li>
7175
<li><strong>Google:</strong> OAuth tokens are used to access Gmail via the Gmail API.</li>
7276
<li><strong>Supabase:</strong> Your data is stored in Supabase's secure database infrastructure.</li>
73-
<li><strong>Stripe:</strong> Payment information is handled by Stripe. We do not store credit card details.</li>
77+
<li><strong>Razorpay:</strong> Payment information is handled by Razorpay. We do not store credit card details.</li>
7478
</ul>
7579

7680
<h2>7. Data Retention</h2>
@@ -108,7 +112,8 @@ export default function PrivacyPolicy() {
108112
</p>
109113

110114
<hr style={{ margin: '48px 0', borderColor: '#e5e7eb' }} />
111-
<p style={{ color: '#999', fontSize: 13 }}>© 2026 Mailair. All rights reserved.</p>
115+
<p style={{ color: '#999', fontSize: 13 }}>© 2025 Mailair. All rights reserved.</p>
116+
</div>
112117
</div>
113118
</>
114119
);

frontend/pages/terms.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ export default function TermsOfService() {
1515
return (
1616
<>
1717
<Head><title>Terms of Service — Mailair</title></Head>
18+
<div style={{ background: '#fff', minHeight: '100vh' }}>
19+
<nav style={{ borderBottom: '1px solid #e5e7eb', padding: '0 24px', height: 56, display: 'flex', alignItems: 'center', background: '#fff' }}>
20+
<Link href="/"><img src="/logo.svg" alt="Mailair" style={{ height: 32 }} /></Link>
21+
</nav>
1822
<div style={s.wrap}>
1923
<Link href="/" style={s.back}>← Back to Mailair</Link>
2024
<h1 style={s.h1}>Terms of Service</h1>
@@ -81,6 +85,7 @@ export default function TermsOfService() {
8185

8286
<p style={{ ...s.meta, marginTop: 48, borderTop: '1px solid #e5e7eb', paddingTop: 24 }}>© 2025 Mailair. All rights reserved.</p>
8387
</div>
88+
</div>
8489
</>
8590
);
8691
}

0 commit comments

Comments
 (0)