@orsetra/shared-ui 1.10.13 → 1.10.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/ui/logo.tsx +35 -21
- package/package.json +1 -1
package/components/ui/logo.tsx
CHANGED
|
@@ -9,28 +9,46 @@ interface LogoProps {
|
|
|
9
9
|
href?: string
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
const
|
|
12
|
+
const MonogramIcon = ({ className }: { className?: string }) => (
|
|
13
13
|
<svg
|
|
14
14
|
xmlns="http://www.w3.org/2000/svg"
|
|
15
15
|
viewBox="0 0 32 32"
|
|
16
16
|
className={cn("inline-block flex-shrink-0", className)}
|
|
17
17
|
aria-hidden="true"
|
|
18
18
|
>
|
|
19
|
-
<
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
19
|
+
<rect width="32" height="32" rx="7" fill="#0F62FE" />
|
|
20
|
+
<text
|
|
21
|
+
x="16.5"
|
|
22
|
+
y="17"
|
|
23
|
+
fontFamily="Helvetica Neue, Arial, sans-serif"
|
|
24
|
+
fontWeight="700"
|
|
25
|
+
fontSize="13"
|
|
26
|
+
letterSpacing="-0.75"
|
|
27
|
+
fill="#FFFFFF"
|
|
28
|
+
textAnchor="middle"
|
|
29
|
+
dominantBaseline="central"
|
|
30
|
+
>
|
|
31
|
+
CX
|
|
32
|
+
</text>
|
|
33
|
+
</svg>
|
|
34
|
+
)
|
|
35
|
+
|
|
36
|
+
const Wordmark = ({ className }: { className?: string }) => (
|
|
37
|
+
<svg
|
|
38
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
39
|
+
viewBox="0 0 117 32"
|
|
40
|
+
className={cn("inline-block flex-shrink-0", className)}
|
|
41
|
+
style={{ height: "1.15em", width: "auto" }}
|
|
42
|
+
role="img"
|
|
43
|
+
aria-label="Camel X"
|
|
44
|
+
>
|
|
45
|
+
<path
|
|
46
|
+
fill="#161616"
|
|
47
|
+
d="M20.29 18.77 22.75 19.4Q21.97 22.43 19.96 24.02Q17.95 25.62 15.04 25.62Q12.03 25.62 10.15 24.39Q8.26 23.17 7.28 20.84Q6.29 18.52 6.29 15.85Q6.29 12.95 7.41 10.78Q8.52 8.62 10.57 7.49Q12.62 6.37 15.08 6.37Q17.87 6.37 19.78 7.79Q21.68 9.22 22.43 11.79L20.01 12.36Q19.36 10.33 18.13 9.41Q16.9 8.48 15.03 8.48Q12.88 8.48 11.44 9.51Q10.0 10.54 9.42 12.27Q8.83 14.0 8.83 15.84Q8.83 18.22 9.53 19.99Q10.22 21.76 11.68 22.63Q13.14 23.51 14.84 23.51Q16.91 23.51 18.34 22.32Q19.78 21.12 20.29 18.77Z M23.24 25.3 30.39 6.69H33.04L40.66 25.3H37.85L35.68 19.66H27.9L25.85 25.3ZM28.61 17.66H34.92L32.98 12.5Q32.09 10.15 31.66 8.64Q31.3 10.43 30.65 12.2Z M42.05 25.3V6.69H45.75L50.16 19.87Q50.77 21.71 51.05 22.62Q51.37 21.61 52.04 19.64L56.5 6.69H59.81V25.3H57.43V9.72L52.03 25.3H49.8L44.42 9.46V25.3Z M63.33 25.3V6.69H76.79V8.88H65.8V14.59H76.09V16.77H65.8V23.1H77.22V25.3Z M80.02 25.3V6.69H82.49V23.1H91.65V25.3Z"
|
|
26
48
|
/>
|
|
27
|
-
<
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
stroke="#0f62fe"
|
|
31
|
-
strokeWidth="3"
|
|
32
|
-
strokeLinecap="square"
|
|
33
|
-
strokeLinejoin="miter"
|
|
49
|
+
<path
|
|
50
|
+
fill="#0F62FE"
|
|
51
|
+
d="M94.6 25.3 100.96 15.59 95.2 6.69H99.59L103.32 12.67L106.98 6.69H111.33L105.54 15.73L111.9 25.3H107.37L103.25 18.86L99.11 25.3Z"
|
|
34
52
|
/>
|
|
35
53
|
</svg>
|
|
36
54
|
)
|
|
@@ -39,13 +57,9 @@ export function Logo({ className, iconOnly = false, href = "/" }: LogoProps) {
|
|
|
39
57
|
return (
|
|
40
58
|
<Link
|
|
41
59
|
href={href}
|
|
42
|
-
className={cn("
|
|
60
|
+
className={cn("text-text-primary truncate flex items-center no-underline", className)}
|
|
43
61
|
>
|
|
44
|
-
{iconOnly ?
|
|
45
|
-
<FaviconIcon className="w-6 h-6" />
|
|
46
|
-
) : (
|
|
47
|
-
<>Camel<FaviconIcon className="w-6 h-6" /></>
|
|
48
|
-
)}
|
|
62
|
+
{iconOnly ? <MonogramIcon className="w-6 h-6" /> : <Wordmark />}
|
|
49
63
|
</Link>
|
|
50
64
|
)
|
|
51
65
|
}
|