feat: Wabenhain Honig-Shop Anwendung
Vollstaendige Next.js/Prisma-E-Commerce-Anwendung fuer eine Imkerei: Shop, Warenkorb, Stripe-Checkout, Kundenkonto mit 2FA, Admin-Bereich (Produkte, Ernten, Chargen, Bestellungen, Gutscheine, admin-editierbare Website-Inhalte), i18n (DE/EN), Rate-Limiting/CSP/Audit-Log-Haertung, PostgreSQL- und MySQL-Unterstuetzung ueber austauschbare Prisma- Treiber-Adapter, Unit-/Komponenten-/E2E-Tests.
This commit is contained in:
1 parent
5c76fcc266
commit
c7927f2883
240 files changed
+26096
-137
No files matched your search
@@ -0,0 +1,40 @@
|
||||
import { Container } from "@/components/ui";
|
||||
|
||||
/**
|
||||
* Next.js-Suspense-Skeleton fuer /shop: die Seite ist "force-dynamic" (jede
|
||||
* Filter-/Sortier-/Suchaenderung loest einen neuen DB-Roundtrip aus) und
|
||||
* zeigte bisher waehrend dieser Navigation keinerlei Feedback. Bewusst am
|
||||
* tatsaechlichen Layout orientiert statt eines generischen Spinners.
|
||||
*/
|
||||
export default function ShopLoading() {
|
||||
return (
|
||||
<div className="py-20 animate-pulse">
|
||||
<Container>
|
||||
<div className="max-w-2xl">
|
||||
<div className="h-3 w-16 bg-ink/10 rounded-sm" />
|
||||
<div className="mt-3 h-10 w-72 bg-ink/10 rounded-sm" />
|
||||
<div className="mt-4 h-4 w-full bg-ink/10 rounded-sm" />
|
||||
</div>
|
||||
|
||||
<div className="mt-8 flex flex-wrap gap-3">
|
||||
{Array.from({ length: 4 }, (_, i) => (
|
||||
<div key={i} className="h-9 w-24 border border-ink/10 bg-ink/5" />
|
||||
))}
|
||||
</div>
|
||||
|
||||
<div className="mt-6 h-10 w-64 bg-ink/5" />
|
||||
|
||||
<div className="mt-14 grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-x-8 gap-y-14">
|
||||
{Array.from({ length: 6 }, (_, i) => (
|
||||
<div key={i}>
|
||||
<div className="aspect-[4/5] w-full bg-ink/10" />
|
||||
<div className="mt-4 h-5 w-2/3 bg-ink/10 rounded-sm" />
|
||||
<div className="mt-2 h-4 w-1/2 bg-ink/10 rounded-sm" />
|
||||
<div className="mt-3 h-4 w-1/3 bg-ink/10 rounded-sm" />
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
</Container>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user