Skip to content

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

feat: integrate FooterSkeleton and FooterLaunchBadges components for improved loading states

VladSezadf15c2345c1
diff --git a/src/app/(app)/loading.tsx b/src/app/(app)/loading.tsx
index 3f0bf14..1e934fb 100644
--- a/src/app/(app)/loading.tsx
+++ b/src/app/(app)/loading.tsx
@@ -1,7 +1,10 @@
+import { FooterSkeleton } from "@/app/(components)/footer-skeleton";
+
export default function Loading() {
return (
- <div className="flex flex-col items-center justify-start bg-gray-100 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 min-[1400px]:max-w-7xl 2xl:max-w-[1480px]">
+ <div className="flex flex-col items-center justify-start bg-gray-100 md:justify-center lg:min-h-screen">
+ {/* Main content */}
+ <div className="mb-4 w-full max-w-[62rem] bg-white p-3 shadow-lg sm:my-4 sm:rounded-lg sm:p-4 min-[1400px]:max-w-7xl 2xl:max-w-[1480px]">
<div className="grid grid-cols-1 gap-8 lg:grid-cols-12">
{/* Left side - Form */}
<div className="col-span-8 w-full space-y-6 lg:col-span-4">
@@ -32,6 +35,7 @@ export default function Loading() {
</div>
</div>
</div>
+ <FooterSkeleton />
</div>
);
}
diff --git a/src/app/(components)/footer-launch-badges.tsx b/src/app/(components)/footer-launch-badges.tsx
new file mode 100644
index 0000000..fe6bdd4
--- /dev/null
+++ b/src/app/(components)/footer-launch-badges.tsx
@@ -0,0 +1,108 @@
+/**
+ * FooterLaunchBadges
+ * Renders launch/featured badges in footer: Startup Fame, LaunchPanda, Tiny Startups, etc.
+ */
+export function FooterLaunchBadges() {
+ return (
+ <>
+ {/* Badge for featured on Startup Fame */}
+ <a
+ href="https://startupfa.me/s/easyinvoicepdf?utm_source=easyinvoicepdf.com"
+ target="_blank"
+ >
+ <img
+ src="https://startupfa.me/badges/featured/light-rounded.webp"
+ alt="EasyInvoicePDF - Featured on Startup Fame"
+ width="171"
+ height="54"
+ />
+ </a>
+
+ {/* Badge for Launched on LaunchPanda */}
+ <a
+ href="https://launchpanda.dev/launches/productivity/easyinvoicepdf"
+ target="_blank"
+ rel="noopener"
+ >
+ <img
+ src="https://launchpanda.dev/images/badges/launchpanda-badge.svg"
+ alt="Launched on LaunchPanda"
+ width="260"
+ height="64"
+ />
+ </a>
+
+ {/* Badge for Launched on Tiny Startups */}
+ <a
+ href="https://www.tinystartups.com/startup/easyinvoicepdf"
+ target="_blank"
+ rel="noopener"
+ style={{
+ display: "inline-flex",
+ alignItems: "center",
+ gap: 14,
+ padding: "14px 22px 14px 18px",
+ borderRadius: 14,
+ textDecoration: "none",
+ fontFamily: "'Inter',system-ui,sans-serif",
+ background:
+ "linear-gradient(#fff,#fff) padding-box,linear-gradient(90deg,#3525E6,#D81FE0,#22B8F0) border-box",
+ border: "2px solid transparent",
+ color: "#0E0B1F",
+ }}
+ >
+ <svg width="56" height="56" viewBox="0 0 100 100">
+ <defs>
+ <linearGradient id="tsg" x1=".1" y1="0" x2=".9" y2="1">
+ <stop offset="0%" stopColor="#3525E6" />
+ <stop offset="55%" stopColor="#D81FE0" />
+ <stop offset="100%" stopColor="#22B8F0" />
+ </linearGradient>
+ </defs>
+ <path
+ d="M50 6C52 32 68 48 94 50C68 52 52 68 50 94C48 68 32 52 6 50C32 48 48 32 50 6Z"
+ fill="url(#tsg)"
+ />
+ </svg>
+ <span
+ style={{
+ display: "flex",
+ flexDirection: "column",
+ lineHeight: 1.15,
+ }}
+ >
+ <span
+ style={{
+ fontFamily: "monospace",
+ fontSize: 9,
+ fontWeight: 600,
+ letterSpacing: 0.18,
+ textTransform: "uppercase",
+ color: "#6A6585",
+ }}
+ >
+ Launched on
+ </span>
+ <span
+ style={{
+ fontSize: 22,
+ fontWeight: 800,
+ letterSpacing: -0.025,
+ }}
+ >
+ Tiny Startups
+ </span>
+ <span
+ style={{
+ fontSize: 11,
+ color: "#6A6585",
+ marginTop: 4,
+ }}
+ >
+ tinystartups.com
+ </span>
+ </span>
+ </a>
+ </>
+ );
+}
diff --git a/src/app/(components)/footer-skeleton.tsx b/src/app/(components)/footer-skeleton.tsx
new file mode 100644
index 0000000..cb70e7b
--- /dev/null
+++ b/src/app/(components)/footer-skeleton.tsx
@@ -0,0 +1,62 @@
+import { FooterLaunchBadges } from "@/app/(components)/footer-launch-badges";
+import { Skeleton } from "@/components/ui/skeleton";
+
+export function FooterSkeleton() {
+ 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">
+ {/* Top content */}
+ <div className="flex flex-col gap-10 md:flex-row">
+ <div className="space-y-4 md:w-1/3">
+ <div className="flex items-center gap-2">
+ <Skeleton className="size-8" />
+ <Skeleton className="h-7 w-40" />
+ </div>
+ <Skeleton className="h-16 w-full" />
+ <div className="flex gap-4">
+ <Skeleton className="size-5" />
+ <Skeleton className="size-5" />
+ </div>
+ </div>
+ <div className="grid grid-cols-1 gap-10 md:ml-20 md:flex-1 md:grid-cols-2">
+ <div className="space-y-5">
+ <Skeleton className="h-5 w-24" />
+ <div className="space-y-2">
+ {Array.from({ length: 5 }).map((_, i) => (
+ <Skeleton key={i} className="h-4 w-40" />
+ ))}
+ </div>
+ </div>
+ <div className="space-y-5">
+ <Skeleton className="h-5 w-24" />
+ <div className="grid grid-cols-1 gap-6 sm:grid-cols-2">
+ {Array.from({ length: 2 }).map((_, columnIndex) => (
+ <div key={columnIndex} className="space-y-2">
+ <Skeleton className="h-4 w-20" />
+ {Array.from({ length: 4 }).map((_, i) => (
+ <Skeleton key={i} className="h-4 w-32" />
+ ))}
+ </div>
+ ))}
+ </div>
+ </div>
+ </div>
+ </div>
+
+ {/* LAUNCH Badges */}
+ <div className="mb-7 mt-10 flex flex-wrap items-center gap-3">
+ <FooterLaunchBadges />
+ </div>
+
+ {/* Bottom links */}
+ <div className="mt-10 flex flex-col items-center justify-between gap-4 border-t border-slate-200 pt-8 md:flex-row">
+ <Skeleton className="h-4 w-48" />
+ <div className="flex items-center gap-1.5">
+ <Skeleton className="size-6 rounded-full" />
+ <Skeleton className="h-4 w-40" />
+ </div>
+ </div>
+ </div>
+ </footer>
+ );
+}
diff --git a/src/app/(components)/footer.tsx b/src/app/(components)/footer.tsx
index b541721..759949f 100644
--- a/src/app/(components)/footer.tsx
+++ b/src/app/(components)/footer.tsx
@@ -1,4 +1,5 @@
/* eslint-disable @next/next/no-html-link-for-pages */
+import { FooterLaunchBadges } from "@/app/(components)/footer-launch-badges";
import { SEO_FOOTER_SOLUTION_LINKS } from "@/app/(seo-landings)/seo-landing-footer-links";
import { ProjectLogo } from "@/components/etc/project-logo";
import {
@@ -112,104 +113,7 @@ export function Footer({ links, translations }: FooterProps) {
</div>
{/* LAUNCH Badges */}
<div className="mb-7 mt-10 flex flex-wrap items-center gap-3">
- {/* Badge for featured on Startup Fame */}
- <a
- href="https://startupfa.me/s/easyinvoicepdf?utm_source=easyinvoicepdf.com"
- target="_blank"
- >
- <img
- src="https://startupfa.me/badges/featured/light-rounded.webp"
- alt="EasyInvoicePDF - Featured on Startup Fame"
- width="171"
- height="54"
- />
- </a>
-
- {/* Badge for Launched on LaunchPanda */}
- <a
- href="https://launchpanda.dev/launches/productivity/easyinvoicepdf"
- target="_blank"
- rel="noopener"
- >
- <img
- src="https://launchpanda.dev/images/badges/launchpanda-badge.svg"
- alt="Launched on LaunchPanda"
- width="260"
- height="64"
- />
- </a>
-
- {/* Badge for Launched on Tiny Startups */}
- <a
- href="https://www.tinystartups.com/startup/easyinvoicepdf"
- target="_blank"
- rel="noopener"
- style={{
- display: "inline-flex",
- alignItems: "center",
- gap: 14,
- padding: "14px 22px 14px 18px",
- borderRadius: 14,
- textDecoration: "none",
- fontFamily: "'Inter',system-ui,sans-serif",
- background:
- "linear-gradient(#fff,#fff) padding-box,linear-gradient(90deg,#3525E6,#D81FE0,#22B8F0) border-box",
- border: "2px solid transparent",
- color: "#0E0B1F",
- }}
- >
- <svg width="56" height="56" viewBox="0 0 100 100">
- <defs>
- <linearGradient id="tsg" x1=".1" y1="0" x2=".9" y2="1">
- <stop offset="0%" stopColor="#3525E6" />
- <stop offset="55%" stopColor="#D81FE0" />
- <stop offset="100%" stopColor="#22B8F0" />
- </linearGradient>
- </defs>
- <path
- d="M50 6C52 32 68 48 94 50C68 52 52 68 50 94C48 68 32 52 6 50C32 48 48 32 50 6Z"
- fill="url(#tsg)"
- />
- </svg>
- <span
- style={{
- display: "flex",
- flexDirection: "column",
- lineHeight: 1.15,
- }}
- >
- <span
- style={{
- fontFamily: "monospace",
- fontSize: 9,
- fontWeight: 600,
- letterSpacing: 0.18,
- textTransform: "uppercase",
- color: "#6A6585",
- }}
- >
- Launched on
- </span>
- <span
- style={{
- fontSize: 22,
- fontWeight: 800,
- letterSpacing: -0.025,
- }}
- >
- Tiny Startups
- </span>
- <span
- style={{
- fontSize: 11,
- color: "#6A6585",
- marginTop: 4,
- }}
- >
- tinystartups.com
- </span>
- </span>
- </a>
+ <FooterLaunchBadges />
</div>
<div className="mt-10 flex flex-col items-center justify-between gap-4 border-t border-slate-200 pt-8 md:flex-row">
diff --git a/src/app/[locale]/about/loading.tsx b/src/app/[locale]/about/loading.tsx
index 9d993f8..65364cd 100644
--- a/src/app/[locale]/about/loading.tsx
+++ b/src/app/[locale]/about/loading.tsx
@@ -1,3 +1,4 @@
+import { FooterSkeleton } from "@/app/(components)/footer-skeleton";
import { HeaderSkeleton } from "@/app/(components)/header/header-skeleton";
import { Skeleton } from "@/components/ui/skeleton";
@@ -91,45 +92,7 @@ export default function AboutLoading() {
</section>
</main>
- {/* Footer */}
- <footer className="flex w-full items-center justify-center border-t border-slate-200 bg-white py-12 md:py-16 lg:py-20">
- <div className="container px-4 md:px-6">
- <div className="flex flex-col gap-10 md:flex-row">
- <div className="space-y-4 md:w-1/3">
- <div className="flex items-center gap-1 sm:gap-2">
- <Skeleton className="size-6 md:size-7" />
- <div className="flex flex-col">
- <Skeleton className="h-6 w-40" />
- </div>
- </div>
- <Skeleton className="h-16 w-full" />
- <div className="flex gap-4">
- <Skeleton className="h-5 w-5" />
- <Skeleton className="h-5 w-5" />
- </div>
- </div>
- <div className="grid grid-cols-1 sm:gap-10 md:flex-1 md:grid-cols-2">
- <div className="space-y-3" />
- <div className="space-y-3">
- <Skeleton className="h-5 w-24" />
- <div className="space-y-2">
- {Array.from({ length: 4 }).map((_, i) => (
- <Skeleton key={i} className="h-4 w-32" />
- ))}
- </div>
- </div>
- </div>
- </div>
- <div className="my-5 max-w-lg space-y-2">
- <Skeleton className="h-5 w-32" />
- <Skeleton className="h-10 w-full" />
- </div>
- <div className="mt-10 flex flex-col items-center justify-between gap-4 border-t border-slate-200 pt-8 md:flex-row">
- <Skeleton className="h-4 w-48" />
- <Skeleton className="h-4 w-48" />
- </div>
- </div>
- </footer>
+ <FooterSkeleton />
</div>
);
}