Free & Open-Source Invoice Generator - No Sign-Up, No Ads, Instant PDF Export, 100% In-Browser, and Fully Customizable Templates.
TypeScript fintechinvoiceinvoice-generatorinvoice-pdfinvoice-templateinvoicesnextjsopen-sourcequotesreactreact-pdf-rendererself-hostedshadcn-uitailwindcsstypescript
feat: add tos and founder pages, add how it works yt video (#212)
Vlad Sazonau18c01ed42b70
diff --git a/e2e/about.test.ts b/e2e/about.test.tsindex 69cd64f..a6643cc 100644--- a/e2e/about.test.ts+++ b/e2e/about.test.ts@@ -46,12 +46,12 @@ test.describe("About page", () => {});await expect(featuresLink).toBeVisible();- await expect(featuresLink).toHaveAttribute("href", "#features");+ await expect(featuresLink).toHaveAttribute("href", "/en/about#features");const faqLink = header.getByRole("link", { name: "FAQ", exact: true });await expect(faqLink).toBeVisible();- await expect(faqLink).toHaveAttribute("href", "#faq");+ await expect(faqLink).toHaveAttribute("href", "/en/about#faq");const changelogLink = header.getByRole("link", {name: "Changelog",@@ -81,7 +81,7 @@ test.describe("About page", () => {).toBeVisible();const goToAppButton = header.getByRole("link", {- name: "Go to app",+ name: "Open app",exact: true,});await expect(goToAppButton).toBeVisible();@@ -212,6 +212,24 @@ test.describe("About page", () => {await expect(changelogLink).toHaveAttribute("href", "/changelog");await expect(changelogLink).not.toHaveAttribute("target", "_blank");+ const founderLink = footerLinks.getByRole("link", {+ name: "Founder",+ exact: true,+ });++ await expect(founderLink).toBeVisible();+ await expect(founderLink).toHaveAttribute("href", "/founder");+ await expect(founderLink).not.toHaveAttribute("target", "_blank");++ const termsOfServiceLink = footerLinks.getByRole("link", {+ name: "Terms of Service",+ exact: true,+ });++ await expect(termsOfServiceLink).toBeVisible();+ await expect(termsOfServiceLink).toHaveAttribute("href", "/tos");+ await expect(termsOfServiceLink).not.toHaveAttribute("target", "_blank");+const shareFeedbackLink = footerLinks.getByRole("link", {name: "Share feedback",exact: true,@@ -311,6 +329,15 @@ test.describe("About page", () => {await expect(featuresLink).toBeVisible();await expect(featuresLink).toHaveAttribute("href", "#features");await expect(featuresLink).not.toHaveAttribute("target", "_blank");++ const termsOfServiceLinkFr = footerLinks.getByRole("link", {+ name: "Conditions d'utilisation",+ exact: true,+ });++ await expect(termsOfServiceLinkFr).toBeVisible();+ await expect(termsOfServiceLinkFr).toHaveAttribute("href", "/tos");+ await expect(termsOfServiceLinkFr).not.toHaveAttribute("target", "_blank");});test("should display about page content in German", async ({ page }) => {@@ -373,6 +400,15 @@ test.describe("About page", () => {await expect(footerLinks.getByRole("link", { name: "Funktionen", exact: true }),).toBeVisible();++ const termsOfServiceLinkDe = footerLinks.getByRole("link", {+ name: "Nutzungsbedingungen",+ exact: true,+ });++ await expect(termsOfServiceLinkDe).toBeVisible();+ await expect(termsOfServiceLinkDe).toHaveAttribute("href", "/tos");+ await expect(termsOfServiceLinkDe).not.toHaveAttribute("target", "_blank");});test("should handle language switching", async ({ page, isMobile }) => {@@ -411,7 +447,7 @@ test.describe("About page", () => {const header = page.getByRole("banner");const headerGoToAppButton = header.getByRole("link", {- name: "Go to app",+ name: "Open app",exact: true,});@@ -443,10 +479,19 @@ test.describe("About page", () => {header.getByRole("link", { name: "Changelog", exact: true }),).toBeVisible();+ await expect(+ header.getByRole("link", { name: "Terms of Service", exact: true }),+ ).toBeVisible();+await expect(header.getByRole("link", { name: "View on GitHub", exact: true }),).toBeVisible();+ // we don't show founder link in header+ await expect(+ header.getByRole("link", { name: "Founder", exact: true }),+ ).toBeHidden();+await expect(header.getByRole("button", { name: "Switch language" }),).toBeVisible();@@ -491,11 +536,11 @@ test.describe("About page", () => {exact: true,});await expect(featuresLink).toBeVisible();- await expect(featuresLink).toHaveAttribute("href", "#features");+ await expect(featuresLink).toHaveAttribute("href", "/en/about#features");const faqLink = sheet.getByRole("link", { name: "FAQ", exact: true });await expect(faqLink).toBeVisible();- await expect(faqLink).toHaveAttribute("href", "#faq");+ await expect(faqLink).toHaveAttribute("href", "/en/about#faq");const changelogLink = sheet.getByRole("link", {name: "Changelog",@@ -504,6 +549,13 @@ test.describe("About page", () => {await expect(changelogLink).toBeVisible();await expect(changelogLink).toHaveAttribute("href", "/changelog");+ const termsLinkMobile = sheet.getByRole("link", {+ name: "Terms of Service",+ exact: true,+ });+ await expect(termsLinkMobile).toBeVisible();+ await expect(termsLinkMobile).toHaveAttribute("href", "/tos");+const githubLink = sheet.getByRole("link", {name: "View on GitHub",exact: true,@@ -511,6 +563,13 @@ test.describe("About page", () => {await expect(githubLink).toBeVisible();await expect(githubLink).toHaveAttribute("href", GITHUB_URL);+ // we don't show founder link in mobile menu+ const founderLinkMobile = sheet.getByRole("link", {+ name: "Founder",+ exact: true,+ });+ await expect(founderLinkMobile).toBeHidden();+await expect(sheet.getByRole("button", { name: "Switch language" }),).toBeVisible();diff --git a/e2e/changelog.test.ts b/e2e/changelog.test.tsindex f5a8cc7..b7651c7 100644--- a/e2e/changelog.test.ts+++ b/e2e/changelog.test.ts@@ -80,10 +80,6 @@ test.describe("Changelog page", () => {await expect(backLink).toBeVisible();await expect(backLink).toHaveAttribute("href", "/changelog");- // Check that the entry has a title (h1)- const entryTitle = page.locator("h1").first();- await expect(entryTitle).toBeVisible();-// Check author informationawait expect(page.getByTestId("author-info-text")).toHaveText("Vlad SazonauFounder, EasyInvoicePDF",diff --git a/e2e/invoice-form.test.ts b/e2e/invoice-form.test.tsindex ed96d9b..5444eec 100644--- a/e2e/invoice-form.test.ts+++ b/e2e/invoice-form.test.ts@@ -14,7 +14,11 @@ import {import { expect, test } from "@playwright/test";import dayjs from "dayjs";import { INITIAL_INVOICE_DATA } from "../src/app/constants";-import { GITHUB_URL, STATIC_ASSETS_URL, VIDEO_DEMO_URL } from "@/config";+import {+ GITHUB_URL,+ STATIC_ASSETS_URL,+ VIDEO_DEMO_YOUTUBE_URL,+} from "@/config";test.describe("Invoice Generator Page", () => {test.beforeEach(async ({ page }) => {@@ -129,18 +133,16 @@ test.describe("Invoice Generator Page", () => {),).toBeVisible();- // Check that video is displayed in dialog+ // Check that demo embed is displayed in dialogconst dialog = page.getByRole("dialog");await expect(dialog).toBeVisible();- const video = dialog.getByTestId("how-it-works-video");+ const embed = dialog.getByTestId("how-it-works-video");- await expect(video).toBeVisible();+ await expect(embed).toBeVisible();- await expect(video).toHaveAttribute("src", VIDEO_DEMO_URL);- await expect(video).toHaveAttribute("autoplay", "");- await expect(video).toHaveAttribute("controls", "");- await expect(video).toHaveAttribute("playsInline", "");+ await expect(embed).toHaveAttribute("src", VIDEO_DEMO_YOUTUBE_URL);+ await expect(embed).toHaveAttribute("title", "EasyInvoicePDF Demo Video");await dialog.getByRole("button", { name: "Close" }).click();await expect(dialog).toBeHidden();@@ -176,12 +178,26 @@ test.describe("Invoice Generator Page", () => {await expect(page.getByRole("tab", { name: "Edit Invoice" })).toBeVisible();await expect(page.getByRole("tab", { name: "Preview PDF" })).toBeVisible();+ const termsOfServiceLink = page.getByTestId("mobile-terms-of-service-link");+ // Check that Terms of Service are displayed+ await expect(termsOfServiceLink).toBeVisible();+ await expect(termsOfServiceLink).toHaveText("Terms of Service");+ await expect(termsOfServiceLink).toHaveAttribute("href", "/tos");+// Test desktop viewawait page.setViewportSize({ width: 1280, height: 800 });// check that tabs are not visible in desktop viewawait expect(page.getByRole("tab", { name: "Edit Invoice" })).toBeHidden();await expect(page.getByRole("tab", { name: "Preview PDF" })).toBeHidden();++ const termsOfServiceLink2 = page.getByTestId(+ "desktop-terms-of-service-link",+ );+ // Check that Terms of Service are displayed+ await expect(termsOfServiceLink2).toBeVisible();+ await expect(termsOfServiceLink2).toHaveText("Terms of Service");+ await expect(termsOfServiceLink2).toHaveAttribute("href", "/tos");});test("displays initial form state correctly", async ({ page }) => {diff --git a/e2e/tos.test.ts b/e2e/tos.test.tsnew file mode 100644index 0000000..20a923f--- /dev/null+++ b/e2e/tos.test.ts@@ -0,0 +1,65 @@+import { expect, test } from "@playwright/test";++test.describe("Terms of Service page", () => {+ test("should display terms of service content", async ({ page }) => {+ await page.goto("/tos");++ await expect(page).toHaveURL("/tos");++ await expect(page).toHaveTitle(+ "Terms of Service | EasyInvoicePDF - Free & Open-Source Invoice Generator",+ );++ await expect(+ page.getByRole("heading", {+ level: 1,+ name: "Terms of Service",+ exact: true,+ }),+ ).toBeVisible();++ await expect(+ page.getByRole("heading", {+ level: 2,+ name: "1. Overview",+ exact: true,+ }),+ ).toBeVisible();++ await expect(+ page.getByText(+ 'EasyInvoicePDF ("the Service") is a browser-based tool that allows users to generate invoice PDFs. By using the Service, you agree to these Terms.',+ { exact: false },+ ),+ ).toBeVisible();++ await expect(+ page.getByRole("heading", {+ level: 2,+ name: "8. No Data Storage",+ exact: true,+ }),+ ).toBeVisible();++ await expect(+ page.getByRole("heading", {+ level: 2,+ name: "12. Contact",+ exact: true,+ }),+ ).toBeVisible();++ await expect(+ page.getByText("Effective date:", { exact: false }),+ ).toBeVisible();++ const contactLink = page.getByRole("link", {+ name: "[email protected]",+ });+ await expect(contactLink).toBeVisible();+ await expect(contactLink).toHaveAttribute(+ "href",+ "mailto:[email protected]",+ );+ });+});diff --git a/messages/de.json b/messages/de.jsonindex 778f468..300f4f0 100644--- a/messages/de.json+++ b/messages/de.json@@ -55,12 +55,14 @@"noSignup": "Keine Anmeldung erforderlich. 100% kostenlos und Open-Source."},"footer": {- "description": "Ein kostenloses Open-Source-Tool zur Erstellung professioneller PDF-Rechnungen mit Live-Vorschau.",+ "description": "Ein kostenloses Open-Source-Tool zur Erstellung professioneller PDF-Rechnungen mit Live-Vorschau. Keine Buchhaltungssoftware. Keine Compliance-Garantien. Es gelten die Nutzungsbedingungen. Bitte lesen Sie unsere Nutzungsbedingungen fur weitere Details.","product": "Produkt","links": {"features": "Funktionen","github": "GitHub",- "changelog": "Änderungen"+ "changelog": "Änderungen",+ "founder": "Gründer",+ "termsOfService": "Nutzungsbedingungen"},"createdBy": "Erstellt von"},@@ -72,15 +74,6 @@"shareFeedback": "Feedback teilen","app": "App","startInvoicing": "Zur App gehen"- },- "newsletter": {- "title": "Newsletter abonnieren",- "description": "Erhalten Sie Updates zu neuen Funktionen und Verbesserungen von EasyInvoicePDF.com",- "subscribe": "Abonnieren",- "placeholder": "E-Mail eingeben",- "success": "Vielen Dank für Ihr Abonnement!",- "error": "Abonnement fehlgeschlagen. Bitte versuchen Sie es erneut.",- "emailLanguageInfo": "Alle E-Mails werden in englischer Sprache versendet"}},"FAQ": {diff --git a/messages/en.json b/messages/en.jsonindex 17ebce6..e56ca76 100644--- a/messages/en.json+++ b/messages/en.json@@ -48,32 +48,25 @@"noSignup": "No sign-up required. 100% free and open-source."},"footer": {- "description": "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.",+ "description": "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. Not accounting software. No compliance guarantees. Terms apply. Please review our Terms of Service for more details.","product": "Product","links": {"features": "Features","github": "GitHub",- "changelog": "Changelog"+ "changelog": "Changelog",+ "founder": "Founder",+ "termsOfService": "Terms of Service"},"createdBy": "Made by"},"buttons": {- "goToApp": "Go to app",+ "goToApp": "Open app","viewOnGithub": "View on GitHub","starOnGithub": "Star on GitHub","switchLanguage": "Switch language","shareFeedback": "Share feedback","app": "App","startInvoicing": "Start Invoicing"- },- "newsletter": {- "title": "Subscribe to our newsletter",- "description": "Get updates on new features and improvements from EasyInvoicePDF.com",- "subscribe": "Subscribe",- "placeholder": "Enter your email",- "success": "Thank you for subscribing!",- "error": "Failed to subscribe. Please try again.",- "emailLanguageInfo": "All emails will be sent in English"}},"Metadata": {diff --git a/messages/es.json b/messages/es.jsonindex 1515f3a..0ecccd9 100644--- a/messages/es.json+++ b/messages/es.json@@ -55,12 +55,14 @@"noSignup": "No requiere registro. 100% gratuito y de código abierto."},"footer": {- "description": "Una herramienta gratuita de código abierto para crear facturas PDF profesionales con vista previa en tiempo real.",+ "description": "Una herramienta gratuita de codigo abierto para crear facturas PDF profesionales con vista previa en tiempo real. No es software de contabilidad. Sin garantias de cumplimiento. Se aplican los terminos. Por favor, revise nuestros Terminos de Servicio para mas detalles.","product": "Producto","links": {"features": "Características","github": "GitHub",- "changelog": "Novedades"+ "changelog": "Novedades",+ "founder": "Fundador",+ "termsOfService": "Términos del servicio"},"createdBy": "Creado por"},@@ -72,15 +74,6 @@"shareFeedback": "Compartir comentarios","app": "Aplicación","startInvoicing": "Comenzar a facturar"- },- "newsletter": {- "title": "Suscríbete a nuestro boletín",- "description": "Recibe actualizaciones sobre nuevas funciones y mejoras de EasyInvoicePDF.com",- "subscribe": "Suscribirse",- "placeholder": "Introduce tu email",- "success": "¡Gracias por suscribirte!",- "error": "Error al suscribirse. Por favor, inténtalo de nuevo.",- "emailLanguageInfo": "Todos los correos se enviarán en inglés"}},"FAQ": {diff --git a/messages/fr.json b/messages/fr.jsonindex ddc58da..950d91f 100644--- a/messages/fr.json+++ b/messages/fr.json@@ -47,12 +47,14 @@"noSignup": "Aucune inscription requise. 100% gratuit et open-source."},"footer": {- "description": "Un outil gratuit et open-source pour créer des factures PDF professionnelles avec aperçu en temps réel.",+ "description": "Un outil gratuit et open-source pour créer des factures PDF professionnelles avec aperçu en temps réel. Pas un logiciel de comptabilite. Aucune garantie de conformite. Les conditions s'appliquent. Veuillez consulter nos Conditions d'utilisation pour plus de details.","product": "Produit","links": {"features": "Fonctionnalités","github": "GitHub",- "changelog": "Nouveautés"+ "changelog": "Nouveautés",+ "founder": "Fondateur",+ "termsOfService": "Conditions d'utilisation"},"createdBy": "Créé par"},@@ -64,15 +66,6 @@"shareFeedback": "Partager un avis","app": "Application","startInvoicing": "Commencer la facturation"- },- "newsletter": {- "title": "Abonnez-vous à notre newsletter",- "description": "Recevez des mises à jour sur les nouvelles fonctionnalités et améliorations de EasyInvoicePDF.com",- "subscribe": "S'abonner",- "placeholder": "Entrez votre email",- "success": "Merci de votre abonnement !",- "error": "Échec de l'abonnement. Veuillez réessayer.",- "emailLanguageInfo": "Tous les emails seront envoyés en anglais"}},"Metadata": {diff --git a/messages/it.json b/messages/it.jsonindex 9cefc6a..abe16fb 100644--- a/messages/it.json+++ b/messages/it.json@@ -47,12 +47,14 @@"noSignup": "Nessuna registrazione richiesta. 100% gratuito e open-source."},"footer": {- "description": "Uno strumento gratuito e open-source per creare fatture PDF professionali con anteprima in tempo reale.",+ "description": "Uno strumento gratuito e open-source per creare fatture PDF professionali con anteprima in tempo reale. Non e un software di contabilita. Nessuna garanzia di conformita. Si applicano i termini. Si prega di consultare i nostri Termini di Servizio per ulteriori dettagli.","product": "Prodotto","links": {"features": "Funzionalità","github": "GitHub",- "changelog": "Novità"+ "changelog": "Novità",+ "founder": "Fondatore",+ "termsOfService": "Termini di servizio"},"createdBy": "Creato da"},@@ -64,15 +66,6 @@"shareFeedback": "Condividi feedback","app": "App","startInvoicing": "Inizia fatturazione"- },- "newsletter": {- "title": "Iscriviti alla nostra newsletter",- "description": "Ricevi aggiornamenti sulle nuove funzionalità e i miglioramenti di EasyInvoicePDF.com",- "subscribe": "Iscriviti",- "placeholder": "Inserisci la tua email",- "success": "Grazie per l'iscrizione!",- "error": "Iscrizione fallita. Per favore riprova.",- "emailLanguageInfo": "Tutte le email saranno inviate in inglese"}},"Metadata": {diff --git a/messages/nl.json b/messages/nl.jsonindex 6f9b606..ef725a3 100644--- a/messages/nl.json+++ b/messages/nl.json@@ -47,12 +47,14 @@"noSignup": "Geen registratie vereist. 100% gratis en open-source."},"footer": {- "description": "Een gratis, open-source tool voor het maken van professionele PDF-facturen met realtime voorbeeld.",+ "description": "Een gratis, open-source tool voor het maken van professionele PDF-facturen met realtime voorbeeld. Geen boekhoudsoftware. Geen nalevingsgaranties. Voorwaarden zijn van toepassing. Lees onze Servicevoorwaarden voor meer informatie.","product": "Product","links": {"features": "Functies","github": "GitHub",- "changelog": "Nieuw"+ "changelog": "Nieuw",+ "founder": "Oprichter",+ "termsOfService": "Servicevoorwaarden"},"createdBy": "Gemaakt door"},@@ -64,15 +66,6 @@"shareFeedback": "Feedback delen","app": "App","startInvoicing": "Begin met factureren"- },- "newsletter": {- "title": "Abonneer op onze nieuwsbrief",- "description": "Ontvang updates over nieuwe functies en verbeteringen van EasyInvoicePDF.com",- "subscribe": "Abonneren",- "placeholder": "Voer je e-mailadres in",- "success": "Bedankt voor je aanmelding!",- "error": "Aanmelding mislukt. Probeer het opnieuw.",- "emailLanguageInfo": "Alle e-mails worden in het Engels verzonden"}},"Metadata": {diff --git a/messages/pl.json b/messages/pl.jsonindex c2f5f76..bf350de 100644--- a/messages/pl.json+++ b/messages/pl.json@@ -55,12 +55,14 @@"noSignup": "Bez rejestracji. W 100% darmowe i open-source."},"footer": {- "description": "Darmowe narzędzie open-source do tworzenia profesjonalnych faktur PDF z podglądem w czasie rzeczywistym.",+ "description": "Darmowe narzedzie open-source do tworzenia profesjonalnych faktur PDF z podgladem w czasie rzeczywistym. Nie jest oprogramowaniem ksiegowym. Brak gwarancji zgodnosci. Obowiazuja warunki. Prosimy zapoznac sie z naszymi Warunkami korzystania z uslugi, aby uzyskac wiecej informacji.","product": "Produkt","links": {"features": "Funkcje","github": "GitHub",- "changelog": "Dziennik zmian"+ "changelog": "Dziennik zmian",+ "founder": "Założyciel",+ "termsOfService": "Regulamin"},"createdBy": "Stworzone przez"},@@ -72,15 +74,6 @@"shareFeedback": "Podziel się opinią","app": "Aplikacja","startInvoicing": "Rozpocznij fakturowanie"- },- "newsletter": {- "title": "Zapisz się do newslettera",- "description": "Otrzymuj aktualizacje o nowych funkcjach i ulepszeniach EasyInvoicePDF.com",- "subscribe": "Zapisz się",- "placeholder": "Wpisz swój email",- "success": "Dziękujemy za subskrypcję!",- "error": "Nie udało się zapisać. Spróbuj ponownie.",- "emailLanguageInfo": "Wszystkie wiadomości będą wysyłane w języku angielskim"}},"FAQ": {diff --git a/messages/pt.json b/messages/pt.jsonindex 7d52e51..b1ca650 100644--- a/messages/pt.json+++ b/messages/pt.json@@ -55,12 +55,14 @@"noSignup": "Não requer cadastro. 100% gratuito e de código aberto."},"footer": {- "description": "Uma ferramenta gratuita de código aberto para criar faturas PDF profissionais com pré-visualização em tempo real.",+ "description": "Uma ferramenta gratuita de codigo aberto para criar faturas PDF profissionais com pre-visualizacao em tempo real. Nao e um software de contabilidade. Sem garantias de conformidade. Os termos se aplicam. Por favor, revise nossos Termos de Servico para mais detalhes.","product": "Produto","links": {"features": "Recursos","github": "GitHub",- "changelog": "Novidades"+ "changelog": "Novidades",+ "founder": "Fundador",+ "termsOfService": "Termos de serviço"},"createdBy": "Criado por"},@@ -72,15 +74,6 @@"shareFeedback": "Compartilhar feedback","app": "App","startInvoicing": "Começar a faturar"- },- "newsletter": {- "title": "Inscreva-se em nossa newsletter",- "description": "Receba atualizações sobre novos recursos e melhorias do EasyInvoicePDF.com",- "subscribe": "Inscrever-se",- "placeholder": "Digite seu email",- "success": "Obrigado por se inscrever!",- "error": "Falha na inscrição. Por favor, tente novamente.",- "emailLanguageInfo": "Todos os emails serão enviados em inglês"}},"FAQ": {diff --git a/messages/ru.json b/messages/ru.jsonindex 559da39..0ab1923 100644--- a/messages/ru.json+++ b/messages/ru.json@@ -55,12 +55,14 @@"noSignup": "Без регистрации. 100% бесплатно и с открытым исходным кодом."},"footer": {- "description": "Бесплатный инструмент с открытым исходным кодом для создания профессиональных PDF-инвойсов с предпросмотром в реальном времени.",+ "description": "Бесплатный инструмент с открытым исходным кодом для создания профессиональных PDF-инвойсов с предпросмотром в реальном времени. Не является бухгалтерским программным обеспечением. Никаких гарантий соответствия. Применяются условия. Пожалуйста, ознакомьтесь с нашими Условиями использования для получения дополнительной информации.","product": "Продукт","links": {"features": "Возможности","github": "GitHub",- "changelog": "Что нового"+ "changelog": "Что нового",+ "founder": "Основатель",+ "termsOfService": "Условия использования"},"createdBy": "Создано"},@@ -72,15 +74,6 @@"shareFeedback": "Поделиться отзывом","app": "Приложение","startInvoicing": "Перейти в приложение"- },- "newsletter": {- "title": "Подпишитесь на нашу рассылку",- "description": "Получайте обновления о новых функциях и улучшениях EasyInvoicePDF.com",- "subscribe": "Подписаться",- "placeholder": "Введите ваш email",- "success": "Спасибо за подписку!",- "error": "Не удалось подписаться. Пожалуйста, попробуйте снова.",- "emailLanguageInfo": "Все письма будут отправляться на английском языке"}},"FAQ": {diff --git a/messages/uk.json b/messages/uk.jsonindex 1f474b5..1edb067 100644--- a/messages/uk.json+++ b/messages/uk.json@@ -55,12 +55,14 @@"noSignup": "Без реєстрації. 100% безкоштовно та з відкритим кодом."},"footer": {- "description": "Безкоштовний інструмент з відкритим кодом для створення професійних PDF-рахунків з попереднім переглядом у реальному часі.",+ "description": "Безкоштовний інструмент з відкритим кодом для створення професійних PDF-рахунків з попереднім переглядом у реальному часі. Не є бухгалтерським програмним забезпеченням. Жодних гарантій відповідності. Умови застосовуються. Будь ласка, ознайомтеся з нашими Умовами використання для отримання додаткової інформації.","product": "Продукт","links": {"features": "Можливості","github": "GitHub",- "changelog": "Що нового"+ "changelog": "Що нового",+ "founder": "Засновник",+ "termsOfService": "Умови використання"},"createdBy": "Створено"},@@ -72,15 +74,6 @@"shareFeedback": "Поділитися відгуком","app": "Додаток","startInvoicing": "Перейти до додатку"- },- "newsletter": {- "title": "Підпишіться на нашу розсилку",- "description": "Отримуйте оновлення про нові функції та покращення EasyInvoicePDF.com",- "subscribe": "Підписатися",- "placeholder": "Введіть ваш email",- "success": "Дякуємо за підписку!",- "error": "Не вдалося підписатися. Будь ласка, спробуйте ще раз.",- "emailLanguageInfo": "Всі листи надсилатимуться англійською мовою"}},"FAQ": {diff --git a/src/app/(app)/components/index.tsx b/src/app/(app)/components/index.tsxindex 4ba9b89..fe798a5 100644--- a/src/app/(app)/components/index.tsx+++ b/src/app/(app)/components/index.tsx@@ -11,6 +11,7 @@ import { AlertCircleIcon, FileTextIcon, PencilIcon } from "lucide-react";import dynamic from "next/dynamic";import { TWITTER_URL } from "@/config";+import Link from "next/link";import type { Dispatch, SetStateAction } from "react";import { getAppMetadata, updateAppMetadata } from "../utils/get-app-metadata";import { InvoiceForm } from "./invoice-form";@@ -299,10 +300,20 @@ export function InvoiceClientPage({</span></div></div>+ <div className="mt-1 flex justify-center text-xs text-zinc-900">+ <Link+ href="/tos"+ className="underline hover:text-black"+ data-testid="mobile-terms-of-service-link"+ >+ Terms of Service+ </Link>+ </div></div>) : (// Desktop View<>+ {/* Invoice form section i.e. left column (Desktop version) */}<div className="col-span-4"><div className="h-[620px] overflow-auto border-b px-3 pl-0 shadow-[0_4px_6px_-4px_rgba(0,0,0,0.1)] 2xl:h-[700px]"><InvoiceForm@@ -338,11 +349,14 @@ export function InvoiceClientPage({</span></div></div>+ {/* Invoice preview section i.e. right column (Desktop version) */}<div className="relative col-span-8 h-[620px] w-full max-w-full 2xl:h-[700px]">{invoiceLastUpdatedAtFormatted && (- <div className="absolute -top-5 right-0 text-center text-xs text-zinc-700 duration-500 animate-in fade-in slide-in-from-bottom-2 md:-mb-5 lg:text-right">- <span className="font-semibold">Invoice last updated:</span>{" "}- {invoiceLastUpdatedAtFormatted}+ <div className="relative">+ <div className="absolute -top-5 right-0 text-center text-xs text-zinc-700 duration-500 animate-in fade-in slide-in-from-bottom-2 md:-mb-5 lg:text-right">+ <span className="font-semibold">Invoice last updated:</span>{" "}+ {invoiceLastUpdatedAtFormatted}+ </div></div>)}<PdfViewer@@ -351,6 +365,15 @@ export function InvoiceClientPage({isMobile={false}qrCodeDataUrl={qrCodeDataUrl}/>+ <div className="absolute -bottom-6 right-0 text-right text-xs text-zinc-900">+ <Link+ href="/tos"+ className="underline hover:text-black"+ data-testid="desktop-terms-of-service-link"+ >+ Terms of Service+ </Link>+ </div></div></>)}diff --git a/src/app/(app)/components/invoice-page-header.tsx b/src/app/(app)/components/invoice-page-header.tsxindex b6f1aea..c5301ba 100644--- a/src/app/(app)/components/invoice-page-header.tsx+++ b/src/app/(app)/components/invoice-page-header.tsx@@ -15,7 +15,7 @@ import Link from "next/link";import { GithubIcon } from "@/components/etc/github-logo";import { ProjectLogoDescription } from "@/components/project-logo-description";-import { GITHUB_URL, VIDEO_DEMO_URL } from "@/config";+import { GITHUB_URL, VIDEO_DEMO_YOUTUBE_URL } from "@/config";import { umamiTrackEvent } from "@/lib/umami-analytics-track-event";import { cn } from "@/lib/utils";import { AlertCircleIcon, HeartIcon, LinkIcon } from "lucide-react";@@ -234,7 +234,7 @@ function ProjectInfoLinks() {href={GITHUB_URL}target="_blank"rel="noopener noreferrer"- className="group inline-flex items-center gap-1.5 rounded-full border border-slate-300 px-3 py-1 text-xs font-medium text-slate-900 shadow transition-[colors,transform,border-color] duration-200 hover:border-blue-300 hover:text-blue-600 active:scale-[0.96]"+ className="group inline-flex items-center gap-1.5 rounded-full border border-slate-400 px-3 py-1 text-xs font-medium text-slate-900 shadow transition-[colors,transform,border-color] duration-200 hover:border-blue-300 hover:text-blue-600 active:scale-[0.96]"><GithubIcon className="size-4 transition-[transform,fill] duration-200 group-hover:scale-105 group-hover:fill-blue-600" /><span className="transition-colors duration-200 group-hover:text-blue-600">@@ -253,13 +253,13 @@ function ProjectInfoLinks() {</DialogDescription></DialogHeader><div className="aspect-video w-full overflow-hidden">- <video- src={VIDEO_DEMO_URL}- muted- controls- autoPlay- playsInline- className="h-full w-full object-cover"+ <iframe+ src={VIDEO_DEMO_YOUTUBE_URL}+ title="EasyInvoicePDF Demo Video"+ allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"+ referrerPolicy="strict-origin-when-cross-origin"+ allowFullScreen+ className="h-full w-full border-0"data-testid="how-it-works-video"/></div>diff --git a/src/app/(app)/components/invoice-pdf-download-link.tsx b/src/app/(app)/components/invoice-pdf-download-link.tsxindex 0c9d1ca..de69962 100644--- a/src/app/(app)/components/invoice-pdf-download-link.tsx+++ b/src/app/(app)/components/invoice-pdf-download-link.tsx@@ -16,6 +16,7 @@ import { useCallback, useEffect, useMemo, useState } from "react";import { toast } from "sonner";import { LOADING_BUTTON_TEXT, LOADING_BUTTON_TIMEOUT } from "./invoice-form";+import { CustomTooltip } from "@/components/ui/tooltip";import { useDeviceContext } from "@/contexts/device-context";import { isTelegramInAppBrowser } from "@/utils/is-telegram-in-app-browser";import { updateAppMetadata } from "../utils/get-app-metadata";@@ -245,25 +246,32 @@ export function InvoicePDFDownloadLink({]);return (- <>- <a- translate="no"- href={url || "#"}- download={url ? filename : undefined}- onClick={handleDownloadPDFClick}- className={cn(- "h-[36px] w-full rounded-lg bg-slate-900 px-4 py-2 text-center text-sm font-medium text-white",- "shadow-sm shadow-black/5 outline-offset-2 hover:bg-slate-900/90 active:scale-[98%] active:transition-transform",- "focus-visible:border-indigo-500 focus-visible:ring focus-visible:ring-indigo-200 focus-visible:ring-opacity-50",- "dark:bg-slate-50 dark:text-slate-900 dark:hover:bg-slate-50/90 lg:mb-0 lg:w-[210px]",- {- "pointer-events-none opacity-70": isLoading,- "lg:w-[240px]": invoiceData.language === "pt",- },- )}- >- <ButtonContent isLoading={isLoading} language={invoiceData.language} />- </a>- </>+ <CustomTooltip+ content="You are responsible for invoice compliance."+ delayDuration={0}+ trigger={+ <a+ translate="no"+ href={url || "#"}+ download={url ? filename : undefined}+ onClick={handleDownloadPDFClick}+ className={cn(+ "h-[36px] w-full rounded-lg bg-slate-900 px-4 py-2 text-center text-sm font-medium text-white",+ "shadow-sm shadow-black/5 outline-offset-2 hover:bg-slate-900/90 active:scale-[98%] active:transition-transform",+ "focus-visible:border-indigo-500 focus-visible:ring focus-visible:ring-indigo-200 focus-visible:ring-opacity-50",+ "dark:bg-slate-50 dark:text-slate-900 dark:hover:bg-slate-50/90 lg:mb-0 lg:w-[210px]",+ {+ "pointer-events-none opacity-70": isLoading,+ "lg:w-[240px]": invoiceData.language === "pt",+ },+ )}+ >+ <ButtonContent+ isLoading={isLoading}+ language={invoiceData.language}+ />+ </a>+ }+ />);}diff --git a/src/app/(app)/page.client.tsx b/src/app/(app)/page.client.tsxindex ac6c1c1..8bb2ff8 100644--- a/src/app/(app)/page.client.tsx+++ b/src/app/(app)/page.client.tsx@@ -731,19 +731,26 @@ export function AppPageClient({</div><Footertranslations={{- 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.",+ 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. Terms apply.+ Please review our{" "}+ <Link+ href="/tos"+ className="text-slate-700 underline hover:text-slate-900"+ >+ Terms of Service+ </Link>{" "}+ for more details.+ </>+ ),footerCreatedBy: "Made by",product: "Product",-- newsletterTitle: "Subscribe to our newsletter",- newsletterDescription:- "Get the latest updates and news from EasyInvoicePDF.com",- newsletterSubscribe: "Subscribe",- newsletterPlaceholder: "Enter your email",- newsletterSuccessMessage: "Thank you for subscribing!",- newsletterErrorMessage: "Failed to subscribe. Please try again.",- newsletterEmailLanguageInfo: "All emails will be sent in English",}}links={<ul className="space-y-2">@@ -755,6 +762,16 @@ export function AppPageClient({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><Linkhref="/changelog"@@ -765,12 +782,10 @@ export function AppPageClient({</li><li><Link- href={GITHUB_URL}- target="_blank"- rel="noopener noreferrer"+ href="/tos"className="text-sm text-slate-500 hover:text-slate-900">- GitHub+ Terms of Service</Link></li><li>@@ -783,6 +798,14 @@ export function AppPageClient({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/[locale]/about/components/header.tsx b/src/app/(components)/header/index.tsxsimilarity index 66%rename from src/app/[locale]/about/components/header.tsxrename to src/app/(components)/header/index.tsxindex eb88371..b952ffd 100644--- a/src/app/[locale]/about/components/header.tsx+++ b/src/app/(components)/header/index.tsx@@ -6,6 +6,7 @@ import { GITHUB_URL } from "@/config";import { cn } from "@/lib/utils";import { type Locale } from "next-intl";import Link from "next/link";+import { usePathname } from "next/navigation";import { useState } from "react";import { LanguageSwitcher } from "./language-switcher";import { Logo } from "./logo";@@ -24,10 +25,24 @@ export interface HeaderProps {goToAppText: string;startInvoicingButtonText: string;changelogLinkText: string;+ termsOfServiceLinkText: string;};+ hideLanguageSwitcher?: boolean;}-export function Header({ locale, translations }: HeaderProps) {++export function Header({+ locale,+ translations,+ hideLanguageSwitcher = false,+}: HeaderProps) {const [open, setOpen] = useState(false);+ const pathname = usePathname();++ const isChangelogActive = pathname === "/changelog";+ const isTosActive = pathname === "/tos";++ const desktopNavLinkClass =+ "rounded-md px-3 py-1.5 text-sm font-medium transition-colors hover:bg-slate-100/90 hover:text-black";return (<header className="sticky top-0 z-50 w-full border-b bg-white shadow-sm">@@ -47,25 +62,41 @@ export function Header({ locale, translations }: HeaderProps) {<div className="flex items-center gap-1">{/* Desktop nav */}<nav className="hidden items-center justify-end gap-1 lg:flex">+ {/* a href this is only reliable way to scroll to a section on route navigation*/}<a- href="#features"- className="rounded-md px-3 py-1.5 text-sm font-medium text-slate-600 transition-colors hover:bg-slate-100 hover:text-slate-900"+ href={`/${locale}/about#features`}+ className={cn(desktopNavLinkClass, "text-slate-600")}>{translations.navLinks.features}</a>+ {/* a href this is only reliable way to scroll to a section on route navigation*/}<a- href="#faq"- className="rounded-md px-3 py-1.5 text-sm font-medium text-slate-600 transition-colors hover:bg-slate-100 hover:text-slate-900"+ href={`/${locale}/about#faq`}+ className={cn(desktopNavLinkClass, "text-slate-600")}>{translations.navLinks.faq}</a><Linkhref="/changelog"- className="rounded-md px-3 py-1.5 text-sm font-medium text-slate-600 transition-colors hover:bg-slate-100 hover:text-slate-900"+ className={cn(+ desktopNavLinkClass,+ isChangelogActive+ ? "bg-slate-100 text-black"+ : "text-slate-600",+ )}>{translations.changelogLinkText}</Link>+ <Link+ href="/tos"+ className={cn(+ desktopNavLinkClass,+ isTosActive ? "bg-slate-100 text-black" : "text-slate-600",+ )}+ >+ {translations.termsOfServiceLinkText}+ </Link><Linkhref={GITHUB_URL}target="_blank"@@ -79,11 +110,13 @@ export function Header({ locale, translations }: HeaderProps) {</nav>{/* Language switcher -- desktop only */}- <div className="hidden lg:block">- <LanguageSwitcher- locale={locale}- buttonText={translations.switchLanguageText}- />+ <div className="hidden min-w-[36px] lg:block">+ {!hideLanguageSwitcher && (+ <LanguageSwitcher+ locale={locale}+ buttonText={translations.switchLanguageText}+ />+ )}</div>{/* CTA button - hidden from header on mobile when sheet is open */}@@ -112,6 +145,7 @@ export function Header({ locale, translations }: HeaderProps) {onOpenChange={setOpen}locale={locale}translations={translations}+ hideLanguageSwitcher={hideLanguageSwitcher}/></div></div>diff --git a/src/app/[locale]/about/components/language-switcher.tsx b/src/app/(components)/header/language-switcher.tsxsimilarity index 100%rename from src/app/[locale]/about/components/language-switcher.tsxrename to src/app/(components)/header/language-switcher.tsxdiff --git a/src/app/[locale]/about/components/logo.tsx b/src/app/(components)/header/logo.tsxsimilarity index 100%rename from src/app/[locale]/about/components/logo.tsxrename to src/app/(components)/header/logo.tsxdiff --git a/src/app/[locale]/about/components/mobile-menu.tsx b/src/app/(components)/header/mobile-menu.tsxsimilarity index 65%rename from src/app/[locale]/about/components/mobile-menu.tsxrename to src/app/(components)/header/mobile-menu.tsxindex 18bfd0c..61ab4c2 100644--- a/src/app/[locale]/about/components/mobile-menu.tsx+++ b/src/app/(components)/header/mobile-menu.tsx@@ -3,25 +3,29 @@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 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 type { HeaderProps } from "@/app/[locale]/about/components/header";+import type { HeaderProps } from ".";interface MobileMenuProps {open: boolean;onOpenChange: (open: boolean) => void;locale: Locale;translations: HeaderProps["translations"];+ hideLanguageSwitcher?: boolean;}export function MobileMenu({@@ -29,7 +33,16 @@ export function MobileMenu({onOpenChange,locale,translations,+ hideLanguageSwitcher,}: MobileMenuProps) {+ const pathname = usePathname();++ const isChangelogActive = pathname === "/changelog";+ const isTosActive = pathname === "/tos";++ 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>@@ -50,6 +63,10 @@ export function MobileMenu({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>{/* Faux header row mirroring the page header */}<header className="w-full border-b bg-white shadow-sm">@@ -79,17 +96,19 @@ export function MobileMenu({<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="#features"- className="flex items-center rounded-lg px-4 py-4 text-lg font-medium text-slate-700 transition-colors hover:bg-slate-100 hover:text-slate-900"+ 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="#faq"- className="flex items-center rounded-lg px-4 py-4 text-lg font-medium text-slate-700 transition-colors hover:bg-slate-100 hover:text-slate-900"+ href={`/${locale}/about#faq`}+ className={cn(mobileNavLinkClass, "text-slate-700")}>{translations.navLinks.faq}</a>@@ -97,11 +116,28 @@ export function MobileMenu({<SheetClose asChild><Linkhref="/changelog"- className="flex items-center rounded-lg px-4 py-4 text-lg font-medium text-slate-700 transition-colors hover:bg-slate-100 hover:text-slate-900"+ 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><Linkhref={translations.navLinks.githubUrl}@@ -116,7 +152,7 @@ export function MobileMenu({</SheetClose>{/* Start Invoicing CTA Button */}- <div className="w-fit pt-2" onClick={() => onOpenChange(false)}>+ <div className="w-fit pt-4" onClick={() => onOpenChange(false)}><Buttonsize="lg"variant="outline"@@ -138,18 +174,20 @@ export function MobileMenu({</div></nav>- <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)}- />+ {!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></div>- </div>+ )}</SheetContent></Sheet>);diff --git a/src/app/[locale]/about/page.tsx b/src/app/[locale]/about/page.tsxindex cfd1e66..cf5b9b7 100644--- a/src/app/[locale]/about/page.tsx+++ b/src/app/[locale]/about/page.tsx@@ -1,4 +1,3 @@-// import { ProjectLogo } from "@/components/etc/project-logo";import { GithubIcon } from "@/components/etc/github-logo";import { Footer } from "@/components/footer";import {@@ -23,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 "./components/header";+import { Header } from "@/app/(components)/header";// statically generate the pages for all localesexport function generateStaticParams() {@@ -37,15 +36,6 @@ export default function AboutPage({ params }: { params: { locale: Locale } }) {setRequestLocale(locale);const t = useTranslations("About");- const tNewsletter = useTranslations("About.newsletter");-- const newsletterTitle = tNewsletter("title");- const newsletterDescription = tNewsletter("description");- const newsletterSubscribe = tNewsletter("subscribe");- const newsletterPlaceholder = tNewsletter("placeholder");- const newsletterSuccessMessage = tNewsletter("success");- const newsletterErrorMessage = tNewsletter("error");- const newsletterEmailLanguageInfo = tNewsletter("emailLanguageInfo");const navLinks = {features: t("footer.links.features"),@@ -60,6 +50,7 @@ export default function AboutPage({ params }: { params: { locale: Locale } }) {const startInvoicingButtonText = t("buttons.startInvoicing");const changelogLinkText = t("footer.links.changelog");+ const termsOfServiceLinkText = t("footer.links.termsOfService");return (<TooltipProvider>@@ -80,6 +71,7 @@ export default function AboutPage({ params }: { params: { locale: Locale } }) {goToAppText,startInvoicingButtonText,changelogLinkText,+ termsOfServiceLinkText,}}/><main>@@ -102,6 +94,16 @@ export default function AboutPage({ params }: { params: { locale: Locale } }) {{t("buttons.app")}</Link></li>+ <li>+ <Link+ href={GITHUB_URL}+ target="_blank"+ rel="noopener noreferrer"+ className="text-sm text-slate-500 hover:text-slate-900"+ >+ {t("footer.links.github")}+ </Link>+ </li><li><Linkhref="#features"@@ -126,6 +128,15 @@ export default function AboutPage({ params }: { params: { locale: Locale } }) {{t("footer.links.changelog")}</Link></li>++ <li>+ <Link+ href="/tos"+ className="text-sm text-slate-500 hover:text-slate-900"+ >+ {t("footer.links.termsOfService")}+ </Link>+ </li><li><Linkhref="https://pdfinvoicegenerator.userjot.com/?cursor=1&order=top&limit=10"@@ -138,12 +149,10 @@ export default function AboutPage({ params }: { params: { locale: Locale } }) {</li><li><Link- href={GITHUB_URL}- target="_blank"- rel="noopener noreferrer"+ href="/founder"className="text-sm text-slate-500 hover:text-slate-900">- {t("footer.links.github")}+ {t("footer.links.founder")}</Link></li></ul>@@ -152,14 +161,6 @@ export default function AboutPage({ params }: { params: { locale: Locale } }) {footerDescription: t("footer.description"),footerCreatedBy: t("footer.createdBy"),product: t("footer.product"),-- newsletterTitle: newsletterTitle,- newsletterDescription: newsletterDescription,- newsletterSubscribe: newsletterSubscribe,- newsletterPlaceholder: newsletterPlaceholder,- newsletterSuccessMessage: newsletterSuccessMessage,- newsletterErrorMessage: newsletterErrorMessage,- newsletterEmailLanguageInfo: newsletterEmailLanguageInfo,}}/></div>diff --git a/src/app/changelog/layout.tsx b/src/app/changelog/layout.tsxindex 3defae0..110bafa 100644--- a/src/app/changelog/layout.tsx+++ b/src/app/changelog/layout.tsx@@ -1,8 +1,5 @@-import { ProjectLogo } from "@/components/etc/project-logo";+import { Header } from "@/app/(components)/header";import { Footer } from "@/components/footer";-import { BlackGoToAppButton } from "@/components/go-to-app-button-cta";-import { ProjectLogoDescription } from "@/components/project-logo-description";-import { Button } from "@/components/ui/button";import { GITHUB_URL, STATIC_ASSETS_URL } from "@/config";import type { Metadata } from "next";import Link from "next/link";@@ -85,7 +82,23 @@ interface ChangelogLayoutProps {export default function ChangelogLayout({ children }: ChangelogLayoutProps) {return (<>- <Header />+ <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}+ />{children}<Footertranslations={{@@ -93,15 +106,6 @@ export default function ChangelogLayout({ children }: ChangelogLayoutProps) {"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.",footerCreatedBy: "Made by",product: "Product",-- newsletterTitle: "Subscribe to our newsletter",- newsletterDescription:- "Get the latest updates and news from EasyInvoicePDF.com",- newsletterSubscribe: "Subscribe",- newsletterPlaceholder: "Enter your email",- newsletterSuccessMessage: "Thank you for subscribing!",- newsletterErrorMessage: "Failed to subscribe. Please try again.",- newsletterEmailLanguageInfo: "All emails will be sent in English",}}links={<ul className="space-y-2">@@ -132,6 +136,15 @@ export default function ChangelogLayout({ children }: ChangelogLayoutProps) {GitHub</Link></li>++ <li>+ <Link+ href="/tos"+ className="text-sm text-slate-500 hover:text-slate-900"+ >+ Terms of Service+ </Link>+ </li><li><Linkhref="https://pdfinvoicegenerator.userjot.com/?cursor=1&order=top&limit=10"@@ -142,55 +155,17 @@ export default function ChangelogLayout({ children }: ChangelogLayoutProps) {Share feedback</Link></li>+ <li>+ <Link+ href="/founder"+ className="text-sm text-slate-500 hover:text-slate-900"+ >+ Founder+ </Link>+ </li></ul>}/></>);}--function Header() {- return (- <header className="sticky top-0 z-50 w-full border-b bg-white shadow-sm">- <div className="flex items-center justify-center">- <div className="container h-auto px-3 py-2 sm:h-16 sm:py-0">- <div className="flex h-full flex-row flex-wrap items-center justify-between gap-2">- <div className="w-[53%] sm:w-auto">- <Logo />- </div>- <div className="flex items-center sm:mt-0 sm:gap-2">- <Button variant="ghost" className="hidden lg:inline-flex" asChild>- <Link href="/en/about">About</Link>- </Button>- <Button variant="ghost" className="hidden lg:inline-flex" asChild>- <Link- href="https://pdfinvoicegenerator.userjot.com/?cursor=1&order=top&limit=10"- target="_blank"- rel="noopener noreferrer"- >- Share feedback- </Link>- </Button>- <BlackGoToAppButton className="px-3 sm:px-8">- Go to App- </BlackGoToAppButton>- </div>- </div>- </div>- </div>- </header>- );-}--function Logo() {- return (- <div>- <div className="flex items-center gap-1 sm:gap-2">- <ProjectLogo className="h-7 w-7 flex-shrink-0 sm:h-8 sm:w-8" />- <ProjectLogoDescription>- Free Invoice Generator with Live PDF Preview- </ProjectLogoDescription>- </div>- </div>- );-}diff --git a/src/app/founder/page.tsx b/src/app/founder/page.tsxnew file mode 100644index 0000000..d5c3410--- /dev/null+++ b/src/app/founder/page.tsx@@ -0,0 +1,167 @@+import { Header } from "@/app/(components)/header";+import { GITHUB_URL, LINKEDIN_URL, STATIC_ASSETS_URL, TWITTER_URL } from "@/config";+import type { Metadata } from "next";+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">+ <img+ src="https://ik.imagekit.io/fl2lbswwo/avatar.jpeg?updatedAt=1757456439459"+ alt="Vlad Sazonau"+ width={160}+ height={160}+ loading="lazy"+ decoding="async"+ className="size-40 object-cover"+ />+ </div>++ {/* Name and Title */}+ <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>++ {/* Bio */}+ <p className="mx-auto mt-8 max-w-xl text-center text-lg leading-relaxed text-slate-700">+ I'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>++ {/* 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>++ <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"+ >+ </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"+ >+ </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>+ </div>+ </div>+ </>+ );+}diff --git a/src/app/schema/i18n-schema.ts b/src/app/schema/i18n-schema.tsindex 0bbf5e4..df70f44 100644--- a/src/app/schema/i18n-schema.ts+++ b/src/app/schema/i18n-schema.ts@@ -66,6 +66,8 @@ const aboutSchema = zfeatures: z.string(),github: z.string(),changelog: z.string(),+ founder: z.string(),+ termsOfService: z.string(),}).strict(),createdBy: z.string(),@@ -82,17 +84,6 @@ const aboutSchema = zstartInvoicing: z.string(),}).strict(),- newsletter: z- .object({- title: z.string(),- description: z.string(),- subscribe: z.string(),- placeholder: z.string(),- success: z.string(),- error: z.string(),- emailLanguageInfo: z.string(),- })- .strict(),}).strict();diff --git a/src/app/tos/page.tsx b/src/app/tos/page.tsxnew file mode 100644index 0000000..de1775b--- /dev/null+++ b/src/app/tos/page.tsx@@ -0,0 +1,255 @@+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 - 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",+ 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>++ <h2>1. Overview</h2>+ <p>+ EasyInvoicePDF ("the Service") 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>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>5. No Warranties</h2>+ <p>+ The Service is provided "as is" and "as+ available" 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>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>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>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:{" "}+ <Link href="mailto:[email protected]">+ </Link>+ </p>+ </article>+ </div>+ </div>+ </>+ );+}diff --git a/src/components/footer.tsx b/src/components/footer.tsxindex f123769..0d708c5 100644--- a/src/components/footer.tsx+++ b/src/components/footer.tsx@@ -2,26 +2,15 @@ import { ProjectLogo } from "@/components/etc/project-logo";import { GITHUB_URL, TWITTER_URL } from "@/config";import Link from "next/link";-export function Footer({- links,- translations,-}: {+interface FooterProps {links: React.ReactNode;translations: {- footerDescription: string;+ footerDescription: React.ReactNode;footerCreatedBy: string;-product: string;-- newsletterTitle: string;- newsletterDescription: string;- newsletterSubscribe: string;- newsletterPlaceholder: string;- newsletterSuccessMessage: string;- newsletterErrorMessage: string;- newsletterEmailLanguageInfo: string;};-}) {+}+export function Footer({ links, translations }: FooterProps) {return (<footer className="w-full border-t border-slate-200 bg-white py-12 md:py-16"><div className="container mx-auto px-4 md:px-6">diff --git a/src/components/ui/dialog.tsx b/src/components/ui/dialog.tsxindex 5453797..143ac87 100644--- a/src/components/ui/dialog.tsx+++ b/src/components/ui/dialog.tsx@@ -49,7 +49,7 @@ const DialogContent = React.forwardRef<title="Close"><X- size={16}+ size={18}strokeWidth={2}className="opacity-60 transition-opacity group-hover:opacity-100"/>diff --git a/src/config.ts b/src/config.tsindex b72247f..4ab54ac 100644--- a/src/config.ts+++ b/src/config.ts@@ -19,12 +19,21 @@ export const VIDEO_DEMO_URL = `${STATIC_ASSETS_URL}/demo-videos/easy-invoice-dem*/export const VIDEO_DEMO_FALLBACK_IMG = `${STATIC_ASSETS_URL}/demo-videos/easy-invoice-demo-01-2026-fallback-img-v1.png`;+/**+ * YouTube URL for main demo video on marketing page and "How it works" dialog+ */+export const VIDEO_DEMO_YOUTUBE_URL =+ "https://www.youtube.com/embed/iAROeCIcZ40?si=EyJKCsUr43Z8zY1f";+// const DONATION_URL = "https://dub.sh/easyinvoice-donate";export const PROD_WEBSITE_URL = "https://easyinvoicepdf.com";export const GITHUB_URL = "https://github.com/VladSez/easy-invoice-pdf";+export const LINKEDIN_URL =+ "https://www.linkedin.com/in/vlad-sazonau-22a9a9126/";+export const TWITTER_URL = "https://x.com/vladsazonau";export const BUG_REPORT_URL =