File size: 1,456 Bytes
dd5428d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
32
33
34
35
36
37
38
export function scrollToId(id) {
  return (e) => {
    e.preventDefault()
    const el = document.getElementById(id)
    if (el) el.scrollIntoView({ behavior: 'smooth', block: 'start' })
  }
}

export function OwlLogo({ color = '#ffffff', size = 42 }) {
  return (
    <svg width={size} height={size} viewBox="0 0 44 44" fill="none" aria-hidden="true">
      <path
        d="M4 18 C4 8 10 4 22 4 C34 4 40 8 40 18 L40 30 C40 36 36 40 30 40 L14 40 C8 40 4 36 4 30 Z"
        stroke={color} strokeWidth="2.6"
      />
      <path d="M13 21 a6.5 6.5 0 1 0 0.01 0" stroke={color} strokeWidth="2.4" fill="none" transform="translate(0,-3)" />
      <path d="M31 21 a6.5 6.5 0 1 0 0.01 0" stroke={color} strokeWidth="2.4" fill="none" transform="translate(0,-3)" />
      <circle cx="13" cy="20" r="1.9" fill={color} />
      <circle cx="31" cy="20" r="1.9" fill={color} />
      <path d="M19.5 10 L22 13 L24.5 10" stroke={color} strokeWidth="2" fill="none" />
    </svg>
  )
}

export function Wordmark({ dark = false, iconSize = 42 }) {
  const ink = dark ? '#1d1d1d' : '#ffffff'
  const sub = dark ? '#6f6f6f' : 'rgba(255,255,255,0.75)'
  return (
    <span className="wordmark">
      <OwlLogo color={ink} size={iconSize} />
      <span className="wordmark-text">
        <span className="wordmark-name" style={{ color: ink }}>DesignBetter</span>
        <span className="wordmark-sub" style={{ color: sub }}>by InVision</span>
      </span>
    </span>
  )
}