mirror of
https://github.com/ichsankurnia/hats-app.git
synced 2026-12-05 10:46:29 +00:00
d0db9ee429
This change adds staging and production deployment configuration for the VPS setup, including `.env.deploy.example`, `.env.staging`, and updated production environment values. It also introduces a PowerShell deployment script that builds the app, packages the Next.js artifact, uploads it to the server, and reloads PM2. Package scripts were added for staging and production deploys, and the TypeScript config now excludes legacy `.old` files.
39 lines
1.9 KiB
TypeScript
39 lines
1.9 KiB
TypeScript
export default function Loading() {
|
|
return (
|
|
<div
|
|
className="mx-auto w-full max-w-7xl flex-1 space-y-6 p-6 pt-6 sm:p-8"
|
|
role="status"
|
|
aria-label="Loading assignment"
|
|
>
|
|
<div className="h-5 w-40 animate-pulse rounded-lg bg-muted" />
|
|
|
|
<div className="rounded-2xl border border-border bg-card p-5 sm:p-7">
|
|
<div className="flex items-start gap-5">
|
|
<div className="h-24 w-24 shrink-0 animate-pulse rounded-2xl bg-muted" />
|
|
<div className="w-full space-y-3">
|
|
<div className="h-5 w-48 animate-pulse rounded-lg bg-muted" />
|
|
<div className="h-8 w-3/4 animate-pulse rounded-lg bg-muted" />
|
|
<div className="h-4 w-full max-w-md animate-pulse rounded-lg bg-muted" />
|
|
</div>
|
|
</div>
|
|
<div className="mt-7 grid grid-cols-2 gap-6 border-t border-border/70 pt-6 sm:grid-cols-4">
|
|
{Array.from({ length: 4 }).map((_, i) => (
|
|
<div key={i} className="space-y-2">
|
|
<div className="h-3 w-12 animate-pulse rounded bg-muted" />
|
|
<div className="h-4 w-24 animate-pulse rounded bg-muted" />
|
|
</div>
|
|
))}
|
|
</div>
|
|
</div>
|
|
|
|
<div className="grid items-start gap-6 lg:grid-cols-[minmax(0,1fr)_360px]">
|
|
<div className="space-y-6">
|
|
<div className="h-44 animate-pulse rounded-2xl border border-border bg-card" />
|
|
<div className="h-64 animate-pulse rounded-2xl border border-border bg-card" />
|
|
</div>
|
|
<div className="h-80 animate-pulse rounded-2xl border border-border bg-card" />
|
|
</div>
|
|
</div>
|
|
);
|
|
}
|