Skip to content

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

chore: styles fixes, pin pnpm in pkg.json, minor improvements (#140)

Vlad Sazonau6ecf46a7d1a3
diff --git a/.npmrc b/.npmrc
index 449691b..df6837c 100644
--- a/.npmrc
+++ b/.npmrc
@@ -1 +1,5 @@
-save-exact=true
\ No newline at end of file
+save-exact=true
+
+# this specifies the number of minutes that must pass after a version is published before pnpm will install it (to prevent supply chain attacks)
+# https://pnpm.io/settings#minimumreleaseage
+minimumReleaseAge=4320 # 3 days,
\ No newline at end of file
diff --git a/.vscode/settings.json b/.vscode/settings.json
index 25fa621..a00580b 100644
--- a/.vscode/settings.json
+++ b/.vscode/settings.json
@@ -1,3 +1,4 @@
{
- "typescript.tsdk": "node_modules/typescript/lib"
+ "typescript.tsdk": "node_modules/typescript/lib",
+ "css.validate": false
}
diff --git a/package.json b/package.json
index 83d048a..389079d 100644
--- a/package.json
+++ b/package.json
@@ -2,7 +2,7 @@
"name": "pdf-invoice-generator",
"version": "0.1.0",
"private": true,
- "packageManager": "[email protected]",
+ "packageManager": "[email protected]+sha512.fce8a3dd29a4ed2ec566fb53efbb04d8c44a0f05bc6f24a73046910fb9c3ce7afa35a0980500668fa3573345bd644644fa98338fa168235c80f4aa17aa17fbef",
"engines": {
"node": ">=20.0.0"
},
@@ -16,7 +16,7 @@
"lint:fix": "pnpm eslint . --fix",
"prettify": "prettier --write --cache '**/*.{ts?(x),json,js,mjs,yml,yaml,md}'",
"knip": "knip",
- "update-deps": "pnpm upgrade --interactive --latest",
+ "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",
@@ -26,7 +26,9 @@
"check-meta": "pnpx check-site-meta",
"dev:email": "email dev --dir src/emails",
"prepare": "husky",
- "expose-to-internet": "pnpm dlx localtunnel --port 3000"
+ "expose-to-internet": "pnpm dlx localtunnel --port 3000",
+ "corepack:enable": "corepack enable",
+ "corepack:prepare": "corepack prepare pnpm@latest"
},
"dependencies": {
"@hookform/resolvers": "3.9.0",
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 045c5e3..9ffb5a7 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -66,7 +66,7 @@ importers:
version: 4.3.0([email protected])
"@sentry/nextjs":
specifier: 9.3.0
- version: 9.3.0(@opentelemetry/[email protected](@opentelemetry/[email protected]))(@opentelemetry/[email protected](@opentelemetry/[email protected]))(@opentelemetry/[email protected](@opentelemetry/[email protected]))(@opentelemetry/[email protected](@opentelemetry/[email protected]))([email protected](@babel/[email protected])(@opentelemetry/[email protected])(@playwright/[email protected])([email protected]([email protected]))([email protected]))([email protected])([email protected])
+ version: 9.3.0(@opentelemetry/[email protected](@opentelemetry/[email protected]))(@opentelemetry/[email protected](@opentelemetry/[email protected]))(@opentelemetry/[email protected](@opentelemetry/[email protected]))(@opentelemetry/[email protected](@opentelemetry/[email protected]))([email protected](@babel/[email protected])(@opentelemetry/[email protected])(@playwright/[email protected])([email protected]([email protected]))([email protected]))([email protected])([email protected])
"@t3-oss/env-nextjs":
specifier: 0.13.4
@@ -87,7 +87,7 @@ importers:
version: 1.34.6
"@vercel/speed-insights":
specifier: 1.2.0
class-variance-authority:
specifier: 0.7.1
version: 0.7.1
@@ -126,10 +126,10 @@ importers:
version: 1.21.0
next:
specifier: 14.2.15
next-intl:
specifier: 4.0.2
pdf-parse:
specifier: 1.1.1
version: 1.1.1
@@ -238,10 +238,10 @@ importers:
version: 0.6.11([email protected])
react-email:
specifier: 4.0.4
react-scan:
specifier: 0.3.4
schema-dts:
specifier: 1.1.5
version: 1.1.5
@@ -15078,7 +15078,7 @@ snapshots:
"@sentry/[email protected]": {}
dependencies:
"@opentelemetry/api": 1.9.0
"@opentelemetry/semantic-conventions": 1.30.0
@@ -15091,7 +15091,7 @@ snapshots:
"@sentry/vercel-edge": 9.3.0
"@sentry/webpack-plugin": 3.1.2([email protected])
chalk: 3.0.0
resolve: 1.22.8
rollup: 3.29.5
stacktrace-parser: 0.1.11
@@ -15544,9 +15544,9 @@ snapshots:
dependencies:
crypto-js: 4.2.0
optionalDependencies:
react: 18.3.1
"@vitest/[email protected]":
@@ -18321,17 +18321,17 @@ snapshots:
dependencies:
"@formatjs/intl-localematcher": 0.5.10
negotiator: 1.0.0
react: 18.3.1
use-intl: 4.0.2([email protected])
optionalDependencies:
typescript: 5.9.2
dependencies:
"@next/env": 14.2.15
"@swc/helpers": 0.5.5
@@ -18341,7 +18341,7 @@ snapshots:
postcss: 8.4.31
react: 18.3.1
react-dom: 18.3.1([email protected])
- styled-jsx: 5.1.1(@babel/[email protected])([email protected])
+ styled-jsx: 5.1.1(@babel/[email protected])([email protected])
optionalDependencies:
"@next/swc-darwin-arm64": 14.2.15
"@next/swc-darwin-x64": 14.2.15
@@ -18358,7 +18358,7 @@ snapshots:
- "@babel/core"
- babel-plugin-macros
dependencies:
"@next/env": 15.2.3
"@swc/counter": 0.1.3
@@ -18368,7 +18368,7 @@ snapshots:
postcss: 8.4.31
react: 18.3.1
react-dom: 18.3.1([email protected])
- styled-jsx: 5.1.6(@babel/[email protected])([email protected])
+ styled-jsx: 5.1.6(@babel/[email protected])([email protected])
optionalDependencies:
"@next/swc-darwin-arm64": 15.2.3
"@next/swc-darwin-x64": 15.2.3
@@ -18876,7 +18876,7 @@ snapshots:
react: 18.3.1
scheduler: 0.23.2
dependencies:
"@babel/parser": 7.24.5
"@babel/traverse": 7.25.6
@@ -18888,7 +18888,7 @@ snapshots:
glob: 10.3.4
log-symbols: 4.1.0
mime-types: 2.1.35
normalize-path: 3.0.0
ora: 5.4.1
socket.io: 4.8.1
@@ -18968,7 +18968,7 @@ snapshots:
optionalDependencies:
"@types/react": 18.3.12
dependencies:
"@babel/core": 7.26.9
"@babel/generator": 7.26.9
@@ -18990,7 +18990,7 @@ snapshots:
react-dom: 18.3.1([email protected])
tsx: 4.19.4
optionalDependencies:
unplugin: 2.1.0
transitivePeerDependencies:
- "@types/react"
@@ -19704,19 +19704,19 @@ snapshots:
dependencies:
inline-style-parser: 0.2.4
dependencies:
client-only: 0.0.1
react: 18.3.1
optionalDependencies:
- "@babel/core": 7.26.9
+ "@babel/core": 7.28.3
dependencies:
client-only: 0.0.1
react: 18.3.1
optionalDependencies:
- "@babel/core": 7.26.9
+ "@babel/core": 7.28.3
dependencies:
diff --git a/src/app/(app)/components/dev/dev-local-storage-view.tsx b/src/app/(app)/components/dev/dev-local-storage-view.tsx
index 15137b6..5ba4b78 100644
--- a/src/app/(app)/components/dev/dev-local-storage-view.tsx
+++ b/src/app/(app)/components/dev/dev-local-storage-view.tsx
@@ -150,6 +150,7 @@ export function DevLocalStorageView() {
_variant="outline"
className="fixed bottom-2 left-2 isolate z-[50] border border-gray-300 bg-gray-100 shadow-sm backdrop-blur-sm transition-all duration-200 animate-in fade-in slide-in-from-bottom-2 hover:border-gray-400 hover:bg-gray-200 hover:shadow-md"
>
+ <span className="sr-only">View localStorage data</span>
<Database className="h-4 w-4 text-gray-600" />
</Button>
}
diff --git a/src/app/(app)/page.client.tsx b/src/app/(app)/page.client.tsx
index 85fad92..2131d40 100644
--- a/src/app/(app)/page.client.tsx
+++ b/src/app/(app)/page.client.tsx
@@ -425,7 +425,7 @@ export function AppPageClient() {
<div className="mb-1 flex w-full flex-wrap justify-center gap-3 lg:flex-nowrap lg:justify-end">
<Button
asChild
- className="mx-2 w-full bg-blue-500 text-white transition-all hover:no-underline hover:opacity-90 lg:mx-0 lg:w-auto"
+ className="mx-2 w-full bg-blue-600 text-white transition-all hover:bg-blue-700 hover:no-underline lg:mx-0 lg:w-auto"
_variant="link"
onClick={() => {
// analytics track event
diff --git a/src/app/[locale]/about/page.tsx b/src/app/[locale]/about/page.tsx
index 5b0229b..941d6c3 100644
--- a/src/app/[locale]/about/page.tsx
+++ b/src/app/[locale]/about/page.tsx
@@ -200,20 +200,22 @@ function HeroSection() {
</div>
<div className="container relative z-10 px-4 md:px-6">
- <div className="grid gap-6 md:gap-8 lg:grid-cols-2 lg:gap-12 xl:gap-6">
+ <div className="grid gap-6 md:gap-8 lg:gap-12 xl:grid-cols-2 xl:gap-6">
{/* Left column (text) */}
<div className="flex flex-col justify-center space-y-5 md:space-y-6">
<div className="space-y-3 md:space-y-4">
- <h1 className="text-balance text-3xl font-bold tracking-tight text-slate-900 sm:text-4xl md:text-5xl lg:text-6xl">
+ <h1 className="text-balance text-center text-4xl font-bold tracking-tight text-slate-900 sm:text-5xl md:text-6xl xl:text-left">
{t("hero.title")}
</h1>
- <p className="text-balance text-base text-slate-600 sm:text-lg md:max-w-[500px] md:text-xl">
- {t("hero.description")}
- </p>
+ <div className="flex justify-center xl:justify-start">
+ <p className="text-pretty px-4 text-center text-base text-slate-600 md:max-w-[500px] md:text-lg lg:px-0 xl:text-left xl:text-lg">
+ {t("hero.description")}
+ </p>
+ </div>
</div>
- <div className="flex w-full flex-col gap-3 sm:flex-row sm:flex-wrap">
+ <div className="flex w-full flex-col justify-center gap-3 sm:flex-row sm:flex-wrap xl:justify-start">
<BlackGoToAppButton className="px-10 py-6 text-lg">
{t("buttons.goToApp")}
</BlackGoToAppButton>
@@ -238,7 +240,7 @@ function HeroSection() {
</div>
{/* Right column (video) */}
- <div className="relative mx-auto w-full max-w-[650px] lg:mx-0">
+ <div className="relative mx-auto w-full max-w-[950px] xl:mx-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">
{/* Browser chrome bar */}
@@ -277,7 +279,7 @@ function CtaTextMobile({
}) {
return (
<div
- className="mx-auto flex max-w-fit cursor-pointer items-center justify-center gap-x-2 text-pretty rounded-full border border-amber-300 bg-amber-50 px-4 py-1.5 text-sm font-medium text-amber-800 shadow-sm transition-all hover:scale-105 lg:hidden"
+ className="mx-auto flex max-w-fit cursor-pointer items-center justify-center gap-x-2 text-pretty rounded-full border border-amber-300 bg-amber-50 px-4 py-1.5 text-sm font-medium text-amber-800 shadow-sm transition-all hover:scale-105 xl:hidden"
data-testid="cta-text-mobile"
>
<span className="" role="img" aria-label="checkmark">
@@ -296,7 +298,7 @@ function CtaTextDesktop({
}) {
return (
<div
- className="mx-auto hidden max-w-fit cursor-pointer items-center justify-center gap-x-2 text-pretty rounded-full border border-amber-300 bg-amber-50 px-4 py-1.5 text-sm font-medium text-amber-800 shadow-sm transition-all hover:scale-105 sm:mx-0 lg:flex"
+ className="mx-auto hidden max-w-fit cursor-pointer items-center justify-center gap-x-2 text-pretty rounded-full border border-amber-300 bg-amber-50 px-4 py-1.5 text-sm font-medium text-amber-800 shadow-sm transition-all hover:scale-105 sm:mx-0 xl:flex"
data-testid="cta-text-desktop"
>
<span className="" role="img" aria-label="checkmark">
diff --git a/src/components/project-logo-description.tsx b/src/components/project-logo-description.tsx
index 22000a4..15eab93 100644
--- a/src/components/project-logo-description.tsx
+++ b/src/components/project-logo-description.tsx
@@ -5,7 +5,7 @@ export function ProjectLogoDescription({
}) {
return (
<div className="flex flex-col -space-y-0.5">
- <span className="text-balance text-xl font-bold text-slate-800 lg:text-2xl">
+ <h1 className="text-balance text-xl font-bold text-slate-800 lg:text-2xl">
<a
href="https://easyinvoicepdf.com"
target="_blank"
@@ -13,10 +13,10 @@ export function ProjectLogoDescription({
>
EasyInvoicePDF
</a>
- </span>
- <span className="text-balance text-[12px] text-slate-700 sm:text-[13px]">
+ </h1>
+ <h2 className="text-balance text-[12px] text-slate-700 sm:text-[13px]">
{children || "Free Invoice Generator with Live PDF Preview"}
- </span>
+ </h2>
</div>
);
}
diff --git a/tailwind.config.ts b/tailwind.config.ts
index f7c14d2..8f93a80 100644
--- a/tailwind.config.ts
+++ b/tailwind.config.ts
@@ -47,7 +47,7 @@ const config: Config = {
animation: {
"accordion-down": "accordion-down 0.2s ease-out",
"accordion-up": "accordion-up 0.2s ease-out",
- heartbeat: "heartbeat 3s ease-in-out infinite 25s", // 3s = duration of animation, infinite = repeat forever, 25s = delay before starting animation
+ heartbeat: "heartbeat 3s ease-in-out infinite 5s", // 3s = duration of animation, infinite = repeat forever, 25s = delay before starting animation
},
},
},