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 updates and minor fixes (#215)

Vlad Sazonau8b1bfd293aae
diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml
index ffdbc9c..f30ce05 100644
--- a/.github/workflows/e2e.yml
+++ b/.github/workflows/e2e.yml
@@ -53,7 +53,7 @@ jobs:
NEXT_PUBLIC_SENTRY_ENABLED: false
continue-on-error: true
# https://playwright.dev/docs/test-reporters#line-reporter
- run: pnpm exec playwright test --reporter=html,line
+ run: pnpm exec playwright test --reporter=html,dot
- uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
name: 🎲 Upload Playwright report
diff --git a/package.json b/package.json
index aa6bcfa..d54b5a7 100644
--- a/package.json
+++ b/package.json
@@ -20,7 +20,7 @@
"update-deps": "pnpm upgrade --interactive --latest -rLi --config.minimum-release-age=4320",
"vitest": "vitest --reporter=verbose",
"vitest:ui": "vitest --ui",
- "e2e": "pnpm exec playwright test --reporter=list",
+ "e2e": "pnpm exec playwright test --reporter=line",
"e2e:ui": "pnpm exec playwright test --ui",
"e2e:not-flaky": "pnpm e2e --workers=2",
"e2e:update-snapshots": "pnpm e2e --update-snapshots",
@@ -72,6 +72,7 @@
"jszip": "3.10.1",
"lucide-react": "0.477.0",
"lz-string": "1.5.0",
+ "motion": "12.38.0",
"n2words": "1.21.0",
"next": "14.2.15",
"next-intl": "4.0.2",
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 58ff7c2..4c7eda0 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -116,6 +116,9 @@ importers:
lz-string:
specifier: 1.5.0
version: 1.5.0
+ motion:
+ specifier: 12.38.0
n2words:
specifier: 1.21.0
version: 1.21.0
@@ -4047,6 +4050,20 @@ packages:
resolution: {integrity: sha512-ZsDfxO51wGAXREY55a7la9LScWpwv9RxIrYABrlvOFBlH/ShPnrtsXeuUIfXKKOVicNxQ+o8JTbJvjS4M89yew==}
+ resolution: {integrity: sha512-rFYkY/pigbcswl1XQSb7q424kSTQ8q6eAC+YUsSKooHQYuLdzdHjrt6uxUC+PRAO++q5IS7+TamgIw1AphxR+g==}
+ peerDependencies:
+ '@emotion/is-prop-valid': '*'
+ react: ^18.0.0 || ^19.0.0
+ react-dom: ^18.0.0 || ^19.0.0
+ peerDependenciesMeta:
+ '@emotion/is-prop-valid':
+ optional: true
+ react:
+ optional: true
+ react-dom:
+ optional: true
+
resolution: {integrity: sha512-Rx/WycZ60HOaqLKAi6cHRKKI7zxWbJ31MhntmtwMoaTeF7XFH9hhBp8vITaMidfljRQ6eYWCKkaTK+ykVJHP2A==}
engines: {node: '>= 0.8'}
@@ -5048,6 +5065,26 @@ packages:
resolution: {integrity: sha512-ySViT69/76t8VhE1xXHK6Ch4NcDd26gx0MzKXLO+F7NOtnqH68d9zF94nT8ZWSxXh8ELOERsnJO/sWt1xZYw5A==}
+ resolution: {integrity: sha512-pdkHLD8QYRp8VfiNLb8xIBJis1byQ9gPT3Jnh2jqfFtAsWUA3dEepDlsWe/xMpO8McV+VdpKVcp+E+TGJEtOoA==}
+
+ resolution: {integrity: sha512-eHWisygbiwVvf6PZ1vhaHCLamvkSbPIeAYxWUuL3a2PD/TROgE7FvfHWTIH4vMl798QLfMw15nRqIaRDXTlYRg==}
+
+ resolution: {integrity: sha512-uYfXzeHlgThchzwz5Te47dlv5JOUC7OB4rjJ/7XTUgtBZD8CchMN8qEJ4ZVsUmTyYA44zjV0fBwsiktRuFnn+w==}
+ peerDependencies:
+ '@emotion/is-prop-valid': '*'
+ react: ^18.0.0 || ^19.0.0
+ react-dom: ^18.0.0 || ^19.0.0
+ peerDependenciesMeta:
+ '@emotion/is-prop-valid':
+ optional: true
+ react:
+ optional: true
+ react-dom:
+ optional: true
+
resolution: {integrity: sha512-tzzskb3bG8LvYGFF/mDTpq3jpI6Q9wc3LEmBaghu+DdCssd1FakN7Bc0hVNmEyGq1bq3RgfkCb3cmQLpNPOroA==}
engines: {node: '>=4'}
@@ -10964,6 +11001,15 @@ snapshots:
+ dependencies:
+ motion-dom: 12.38.0
+ motion-utils: 12.36.0
+ tslib: 2.8.1
+ optionalDependencies:
+ react: 18.3.1
+ react-dom: 18.3.1([email protected])
+
@@ -12270,6 +12316,20 @@ snapshots:
+ dependencies:
+ motion-utils: 12.36.0
+
+
+ dependencies:
+ tslib: 2.8.1
+ optionalDependencies:
+ react: 18.3.1
+ react-dom: 18.3.1([email protected])
+
diff --git a/src/app/(app)/components/index.tsx b/src/app/(app)/components/index.tsx
index 3811eb6..fae3b65 100644
--- a/src/app/(app)/components/index.tsx
+++ b/src/app/(app)/components/index.tsx
@@ -353,7 +353,7 @@ export function InvoiceClientPage({
<div className="relative col-span-8 h-[620px] w-full max-w-full 2xl:h-[700px]">
{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">
+ <div className="absolute -top-5 right-0 z-10 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>
diff --git a/src/app/(app)/components/invoice-form/sections/general-information.tsx b/src/app/(app)/components/invoice-form/sections/general-information.tsx
index c75ce73..1735d02 100644
--- a/src/app/(app)/components/invoice-form/sections/general-information.tsx
+++ b/src/app/(app)/components/invoice-form/sections/general-information.tsx
@@ -750,7 +750,7 @@ function OutOfDateDatesHelper({
label: "Date of service",
oldValue: formatDate(dateOfService),
newValue: targetEndOfMonth,
- hint: "end of month",
+ hint: "end of current month",
},
isInvoiceNumberStale && {
label: "Invoice number",
diff --git a/src/app/(app)/components/invoice-page-header.tsx b/src/app/(app)/components/invoice-page-header.tsx
index 00008dd..48ce88b 100644
--- a/src/app/(app)/components/invoice-page-header.tsx
+++ b/src/app/(app)/components/invoice-page-header.tsx
@@ -235,7 +235,7 @@ function ProjectInfoLinks() {
href={GITHUB_URL}
target="_blank"
rel="noopener noreferrer"
- className="group relative flex items-center gap-1.5 overflow-visible rounded-full border border-slate-300/80 bg-white px-3 py-1 text-xs shadow-sm transition-[colors,transform,border-color] duration-200 hover:border-slate-400/50 hover:bg-slate-50 hover:text-black active:scale-[0.96]"
+ className="group relative flex items-center gap-1.5 overflow-visible rounded-full border border-slate-200 bg-white px-3 py-1 text-xs shadow-sm transition-[colors,transform,border-color] duration-200 hover:border-slate-400/50 hover:bg-slate-50 hover:text-black active:scale-[0.96]"
>
<div className="border-glow-mask z-10" aria-hidden="true">
<div className="border-glow-shine animate-rotate-shine" />
diff --git a/src/app/(app)/page.client.tsx b/src/app/(app)/page.client.tsx
index 75173e3..7c0343a 100644
--- a/src/app/(app)/page.client.tsx
+++ b/src/app/(app)/page.client.tsx
@@ -44,6 +44,7 @@ import { handleInvoiceNumberBreakingChange } from "./utils/invoice-number-breaki
import { InvoicePageHeader } from "@/app/(app)/components/invoice-page-header";
import { Button } from "@/components/ui/button";
import { haptic } from "@/lib/haptic";
+
// TODO: enable later when PRO version is released, this is PRO FEATURE =)
// import { InvoicePDFDownloadMultipleLanguages } from "./components/invoice-pdf-download-multiple-languages";
@@ -698,7 +699,7 @@ export function AppPageClient({
return (
<TooltipProvider delayDuration={0}>
<div className="flex flex-col items-center justify-start bg-gray-100 pb-4 sm:p-4 md:justify-center lg:min-h-screen">
- <div className="w-full max-w-[62rem] bg-white p-3 shadow-lg sm:mb-0 sm:rounded-lg sm:p-6 sm:pb-1 xl:max-w-7xl 2xl:max-w-[1680px]">
+ <div className="w-full max-w-[62rem] bg-white p-3 shadow-lg sm:mb-0 sm:rounded-lg sm:p-6 sm:pb-1 min-[1400px]:max-w-7xl 2xl:max-w-[1680px]">
<InvoicePageHeader
canShareInvoice={canShareInvoice}
handleShareInvoice={handleShareInvoice}
diff --git a/src/app/founder/components/animated-signature.tsx b/src/app/founder/components/animated-signature.tsx
new file mode 100644
index 0000000..b567a35
--- /dev/null
+++ b/src/app/founder/components/animated-signature.tsx
@@ -0,0 +1,47 @@
+"use client";
+
+import { motion, type Variants } from "motion/react";
+
+const draw: Variants = {
+ hidden: { pathLength: 0, opacity: 0 },
+ visible: {
+ pathLength: 1,
+ opacity: 1,
+ transition: {
+ pathLength: {
+ type: "spring",
+ duration: 3,
+ bounce: 0,
+ delay: 0.5,
+ },
+ opacity: {
+ duration: 0.1,
+ delay: 0.5,
+ },
+ },
+ },
+};
+
+export const AnimatedSignature = () => {
+ return (
+ <motion.svg
+ width="299"
+ height="214"
+ viewBox="0 0 299 214"
+ fill="none"
+ xmlns="http://www.w3.org/2000/svg"
+ initial="hidden"
+ whileInView="visible"
+ viewport={{ once: true, amount: 0.6 }}
+ className="size-44"
+ aria-label="EasyInvoicePDF.com Founder's Signature - Vlad Sazonau"
+ >
+ <title>Vlad Sazonau - EasyInvoicePDF.com Founder</title>
+ <motion.path
+ className="stroke-slate-950 stroke-[10px]"
+ d="M30.8711 134.674C30.557 126.631 29.3843 104.439 27.3703 98.6748C26.8048 97.0563 25.3706 96.1987 23.7171 95.7276C21.745 95.1657 19.4102 95.9721 16.849 97.4791C9.11744 102.029 6.10375 115.908 3.92237 126.166C2.93783 130.796 4.46078 138.401 6.69591 149.394C9.40063 162.697 14.4364 172.582 18.8575 180.53C25.5991 192.649 32.2055 200.729 35.0535 203.079C40.1566 207.29 48.5304 210.79 53.0523 210.37C60.323 209.694 61.6192 198.662 64.2349 185.375C66.0503 176.154 67.2524 161.62 68.0766 153.208C68.9009 144.797 68.9009 142.877 71.912 149.979C74.9231 157.081 80.9454 173.263 84.714 176.819C90.4449 182.227 91.1882 156.307 93.6673 154.863C97.1732 152.821 101.104 169.297 104.867 177.107C108.629 184.918 111.046 188.978 113.222 187.78C115.398 186.583 117.261 180.005 118.644 173.859C120.028 167.714 120.875 162.2 121.576 147.445C122.276 132.689 122.803 108.86 121.75 89.2996C120.697 69.7392 118.048 55.1698 115.049 43.1627C109.736 21.891 105.174 11.9169 105.252 11.4996C105.776 8.67104 109.755 19.4465 120.885 41.7198C130.263 60.488 144.615 95.6578 153.965 120.166C163.316 144.674 166.565 157.773 167.827 164.161C169.09 170.549 168.267 169.829 166.873 167.907C165.48 165.985 163.541 162.883 160.204 155.99C156.868 149.098 152.192 138.509 147.678 124.784C143.165 111.059 138.955 94.5187 138.273 81.161C137.592 67.8033 140.567 58.1298 143.405 52.4003C146.242 46.6708 148.852 45.1783 151.435 44.2322C156.34 42.4356 161.017 42.8945 164.825 44.0479C168.734 45.232 171.412 49.6643 174.183 55.3846C178.101 63.4753 178.502 74.6593 178.944 85.0095C179.321 93.8418 176.445 101.846 174.34 108.079C173.579 110.332 174.899 111.108 176.631 111.814C188.174 116.521 203.621 123.371 208.404 127.513C214.581 132.861 209.193 146.808 207.034 152.306C206.573 153.48 205.586 153.976 204.759 154.393C203.932 154.81 203.066 155.015 201.913 154.805C200.759 154.595 199.346 153.963 197.951 152.753C194.899 150.106 193.102 140.466 195.325 122.041C196.683 110.789 205.002 96.9394 211.138 86.5148C217.274 76.0903 222.636 69.8341 234.652 58.6592C246.667 47.4844 265.174 31.5804 276.504 21.4438C287.834 11.3073 291.426 7.42016 295.749 3.09814"
+ variants={draw}
+ />
+ </motion.svg>
+ );
+};
diff --git a/src/app/founder/page.tsx b/src/app/founder/page.tsx
index d5c3410..99906f1 100644
--- a/src/app/founder/page.tsx
+++ b/src/app/founder/page.tsx
@@ -1,5 +1,11 @@
import { Header } from "@/app/(components)/header";
-import { GITHUB_URL, LINKEDIN_URL, STATIC_ASSETS_URL, TWITTER_URL } from "@/config";
+import { AnimatedSignature } from "@/app/founder/components/animated-signature";
+import {
+ GITHUB_URL,
+ LINKEDIN_URL,
+ STATIC_ASSETS_URL,
+ TWITTER_URL,
+} from "@/config";
import type { Metadata } from "next";
import Link from "next/link";
@@ -159,6 +165,9 @@ export default function ContactPage() {
GitHub
</Link>
</div>
+ <div className="mt-8 md:mt-12">
+ <AnimatedSignature />
+ </div>
</div>
</div>
</div>
diff --git a/src/app/globals.css b/src/app/globals.css
index f53011e..17f74a1 100644
--- a/src/app/globals.css
+++ b/src/app/globals.css
@@ -41,12 +41,16 @@ body {
transform-origin: 0 0;
background: conic-gradient(
transparent 0%,
- #7d5bfff2 10%,
- #7d5bff59,
- transparent 20%
+ rgba(125, 91, 255, 0.15) 4%,
+ rgba(180, 140, 255, 0.9) 7%,
+ rgba(125, 91, 255, 0.95) 9%,
+ rgba(125, 91, 255, 0.4) 13%,
+ transparent 18%
);
- filter: drop-shadow(0 0 6px rgba(125, 91, 255, 0.7))
- drop-shadow(0 0 14px rgba(125, 91, 255, 0.45));
+ filter: drop-shadow(0 0 4px rgba(125, 91, 255, 0.9))
+ drop-shadow(0 0 12px rgba(125, 91, 255, 0.5))
+ drop-shadow(0 0 24px rgba(125, 91, 255, 0.2));
+ will-change: transform;
}
}
diff --git a/src/app/layout.tsx b/src/app/layout.tsx
index be74c73..15d2708 100644
--- a/src/app/layout.tsx
+++ b/src/app/layout.tsx
@@ -2,6 +2,7 @@ import { DeviceContextProvider } from "@/contexts/device-context";
import { checkDeviceUserAgent } from "@/lib/check-device.server";
import { NextIntlClientProvider } from "next-intl";
// import { ReactScan } from "@/components/dev/react-scan";
+import { ResponsiveIndicator } from "@/components/dev/responsive-indicator";
import { SpeedInsights } from "@vercel/speed-insights/next";
import type { Metadata, Viewport } from "next";
@@ -98,6 +99,10 @@ export default async function RootLayout({
{/* https://sonner.emilkowal.ski/ */}
<Toaster visibleToasts={1} richColors closeButton />
+ {/* show responsive indicator(tailwind breakpoint) for debugging responsive designs */}
+ {process.env.NODE_ENV === "development" ? (
+ <ResponsiveIndicator />
+ ) : null}
{/* should only be enabled in production */}
{process.env.VERCEL_ENV === "production" && (
<>
diff --git a/src/app/robots.ts b/src/app/robots.ts
index 6addb06..e6d48d8 100644
--- a/src/app/robots.ts
+++ b/src/app/robots.ts
@@ -17,6 +17,10 @@ export default function robots(): MetadataRoute.Robots {
// Allow changelog pages
"/changelog",
"/changelog/*",
+ // Allow terms of service page
+ "/tos",
+ // Allow founder page
+ "/founder",
],
disallow: [
// Disallow shared invoice URLs, like /?data=*
diff --git a/src/app/sitemap.ts b/src/app/sitemap.ts
index 65d3df7..ea24b44 100644
--- a/src/app/sitemap.ts
+++ b/src/app/sitemap.ts
@@ -14,29 +14,43 @@ export default async function sitemap(): Promise<MetadataRoute.Sitemap> {
url: `${APP_URL}?template=default`,
lastModified,
changeFrequency: "daily",
- priority: 0.7,
+ priority: 1,
},
// About pages in all languages
...SUPPORTED_LANGUAGES.map((locale) => ({
url: `${APP_URL}/${locale}/about`,
lastModified,
changeFrequency: "daily" as const,
- priority: 0.7,
+ priority: 1,
})),
// Changelog page
{
url: `${APP_URL}/changelog`,
lastModified,
changeFrequency: "daily",
- priority: 0.7,
+ priority: 1,
},
// Changelog entries
...changelogEntries.map((entry) => ({
url: `${APP_URL}/changelog/${entry.slug}`,
lastModified,
changeFrequency: "daily" as const,
- priority: 0.7,
+ priority: 1,
})),
+ // Terms of Service page
+ {
+ url: `${APP_URL}/tos`,
+ lastModified,
+ changeFrequency: "monthly",
+ priority: 1,
+ },
+ // Founder page
+ {
+ url: `${APP_URL}/founder`,
+ lastModified,
+ changeFrequency: "monthly",
+ priority: 1,
+ },
];
return sitemapEntries;
diff --git a/src/app/tos/page.tsx b/src/app/tos/page.tsx
index de1775b..fe57a84 100644
--- a/src/app/tos/page.tsx
+++ b/src/app/tos/page.tsx
@@ -1,7 +1,6 @@
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";
@@ -40,6 +39,7 @@ export const metadata: Metadata = {
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`,
@@ -243,9 +243,9 @@ export default function TermsOfServicePage() {
<h2>12. Contact</h2>
<p>
For questions, contact:{" "}
- <Link href="mailto:[email protected]">
+ <a href="mailto:[email protected]">
- </Link>
+ </a>
</p>
</article>
</div>
diff --git a/src/components/dev/responsive-indicator.tsx b/src/components/dev/responsive-indicator.tsx
new file mode 100644
index 0000000..ccf8cdf
--- /dev/null
+++ b/src/components/dev/responsive-indicator.tsx
@@ -0,0 +1,46 @@
+"use client";
+
+import { useEffect, useState } from "react";
+
+/**
+ * **Development-only** utility component that displays the current viewport width and Tailwind breakpoint.
+ * Renders a fixed indicator in the corner showing the active responsive breakpoint
+ * (XS, SM, MD, LG, XL, 2XL) and exact pixel width. Useful for testing responsive designs.
+ *
+ * Only renders on client side after hydration to avoid width mismatch errors.
+ *
+ * @returns {React.ReactNode | null} The responsive indicator component, or null during hydration
+ */
+export function ResponsiveIndicator() {
+ const [width, setWidth] = useState(0);
+
+ useEffect(() => {
+ const update = () => setWidth(window.innerWidth);
+ update();
+ window.addEventListener("resize", update);
+ return () => window.removeEventListener("resize", update);
+ }, []);
+
+ if (width === 0) return null;
+
+ const breakpoint =
+ width >= 1536
+ ? "2XL"
+ : width >= 1280
+ ? "XL"
+ : width >= 1024
+ ? "LG"
+ : width >= 768
+ ? "MD"
+ : width >= 640
+ ? "SM"
+ : "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">
+ <span className="font-bold">{breakpoint}</span>
+ <span className="text-white/50">|</span>
+ <span>{width}px</span>
+ </div>
+ );
+}
diff --git a/tailwind.config.ts b/tailwind.config.ts
index 6c1946b..513b9f7 100644
--- a/tailwind.config.ts
+++ b/tailwind.config.ts
@@ -83,11 +83,14 @@ const config: Config = {
opacity: "0",
transform: "rotate(0deg) translate(-50%, -50%)",
},
- "68%": {
+ "60%": {
opacity: "0",
transform: "rotate(0deg) translate(-50%, -50%)",
},
+ "66%": { opacity: "0.15" },
"72%": { opacity: "1" },
+ "80%": { opacity: "1" },
+ "92%": { opacity: "0" },
"100%": {
opacity: "0",
transform: "rotate(360deg) translate(-50%, -50%)",
@@ -100,7 +103,7 @@ const config: Config = {
heartbeat: "heartbeat 3s ease-in-out infinite 5s", // 3s = duration of animation, infinite = repeat forever, 5s = delay before starting animation,
"pulse-arrow": "pulse-arrow 5s infinite",
"star-hover": "star-hover 2s ease-in-out infinite 6s",
- "rotate-shine": "rotate-shine 4s linear infinite",
+ "rotate-shine": "rotate-shine 5s ease-in-out infinite",
},
},
},