From 6265d3faf60efca08a15c23ef8b462359feb2861 Mon Sep 17 00:00:00 2001 From: Danitello123 Date: Thu, 23 Apr 2026 13:30:59 +0100 Subject: [PATCH] feat: improve responsive typography and spacing for mobile --- src/app/page.test.tsx | 32 ++++++++++++++++++++++++++++++++ src/app/page.tsx | 24 ++++++++++++------------ 2 files changed, 44 insertions(+), 12 deletions(-) diff --git a/src/app/page.test.tsx b/src/app/page.test.tsx index 2348ac3..11ebe08 100644 --- a/src/app/page.test.tsx +++ b/src/app/page.test.tsx @@ -6,4 +6,36 @@ describe('Home', () => { render(); expect(screen.getByRole('heading', { name: /TalentTrust/i })).toBeInTheDocument(); }); + + it('renders description paragraph', () => { + render(); + expect(screen.getByText(/Safe, secure payments/i)).toBeInTheDocument(); + }); + + it('renders Key Terms section', () => { + render(); + expect(screen.getByRole('heading', { name: /Key Terms/i })).toBeInTheDocument(); + }); + + it('renders all key terms', () => { + render(); + expect(screen.getByText('Escrow')).toBeInTheDocument(); + expect(screen.getByText('Milestone')).toBeInTheDocument(); + expect(screen.getByText('Release')).toBeInTheDocument(); + }); + + it('renders term descriptions', () => { + render(); + expect(screen.getByText(/Money held safely/i)).toBeInTheDocument(); + expect(screen.getByText(/project checkpoint/i)).toBeInTheDocument(); + expect(screen.getByText(/payment goes to the freelancer/i)).toBeInTheDocument(); + }); + + it('has proper semantic structure', () => { + const { container } = render(); + expect(container.querySelector('main')).toBeInTheDocument(); + expect(container.querySelector('dl')).toBeInTheDocument(); + expect(container.querySelectorAll('dt')).toHaveLength(3); + expect(container.querySelectorAll('dd')).toHaveLength(3); + }); }); diff --git a/src/app/page.tsx b/src/app/page.tsx index 6a5f551..36392bc 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -1,21 +1,21 @@ export default function Home() { return ( -
-

+
+

TalentTrust

-

+

Safe, secure payments that protect both freelancers and clients throughout your project.

-
-

Key Terms

-
-
Escrow
-
Money held safely until work is completed and approved.
-
Milestone
-
A project checkpoint where payment is held until you approve the work.
-
Release
-
When approved work is finished, the payment goes to the freelancer.
+
+

Key Terms

+
+
Escrow
+
Money held safely until work is completed and approved.
+
Milestone
+
A project checkpoint where payment is held until you approve the work.
+
Release
+
When approved work is finished, the payment goes to the freelancer.