● Zion Boggan
repos/Docket/app/register/loading.tsx
zionboggan.com ↗
39 lines · tsx
History for this file →
1
 
2
export default function Loading() {
3
  return (
4
    <>
5
      {}
6
      <section className="border-y border-line">
7
        <div className="mx-auto w-full max-w-register px-4 py-8 sm:px-6 sm:py-14">
8
          <div className="mb-3 h-3 w-20 animate-pulse rounded-sm bg-graphite" />
9
          <div className="h-8 w-64 animate-pulse rounded-sm bg-graphite sm:h-10 sm:w-96" />
10
          <div className="mt-4 h-4 w-48 animate-pulse rounded-sm bg-graphite" />
11
          <div className="mt-8 space-y-px overflow-hidden rounded-sm border border-line">
12
            {Array.from({ length: 12 }).map((_, i) => (
13
              <div
14
                key={i}
15
                className="flex h-10 items-center gap-3 border-t border-line px-4 first:border-t-0"
16
              >
17
                <div className="h-2.5 w-16 animate-pulse rounded-sm bg-graphite" />
18
                <div className="h-2.5 w-20 animate-pulse rounded-sm bg-graphite" />
19
                <div className="h-2.5 flex-1 animate-pulse rounded-sm bg-graphite" />
20
                <div className="h-2.5 w-14 animate-pulse rounded-sm bg-graphite" />
21
              </div>
22
            ))}
23
          </div>
24
        </div>
25
      </section>
26
 
27
      {}
28
      <div className="mx-auto w-full max-w-register px-4 py-12 sm:px-6">
29
        <div className="mb-2 h-3 w-24 animate-pulse rounded-sm bg-graphite" />
30
        <div className="mt-1 h-6 w-56 animate-pulse rounded-sm bg-graphite" />
31
        <div className="mt-8 space-y-2">
32
          {Array.from({ length: 8 }).map((_, i) => (
33
            <div key={i} className="h-12 w-full animate-pulse rounded-sm bg-graphite" />
34
          ))}
35
        </div>
36
      </div>
37
    </>
38
  );
39
}