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
chore: update SEO shell, update project name and enhance README with GitHub link (#223)
Vlad Sazonauf3b2b06dd5ba
diff --git a/README.md b/README.mdindex 91af0a5..9aec58f 100644--- a/README.md+++ b/README.md@@ -13,6 +13,17 @@<a href="https://github.com/VladSez/easy-invoice-pdf/releases">Releases</a></p>+ <div align="center" title="Star EasyInvoicePDF on GitHub - free & open-source invoice generator">+ <strong>Star us on GitHub ❤️</strong><br/>+ <a href="https://github.com/VladSez/easy-invoice-pdf">+ <img+ alt="Star EasyInvoicePDF on GitHub - free & open-source invoice generator"+ src="https://shieldcn.dev/github/VladSez/easy-invoice-pdf/stars.svg?mode=light&size=lg"+ height="38"+ />+ </a>+</div>+<a href="https://easyinvoicepdf.com/?template=stripe&ref=github"><!-- source: .github/screenshots/stripe-template.png --><img width="1920" height="1536" alt="EasyInvoicePDF Product Screenshot" src="https://github.com/user-attachments/assets/6f0e2156-24e0-4f8b-b8f1-1d2bf5ac157a" />diff --git a/package.json b/package.jsonindex 543c798..ae6f443 100644--- a/package.json+++ b/package.json@@ -1,5 +1,5 @@{- "name": "EasyInvoicePDF",+ "name": "easy-invoice-pdf","version": "1.0.3","private": true,"packageManager": "[email protected]+sha512.3590e550d5384caa39bd5c7c739f72270234b2f6059e13018f975c313b1eb9fefcc09714048765d4d9efe961382c312e624572c0420762bdc5d5940cdf9be73a",diff --git a/src/app/(seo-landings)/components/seo-landing-json-ld.tsx b/src/app/(seo-landings)/components/seo-landing-json-ld.tsxindex 7c9f71f..07f0660 100644--- a/src/app/(seo-landings)/components/seo-landing-json-ld.tsx+++ b/src/app/(seo-landings)/components/seo-landing-json-ld.tsx@@ -5,6 +5,13 @@ interface SeoLandingJsonLdProps {definition: SeoLandingDefinition;}+/**+ * Renders JSON-LD structured data for SEO landing pages.+ * Injects schema markup into the document head for better search engine understanding.+ *+ * @param {SeoLandingJsonLdProps} props - Component props+ * @param {SeoLandingDefinition} props.definition - SEO landing page definition containing schema data+ */export function SeoLandingJsonLd({ definition }: SeoLandingJsonLdProps) {const graph = buildSeoLandingJsonLd(definition);diff --git a/src/app/(seo-landings)/components/seo-landing-shell.tsx b/src/app/(seo-landings)/components/seo-landing-shell.tsxindex 5bfe919..8abe316 100644--- a/src/app/(seo-landings)/components/seo-landing-shell.tsx+++ b/src/app/(seo-landings)/components/seo-landing-shell.tsx@@ -12,6 +12,8 @@ import {} from "../seo-landing-definitions";import { ChevronDownIcon } from "lucide-react";import { StickySeoCta } from "@/app/(seo-landings)/components/sticky-seo-cta";+import { Button } from "@/components/ui/button";+import { GithubIcon } from "@/components/etc/github-logo";const HEADER_TRANSLATIONS = {navLinks: {@@ -34,11 +36,20 @@ interface SeoLandingShellProps {definition: SeoLandingDefinition;}+/**+ * Renders a complete SEO landing page shell with hero section, CTA buttons, and layout structure.+ *+ * @param {SeoLandingShellProps} props - Component props+ * @param {SeoLandingDefinition} props.definition - SEO landing page definition+ */export function SeoLandingShell({ definition }: SeoLandingShellProps) {return (<>+ {/** Sticky CTA component displayed at bottom of SEO landing pages. */}<StickySeoCta href={definition.hero.ctaHref} />+ {/** Renders JSON-LD structured data for SEO landing pages. */}<SeoLandingJsonLd definition={definition} />+<div className="flex min-h-screen flex-col bg-slate-50"><Header locale="en" translations={HEADER_TRANSLATIONS} /><main className="flex flex-1 flex-col md:pb-12">@@ -50,13 +61,28 @@ export function SeoLandingShell({ definition }: SeoLandingShellProps) {<h2 className="mt-4 max-w-3xl text-xl leading-relaxed text-slate-600 md:text-2xl">{definition.hero.subheading}</h2>- <div className="mt-8">+ <div className="mt-8 flex flex-col gap-4 md:flex-row"><BlackGoToAppButton- className="h-12 w-full px-8 text-base md:h-14 md:w-auto md:text-lg"+ className="w-full px-8 py-6 text-base lg:w-[325px] lg:px-10"href={definition.hero.ctaHref}>- {definition.hero.ctaLabel}+ <span className="truncate">{definition.hero.ctaLabel}</span></BlackGoToAppButton>+ <Button+ size="lg"+ variant="outline"+ className="group relative w-full overflow-hidden border-slate-200 px-8 py-6 text-base shadow-sm transition-all duration-300 hover:scale-[1.02] hover:border-slate-300 hover:shadow-md lg:w-[325px] lg:px-10"+ asChild+ >+ <Link+ href={GITHUB_URL}+ target="_blank"+ rel="noopener noreferrer"+ >+ <GithubIcon className="mr-2 size-6 transition-all duration-300 group-hover:scale-105" />+ <span className="text-clip">View on GitHub</span>+ </Link>+ </Button></div>{definition.hero.heroImage ? (<div className="mt-8">diff --git a/src/app/(seo-landings)/components/sticky-seo-cta.tsx b/src/app/(seo-landings)/components/sticky-seo-cta.tsxindex bcf2519..1d6ecc1 100644--- a/src/app/(seo-landings)/components/sticky-seo-cta.tsx+++ b/src/app/(seo-landings)/components/sticky-seo-cta.tsx@@ -4,6 +4,14 @@ import { Button } from "@/components/ui/button";import { cn } from "@/lib/utils";import Link from "next/link";+/**+ * Sticky CTA component displayed at bottom of SEO landing pages.+ * Shows a fixed banner with call-to-action to open the app.+ *+ * @param {Object} props - Component props+ * @param {string} props.href - URL to navigate to when CTA is clicked+ * @param {string} [props.className] - Optional additional CSS classes+ */export function StickySeoCta({href,className,diff --git a/src/app/(seo-landings)/seo-landing-definitions.ts b/src/app/(seo-landings)/seo-landing-definitions.tsindex 6f8e108..7769dc7 100644--- a/src/app/(seo-landings)/seo-landing-definitions.ts+++ b/src/app/(seo-landings)/seo-landing-definitions.ts@@ -370,13 +370,12 @@ def-tmp-v2.png`,sections: [{title: "Why use a PDF invoice template",- lead: "PDF invoices are:",+ lead: "No formatting issues, no surprises.",bullets: ["Universally accepted by clients and accounting teams","Easy to share without layout shifts","Consistent across devices and printers",],- paragraphs: ["No formatting issues, no surprises."],},{title: "What is included",diff --git a/src/app/(seo-landings)/seo-landing-route.tsx b/src/app/(seo-landings)/seo-landing-route.tsxindex f6e23fc..5bfa7b1 100644--- a/src/app/(seo-landings)/seo-landing-route.tsx+++ b/src/app/(seo-landings)/seo-landing-route.tsx@@ -11,7 +11,7 @@ export function buildSeoLandingMetadata(slug: SeoLandingSlug): Metadata {if (!definition) {throw new Error(- `🚨🚨🚨 [buildSeoLandingMetadata] SEO landing definition not found for slug: ${slug} 🚨🚨🚨`,+ `\n\n🚨🚨🚨 [buildSeoLandingMetadata] SEO landing definition not found for slug: ____${slug}____ 🚨🚨🚨\n\n`,);}@@ -72,5 +72,11 @@ export function buildSeoLandingMetadata(slug: SeoLandingSlug): Metadata {export function SeoLandingRoutePage({ slug }: { slug: SeoLandingSlug }) {const definition = SEO_LANDING_DEFINITIONS[slug];+ if (!definition) {+ throw new Error(+ `\n\n🚨🚨🚨 [SeoLandingRoutePage] SEO landing definition not found for slug: ____${slug}____ 🚨🚨🚨\n\n`,+ );+ }+return <SeoLandingShell definition={definition} />;}diff --git a/src/app/[locale]/about/page.tsx b/src/app/[locale]/about/page.tsxindex 27158e0..14b7b7a 100644--- a/src/app/[locale]/about/page.tsx+++ b/src/app/[locale]/about/page.tsx@@ -228,7 +228,7 @@ function HeroSection() {</div></div>- {/* CTA Buttons (Go to app and View on GitHub) */}+ {/* CTA Buttons (Go to app and GitHub) */}<div className="flex w-full flex-col justify-center gap-3 sm:flex-row sm:flex-wrap xl:justify-start"><BlackGoToAppButton className="w-full px-10 py-6 text-lg lg:w-[270px] lg:max-w-[270px]"><span className="text-clip">{t("buttons.startInvoicing")}</span>@@ -237,7 +237,7 @@ function HeroSection() {<Buttonsize="lg"variant="outline"- className="group relative w-full overflow-hidden border-slate-200 px-10 py-6 text-lg shadow-sm transition-all duration-300 hover:border-slate-300 hover:shadow-md lg:w-[270px] lg:max-w-[270px]"+ className="group relative w-full overflow-hidden border-slate-200 px-10 py-6 text-lg shadow-sm transition-all duration-300 hover:scale-[1.02] hover:border-slate-300 hover:shadow-md lg:w-[270px] lg:max-w-[270px]"asChild><Link@@ -245,7 +245,7 @@ function HeroSection() {target="_blank"rel="noopener noreferrer">- <GithubIcon className="mr-2 h-6 w-6 transition-transform group-hover:scale-110" />+ <GithubIcon className="mr-2 size-6 transition-all duration-300 group-hover:scale-105" /><span className="text-clip">{t("buttons.viewOnGithub")}</span></Link></Button>