aboutsummaryrefslogtreecommitdiff
path: root/web/src/components/ui/PageLoader.tsx
blob: dcb34abb853286256d7344815746fbb5594c59f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/**
 * PageLoader.tsx
 * Tela de carregamento exibida enquanto uma rota lazy é importada.
 */

import styles from './PageLoader.module.css';

export default function PageLoader() {
  return (
    <div className={styles.wrapper}>
      <div className={styles.content}>
        <div className={styles.logo}>
          <svg width="32" height="32" viewBox="0 0 32 32" fill="none" aria-hidden="true">
            <rect width="32" height="32" rx="8" fill="var(--color-accent)" fillOpacity="0.15" />
            <path
              d="M8 12h16M8 16h10M8 20h12"
              stroke="var(--color-accent)"
              strokeWidth="2"
              strokeLinecap="round"
            />
          </svg>
          <span>Helpdesk TI</span>
        </div>
        <div className="spinner" role="status" aria-label="Carregando..." />
      </div>
    </div>
  );
}