Roy-DOU's picture
Add files using upload-large-folder tool
dd5428d verified
Raw History Blame Contribute Delete
1.46 kB
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>
)
}