Skip to content

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

feat(style): polish and improvements (#230)

Vlad Sazonau5821e2b6dc3d
diff --git a/e2e/about.test.ts b/e2e/about.test.ts
index e02ffe6..2706625 100644
--- a/e2e/about.test.ts
+++ b/e2e/about.test.ts
@@ -14,7 +14,7 @@ test.describe("About page", () => {
await expect(page).toHaveURL("/en/about");
await expect(page).toHaveTitle(
- "Free Invoice Generator PDF - EasyInvoicePDF (Open Source)",
+ "Free Invoice Generator PDF - EasyInvoicePDF",
);
const header = page.getByRole("banner");
@@ -113,10 +113,6 @@ test.describe("About page", () => {
const featuresSection = page.locator("#features");
await expect(featuresSection).toBeVisible();
- await expect(
- featuresSection.getByTestId("features-coming-soon"),
- ).toHaveText("E-invoicing and API support - coming soon");
-
await expect(
featuresSection.getByRole("heading", {
level: 2,
diff --git a/messages/en.json b/messages/en.json
index be2a57e..a1abd94 100644
--- a/messages/en.json
+++ b/messages/en.json
@@ -1,7 +1,7 @@
{
"Metadata": {
"about": {
- "title": "Free Invoice Generator PDF - EasyInvoicePDF (Open Source)",
+ "title": "Free Invoice Generator PDF - EasyInvoicePDF",
"description": "Create and download PDF invoices instantly with EasyInvoicePDF. Free, open-source, client-side invoice generator with live preview, templates, and shareable links. No signup required.",
"keywords": "free invoice generator, PDF invoice maker, online invoice tool, billing software, open source invoice",
"siteName": "EasyInvoicePDF.com | Free Invoice Generator"
@@ -17,7 +17,7 @@
"badge": "Features",
"title": "Everything you need for professional invoicing",
"description": "Create professional invoices with live preview, instant PDF downloads, multi-language support, flexible tax systems and more.",
- "comingSoon": "E-invoicing and API support - coming soon",
+ "comingSoon": "API support and recurring invoices - coming soon",
"items": {
"livePreview": {
"title": "Live Preview",
diff --git a/src/app/(components)/header/header.client.tsx b/src/app/(components)/header/header.client.tsx
index 5fad4ef..d66e248 100644
--- a/src/app/(components)/header/header.client.tsx
+++ b/src/app/(components)/header/header.client.tsx
@@ -38,12 +38,15 @@ export function HeaderClient({
.toLowerCase();
return (
- <header className="sticky top-0 z-50 w-full border-b bg-white shadow-sm">
+ <header className="sticky top-4 z-50 w-full px-2 md:px-6">
<div className="flex items-center justify-center">
- <div className="container h-16 px-4 md:px-6">
+ <div className="container h-16 rounded-3xl bg-gradient-to-r from-stone-50/80 to-white px-4 shadow-sm ring-1 ring-stone-200 backdrop-blur-md md:px-6">
<div className="flex h-full items-center justify-between gap-4">
{/* App logo */}
- <Logo text={translations.navLinks.tagline} />
+ <Logo
+ text={translations.navLinks.tagline}
+ className="text-sm min-[375px]:text-base"
+ />
{/* Right side actions */}
<div className="flex items-center gap-1">
@@ -55,7 +58,7 @@ export function HeaderClient({
rel="noopener noreferrer"
className={cn(
desktopNavLinkClass,
- "group flex items-center gap-1.5 bg-stone-200/50 text-slate-800 hover:bg-stone-200/80",
+ "group flex items-center gap-1.5 bg-stone-200/80 text-slate-800 hover:bg-stone-200/90",
)}
aria-label={translations.navLinks.github}
title="Star EasyInvoicePDF on GitHub - free & open-source invoice generator"
diff --git a/src/app/(components)/header/logo.tsx b/src/app/(components)/header/logo.tsx
index a04603b..32b4c6f 100644
--- a/src/app/(components)/header/logo.tsx
+++ b/src/app/(components)/header/logo.tsx
@@ -1,7 +1,14 @@
import { FinalProjectLogo } from "@/components/etc/final-project-logo";
import { ProjectLogoDescription } from "@/app/(components)/project-logo-description";
+import { cn } from "@/lib/utils";
-export function Logo({ text }: { text: string }) {
+export function Logo({
+ text,
+ className,
+}: {
+ text: string;
+ className?: string;
+}) {
return (
<div>
<div className="flex items-center gap-1.5 md:gap-2">
@@ -14,7 +21,12 @@ export function Logo({ text }: { text: string }) {
{/* show only app name on mobile (to save space) */}
<div className="block sm:hidden">
- <p className="text-balance text-center text-base font-bold text-zinc-800 min-[375px]:text-xl sm:mt-0 sm:text-2xl lg:mr-5 lg:text-left">
+ <p
+ className={cn(
+ "text-balance text-center text-base font-bold text-zinc-800 min-[375px]:text-xl sm:mt-0 sm:text-2xl lg:mr-5 lg:text-left",
+ className,
+ )}
+ >
<a
href="https://easyinvoicepdf.com"
target="_blank"
diff --git a/src/app/(components)/header/mobile-menu.tsx b/src/app/(components)/header/mobile-menu.tsx
index 0acd913..eea33af 100644
--- a/src/app/(components)/header/mobile-menu.tsx
+++ b/src/app/(components)/header/mobile-menu.tsx
@@ -79,7 +79,7 @@ export function MobileMenuPanel({
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 border-t bg-white shadow-lg",
+ "fixed inset-x-0 top-[84px] z-[60] mx-2 flex max-h-[calc(100dvh-4rem)] flex-col overflow-y-auto rounded-3xl border-b border-t bg-white shadow-lg md:mx-6",
"duration-200 animate-in fade-in slide-in-from-top-2",
)}
>
diff --git a/src/app/(seo-landings)/components/seo-landing-shell.tsx b/src/app/(seo-landings)/components/seo-landing-shell.tsx
index 85572e3..4c00f1e 100644
--- a/src/app/(seo-landings)/components/seo-landing-shell.tsx
+++ b/src/app/(seo-landings)/components/seo-landing-shell.tsx
@@ -9,7 +9,7 @@ import {
type SeoLandingDefinition,
type SeoSection,
} from "../seo-landing-definitions";
-import { ChevronDownIcon } from "lucide-react";
+import { PlusIcon } 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";
@@ -154,20 +154,20 @@ export function SeoLandingShell({ definition }: SeoLandingShellProps) {
{definition.faq.map((item) => (
<details
key={item.question}
- className="group cursor-pointer border-b border-dashed border-slate-400"
+ className="group cursor-pointer border-b border-dashed border-stone-300 transition-all duration-200 last:border-b-0"
>
<summary className="flex select-none items-center justify-between gap-2 py-3 text-left">
- <h3 className="text-base font-medium text-slate-900">
+ <h3 className="text-base font-medium text-stone-900">
{item.question}
</h3>
- <ChevronDownIcon
- className="ml-auto size-6 shrink-0 rounded-full p-1 text-slate-600 transition-all duration-200 hover:bg-gray-200 hover:text-slate-900 group-open:rotate-180"
+ <PlusIcon
+ className="ml-auto size-6 shrink-0 rounded-full p-1 text-stone-400 transition-all duration-200 hover:bg-stone-200/50 group-open:rotate-45 group-hover:text-stone-900"
aria-hidden="true"
/>
</summary>
<div className="overflow-hidden">
<div className="pb-4 pr-4">
- <p className="cursor-default text-pretty text-sm leading-relaxed text-slate-600">
+ <p className="cursor-default text-pretty text-sm leading-relaxed text-stone-600">
{item.answer}
</p>
</div>
@@ -268,19 +268,22 @@ function SeoSectionBlock({ section, id }: { section: SeoSection; id: number }) {
const color = colors[id % colors.length];
return (
- <section className="border-b border-slate-100 py-6 last:border-b-0 md:py-8">
+ <section
+ className="border-b border-slate-100 py-6 last:border-b-0 md:py-8"
+ data-testid={`seo-landing-section-${section.title}`}
+ >
<h2 className="text-2xl font-semibold tracking-tight text-slate-900 md:text-3xl">
<span className={`${color} px-0.5 font-bold`}>{section.title}</span>
</h2>
{section.lead ? (
- <p className="mt-4 max-w-3xl text-lg leading-relaxed text-slate-600">
+ <p className="mt-4 max-w-3xl text-balance text-xl leading-relaxed text-slate-800">
{section.lead}
</p>
) : null}
{section.paragraphs?.map((paragraph, index) => (
<p
key={`${section.title}-p-${index}`}
- className="mt-4 max-w-3xl text-lg leading-relaxed text-slate-600"
+ className="mt-4 max-w-3xl text-pretty text-xl leading-relaxed text-slate-800"
>
{paragraph}
</p>
@@ -288,7 +291,9 @@ function SeoSectionBlock({ section, id }: { section: SeoSection; id: number }) {
{section.bullets?.length ? (
<ul className="mt-4 max-w-3xl list-disc space-y-2 pl-6 text-lg text-slate-700">
{section.bullets.map((item) => (
- <li key={item}>{item}</li>
+ <li key={item} className="text-pretty">
+ {item}
+ </li>
))}
</ul>
) : null}
diff --git a/src/app/(seo-landings)/components/sticky-seo-cta.tsx b/src/app/(seo-landings)/components/sticky-seo-cta.tsx
index bc7bd09..d0af637 100644
--- a/src/app/(seo-landings)/components/sticky-seo-cta.tsx
+++ b/src/app/(seo-landings)/components/sticky-seo-cta.tsx
@@ -1,6 +1,7 @@
"use client";
import { Button } from "@/components/ui/button";
+import { umamiTrackEvent } from "@/lib/umami-analytics-track-event";
import { cn } from "@/lib/utils";
import Link from "next/link";
@@ -35,7 +36,14 @@ export function StickySeoCta({
size="sm"
className="mt-2 w-full shrink-0 bg-slate-100 text-sm text-slate-900 hover:bg-slate-100/95 sm:mt-0 sm:w-auto"
>
- <Link href={href} scroll={false} data-testid="seo-sticky-cta">
+ <Link
+ href={href}
+ scroll={false}
+ data-testid="seo-sticky-cta"
+ onClick={() => {
+ umamiTrackEvent("seo_sticky_cta_clicked");
+ }}
+ >
Open app
</Link>
</Button>
diff --git a/src/app/[locale]/about/page.tsx b/src/app/[locale]/about/page.tsx
index 8d7f443..06e8e8b 100644
--- a/src/app/[locale]/about/page.tsx
+++ b/src/app/[locale]/about/page.tsx
@@ -15,8 +15,7 @@ import {
VIDEO_DEMO_URL,
} from "@/config";
import { routing } from "@/i18n/routing";
-import { cn } from "@/lib/utils";
-import { ChevronDown } from "lucide-react";
+import { PlusIcon } from "lucide-react";
import { useTranslations, type Locale } from "next-intl";
import { setRequestLocale } from "next-intl/server";
import Link from "next/link";
@@ -190,7 +189,7 @@ function HeroSection() {
return (
<section
id="hero"
- className="relative flex w-full items-center justify-center overflow-hidden bg-gradient-to-b from-white to-slate-50 py-10 md:py-16 xl:py-24"
+ className="flex w-full items-center justify-center overflow-hidden bg-gradient-to-b from-white to-slate-50 py-10 md:py-16 xl:py-24"
>
{/* Background decorative elements */}
<div className="absolute inset-0 overflow-hidden">
@@ -198,6 +197,9 @@ function HeroSection() {
<div className="absolute bottom-0 left-1/4 h-64 w-64 rounded-full bg-emerald-50/40 blur-3xl" />
</div>
+ {/* Blur transition overlay between header and hero */}
+ <div className="z-5 pointer-events-none absolute left-0 right-0 top-[25px] h-32 bg-gradient-to-b from-slate-100 to-slate-50 blur-2xl" />
+
<div className="container relative z-10 px-4 md:px-6">
<div className="grid gap-6 md:gap-8 lg:gap-12 xl:grid-cols-2 xl:gap-6">
{/* Left column start (text and CTA buttons) */}
@@ -323,24 +325,20 @@ function FeaturesSection() {
</div>
{/* Features cards */}
- <div className="flex flex-row flex-wrap items-center justify-center gap-6 pt-10 md:gap-10">
- {MARKETING_FEATURES_CARDS.map((feature, index) => {
+ <div className="grid grid-cols-1 gap-6 pt-10 md:gap-10 lg:grid-cols-2">
+ {MARKETING_FEATURES_CARDS.map((feature) => {
const title = t(`features.items.${feature.translationKey}.title`);
const description = t(
`features.items.${feature.translationKey}.description`,
);
- const isEven = index % 2 === 0;
return (
<div
key={feature.translationKey}
- className={cn(
- `flex h-full w-full flex-col items-start gap-6 rounded-xl border-[0.5px] border-slate-200 bg-white shadow-sm md:items-center md:rounded-2xl`,
- isEven ? "xl:flex-row" : "xl:flex-row-reverse", // swap the video and text content for even index
- )}
+ className="flex h-full w-full flex-col items-start gap-2 rounded-xl bg-white shadow-sm ring-1 ring-slate-200 md:items-center md:rounded-2xl"
>
{/* text content */}
- <div className="mb-[-5px] max-w-[700px] flex-1 px-8 pt-6 md:pt-7 xl:mb-0 xl:py-4">
+ <div className="max-w-[700px] flex-1 px-8 py-4 pt-6">
<h3 className="text-balance pb-4 text-xl font-semibold leading-tight tracking-tight text-slate-900 sm:text-2xl">
{title}
</h3>
@@ -352,7 +350,7 @@ function FeaturesSection() {
{/* video container */}
<div className="relative w-full max-w-[800px] px-2 pb-3 lg:px-0 lg:pb-4 xl:mx-0 xl:pb-0">
{/* Mac OS Frame around the video */}
- <div className="relative overflow-hidden rounded-xl border border-slate-200 bg-white shadow-lg md:rounded-2xl md:shadow-xl">
+ <div className="relative overflow-hidden rounded-xl border border-slate-200 bg-white shadow-lg md:rounded-2xl md:shadow-xl xl:border-b-0 xl:border-l-0 xl:border-r-0">
{/* Browser chrome bar */}
<div className="h-8 w-full rounded-t-xl bg-gradient-to-b from-[#F3F3F3] to-[#E9E9E9] px-4 shadow-sm md:h-12 md:rounded-t-2xl">
<div className="flex h-full items-center">
@@ -421,20 +419,20 @@ function FaqSection() {
return (
<details
key={translationKey}
- className="group cursor-pointer border-b border-slate-200 bg-white transition-all duration-200 hover:border-slate-200"
+ className="group cursor-pointer border-b border-dashed border-stone-300 bg-white transition-all duration-200 last:border-b-0"
>
<summary className="flex select-none items-center justify-between gap-2 py-3 text-left">
- <h3 className="text-base font-medium text-slate-900">
+ <h3 className="text-base font-medium text-stone-900">
{question}
</h3>
- <ChevronDown
- className="ml-auto size-6 shrink-0 rounded-full p-1 text-slate-600 transition-all duration-200 hover:bg-gray-200 hover:text-slate-900 group-open:rotate-180"
+ <PlusIcon
+ className="ml-auto size-6 shrink-0 rounded-full p-1 text-stone-400 transition-all duration-200 hover:bg-stone-200/50 group-open:rotate-45 group-hover:text-stone-900"
aria-hidden="true"
/>
</summary>
<div className="overflow-hidden">
<div className="pb-4 pr-4">
- <p className="cursor-default text-pretty text-sm leading-relaxed text-slate-600">
+ <p className="cursor-default text-pretty text-sm leading-relaxed text-stone-600">
{answer}
</p>
</div>