File size: 903 Bytes
f2bfbb5
 
 
81faab5
f2bfbb5
 
 
 
 
 
 
 
 
 
 
 
81faab5
f2bfbb5
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
'use client';
import styles from './LoadingOverlay.module.css';

export default function LoadingOverlay({ message = 'Analyzing silhouette...' }) {
  return (
    <div className={styles.overlay}>
      <div className={styles.spinner}>
        <svg viewBox="0 0 100 100" className={styles.pokeball}>
          <circle cx="50" cy="50" r="45" fill="none" stroke="var(--text-primary)" strokeWidth="5" />
          <path d="M 5 50 A 45 45 0 0 1 95 50 Z" fill="var(--accent-primary)" />
          <path d="M 5 50 A 45 45 0 0 0 95 50 Z" fill="#ffffff" />
          <line x1="5" y1="50" x2="95" y2="50" stroke="var(--bg-primary)" strokeWidth="6" />
          <circle cx="50" cy="50" r="15" fill="#ffffff" stroke="var(--bg-primary)" strokeWidth="6" />
          <circle cx="50" cy="50" r="6" fill="var(--bg-primary)" />
        </svg>
      </div>
      <p className={styles.text}>{message}</p>
    </div>
  );
}