Skip to content

Free & Open-Source Invoice Generator - No Sign-Up, No Ads, Instant PDF Export, 100% In-Browser, and Fully Customizable Templates.

feat: improve layout on tos and founder pages, rebuilt mobile menu (#219)

Vlad Sazonau0842befd4f3d
diff --git a/.agents/skills/caveman/SKILL.md b/.agents/skills/caveman/SKILL.md
index 4ebcea7..33b4457 100644
--- a/.agents/skills/caveman/SKILL.md
+++ b/.agents/skills/caveman/SKILL.md
@@ -1,72 +1,72 @@
---
name: caveman
description: >
- Ultra-compressed communication mode. Slash token usage ~75% by speaking like caveman
- while keeping full technical accuracy. Use when user says "caveman mode", "talk like caveman",
- "use caveman", "less tokens", "be brief", or invokes /caveman. Also auto-triggers
- when token efficiency is requested.
+ Ultra-compressed communication mode. Cuts token usage ~75% by speaking like caveman
+ while keeping full technical accuracy. Supports intensity levels: lite, full (default), ultra,
+ wenyan-lite, wenyan-full, wenyan-ultra.
+ Use when user says "caveman mode", "talk like caveman", "use caveman", "less tokens",
+ "be brief", or invokes /caveman. Also auto-triggers when token efficiency is requested.
---
-# Caveman Mode
+Respond terse like smart caveman. All technical substance stay. Only fluff die.
-## Core Rule
+## Persistence
-Respond like smart caveman. Cut articles, filler, pleasantries. Keep all technical substance.
+ACTIVE EVERY RESPONSE. No revert after many turns. No filler drift. Still active if unsure. Off only: "stop caveman" / "normal mode".
-## Grammar
+Default: **full**. Switch: `/caveman lite|full|ultra`.
-- Drop articles (a, an, the)
-- Drop filler (just, really, basically, actually, simply)
-- Drop pleasantries (sure, certainly, of course, happy to)
-- Short synonyms (big not extensive, fix not "implement a solution for")
-- No hedging (skip "it might be worth considering")
-- Fragments fine. No need full sentence
-- Technical terms stay exact. "Polymorphism" stays "polymorphism"
-- Code blocks unchanged. Caveman speak around code, not in code
-- Error messages quoted exact. Caveman only for explanation
+## Rules
-## Pattern
+Drop: articles (a/an/the), filler (just/really/basically/actually/simply), pleasantries (sure/certainly/of course/happy to), hedging. Fragments OK. Short synonyms (big not extensive, fix not "implement a solution for"). Technical terms exact. Code blocks unchanged. Errors quoted exact.
-```
-[thing] [action] [reason]. [next step].
-```
+Pattern: `[thing] [action] [reason]. [next step].`
-Not:
-> Sure! I'd be happy to help you with that. The issue you're experiencing is likely caused by...
+Not: "Sure! I'd be happy to help you with that. The issue you're experiencing is likely caused by..."
+Yes: "Bug in auth middleware. Token expiry check use `<` not `<=`. Fix:"
-Yes:
-> Bug in auth middleware. Token expiry check use `<` not `<=`. Fix:
+## Intensity
-## Examples
+| Level | What change |
+| ---------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
+| **lite** | No filler/hedging. Keep articles + full sentences. Professional but tight |
+| **full** | Drop articles, fragments OK, short synonyms. Classic caveman |
+| **ultra** | Abbreviate (DB/auth/config/req/res/fn/impl), strip conjunctions, arrows for causality (X → Y), one word when one word enough |
+| **wenyan-lite** | Semi-classical. Drop filler/hedging but keep grammar structure, classical register |
+| **wenyan-full** | Maximum classical terseness. Fully 文言文. 80-90% character reduction. Classical sentence patterns, verbs precede objects, subjects often omitted, classical particles (之/乃/為/其) |
+| **wenyan-ultra** | Extreme abbreviation while keeping classical Chinese feel. Maximum compression, ultra terse |
-**User:** Why is my React component re-rendering?
+Example — "Why React component re-render?"
-**Normal (69 tokens):** "The reason your React component is re-rendering is likely because you're creating a new object reference on each render cycle. When you pass an inline object as a prop, React's shallow comparison sees it as a different object every time, which triggers a re-render. I'd recommend using useMemo to memoize the object."
+- lite: "Your component re-renders because you create a new object reference each render. Wrap it in `useMemo`."
+- full: "New object ref each render. Inline object prop = new ref = re-render. Wrap in `useMemo`."
+- ultra: "Inline obj prop → new ref → re-render. `useMemo`."
+- wenyan-lite: "組件頻重繪,以每繪新生對象參照故。以 useMemo 包之。"
+- wenyan-full: "物出新參照,致重繪。useMemo .Wrap之。"
+- wenyan-ultra: "新參照→重繪。useMemo Wrap。"
-**Caveman (19 tokens):** "New object ref each render. Inline object prop = new ref = re-render. Wrap in `useMemo`."
+Example — "Explain database connection pooling."
----
+- lite: "Connection pooling reuses open connections instead of creating new ones per request. Avoids repeated handshake overhead."
+- full: "Pool reuse open DB connections. No new connection per request. Skip handshake overhead."
+- ultra: "Pool = reuse DB conn. Skip handshake → fast under load."
+- wenyan-full: "池reuse open connection。不每req新開。skip handshake overhead。"
+- wenyan-ultra: "池reuse conn。skip handshake → fast。"
+
+## Auto-Clarity
+
+Drop caveman for: security warnings, irreversible action confirmations, multi-step sequences where fragment order risks misread, user asks to clarify or repeats question. Resume caveman after clear part done.
+
+Example — destructive op:
-**User:** How do I set up a PostgreSQL connection pool?
-
-**Caveman:**
-```
-Use `pg` pool:
-```
-```js
-const pool = new Pool({
- max: 20,
- idleTimeoutMillis: 30000,
- connectionTimeoutMillis: 2000,
-})
-```
-```
-max = concurrent connections. Keep under DB limit. idleTimeout kill stale conn.
-```
+> **Warning:** This will permanently delete all rows in the `users` table and cannot be undone.
+>
+> ```sql
+> DROP TABLE users;
+> ```
+>
+> Caveman resume. Verify backup exist first.
## Boundaries
-- Code: write normal. Caveman English only
-- Git commits: normal
-- PR descriptions: normal
-- User say "stop caveman" or "normal mode": revert immediately
+Code/commits/PRs: write normal. "stop caveman" or "normal mode": revert. Level persist until changed or session end.
diff --git a/.cursor/rules/caveman.mdc b/.cursor/rules/caveman.mdc
index fefb67c..7cd917e 100644
--- a/.cursor/rules/caveman.mdc
+++ b/.cursor/rules/caveman.mdc
@@ -1,76 +1,21 @@
---
+description: "Caveman mode — terse communication, ~75% fewer tokens, full technical accuracy"
alwaysApply: true
---
----
-name: caveman
-description: >
- Ultra-compressed communication mode. Slash token usage ~75% by speaking like caveman
- while keeping full technical accuracy. Use when user says "caveman mode", "talk like caveman",
- "use caveman", "less tokens", "be brief", or invokes /caveman. Also auto-triggers
- when token efficiency is requested.
----
-
-# Caveman Mode
-
-## Core Rule
-
-Respond like smart caveman. Cut articles, filler, pleasantries. Keep all technical substance.
-
-## Grammar
-
-- Drop articles (a, an, the)
-- Drop filler (just, really, basically, actually, simply)
-- Drop pleasantries (sure, certainly, of course, happy to)
-- Short synonyms (big not extensive, fix not "implement a solution for")
-- No hedging (skip "it might be worth considering")
-- Fragments fine. No need full sentence
-- Technical terms stay exact. "Polymorphism" stays "polymorphism"
-- Code blocks unchanged. Caveman speak around code, not in code
-- Error messages quoted exact. Caveman only for explanation
-
-## Pattern
+Respond terse like smart caveman. All technical substance stay. Only fluff die.
-```
-[thing] [action] [reason]. [next step].
-```
-
-Not:
-> Sure! I'd be happy to help you with that. The issue you're experiencing is likely caused by...
-
-Yes:
-> Bug in auth middleware. Token expiry check use `<` not `<=`. Fix:
-
-## Examples
-
-**User:** Why is my React component re-rendering?
-
-**Normal (69 tokens):** "The reason your React component is re-rendering is likely because you're creating a new object reference on each render cycle. When you pass an inline object as a prop, React's shallow comparison sees it as a different object every time, which triggers a re-render. I'd recommend using useMemo to memoize the object."
-
-**Caveman (19 tokens):** "New object ref each render. Inline object prop = new ref = re-render. Wrap in `useMemo`."
-
----
+Rules:
-**User:** How do I set up a PostgreSQL connection pool?
+- Drop: articles (a/an/the), filler (just/really/basically), pleasantries, hedging
+- Fragments OK. Short synonyms. Technical terms exact. Code unchanged.
+- Pattern: [thing] [action] [reason]. [next step].
+- Not: "Sure! I'd be happy to help you with that."
+- Yes: "Bug in auth middleware. Fix:"
-**Caveman:**
-```
-Use `pg` pool:
-```
-```js
-const pool = new Pool({
- max: 20,
- idleTimeoutMillis: 30000,
- connectionTimeoutMillis: 2000,
-})
-```
-```
-max = concurrent connections. Keep under DB limit. idleTimeout kill stale conn.
-```
+Switch level: /caveman lite|full|ultra|wenyan
+Stop: "stop caveman" or "normal mode"
-## Boundaries
+Auto-Clarity: drop caveman for security warnings, irreversible actions, user confused. Resume after.
-- Code: write normal. Caveman English only
-- Git commits: normal
-- PR descriptions: normal
-- User say "stop caveman" or "normal mode": revert immediately
+Boundaries: code/commits/PRs written normal.
diff --git a/.cursor/rules/project-structure.mdc b/.cursor/rules/project-structure.mdc
deleted file mode 100644
index 4ee5b5e..0000000
--- a/.cursor/rules/project-structure.mdc
+++ /dev/null
@@ -1,117 +0,0 @@
----
-description:
-globs:
-alwaysApply: true
----
-
-Project Structure and Architecture Guidelines
-
-Directory Structure:
-
-```
-├── app/ # Next.js App Router directory
-│ ├── (auth)/ # Auth-related routes (grouped)
-│ ├── api/ # API routes
-│ └── layout.tsx # Root layout
-├── components/ # Reusable components
-│ ├── ui/ # Shadcn UI components
-│ └── [feature]/ # Feature-specific components
-├── lib/ # Shared utilities
-│ ├── utils.ts # General utilities
-│ └── validations.ts # Zod schemas
-├── hooks/ # Custom React hooks
-├── styles/ # Global styles
-└── types/ # TypeScript types
-```
-
-Component Organization:
-
-- Group related components in feature directories
-- Keep components small and focused
-- Extract reusable logic into custom hooks
-- Place shared types in dedicated files
-
-File Naming:
-
-- Use kebab-case for directories and files
-- Components: PascalCase.tsx
-- Utilities: camelCase.ts
-- Types: PascalCase.types.ts
-
-Component Structure:
-
-```typescript
-// types.ts
-interface Props {
- // ... props interface
-}
-
-// helpers.ts
-function helperFunction() {
- // ... helper logic
-}
-
-// Component.tsx
-import { type Props } from "./types";
-import { helperFunction } from "./helpers";
-
-export function Component({ prop1, prop2 }: Props) {
- // ... component logic
-}
-```
-
-Data Fetching:
-
-- Use Server Components for data fetching
-- Implement proper caching strategies
-- Handle loading and error states
-- Use React Suspense boundaries
-
-Route Organization:
-
-- Group related routes in directories
-- Use route groups (parentheses) for organization
-- Keep page components lean
-- Extract business logic to separate files
-
-State Management:
-
-- Use Server Components when possible
-- Keep client state minimal
-- Use React Context sparingly
-
-API Structure:
-
-- Organize by feature/resource
-- Use consistent error handling
-- Implement proper validation
-- Follow RESTful conventions
-
-Red flags in a React codebase
-
-🚩 functions like <button onClick={handleClick}
-
-- handleClick doesn't explain what it does
-- you lose colocation
-- need new names for each callback
-
-Inline callbacks can call multiple functions with good names
-
-onClick={() => {
-analytics.event('this-button')
-openModal()
-
-🚩 useMemo
-
-React devs are terrified of renders and often overuseMemo
-
-- memoize things that you pass as props to components that may have expensive children
-- it's ok for leaf components to over-render
-
-useMemo does not fix bugs, it just makes them happen less often
-
-🚩 <div onClick
-
-divs are not interactive elements and adding onClick requires implementing keyboard control, screen reader announcement, etc
-
-This is almost never the right move, and anyone capable of doing it right (the new tweet button) isn't going to be swayed by this tweet
diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml
index f30ce05..75e4b89 100644
--- a/.github/workflows/e2e.yml
+++ b/.github/workflows/e2e.yml
@@ -77,7 +77,8 @@ jobs:
echo "pr_url=$PR_URL" >> "$GITHUB_OUTPUT"
- name: 📧 Send email
- if: always()
+ ## send email only if the workflow is not cancelled (success or failure)
+ if: always() && !cancelled()
# https://github.com/dawidd6/action-send-mail
uses: dawidd6/action-send-mail@d38f3f7cd391cdebfe0d38efc3998b935e951c4f # v16
with:
diff --git a/README.md b/README.md
index d569857..120630e 100644
--- a/README.md
+++ b/README.md
@@ -6,7 +6,7 @@
<h1>EasyInvoicePDF</h1>
<h3>Free & Open-Source Invoice Generator</h3>
<p>Create professional invoices instantly in your browser with <strong>Live Preview</strong>, <strong>Multiple Templates</strong> (including a Stripe-style design). <strong>No Sign-Up Required</strong>.</p>
- <p><a href="https://easyinvoicepdf.com/?template=stripe&ref=github"><strong>Get Started</strong></a></p>
+ <p><a href="https://easyinvoicepdf.com/?template=stripe&ref=github"><strong>Start Invoicing</strong></a></p>
<p>
<a href="https://easyinvoicepdf.com/en/about?ref=github">About</a>
·
diff --git a/e2e/about.test.ts b/e2e/about.test.ts
index a6643cc..d8b0cd3 100644
--- a/e2e/about.test.ts
+++ b/e2e/about.test.ts
@@ -455,6 +455,8 @@ test.describe("About page", () => {
await expect(page).toHaveURL("/?template=default");
});
+ // we don't show nav links and language switcher in header on mobile
+ // we test mobile menu separately
test("should show desktop nav links in header (ON MOBILE TEST WILL BE SKIPPED)", async ({
page,
isMobile,
@@ -502,6 +504,8 @@ test.describe("About page", () => {
).toBeHidden();
});
+ // we don't show nav links and language switcher in header on mobile
+ // we test desktop nav links separately
test("should show mobile menu with nav links and language switcher (ON DESKTOP TEST WILL BE SKIPPED)", async ({
page,
isMobile,
@@ -557,7 +561,7 @@ test.describe("About page", () => {
await expect(termsLinkMobile).toHaveAttribute("href", "/tos");
const githubLink = sheet.getByRole("link", {
- name: "View on GitHub",
+ name: "Star on GitHub",
exact: true,
});
await expect(githubLink).toBeVisible();
@@ -575,7 +579,17 @@ test.describe("About page", () => {
).toBeVisible();
// Close the menu and verify burger button is accessible again
- await sheet.getByRole("button", { name: "Close menu" }).click();
+ await page.getByRole("button", { name: "Close menu" }).click();
await expect(burgerButton).toBeVisible();
+
+ // Verify mobile menu is closed
+ await expect(
+ page.getByRole("dialog", { name: "Mobile Menu" }),
+ ).toBeHidden();
+
+ // Verify burger button is visible again
+ await expect(
+ header.getByRole("button", { name: "Open menu" }),
+ ).toBeVisible();
});
});
diff --git a/e2e/tos.test.ts b/e2e/tos.test.ts
index 20a923f..9579d85 100644
--- a/e2e/tos.test.ts
+++ b/e2e/tos.test.ts
@@ -6,9 +6,7 @@ test.describe("Terms of Service page", () => {
await expect(page).toHaveURL("/tos");
- await expect(page).toHaveTitle(
- "Terms of Service | EasyInvoicePDF - Free & Open-Source Invoice Generator",
- );
+ await expect(page).toHaveTitle("Terms of Service | EasyInvoicePDF");
await expect(
page.getByRole("heading", {
diff --git a/messages/en.json b/messages/en.json
index 2b86a11..f7f4a69 100644
--- a/messages/en.json
+++ b/messages/en.json
@@ -60,7 +60,7 @@
},
"buttons": {
"goToApp": "Open app",
- "viewOnGithub": "View on GitHub",
+ "viewOnGithub": "Star on GitHub",
"starOnGithub": "Star on GitHub",
"switchLanguage": "Switch language",
"shareFeedback": "Share feedback",
diff --git a/public/llms.txt b/public/llms.txt
index abdc0cc..9d779e1 100644
--- a/public/llms.txt
+++ b/public/llms.txt
@@ -1,17 +1,60 @@
# EasyInvoicePDF
-[EasyInvoicePDF](https://easyinvoicepdf.com) is a free and open-source invoice generator that runs entirely in your browser. It offers live previews, shareable links, instant PDF downloads, and supports multiple languages and currencies, including European VAT calculations. Built with React, TypeScript, Next.js, and TailwindCSS, it ensures privacy and security by processing data client-side.
+[EasyInvoicePDF](https://easyinvoicepdf.com) is a free, open-source web app for creating professional invoices with a live PDF preview, instant download, and shareable links that encode invoice state in the URL. It ships multiple templates (including a Stripe-inspired layout), supports customizable tax labels (VAT, GST, sales tax, and similar), QR codes on invoices, and multi-page PDFs. The UI is built with React, TypeScript, Next.js, Tailwind CSS, shadcn/ui, Origin UI, and [@react-pdf/renderer](https://github.com/diegomura/react-pdf). You can start without signing up. The project is maintained by [Vlad Sazonau](https://vladsazon.com).
-## Features
+## Who it is for
-- **Live Previews**: Real-time updates as you make changes.
-- **Shareable Links**: Easily share invoices with clients.
-- **Instant PDF Downloads**: Download invoices with one click.
-- **Multi-language and Currency Support**: Create invoices in English, Polish, German, Spanish, Portuguese, Russian, Ukrainian, French, Italian, Dutch and other languages, with support for all major currencies.
-- **European VAT Calculations**: Automatic VAT rate calculations.
+- Freelancers and agencies invoicing clients in different countries
+- Small businesses that want a fast, template-based PDF workflow
+- Teams that share invoices via a link instead of email attachments
+- Users who need European-style VAT handling and flexible tax labeling
+- Developers and organizations evaluating AGPL-3.0 source code or a commercial license for proprietary use
-## Main Pages
+## Licensing and availability
+
+- **Web app**: Free to use at [easyinvoicepdf.com](https://easyinvoicepdf.com).
+- **Open source**: Source code is licensed under [GNU AGPL-3.0](https://www.gnu.org/licenses/agpl-3.0.html) for open-source or compliant use.
+- **Commercial use**: A separate commercial license is available for proprietary deployments. Contact [[email protected]](mailto:[email protected]) for details.
+
+## Key features
+
+- **Live PDF preview**: Invoice updates as you edit fields.
+- **No sign-up**: Open the app and generate invoices immediately.
+- **Instant PDF download**: Client-side PDF generation for quick export.
+- **Shareable links**: Encode invoice data in the URL for easy sharing (sharing is disabled when certain assets, such as a logo on the default template, make the payload unsuitable for links).
+- **Templates**: Default layout plus a Stripe-style template; logo support on the default template.
+- **Logo upload**: Add custom branding by uploading your company logo to invoices.
+- **Languages**: Ten UI locales: English, Polish, German, Spanish, Portuguese, Russian, Ukrainian, French, Italian, and Dutch.
+- **Currencies**: 120+ currencies with a searchable selector.
+- **Tax and dates**: Customizable tax labels per language, multiple date formats, and validation helpers for VAT-style values.
+- **QR codes**: Optional QR blocks for payment links, UPI, contact data, or custom payloads.
+- **Multi-page PDFs**: Automatic pagination and page breaks for long invoices.
+- **Mobile-friendly**: Responsive layout and mobile-oriented UX patterns.
+
+## Key differentiators
+
+- Live PDF preview: see invoice changes instantly as you type.
+- No account wall: editing and preview stay lightweight for occasional use.
+- Shareable URL model for collaboration and review.
+- Strong internationalization (10 languages) and broad currency coverage out of the box.
+- Dual template story (classic plus Stripe-inspired) for different brand aesthetics.
+- Mobile-friendly design: responsive layout and touch-optimized UX for phones and tablets.
+- Open-source codebase with a clear AGPL-3.0 plus commercial licensing path.
+
+## Links
- [Home](https://easyinvoicepdf.com)
-- [Features](https://easyinvoicepdf.com/en/about)
-- [FAQ](https://easyinvoicepdf.com/en/about#faq)
\ No newline at end of file
+- [GitHub repository](https://github.com/VladSez/easy-invoice-pdf)
+- [About / marketing](https://easyinvoicepdf.com/en/about)
+- [Features (on About)](https://easyinvoicepdf.com/en/about#features)
+- [FAQ (on About)](https://easyinvoicepdf.com/en/about#faq)
+- [Changelog](https://easyinvoicepdf.com/changelog)
+- [Founder](https://easyinvoicepdf.com/founder)
+- [Terms of Service](https://easyinvoicepdf.com/tos)
+- [GitHub releases](https://github.com/VladSez/easy-invoice-pdf/releases)
+- [EasyInvoicePDF on X](https://x.com/EasyInvoicePDF)
+- [Vlad Sazonau on X](https://x.com/vladsazonau)
+- [Demo video (YouTube)](https://www.youtube.com/watch?v=iAROeCIcZ40)
+- [Share feedback](https://dub.sh/easy-invoice-pdf-feedback)
+- [Bug reports / feature board](https://pdfinvoicegenerator.userjot.com/board/bugs)
+- [Buy Me a Coffee](https://buymeacoffee.com/vladsazon)
diff --git a/skills-lock.json b/skills-lock.json
index d46927e..b97f982 100644
--- a/skills-lock.json
+++ b/skills-lock.json
@@ -4,7 +4,8 @@
"caveman": {
"source": "JuliusBrussee/caveman",
"sourceType": "github",
- "computedHash": "aa7939fc4d1fe31484090290da77f2d21e026aa4b34b329d00e6630feb985d75"
+ "skillPath": "caveman/SKILL.md",
+ "computedHash": "a818cdc41dcfaa50dd891c5cb5e5705968338de02e7e37949ca56e8c30ad4176"
},
"changelog-maintenance": {
"source": "supercent-io/skills-template",
diff --git a/src/app/(app)/components/invoice-page-header.tsx b/src/app/(app)/components/invoice-page-header.tsx
index 48ce88b..67ed1ef 100644
--- a/src/app/(app)/components/invoice-page-header.tsx
+++ b/src/app/(app)/components/invoice-page-header.tsx
@@ -14,7 +14,7 @@ import { CustomTooltip } from "@/components/ui/tooltip";
import Link from "next/link";
import { GithubIcon } from "@/components/etc/github-logo";
-import { ProjectLogoDescription } from "@/components/project-logo-description";
+import { ProjectLogoDescription } from "@/app/(components)/project-logo-description";
import { GITHUB_URL, VIDEO_DEMO_YOUTUBE_URL } from "@/config";
import { umamiTrackEvent } from "@/lib/umami-analytics-track-event";
import { cn } from "@/lib/utils";
diff --git a/src/app/(app)/page.client.tsx b/src/app/(app)/page.client.tsx
index be18f9d..cb2603a 100644
--- a/src/app/(app)/page.client.tsx
+++ b/src/app/(app)/page.client.tsx
@@ -18,7 +18,7 @@ import {
getAppMetadata,
updateAppMetadata,
} from "@/app/(app)/utils/get-app-metadata";
-import { Footer } from "@/components/footer";
+import { Footer } from "@/app/(components)/footer";
import { GitHubStarCTA } from "@/components/github-star-cta";
import { GITHUB_URL } from "@/config";
import { umamiTrackEvent } from "@/lib/umami-analytics-track-event";
diff --git a/src/components/footer.tsx b/src/app/(components)/footer.tsx
similarity index 100%
rename from src/components/footer.tsx
rename to src/app/(components)/footer.tsx
diff --git a/src/components/animated-go-to-app-btn.tsx b/src/app/(components)/header/animated-go-to-app-btn.tsx
similarity index 93%
rename from src/components/animated-go-to-app-btn.tsx
rename to src/app/(components)/header/animated-go-to-app-btn.tsx
index 98c5bb3..ffdcb38 100644
--- a/src/components/animated-go-to-app-btn.tsx
+++ b/src/app/(components)/header/animated-go-to-app-btn.tsx
@@ -1,7 +1,7 @@
"use client";
+import { Button } from "@/components/ui/button";
import { ArrowRightIcon } from "lucide-react";
-import { Button } from "./ui/button";
import Link from "next/link";
export function BlackAnimatedGoToAppBtn({
diff --git a/src/components/go-to-app-button-cta.tsx b/src/app/(components)/header/go-to-app-button-cta.tsx
similarity index 100%
rename from src/components/go-to-app-button-cta.tsx
rename to src/app/(components)/header/go-to-app-button-cta.tsx
diff --git a/src/app/(components)/header/index.tsx b/src/app/(components)/header/index.tsx
index b952ffd..f451018 100644
--- a/src/app/(components)/header/index.tsx
+++ b/src/app/(components)/header/index.tsx
@@ -1,7 +1,8 @@
"use client";
-import { BlackAnimatedGoToAppBtn } from "@/components/animated-go-to-app-btn";
+import { BlackAnimatedGoToAppBtn } from "@/app/(components)/header/animated-go-to-app-btn";
import { GithubIcon } from "@/components/etc/github-logo";
+import { Button } from "@/components/ui/button";
import { GITHUB_URL } from "@/config";
import { cn } from "@/lib/utils";
import { type Locale } from "next-intl";
@@ -10,7 +11,8 @@ import { usePathname } from "next/navigation";
import { useState } from "react";
import { LanguageSwitcher } from "./language-switcher";
import { Logo } from "./logo";
-import { MobileMenu } from "./mobile-menu";
+import { MobileMenuPanel } from "./mobile-menu";
+import { MorphingMenuIcon } from "./morphing-menu-icon";
export interface HeaderProps {
locale: Locale;
@@ -20,6 +22,7 @@ export interface HeaderProps {
faq: string;
github: string;
githubUrl: string;
+ githubCTA: string;
};
switchLanguageText: string;
goToAppText: string;
@@ -35,7 +38,8 @@ export function Header({
translations,
hideLanguageSwitcher = false,
}: HeaderProps) {
- const [open, setOpen] = useState(false);
+ const [isMobileMenuOpen, setIsMobileMenuOpen] = useState(false);
+
const pathname = usePathname();
const isChangelogActive = pathname === "/changelog";
@@ -49,14 +53,8 @@ export function Header({
<div className="flex items-center justify-center">
<div className="container h-16 px-4 md:px-6">
<div className="flex h-full items-center justify-between gap-4">
- {/* Logo - hidden from header when sheet is open */}
- <div
- className={cn(open && "pointer-events-none invisible")}
- aria-hidden={open ? true : undefined}
- tabIndex={open ? -1 : undefined}
- >
- <Logo />
- </div>
+ {/* App logo */}
+ <Logo />
{/* Right side actions */}
<div className="flex items-center gap-1">
@@ -119,39 +117,45 @@ export function Header({
)}
</div>
- {/* CTA button - hidden from header on mobile when sheet is open */}
- <div
- className={cn(
- open &&
- "pointer-events-none invisible lg:pointer-events-auto lg:visible",
- )}
- aria-hidden={open ? true : undefined}
- >
- <BlackAnimatedGoToAppBtn>
- {translations.goToAppText}
- </BlackAnimatedGoToAppBtn>
- </div>
+ {/* CTA button */}
+ <BlackAnimatedGoToAppBtn>
+ {translations.goToAppText}
+ </BlackAnimatedGoToAppBtn>
- {/* Burger menu -- mobile only; hidden when sheet is open (X is inside sheet) */}
- <div
- className={cn(
- "relative lg:hidden",
- open && "pointer-events-none invisible",
- )}
- aria-hidden={open ? true : undefined}
- >
- <MobileMenu
- open={open}
- onOpenChange={setOpen}
- locale={locale}
- translations={translations}
- hideLanguageSwitcher={hideLanguageSwitcher}
- />
+ {/* Mobile menu toggle: hamburger or X; panel opens below header */}
+ <div className="relative lg:hidden">
+ <Button
+ type="button"
+ size="icon"
+ variant="ghost"
+ className="rounded-full shadow-none"
+ aria-label={isMobileMenuOpen ? "Close menu" : "Open menu"}
+ aria-expanded={isMobileMenuOpen}
+ {...(!isMobileMenuOpen
+ ? { "aria-haspopup": "dialog" as const }
+ : {})}
+ onClick={() => setIsMobileMenuOpen(!isMobileMenuOpen)}
+ >
+ <MorphingMenuIcon
+ isOpen={isMobileMenuOpen}
+ className="size-5"
+ aria-hidden
+ />
+ </Button>
</div>
</div>
</div>
</div>
</div>
+
+ {isMobileMenuOpen ? (
+ <MobileMenuPanel
+ onOpenChange={setIsMobileMenuOpen}
+ locale={locale}
+ translations={translations}
+ hideLanguageSwitcher={hideLanguageSwitcher}
+ />
+ ) : null}
</header>
);
}
diff --git a/src/app/(components)/header/logo.tsx b/src/app/(components)/header/logo.tsx
index 03a9672..12da97e 100644
--- a/src/app/(components)/header/logo.tsx
+++ b/src/app/(components)/header/logo.tsx
@@ -1,7 +1,7 @@
"use client";
import { FinalProjectLogo } from "@/components/etc/final-project-logo";
-import { ProjectLogoDescription } from "@/components/project-logo-description";
+import { ProjectLogoDescription } from "@/app/(components)/project-logo-description";
import { useTranslations } from "next-intl";
export function Logo() {
diff --git a/src/app/(components)/header/mobile-menu.tsx b/src/app/(components)/header/mobile-menu.tsx
index 61ab4c2..8de2a4f 100644
--- a/src/app/(components)/header/mobile-menu.tsx
+++ b/src/app/(components)/header/mobile-menu.tsx
@@ -1,41 +1,44 @@
"use client";
import { GithubIcon } from "@/components/etc/github-logo";
-import { BlackAnimatedGoToAppBtn } from "@/components/animated-go-to-app-btn";
import { Button } from "@/components/ui/button";
import { cn } from "@/lib/utils";
-import {
- Sheet,
- SheetClose,
- SheetContent,
- SheetDescription,
- SheetTitle,
- SheetTrigger,
-} from "@/components/ui/sheet";
+import { ArrowRightIcon } from "lucide-react";
import type { Locale } from "next-intl";
import Link from "next/link";
import { usePathname } from "next/navigation";
-import { ArrowRightIcon, Menu, X } from "lucide-react";
-import { LanguageSwitcher } from "./language-switcher";
-import { Logo } from "./logo";
+import { useEffect, useId, useRef } from "react";
import type { HeaderProps } from ".";
+import { LanguageSwitcher } from "./language-switcher";
-interface MobileMenuProps {
- open: boolean;
- onOpenChange: (open: boolean) => void;
+interface MobileMenuSharedProps {
locale: Locale;
translations: HeaderProps["translations"];
hideLanguageSwitcher?: boolean;
}
-export function MobileMenu({
- open,
+interface MobileMenuPanelProps extends MobileMenuSharedProps {
+ onOpenChange: (open: boolean) => void;
+}
+
+/**
+ * Mobile menu panel component that renders navigation links, language switcher,
+ * and other menu items in a dialog overlay on mobile viewports.
+ *
+ * @param onOpenChange - Callback to update mobile menu open state
+ * @param locale - Current language locale
+ * @param translations - Header translations object
+ * @param hideLanguageSwitcher - Whether to hide the language switcher
+ */
+export function MobileMenuPanel({
onOpenChange,
locale,
translations,
hideLanguageSwitcher,
-}: MobileMenuProps) {
+}: MobileMenuPanelProps) {
const pathname = usePathname();
+ const titleId = useId();
+ const descriptionId = useId();
const isChangelogActive = pathname === "/changelog";
const isTosActive = pathname === "/tos";
@@ -43,152 +46,127 @@ export function MobileMenu({
const mobileNavLinkClass =
"flex items-center rounded-lg px-4 py-4 text-lg font-medium transition-colors hover:bg-slate-100/90 hover:text-black";
- return (
- <Sheet open={open} onOpenChange={onOpenChange}>
- <SheetTrigger asChild>
- <Button
- size="icon"
- variant="ghost"
- className="rounded-full shadow-none"
- aria-label="Open menu"
- >
- <Menu size={20} />
- </Button>
- </SheetTrigger>
+ const onOpenChangeRef = useRef(onOpenChange);
+ onOpenChangeRef.current = onOpenChange;
- <SheetContent
- side="top"
- animation="fade"
- className="bottom-0 top-0 flex flex-col border-b-0 bg-white px-0 py-0"
- showCloseButton={false}
- >
- <SheetTitle className="sr-only">Mobile Menu</SheetTitle>
- <SheetDescription className="sr-only">
- Navigation menu with links to features, FAQ, changelog, terms of
- service, and language settings
- </SheetDescription>
+ useEffect(() => {
+ function onKeyDown(e: KeyboardEvent) {
+ if (e.key === "Escape") onOpenChangeRef.current(false);
+ }
+ window.addEventListener("keydown", onKeyDown);
+ return () => window.removeEventListener("keydown", onKeyDown);
+ }, []);
- {/* Faux header row mirroring the page header */}
- <header className="w-full border-b bg-white shadow-sm">
- <div className="flex items-center justify-center">
- <div className="container h-16 px-4 md:px-6">
- <div className="flex h-full items-center justify-between gap-4">
- <Logo />
- <div className="flex items-center gap-1">
- <BlackAnimatedGoToAppBtn>
- {translations.goToAppText}
- </BlackAnimatedGoToAppBtn>
- <SheetClose asChild>
- <Button
- size="icon"
- variant="ghost"
- className="rounded-full shadow-none"
- aria-label="Close menu"
- >
- <X size={20} />
- </Button>
- </SheetClose>
- </div>
- </div>
- </div>
- </div>
- </header>
+ const close = () => onOpenChange(false);
- <nav className="container flex flex-col gap-1 px-6 py-4 md:px-10">
- <SheetClose asChild>
- {/* this is only reliable way to scroll to a section on route navigation*/}
- <a
- href={`/${locale}/about#features`}
- className={cn(mobileNavLinkClass, "text-slate-700")}
- >
- {translations.navLinks.features}
- </a>
- </SheetClose>
- <SheetClose asChild>
- {/* this is only reliable way to scroll to a section on route navigation*/}
- <a
- href={`/${locale}/about#faq`}
- className={cn(mobileNavLinkClass, "text-slate-700")}
- >
- {translations.navLinks.faq}
- </a>
- </SheetClose>
- <SheetClose asChild>
- <Link
- href="/changelog"
- className={cn(
- mobileNavLinkClass,
- isChangelogActive
- ? "bg-slate-100 text-black"
- : "text-slate-700",
- )}
- >
- {translations.changelogLinkText}
- </Link>
- </SheetClose>
- <SheetClose asChild>
- {/* eslint-disable-next-line @next/next/no-html-link-for-pages */}
- <a
- href="/tos"
- className={cn(
- mobileNavLinkClass,
- isTosActive ? "bg-slate-100 text-black" : "text-slate-700",
- )}
- >
- {translations.termsOfServiceLinkText}
- </a>
- </SheetClose>
- <SheetClose asChild>
- <Link
- href={translations.navLinks.githubUrl}
- target="_blank"
- rel="noopener noreferrer"
- className="flex items-center gap-3 rounded-lg px-4 py-4 text-lg font-medium text-slate-700 transition-colors hover:bg-slate-100 hover:text-slate-900"
- aria-label="View on GitHub"
- >
- <GithubIcon className="size-5" />
- {translations.navLinks.github}
- </Link>
- </SheetClose>
+ return (
+ <div
+ role="dialog"
+ aria-modal="false"
+ aria-labelledby={titleId}
+ aria-describedby={descriptionId}
+ className={cn(
+ "fixed inset-x-0 top-16 z-[60] flex max-h-[calc(100dvh-4rem)] flex-col overflow-y-auto border-b bg-white shadow-lg",
+ "duration-200 animate-in fade-in slide-in-from-top-2",
+ )}
+ >
+ <h2 id={titleId} className="sr-only">
+ Mobile Menu
+ </h2>
+ <p id={descriptionId} className="sr-only">
+ Mobile navigation menu with links to features, FAQ, changelog, terms of
+ service, invoice pdf generator app, and language settings
+ </p>
+
+ <nav className="container flex flex-col gap-1 px-6 py-4 md:px-10">
+ <a
+ href={`/${locale}/about#features`}
+ className={cn(mobileNavLinkClass, "text-slate-700")}
+ onClick={close}
+ >
+ {translations.navLinks.features}
+ </a>
+ <a
+ href={`/${locale}/about#faq`}
+ className={cn(mobileNavLinkClass, "text-slate-700")}
+ onClick={close}
+ >
+ {translations.navLinks.faq}
+ </a>
+ <Link
+ href="/changelog"
+ className={cn(
+ mobileNavLinkClass,
+ isChangelogActive
+ ? "bg-slate-200 text-black hover:bg-slate-200/80"
+ : "text-slate-700",
+ )}
+ onClick={close}
+ >
+ {translations.changelogLinkText}
+ </Link>
+ {/* eslint-disable-next-line @next/next/no-html-link-for-pages */}
+ <a
+ href="/tos"
+ className={cn(
+ mobileNavLinkClass,
+ isTosActive
+ ? "bg-slate-200 text-black hover:bg-slate-200/80"
+ : "text-slate-700",
+ )}
+ onClick={close}
+ >
+ {translations.termsOfServiceLinkText}
+ </a>
+ <Link
+ href={translations.navLinks.githubUrl}
+ target="_blank"
+ rel="noopener noreferrer"
+ className="flex items-center gap-3 rounded-lg px-4 py-4 text-lg font-medium text-slate-700 transition-colors hover:bg-slate-100 hover:text-slate-900"
+ aria-label={translations.navLinks.githubCTA}
+ onClick={close}
+ >
+ <GithubIcon className="size-5" />
+ {translations.navLinks.githubCTA}
+ </Link>
- {/* Start Invoicing CTA Button */}
- <div className="w-fit pt-4" onClick={() => onOpenChange(false)}>
- <Button
- size="lg"
- variant="outline"
- className={
- "group relative overflow-hidden bg-zinc-900 px-5 py-6 text-lg text-white transition-all duration-300 hover:scale-[1.02] hover:bg-zinc-800 hover:text-white active:scale-[0.98] sm:px-8"
- }
- asChild
+ <div className="w-fit pt-4">
+ <Button
+ size="lg"
+ variant="outline"
+ className={
+ "group relative overflow-hidden bg-zinc-900 px-5 py-6 text-lg text-white transition-all duration-300 hover:scale-[1.02] hover:bg-zinc-800 hover:text-white active:scale-[0.98] sm:px-8"
+ }
+ asChild
+ >
+ <Link
+ href="/?template=default"
+ scroll={false}
+ className="flex items-center"
+ onClick={close}
>
- <Link
- href="/?template=default"
- scroll={false}
- className="flex items-center"
- >
- <ArrowRightIcon className="mr-2 size-6 group-hover:scale-110" />
+ <ArrowRightIcon className="mr-2 size-6 group-hover:scale-110" />
- {translations.startInvoicingButtonText}
- </Link>
- </Button>
- </div>
- </nav>
+ {translations.startInvoicingButtonText}
+ </Link>
+ </Button>
+ </div>
+ </nav>
- {!hideLanguageSwitcher && (
- <div className="mt-auto border-t border-slate-200 px-6 pb-6 pt-5">
- <div className="flex items-center gap-2 px-2">
- <span className="text-sm text-slate-700">
- {translations.switchLanguageText}
- </span>
- <LanguageSwitcher
- locale={locale}
- buttonText={translations.switchLanguageText}
- onSelect={() => onOpenChange(false)}
- />
- </div>
+ {!hideLanguageSwitcher ? (
+ <div className="border-t border-slate-200 px-6 pb-6 pt-5">
+ <div className="flex items-center gap-2 px-2">
+ <span className="text-sm text-slate-700">
+ {translations.switchLanguageText}
+ </span>
+ <LanguageSwitcher
+ locale={locale}
+ buttonText={translations.switchLanguageText}
+ onSelect={close}
+ />
</div>
- )}
- </SheetContent>
- </Sheet>
+ </div>
+ ) : null}
+ </div>
);
}
diff --git a/src/app/(components)/header/morphing-menu-icon.tsx b/src/app/(components)/header/morphing-menu-icon.tsx
new file mode 100644
index 0000000..de84737
--- /dev/null
+++ b/src/app/(components)/header/morphing-menu-icon.tsx
@@ -0,0 +1,93 @@
+"use client";
+
+import { cn } from "@/lib/utils";
+import { motion, useReducedMotion, type Transition } from "motion/react";
+
+const lineTransition = {
+ type: "tween",
+ duration: 0.2,
+ ease: [0.4, 0, 0.2, 1],
+} as const satisfies Transition;
+
+const closed = {
+ line1: { x1: 3, y1: 6, x2: 21, y2: 6, opacity: 1 },
+ line2: { x1: 3, y1: 12, x2: 21, y2: 12, opacity: 1 },
+ line3: { x1: 3, y1: 18, x2: 21, y2: 18, opacity: 1 },
+} as const;
+
+const open = {
+ line1: { x1: 5, y1: 5, x2: 19, y2: 19, opacity: 1 },
+ line2: { x1: 12, y1: 12, x2: 12, y2: 12, opacity: 0 },
+ line3: { x1: 19, y1: 5, x2: 5, y2: 19, opacity: 1 },
+} as const;
+
+interface MorphingMenuIconProps {
+ isOpen: boolean;
+ className?: string;
+ "aria-hidden"?: boolean;
+}
+
+/**
+ * Morphing menu icon that animates between hamburger and X states.
+ *
+ * **Inspired by:** https://benji.org/morphing-icons-with-claude
+ */
+export function MorphingMenuIcon({
+ isOpen,
+ className,
+ "aria-hidden": ariaHidden = true,
+}: MorphingMenuIconProps) {
+ const prefersReducedMotion = useReducedMotion();
+
+ const transition = prefersReducedMotion ? { duration: 0 } : lineTransition;
+
+ const state = isOpen ? open : closed;
+
+ return (
+ <motion.svg
+ xmlns="http://www.w3.org/2000/svg"
+ viewBox="0 0 24 24"
+ fill="none"
+ stroke="currentColor"
+ strokeWidth={2}
+ strokeLinecap="round"
+ className={cn("shrink-0", className)}
+ aria-hidden={ariaHidden}
+ initial={false} // prevent animation on mount
+ >
+ <motion.line
+ initial={false} // prevent animation on mount
+ animate={{
+ x1: state.line1.x1,
+ y1: state.line1.y1,
+ x2: state.line1.x2,
+ y2: state.line1.y2,
+ opacity: state.line1.opacity,
+ }}
+ transition={transition}
+ />
+ <motion.line
+ initial={false} // prevent animation on mount
+ animate={{
+ x1: state.line2.x1,
+ y1: state.line2.y1,
+ x2: state.line2.x2,
+ y2: state.line2.y2,
+ opacity: state.line2.opacity,
+ }}
+ transition={transition}
+ />
+ <motion.line
+ initial={false} // prevent animation on mount
+ animate={{
+ x1: state.line3.x1,
+ y1: state.line3.y1,
+ x2: state.line3.x2,
+ y2: state.line3.y2,
+ opacity: state.line3.opacity,
+ }}
+ transition={transition}
+ />
+ </motion.svg>
+ );
+}
diff --git a/src/components/project-logo-description.tsx b/src/app/(components)/project-logo-description.tsx
similarity index 100%
rename from src/components/project-logo-description.tsx
rename to src/app/(components)/project-logo-description.tsx
diff --git a/src/app/[locale]/about/page.tsx b/src/app/[locale]/about/page.tsx
index 1651c28..1158844 100644
--- a/src/app/[locale]/about/page.tsx
+++ b/src/app/[locale]/about/page.tsx
@@ -1,9 +1,9 @@
import { GithubIcon } from "@/components/etc/github-logo";
-import { Footer } from "@/components/footer";
+import { Footer } from "@/app/(components)/footer";
import {
BlackGoToAppButton,
GoToAppButton,
-} from "@/components/go-to-app-button-cta";
+} from "@/app/(components)/header/go-to-app-button-cta";
import { Button } from "@/components/ui/button";
import { TooltipProvider } from "@/components/ui/tooltip";
@@ -22,7 +22,7 @@ import { setRequestLocale } from "next-intl/server";
import Link from "next/link";
import { type Graph } from "schema-dts";
import { GithubStarCtaMarketingPageBody } from "@/app/[locale]/about/components/github-star-cta-body";
-import { Header } from "@/app/(components)/header";
+import { Header, type HeaderProps } from "@/app/(components)/header";
// statically generate the pages for all locales
export function generateStaticParams() {
@@ -42,7 +42,8 @@ export default function AboutPage({ params }: { params: { locale: Locale } }) {
faq: "FAQ",
github: t("footer.links.github"),
githubUrl: GITHUB_URL,
- };
+ githubCTA: t("buttons.viewOnGithub"),
+ } as const satisfies HeaderProps["translations"]["navLinks"];
const switchLanguageText = t("buttons.switchLanguage");
const goToAppText = t("buttons.goToApp");
diff --git a/src/app/changelog/[slug]/page.tsx b/src/app/changelog/[slug]/page.tsx
index 06a088a..342b720 100644
--- a/src/app/changelog/[slug]/page.tsx
+++ b/src/app/changelog/[slug]/page.tsx
@@ -14,7 +14,7 @@ import { Suspense } from "react";
import { ChangelogAuthorByline } from "../components/changelog-author-byline";
import { ChangelogVersionBadgeLink } from "../components/changelog-version-badge-link";
import { DateTime } from "../components/date-time";
-import { BlackGoToAppButton } from "@/components/go-to-app-button-cta";
+import { BlackGoToAppButton } from "@/app/(components)/header/go-to-app-button-cta";
import * as Sentry from "@sentry/nextjs";
interface ChangelogPageProps {
diff --git a/src/app/changelog/layout.tsx b/src/app/changelog/layout.tsx
index 17c5979..4786267 100644
--- a/src/app/changelog/layout.tsx
+++ b/src/app/changelog/layout.tsx
@@ -1,5 +1,5 @@
import { Header } from "@/app/(components)/header";
-import { Footer } from "@/components/footer";
+import { Footer } from "@/app/(components)/footer";
import { GITHUB_URL, STATIC_ASSETS_URL } from "@/config";
import type { Metadata } from "next";
import Link from "next/link";
@@ -90,6 +90,7 @@ export default function ChangelogLayout({ children }: ChangelogLayoutProps) {
faq: "FAQ",
github: "GitHub",
githubUrl: GITHUB_URL,
+ githubCTA: "Star on GitHub",
},
switchLanguageText: "Switch Language",
goToAppText: "Open app",
diff --git a/src/app/founder/components/animated-div.tsx b/src/app/founder/components/animated-div.tsx
new file mode 100644
index 0000000..31f697f
--- /dev/null
+++ b/src/app/founder/components/animated-div.tsx
@@ -0,0 +1,39 @@
+"use client";
+
+import { motion, type HTMLMotionProps, type Transition } from "motion/react";
+
+export function blockEnterSpring(delay = 0.05): Transition {
+ return {
+ type: "spring",
+ stiffness: 100,
+ damping: 15,
+ mass: 1,
+ bounce: 0,
+ duration: 0.3,
+ delay,
+ };
+}
+
+interface AnimatedDivProps extends Omit<HTMLMotionProps<"div">, "children"> {
+ children: React.ReactNode;
+ transition: Transition;
+}
+
+export function AnimatedDiv({
+ children,
+ transition,
+ className,
+ ...rest
+}: AnimatedDivProps) {
+ return (
+ <motion.div
+ initial={{ opacity: 0, filter: "blur(10px)", y: 20 }}
+ animate={{ opacity: 1, filter: "blur(0px)", y: 0 }}
+ transition={transition}
+ className={className}
+ {...rest}
+ >
+ {children}
+ </motion.div>
+ );
+}
diff --git a/src/app/founder/layout.tsx b/src/app/founder/layout.tsx
new file mode 100644
index 0000000..013e6c4
--- /dev/null
+++ b/src/app/founder/layout.tsx
@@ -0,0 +1,183 @@
+import { Footer } from "@/app/(components)/footer";
+import { Header } from "@/app/(components)/header";
+import { GITHUB_URL, STATIC_ASSETS_URL } from "@/config";
+import type { Metadata } from "next";
+import Link from "next/link";
+
+export const dynamic = "force-static";
+
+export const metadata: Metadata = {
+ title: "Vlad Sazonau | Founder of EasyInvoicePDF",
+ description:
+ "Meet Vlad Sazonau, the founder of EasyInvoicePDF. Pragmatic engineer and builder.",
+ keywords: [
+ "Vlad Sazonau",
+ "EasyInvoicePDF founder",
+ "product engineer",
+ "indie developer",
+ "easyinvoicepdf",
+ ],
+ authors: [{ name: "Uladzislau Sazonau" }],
+ creator: "Uladzislau Sazonau",
+ publisher: "Uladzislau Sazonau",
+ alternates: {
+ canonical: "https://easyinvoicepdf.com/founder",
+ },
+ robots: {
+ index: true,
+ follow: true,
+ googleBot: {
+ index: true,
+ follow: true,
+ "max-video-preview": -1,
+ "max-image-preview": "large",
+ "max-snippet": -1,
+ },
+ },
+ openGraph: {
+ title: "Vlad Sazonau | Founder of EasyInvoicePDF",
+ description:
+ "Meet Vlad Sazonau, the founder of EasyInvoicePDF. Pragmatic engineer and builder.",
+ siteName: "EasyInvoicePDF.com | Free Invoice Generator",
+ type: "profile",
+ locale: "en_US",
+ url: "https://easyinvoicepdf.com/founder",
+ images: [
+ {
+ url: `${STATIC_ASSETS_URL}/easy-invoice-opengraph-image.png?v=1755773879597`,
+ type: "image/png",
+ width: 1200,
+ height: 630,
+ alt: "EasyInvoicePDF.com - Free Invoice Generator with Live PDF Preview",
+ },
+ ],
+ },
+ twitter: {
+ card: "summary_large_image",
+ title: "Vlad Sazonau | Founder of EasyInvoicePDF",
+ description:
+ "Meet Vlad Sazonau, the founder of EasyInvoicePDF. Pragmatic engineer and builder.",
+ creator: "@vlad_sazon",
+ images: [
+ {
+ url: `${STATIC_ASSETS_URL}/easy-invoice-opengraph-image.png?v=1755773879597`,
+ type: "image/png",
+ width: 1200,
+ height: 630,
+ alt: "EasyInvoicePDF.com - Free Invoice Generator with Live PDF Preview",
+ },
+ ],
+ },
+};
+
+interface FounderLayoutProps {
+ children: React.ReactNode;
+}
+
+export default function FounderLayout({ children }: FounderLayoutProps) {
+ return (
+ <>
+ <Header
+ locale={"en"}
+ translations={{
+ navLinks: {
+ features: "Features",
+ faq: "FAQ",
+ github: "GitHub",
+ githubUrl: GITHUB_URL,
+ githubCTA: "Star on GitHub",
+ },
+ switchLanguageText: "Switch Language",
+ goToAppText: "Open app",
+ startInvoicingButtonText: "Start Invoicing",
+ changelogLinkText: "Changelog",
+ termsOfServiceLinkText: "Terms of Service",
+ }}
+ hideLanguageSwitcher={true}
+ />
+ {children}
+ <Footer
+ translations={{
+ footerDescription: (
+ <>
+ Create professional invoices in seconds with our free &
+ open-source invoice maker. 100% in-browser, no sign-up required.
+ Includes live PDF preview and a Stripe-style template - perfect
+ for freelancers, startups, and small businesses.
+ <br /> <br />
+ Not accounting software. No compliance guarantees. By using this
+ tool, you agree to the{" "}
+ <Link
+ href="/tos"
+ className="text-slate-700 underline hover:text-slate-900"
+ >
+ Terms of Service
+ </Link>
+ .
+ </>
+ ),
+ footerCreatedBy: "Made by",
+ product: "Product",
+ }}
+ links={
+ <ul className="space-y-2">
+ <li>
+ <Link
+ href="/?template=default"
+ className="text-sm text-slate-500 hover:text-slate-900"
+ >
+ App
+ </Link>
+ </li>
+ <li>
+ <Link
+ href="/en/about"
+ className="text-sm text-slate-500 hover:text-slate-900"
+ >
+ About
+ </Link>
+ </li>
+
+ <li>
+ <Link
+ href={GITHUB_URL}
+ target="_blank"
+ rel="noopener noreferrer"
+ className="text-sm text-slate-500 hover:text-slate-900"
+ >
+ GitHub
+ </Link>
+ </li>
+
+ <li>
+ <Link
+ href="/tos"
+ className="text-sm text-slate-500 hover:text-slate-900"
+ >
+ Terms of Service
+ </Link>
+ </li>
+ <li>
+ <Link
+ href="https://pdfinvoicegenerator.userjot.com/?cursor=1&order=top&limit=10"
+ target="_blank"
+ rel="noopener noreferrer"
+ className="text-sm text-slate-500 hover:text-slate-900"
+ >
+ Share feedback
+ </Link>
+ </li>
+ <li>
+ <Link
+ href="/founder"
+ className="text-sm text-slate-500 hover:text-slate-900"
+ >
+ Founder
+ </Link>
+ </li>
+ </ul>
+ }
+ />
+ </>
+ );
+}
diff --git a/src/app/founder/page.tsx b/src/app/founder/page.tsx
index 99906f1..0665c83 100644
--- a/src/app/founder/page.tsx
+++ b/src/app/founder/page.tsx
@@ -1,102 +1,20 @@
-import { Header } from "@/app/(components)/header";
-import { AnimatedSignature } from "@/app/founder/components/animated-signature";
+"use client";
+
import {
- GITHUB_URL,
- LINKEDIN_URL,
- STATIC_ASSETS_URL,
- TWITTER_URL,
-} from "@/config";
-import type { Metadata } from "next";
+ AnimatedDiv,
+ blockEnterSpring,
+} from "@/app/founder/components/animated-div";
+import { AnimatedSignature } from "@/app/founder/components/animated-signature";
+import { LINKEDIN_URL, TWITTER_URL } from "@/config";
import Link from "next/link";
-export const metadata: Metadata = {
- title: "Vlad Sazonau | Founder of EasyInvoicePDF",
- description:
- "Meet Vlad Sazonau, the founder of EasyInvoicePDF.com. Product engineer and design enthusiast with 8+ years of experience building beautiful, functional products.",
- keywords: [
- "Vlad Sazonau",
- "EasyInvoicePDF founder",
- "product engineer",
- "indie developer",
- "easyinvoicepdf",
- ],
- authors: [{ name: "Uladzislau Sazonau" }],
- creator: "Uladzislau Sazonau",
- publisher: "Uladzislau Sazonau",
- alternates: {
- canonical: "https://easyinvoicepdf.com/founder",
- },
- robots: {
- index: true,
- follow: true,
- googleBot: {
- index: true,
- follow: true,
- "max-video-preview": -1,
- "max-image-preview": "large",
- "max-snippet": -1,
- },
- },
- openGraph: {
- title: "Vlad Sazonau | Founder of EasyInvoicePDF",
- description:
- "Meet Vlad Sazonau, the founder of EasyInvoicePDF.com. Product engineer and design enthusiast with 8+ years of experience building beautiful, functional products.",
- siteName: "EasyInvoicePDF.com | Free Invoice Generator",
- type: "profile",
- locale: "en_US",
- images: [
- {
- url: `${STATIC_ASSETS_URL}/easy-invoice-opengraph-image.png?v=1755773879597`,
- type: "image/png",
- width: 1200,
- height: 630,
- alt: "EasyInvoicePDF.com - Free Invoice Generator with Live PDF Preview",
- },
- ],
- },
- twitter: {
- card: "summary_large_image",
- title: "Vlad Sazonau | Founder of EasyInvoicePDF",
- description:
- "Meet Vlad Sazonau, the founder of EasyInvoicePDF.com. Product engineer and design enthusiast.",
- creator: "@vlad_sazon",
- images: [
- {
- url: `${STATIC_ASSETS_URL}/easy-invoice-opengraph-image.png?v=1755773879597`,
- type: "image/png",
- width: 1200,
- height: 630,
- alt: "EasyInvoicePDF.com - Free Invoice Generator with Live PDF Preview",
- },
- ],
- },
-};
-
export default function ContactPage() {
return (
- <>
- <Header
- locale={"en"}
- translations={{
- navLinks: {
- features: "Features",
- faq: "FAQ",
- github: "GitHub",
- githubUrl: GITHUB_URL,
- },
- switchLanguageText: "Switch Language",
- goToAppText: "Open app",
- startInvoicingButtonText: "Start Invoicing",
- changelogLinkText: "Changelog",
- termsOfServiceLinkText: "Terms of Service",
- }}
- hideLanguageSwitcher={true}
- />
- <div className="bg-gradient-to-b from-slate-50 to-white py-12 md:py-24 lg:min-h-screen">
- <div className="container mx-auto px-4 md:px-6">
- <div className="flex flex-col items-center">
- {/* Avatar */}
- <div className="mb-8 overflow-hidden rounded-full border-4 border-slate-200 shadow-lg">
+ <div className="bg-gradient-to-b from-slate-50 to-white py-12 md:py-24 lg:min-h-screen">
+ <div className="container mx-auto px-4 md:px-6">
+ <div className="flex flex-col items-center">
+ <AnimatedDiv className="mb-8" transition={blockEnterSpring(0)}>
+ <div className="overflow-hidden rounded-full border-4 border-slate-200 shadow-lg">
<img
src="https://ik.imagekit.io/fl2lbswwo/avatar.jpeg?updatedAt=1757456439459"
alt="Vlad Sazonau"
@@ -107,70 +25,81 @@ export default function ContactPage() {
className="size-40 object-cover"
/>
</div>
+ </AnimatedDiv>
- {/* Name and Title */}
+ <AnimatedDiv transition={blockEnterSpring(0.05)}>
<h1 className="text-center text-4xl font-bold tracking-tight text-slate-900 md:text-5xl">
Vlad Sazonau
</h1>
<p className="mt-3 text-center text-xl text-slate-600 md:text-2xl">
Product Engineer & Design Enthusiast
</p>
+ </AnimatedDiv>
- {/* Bio */}
- <p className="mx-auto mt-8 max-w-xl text-center text-lg leading-relaxed text-slate-700">
+ <AnimatedDiv
+ className="mt-8 w-full max-w-xl"
+ transition={blockEnterSpring(0.1)}
+ >
+ <p className="mx-auto text-center text-lg leading-relaxed text-slate-700">
I&apos;m a product-minded generalist with 8+ years of experience
building beautiful, functional products. I enjoy solving complex
problems at the intersection of engineering and design.
</p>
+ </AnimatedDiv>
- {/* Social Links */}
- <div className="mt-12 flex flex-wrap justify-center gap-4 md:gap-6">
- <Link
- href="https://vladsazon.com"
- target="_blank"
- rel="noopener noreferrer"
- className="font-medium text-slate-900 underline transition-all hover:opacity-80"
- aria-label="Visit website"
- >
- Website
- </Link>
+ <AnimatedDiv
+ className="mt-12 flex flex-wrap justify-center gap-4 md:gap-6"
+ transition={blockEnterSpring(0.15)}
+ >
+ <Link
+ href="https://vladsazon.com"
+ target="_blank"
+ rel="noopener noreferrer"
+ className="font-medium text-black underline transition-all hover:opacity-80"
+ aria-label="Visit website"
+ >
+ Website
+ </Link>
- <Link
- href={TWITTER_URL}
- target="_blank"
- rel="noopener noreferrer"
- className="font-medium text-slate-900 underline transition-all hover:opacity-80"
- aria-label="Visit Twitter"
- >
- Twitter
- </Link>
+ <Link
+ href={TWITTER_URL}
+ target="_blank"
+ rel="noopener noreferrer"
+ className="font-medium text-black underline transition-all hover:opacity-80"
+ aria-label="Visit Twitter"
+ >
+ Twitter
+ </Link>
- <Link
- href={LINKEDIN_URL}
- target="_blank"
- rel="noopener noreferrer"
- className="font-medium text-slate-900 underline transition-all hover:opacity-80"
- aria-label="Visit LinkedIn"
- >
- LinkedIn
- </Link>
+ <Link
+ href={LINKEDIN_URL}
+ target="_blank"
+ rel="noopener noreferrer"
+ className="font-medium text-black underline transition-all hover:opacity-80"
+ aria-label="Visit LinkedIn"
+ >
+ LinkedIn
+ </Link>
- <Link
- href={"https://github.com/VladSez"}
- target="_blank"
- rel="noopener noreferrer"
- className="font-medium text-slate-900 underline transition-all hover:opacity-80"
- aria-label="Visit GitHub"
- >
- GitHub
- </Link>
- </div>
- <div className="mt-8 md:mt-12">
- <AnimatedSignature />
- </div>
- </div>
+ <Link
+ href={"https://github.com/VladSez"}
+ target="_blank"
+ rel="noopener noreferrer"
+ className="font-medium text-black underline transition-all hover:opacity-80"
+ aria-label="Visit GitHub"
+ >
+ GitHub
+ </Link>
+ </AnimatedDiv>
+
+ <AnimatedDiv
+ className="mt-8 md:mt-12"
+ transition={blockEnterSpring(0.2)}
+ >
+ <AnimatedSignature />
+ </AnimatedDiv>
</div>
</div>
- </>
+ </div>
);
}
diff --git a/src/app/tos/layout.tsx b/src/app/tos/layout.tsx
new file mode 100644
index 0000000..b034f17
--- /dev/null
+++ b/src/app/tos/layout.tsx
@@ -0,0 +1,181 @@
+import { Footer } from "@/app/(components)/footer";
+import { Header } from "@/app/(components)/header";
+import { GITHUB_URL, STATIC_ASSETS_URL } from "@/config";
+import type { Metadata } from "next";
+import Link from "next/link";
+
+export const dynamic = "force-static";
+
+export const metadata: Metadata = {
+ title: "Terms of Service | EasyInvoicePDF",
+ description: "Terms of Service for EasyInvoicePDF.com",
+ keywords: [
+ "terms of service",
+ "easyinvoicepdf",
+ "invoice generator",
+ "legal",
+ ],
+ authors: [{ name: "Uladzislau Sazonau" }],
+ creator: "Uladzislau Sazonau",
+ publisher: "Uladzislau Sazonau",
+ alternates: {
+ canonical: "https://easyinvoicepdf.com/tos",
+ },
+ robots: {
+ index: true,
+ follow: true,
+ googleBot: {
+ index: true,
+ follow: true,
+ "max-video-preview": -1,
+ "max-image-preview": "large",
+ "max-snippet": -1,
+ },
+ },
+ openGraph: {
+ title: "Terms of Service | EasyInvoicePDF",
+ description:
+ "Terms of Service for EasyInvoicePDF.com. Browser-based invoice PDF tool.",
+ siteName: "EasyInvoicePDF.com | Free Invoice Generator",
+ type: "website",
+ locale: "en_US",
+ url: "https://easyinvoicepdf.com/tos",
+ images: [
+ {
+ url: `${STATIC_ASSETS_URL}/easy-invoice-opengraph-image.png?v=1755773879597`,
+ type: "image/png",
+ width: 1200,
+ height: 630,
+ alt: "EasyInvoicePDF.com - Free Invoice Generator with Live PDF Preview",
+ },
+ ],
+ },
+ twitter: {
+ card: "summary_large_image",
+ title: "Terms of Service | EasyInvoicePDF",
+ description:
+ "Terms of Service for EasyInvoicePDF.com. Browser-based invoice PDF tool.",
+ creator: "@vlad_sazon",
+ images: [
+ {
+ url: `${STATIC_ASSETS_URL}/easy-invoice-opengraph-image.png?v=1755773879597`,
+ type: "image/png",
+ width: 1200,
+ height: 630,
+ alt: "EasyInvoicePDF.com - Free Invoice Generator with Live PDF Preview",
+ },
+ ],
+ },
+};
+
+interface TosLayoutProps {
+ children: React.ReactNode;
+}
+
+export default function TosLayout({ children }: TosLayoutProps) {
+ return (
+ <>
+ <Header
+ locale={"en"}
+ translations={{
+ navLinks: {
+ features: "Features",
+ faq: "FAQ",
+ github: "GitHub",
+ githubUrl: GITHUB_URL,
+ githubCTA: "Star on GitHub",
+ },
+ switchLanguageText: "Switch Language",
+ goToAppText: "Open app",
+ startInvoicingButtonText: "Start Invoicing",
+ changelogLinkText: "Changelog",
+ termsOfServiceLinkText: "Terms of Service",
+ }}
+ hideLanguageSwitcher={true}
+ />
+ {children}
+ <Footer
+ translations={{
+ footerDescription: (
+ <>
+ Create professional invoices in seconds with our free &
+ open-source invoice maker. 100% in-browser, no sign-up required.
+ Includes live PDF preview and a Stripe-style template - perfect
+ for freelancers, startups, and small businesses.
+ <br /> <br />
+ Not accounting software. No compliance guarantees. By using this
+ tool, you agree to the{" "}
+ <Link
+ href="/tos"
+ className="text-slate-700 underline hover:text-slate-900"
+ >
+ Terms of Service
+ </Link>
+ .
+ </>
+ ),
+ footerCreatedBy: "Made by",
+ product: "Product",
+ }}
+ links={
+ <ul className="space-y-2">
+ <li>
+ <Link
+ href="/?template=default"
+ className="text-sm text-slate-500 hover:text-slate-900"
+ >
+ App
+ </Link>
+ </li>
+ <li>
+ <Link
+ href="/en/about"
+ className="text-sm text-slate-500 hover:text-slate-900"
+ >
+ About
+ </Link>
+ </li>
+
+ <li>
+ <Link
+ href={GITHUB_URL}
+ target="_blank"
+ rel="noopener noreferrer"
+ className="text-sm text-slate-500 hover:text-slate-900"
+ >
+ GitHub
+ </Link>
+ </li>
+
+ <li>
+ <Link
+ href="/tos"
+ className="text-sm text-slate-500 hover:text-slate-900"
+ >
+ Terms of Service
+ </Link>
+ </li>
+ <li>
+ <Link
+ href="https://pdfinvoicegenerator.userjot.com/?cursor=1&order=top&limit=10"
+ target="_blank"
+ rel="noopener noreferrer"
+ className="text-sm text-slate-500 hover:text-slate-900"
+ >
+ Share feedback
+ </Link>
+ </li>
+ <li>
+ <Link
+ href="/founder"
+ className="text-sm text-slate-500 hover:text-slate-900"
+ >
+ Founder
+ </Link>
+ </li>
+ </ul>
+ }
+ />
+ </>
+ );
+}
diff --git a/src/app/tos/loading.tsx b/src/app/tos/loading.tsx
index b25dac8..97b5169 100644
--- a/src/app/tos/loading.tsx
+++ b/src/app/tos/loading.tsx
@@ -1,10 +1,6 @@
-import { HeaderSkeleton } from "@/app/(components)/header/header-skeleton";
-
export default function Loading() {
return (
<div className="min-h-screen bg-white dark:bg-gray-900">
- <HeaderSkeleton />
-
<div className="container mx-auto max-w-3xl px-4 py-12 md:px-6 md:py-16">
<div className="space-y-8">
{/* Title */}
diff --git a/src/app/tos/page.tsx b/src/app/tos/page.tsx
index fe57a84..a204811 100644
--- a/src/app/tos/page.tsx
+++ b/src/app/tos/page.tsx
@@ -1,255 +1,162 @@
-import { Header } from "@/app/(components)/header";
-import { GITHUB_URL, STATIC_ASSETS_URL } from "@/config";
-import type { Metadata } from "next";
-
-export const dynamic = "force-static";
-
-export const metadata: Metadata = {
- title:
- "Terms of Service | EasyInvoicePDF - Free & Open-Source Invoice Generator",
- description:
- "Terms of Service for EasyInvoicePDF.com. Browser-based invoice PDF tool; no server-side invoice data storage.",
- keywords: [
- "terms of service",
- "easyinvoicepdf",
- "invoice generator",
- "legal",
- ],
- authors: [{ name: "Uladzislau Sazonau" }],
- creator: "Uladzislau Sazonau",
- publisher: "Uladzislau Sazonau",
- alternates: {
- canonical: "https://easyinvoicepdf.com/tos",
- },
- robots: {
- index: true,
- follow: true,
- googleBot: {
- index: true,
- follow: true,
- "max-video-preview": -1,
- "max-image-preview": "large",
- "max-snippet": -1,
- },
- },
- openGraph: {
- title: "Terms of Service | EasyInvoicePDF",
- description:
- "Terms of Service for EasyInvoicePDF.com. Browser-based invoice PDF tool.",
- siteName: "EasyInvoicePDF.com | Free Invoice Generator",
- type: "website",
- locale: "en_US",
- url: "https://easyinvoicepdf.com/tos",
- images: [
- {
- url: `${STATIC_ASSETS_URL}/easy-invoice-opengraph-image.png?v=1755773879597`,
- type: "image/png",
- width: 1200,
- height: 630,
- alt: "EasyInvoicePDF.com - Free Invoice Generator with Live PDF Preview",
- },
- ],
- },
- twitter: {
- card: "summary_large_image",
- title: "Terms of Service | EasyInvoicePDF",
- description:
- "Terms of Service for EasyInvoicePDF.com. Browser-based invoice PDF tool.",
- creator: "@vlad_sazon",
- images: [
- {
- url: `${STATIC_ASSETS_URL}/easy-invoice-opengraph-image.png?v=1755773879597`,
- type: "image/png",
- width: 1200,
- height: 630,
- alt: "EasyInvoicePDF.com - Free Invoice Generator with Live PDF Preview",
- },
- ],
- },
-};
-
export default function TermsOfServicePage() {
return (
- <>
- <Header
- locale={"en"}
- translations={{
- navLinks: {
- features: "Features",
- faq: "FAQ",
- github: "GitHub",
- githubUrl: GITHUB_URL,
- },
- switchLanguageText: "Switch Language",
- goToAppText: "Open app",
- startInvoicingButtonText: "Start Invoicing",
- changelogLinkText: "Changelog",
- termsOfServiceLinkText: "Terms of Service",
- }}
- hideLanguageSwitcher={true}
- />
- <div className="min-h-screen bg-white dark:bg-gray-900">
- <div className="container mx-auto max-w-3xl px-4 py-12 md:px-6 md:py-16">
- <article className="prose prose-gray max-w-none dark:prose-invert prose-headings:scroll-mt-20 prose-headings:font-semibold prose-headings:text-gray-900 prose-h1:text-3xl prose-h2:text-xl prose-p:leading-relaxed prose-p:text-gray-600 prose-strong:text-gray-900 prose-li:text-gray-600 prose-hr:border-gray-200 dark:prose-headings:text-gray-100 dark:prose-p:text-gray-300 dark:prose-strong:text-gray-100 dark:prose-li:text-gray-300 dark:prose-hr:border-gray-700">
- <h1>Terms of Service</h1>
- <p>
- <strong>Effective date:</strong> April 17, 2026
- </p>
+ <div className="min-h-screen bg-white dark:bg-gray-900">
+ <div className="container mx-auto max-w-3xl px-4 py-12 md:px-6 md:py-16">
+ <article className="prose prose-gray max-w-none dark:prose-invert prose-headings:scroll-mt-20 prose-headings:font-semibold prose-headings:text-gray-900 prose-h1:text-3xl prose-h2:text-xl prose-p:leading-relaxed prose-p:text-gray-600 prose-strong:text-gray-900 prose-li:text-gray-600 prose-hr:border-gray-200 dark:prose-headings:text-gray-100 dark:prose-p:text-gray-300 dark:prose-strong:text-gray-100 dark:prose-li:text-gray-300 dark:prose-hr:border-gray-700">
+ <h1>Terms of Service</h1>
+ <p>
+ <strong>Effective date:</strong> April 17, 2026
+ </p>
- <h2>1. Overview</h2>
- <p>
- EasyInvoicePDF (&quot;the Service&quot;) is a browser-based tool
- that allows users to generate invoice PDFs. By using the Service,
- you agree to these Terms.
- </p>
- <hr />
+ <h2>1. Overview</h2>
+ <p>
+ EasyInvoicePDF (&quot;the Service&quot;) is a browser-based tool
+ that allows users to generate invoice PDFs. By using the Service,
+ you agree to these Terms.
+ </p>
+ <hr />
- <h2>2. Nature of the Service</h2>
- <p>
- The Service is <strong>not</strong> accounting, bookkeeping,
- invoicing, or tax compliance software. It is a simple PDF
- generation tool.
- </p>
- <p>The Service:</p>
- <ul>
- <li>
- does not guarantee compliance with any local, national, or
- international laws or tax regulations
- </li>
- <li>
- does not store or process user data on servers (all data is
- handled locally in your browser)
- </li>
- <li>does not act as a system of record for invoices</li>
- <li>does not provide accounting, tax, or legal advice</li>
- </ul>
- <hr />
+ <h2>2. Nature of the Service</h2>
+ <p>
+ The Service is <strong>not</strong> accounting, bookkeeping,
+ invoicing, or tax compliance software. It is a simple PDF generation
+ tool.
+ </p>
+ <p>The Service:</p>
+ <ul>
+ <li>
+ does not guarantee compliance with any local, national, or
+ international laws or tax regulations
+ </li>
+ <li>
+ does not store or process user data on servers (all data is
+ handled locally in your browser)
+ </li>
+ <li>does not act as a system of record for invoices</li>
+ <li>does not provide accounting, tax, or legal advice</li>
+ </ul>
+ <hr />
- <h2>3. User Responsibility</h2>
- <p>You are solely responsible for:</p>
- <ul>
- <li>
- ensuring that any generated invoices comply with applicable laws
- and regulations
- </li>
- <li>
- verifying the accuracy and completeness of all data entered
- </li>
- <li>maintaining your own records, backups, and documentation</li>
- <li>
- determining whether the output is suitable for your intended use
- </li>
- </ul>
- <hr />
+ <h2>3. User Responsibility</h2>
+ <p>You are solely responsible for:</p>
+ <ul>
+ <li>
+ ensuring that any generated invoices comply with applicable laws
+ and regulations
+ </li>
+ <li>verifying the accuracy and completeness of all data entered</li>
+ <li>maintaining your own records, backups, and documentation</li>
+ <li>
+ determining whether the output is suitable for your intended use
+ </li>
+ </ul>
+ <hr />
- <h2>4. No Professional Relationship</h2>
- <p>
- Use of the Service does not create any accountant-client,
- advisor-client, legal, or fiduciary relationship between you and
- the Service or its operator.
- </p>
- <hr />
+ <h2>4. No Professional Relationship</h2>
+ <p>
+ Use of the Service does not create any accountant-client,
+ advisor-client, legal, or fiduciary relationship between you and the
+ Service or its operator.
+ </p>
+ <hr />
- <h2>5. No Warranties</h2>
- <p>
- The Service is provided &quot;as is&quot; and &quot;as
- available&quot; without warranties of any kind, express or
- implied, including but not limited to:
- </p>
- <ul>
- <li>fitness for a particular purpose</li>
- <li>accuracy, reliability, or availability</li>
- <li>compliance with legal, tax, or regulatory requirements</li>
- </ul>
- <hr />
+ <h2>5. No Warranties</h2>
+ <p>
+ The Service is provided &quot;as is&quot; and &quot;as
+ available&quot; without warranties of any kind, express or implied,
+ including but not limited to:
+ </p>
+ <ul>
+ <li>fitness for a particular purpose</li>
+ <li>accuracy, reliability, or availability</li>
+ <li>compliance with legal, tax, or regulatory requirements</li>
+ </ul>
+ <hr />
- <h2>6. Limitation of Liability</h2>
- <p>To the maximum extent permitted by law:</p>
- <ul>
- <li>
- The Service and its operator shall not be liable for any direct,
- indirect, incidental, special, consequential, or punitive
- damages arising from use or inability to use the Service.
- </li>
- <li>
- This includes, but is not limited to, financial loss, business
- interruption, tax penalties, regulatory fines, or data loss.
- </li>
- </ul>
- <p>
- If liability is found despite these terms, it shall be limited to
- the amount you paid to use the Service (if any).
- </p>
- <hr />
+ <h2>6. Limitation of Liability</h2>
+ <p>To the maximum extent permitted by law:</p>
+ <ul>
+ <li>
+ The Service and its operator shall not be liable for any direct,
+ indirect, incidental, special, consequential, or punitive damages
+ arising from use or inability to use the Service.
+ </li>
+ <li>
+ This includes, but is not limited to, financial loss, business
+ interruption, tax penalties, regulatory fines, or data loss.
+ </li>
+ </ul>
+ <p>
+ If liability is found despite these terms, it shall be limited to
+ the amount you paid to use the Service (if any).
+ </p>
+ <hr />
- <h2>7. Indemnification</h2>
- <p>
- You agree to indemnify, defend, and hold harmless the Service and
- its operator from and against any claims, liabilities, damages,
- losses, and expenses (including reasonable legal fees) arising out
- of:
- </p>
- <ul>
- <li>
- your use of the Service in violation of applicable laws or
- regulations
- </li>
- <li>your violation of these Terms</li>
- <li>
- any data, content, or information you input into the Service
- </li>
- <li>your use of any documents generated through the Service</li>
- </ul>
- <hr />
+ <h2>7. Indemnification</h2>
+ <p>
+ You agree to indemnify, defend, and hold harmless the Service and
+ its operator from and against any claims, liabilities, damages,
+ losses, and expenses (including reasonable legal fees) arising out
+ of:
+ </p>
+ <ul>
+ <li>
+ your use of the Service in violation of applicable laws or
+ regulations
+ </li>
+ <li>your violation of these Terms</li>
+ <li>
+ any data, content, or information you input into the Service
+ </li>
+ <li>your use of any documents generated through the Service</li>
+ </ul>
+ <hr />
- <h2>8. No Data Storage</h2>
- <p>
- All data entered into the Service remains in your browser. We do
- not store, transmit, or retain invoice data on any servers.
- </p>
- <p>You are responsible for saving and backing up your data.</p>
- <hr />
+ <h2>8. No Data Storage</h2>
+ <p>
+ All data entered into the Service remains in your browser. We do not
+ store, transmit, or retain invoice data on any servers.
+ </p>
+ <p>You are responsible for saving and backing up your data.</p>
+ <hr />
- <h2>9. Acceptable Use</h2>
- <p>You agree not to:</p>
- <ul>
- <li>
- use the Service for unlawful, fraudulent, or misleading purposes
- </li>
- <li>
- attempt to reverse engineer, disrupt, or misuse the Service
- </li>
- <li>
- use the Service in a way that violates applicable laws or
- regulations
- </li>
- </ul>
- <hr />
+ <h2>9. Acceptable Use</h2>
+ <p>You agree not to:</p>
+ <ul>
+ <li>
+ use the Service for unlawful, fraudulent, or misleading purposes
+ </li>
+ <li>attempt to reverse engineer, disrupt, or misuse the Service</li>
+ <li>
+ use the Service in a way that violates applicable laws or
+ regulations
+ </li>
+ </ul>
+ <hr />
- <h2>10. Changes to the Service</h2>
- <p>
- We may modify, suspend, or discontinue the Service at any time
- without notice or liability.
- </p>
- <hr />
+ <h2>10. Changes to the Service</h2>
+ <p>
+ We may modify, suspend, or discontinue the Service at any time
+ without notice or liability.
+ </p>
+ <hr />
- <h2>11. Changes to Terms</h2>
- <p>
- We may update these Terms from time to time. Continued use of the
- Service constitutes acceptance of the updated Terms.
- </p>
- <hr />
+ <h2>11. Changes to Terms</h2>
+ <p>
+ We may update these Terms from time to time. Continued use of the
+ Service constitutes acceptance of the updated Terms.
+ </p>
+ <hr />
- <h2>12. Contact</h2>
- <p>
- For questions, contact:{" "}
- <a href="mailto:[email protected]">
- </a>
- </p>
- </article>
- </div>
+ <h2>12. Contact</h2>
+ <p>
+ For questions, contact:{" "}
+ <a href="mailto:[email protected]">
+ </a>
+ </p>
+ </article>
</div>
- </>
+ </div>
);
}
diff --git a/src/components/dev/responsive-indicator.tsx b/src/components/dev/responsive-indicator.tsx
index ccf8cdf..e9144af 100644
--- a/src/components/dev/responsive-indicator.tsx
+++ b/src/components/dev/responsive-indicator.tsx
@@ -37,9 +37,9 @@ export function ResponsiveIndicator() {
: "XS";
return (
- <div className="fixed left-2 top-2 z-[9999] flex items-center gap-1.5 rounded-md bg-black/80 px-2 py-1 font-mono text-xs text-white backdrop-blur-sm duration-300 animate-in fade-in slide-in-from-left-2">
+ <div className="fixed left-2 top-2 z-[9999] flex items-center gap-1 rounded-md bg-blue-600/90 px-2 py-1 font-mono text-xs text-white shadow-lg duration-300 animate-in fade-in slide-in-from-left-2">
<span className="font-bold">{breakpoint}</span>
- <span className="text-white/50">|</span>
+ <span className="text-blue-200">|</span>
<span>{width}px</span>
</div>
);
diff --git a/src/components/etc/github-logo.tsx b/src/components/etc/github-logo.tsx
index e8b7727..0641bcb 100644
--- a/src/components/etc/github-logo.tsx
+++ b/src/components/etc/github-logo.tsx
@@ -7,7 +7,7 @@ export function GithubIcon({ className }: { className?: string }) {
viewBox="0 0 24 24"
xmlns="http://www.w3.org/2000/svg"
className={cn(
- "h-5 w-5 transition-all group-hover:fill-blue-600",
+ "inset-0 size-5 transition-all group-hover:fill-blue-600",
className,
)}
>
diff --git a/src/components/ui/sheet.tsx b/src/components/ui/sheet.tsx
deleted file mode 100644
index 2d954cf..0000000
--- a/src/components/ui/sheet.tsx
+++ /dev/null
@@ -1,186 +0,0 @@
-"use client";
-
-import * as React from "react";
-import * as SheetPrimitive from "@radix-ui/react-dialog";
-import { cva, type VariantProps } from "class-variance-authority";
-import { X } from "lucide-react";
-
-import { cn } from "@/lib/utils";
-
-const Sheet = SheetPrimitive.Root;
-
-const SheetTrigger = SheetPrimitive.Trigger;
-
-const SheetClose = SheetPrimitive.Close;
-
-const SheetPortal = SheetPrimitive.Portal;
-
-const SheetOverlay = React.forwardRef<
- React.ElementRef<typeof SheetPrimitive.Overlay>,
- React.ComponentPropsWithoutRef<typeof SheetPrimitive.Overlay>
->(({ className, ...props }, ref) => (
- <SheetPrimitive.Overlay
- className={cn(
- "fixed inset-0 z-50",
-
- className,
- )}
- {...props}
- ref={ref}
- />
-));
-SheetOverlay.displayName = SheetPrimitive.Overlay.displayName;
-
-const sheetVariants = cva("fixed z-50 gap-4 bg-background p-6 shadow-lg", {
- variants: {
- side: {
- top: "inset-x-0 top-0 border-b",
- bottom: "inset-x-0 bottom-0 border-t",
- left: "inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",
- right: "inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",
- },
- animation: {
- slide: "",
- fade: "data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
- },
- },
- compoundVariants: [
- {
- side: "top",
- animation: "slide",
- class:
- "data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",
- },
- {
- side: "bottom",
- animation: "slide",
- class:
- "data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",
- },
- {
- side: "left",
- animation: "slide",
- class:
- "data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left",
- },
- {
- side: "right",
- animation: "slide",
- class:
- "data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right",
- },
- ],
- defaultVariants: {
- side: "right",
- animation: "slide",
- },
-});
-
-interface SheetContentProps
- extends React.ComponentPropsWithoutRef<typeof SheetPrimitive.Content>,
- VariantProps<typeof sheetVariants> {
- overlayClassName?: string;
- showCloseButton?: boolean;
- skipOverlayAnimation?: boolean;
-}
-
-const SheetContent = React.forwardRef<
- React.ElementRef<typeof SheetPrimitive.Content>,
- SheetContentProps
->(
- (
- {
- side = "right",
- animation = "slide",
- className,
- children,
- overlayClassName,
- showCloseButton = true,
- ...props
- },
- ref,
- ) => (
- <SheetPortal>
- <SheetOverlay className={overlayClassName} />
- <SheetPrimitive.Content
- ref={ref}
- className={cn(sheetVariants({ side, animation }), className)}
- {...props}
- >
- {showCloseButton && (
- <SheetPrimitive.Close className="focus:ring-ring data-[state=open]:bg-secondary absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-offset-2 disabled:pointer-events-none">
- <X className="h-4 w-4" />
- <span className="sr-only">Close</span>
- </SheetPrimitive.Close>
- )}
- {children}
- </SheetPrimitive.Content>
- </SheetPortal>
- ),
-);
-SheetContent.displayName = SheetPrimitive.Content.displayName;
-
-const SheetHeader = ({
- className,
- ...props
-}: React.HTMLAttributes<HTMLDivElement>) => (
- <div
- className={cn(
- "flex flex-col space-y-2 text-center sm:text-left",
- className,
- )}
- {...props}
- />
-);
-SheetHeader.displayName = "SheetHeader";
-
-const SheetFooter = ({
- className,
- ...props
-}: React.HTMLAttributes<HTMLDivElement>) => (
- <div
- className={cn(
- "flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",
- className,
- )}
- {...props}
- />
-);
-SheetFooter.displayName = "SheetFooter";
-
-const SheetTitle = React.forwardRef<
- React.ElementRef<typeof SheetPrimitive.Title>,
- React.ComponentPropsWithoutRef<typeof SheetPrimitive.Title>
->(({ className, ...props }, ref) => (
- <SheetPrimitive.Title
- ref={ref}
- className={cn("text-lg font-semibold text-foreground", className)}
- {...props}
- />
-));
-SheetTitle.displayName = SheetPrimitive.Title.displayName;
-
-const SheetDescription = React.forwardRef<
- React.ElementRef<typeof SheetPrimitive.Description>,
- React.ComponentPropsWithoutRef<typeof SheetPrimitive.Description>
->(({ className, ...props }, ref) => (
- <SheetPrimitive.Description
- ref={ref}
- className={cn("text-muted-foreground text-sm", className)}
- {...props}
- />
-));
-SheetDescription.displayName = SheetPrimitive.Description.displayName;
-
-export {
- Sheet,
- SheetPortal,
- SheetOverlay,
- SheetTrigger,
- SheetClose,
- SheetContent,
- SheetHeader,
- SheetFooter,
- SheetTitle,
- SheetDescription,
-};