File size: 872 Bytes
816fa8a
 
149aa87
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
971c29d
149aa87
 
 
 
 
 
 
 
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
29
30
31
// The image shares the canonical W1 rope and isolates gradient IDs between instances.
// BASE_URL keeps the mark inside the app's deployment sub-path.

const MARK_SRC = `${import.meta.env.BASE_URL}favicon.svg`;

export function Mark({ size }: { size: number }) {
  return (
    <img
      className="lp-mark"
      src={MARK_SRC}
      width={size}
      height={size}
      // Decorative: the wordmark beside it already says "Loopable", and a
      // screen reader announcing the product name twice is noise.
      alt=""
      aria-hidden="true"
      draggable={false}
    />
  );
}

/** Shared mark and wordmark for sign-in and navigation. */
export function Brand({ size, className }: { size: number; className?: string }) {
  return (
    <div className={className}>
      <Mark size={size} />
      <span className="lp-wordmark">Loopable</span>
    </div>
  );
}