|
1 | | -import type { SVGProps } from 'react'; |
| 1 | +import { useId, type SVGProps } from 'react'; |
2 | 2 |
|
3 | 3 | export function LogoIcon(props: SVGProps<SVGSVGElement>) { |
| 4 | + const id = useId().replace(/:/g, ''); |
| 5 | + const gradientId = `objectql-gradient-${id}`; |
| 6 | + |
4 | 7 | return ( |
5 | 8 | <svg |
6 | 9 | xmlns="http://www.w3.org/2000/svg" |
7 | 10 | viewBox="0 0 256 256" |
8 | 11 | fill="none" |
9 | 12 | {...props} |
10 | 13 | > |
11 | | - <rect width="256" height="256" fill="none" /> |
| 14 | + <defs> |
| 15 | + <linearGradient |
| 16 | + id={gradientId} |
| 17 | + x1="0" |
| 18 | + y1="0" |
| 19 | + x2="256" |
| 20 | + y2="256" |
| 21 | + gradientUnits="userSpaceOnUse" |
| 22 | + > |
| 23 | + <stop offset="0%" stopColor="#2563EB" /> |
| 24 | + <stop offset="100%" stopColor="#06B6D4" /> |
| 25 | + </linearGradient> |
| 26 | + </defs> |
| 27 | + |
| 28 | + {/* Background Shape: Soft Hexagon */} |
| 29 | + <path |
| 30 | + d="M128 24L224 80V176L128 232L32 176V80L128 24Z" |
| 31 | + fill={`url(#${gradientId})`} |
| 32 | + fillOpacity="0.1" |
| 33 | + /> |
| 34 | + |
| 35 | + {/* Main Structure: Abstract QL Node */} |
12 | 36 | <path |
13 | | - d="M16 104l112 64l112-64l-112-64L16 104z" |
14 | | - fill="currentColor" |
15 | | - fillOpacity="0.2" |
16 | | - stroke="currentColor" |
17 | | - strokeWidth="16" |
| 37 | + d="M128 56L200 96V166L128 206L56 166V96L128 56Z" |
| 38 | + stroke={`url(#${gradientId})`} |
| 39 | + strokeWidth="24" |
18 | 40 | strokeLinecap="round" |
19 | 41 | strokeLinejoin="round" |
20 | 42 | /> |
| 43 | + |
| 44 | + {/* Center Detail: Core */} |
21 | 45 | <path |
22 | | - d="M16 136l112 64l112-64" |
23 | | - fill="none" |
24 | | - stroke="currentColor" |
25 | | - strokeWidth="16" |
| 46 | + d="M128 96V166" |
| 47 | + stroke={`url(#${gradientId})`} |
| 48 | + strokeWidth="24" |
26 | 49 | strokeLinecap="round" |
27 | 50 | strokeLinejoin="round" |
28 | 51 | /> |
29 | 52 | <path |
30 | | - d="M16 168l112 64l112-64" |
31 | | - fill="none" |
32 | | - stroke="currentColor" |
33 | | - strokeWidth="16" |
| 53 | + d="M96 116L160 146" |
| 54 | + stroke={`url(#${gradientId})`} |
| 55 | + strokeWidth="24" |
34 | 56 | strokeLinecap="round" |
35 | 57 | strokeLinejoin="round" |
| 58 | + opacity="0.6" |
36 | 59 | /> |
37 | 60 | </svg> |
38 | 61 | ); |
39 | 62 | } |
40 | 63 |
|
41 | 64 | export function Logo(props: { className?: string }) { |
42 | 65 | return ( |
43 | | - <div className="flex items-center gap-2"> |
44 | | - <LogoIcon className="size-6" /> |
45 | | - <span className="font-bold text-lg">ObjectQL</span> |
| 66 | + <div className="flex items-center gap-2.5"> |
| 67 | + <LogoIcon className="size-7" /> |
| 68 | + <span className="font-bold text-lg tracking-tight bg-gradient-to-br from-blue-600 to-cyan-500 bg-clip-text text-transparent"> |
| 69 | + ObjectQL |
| 70 | + </span> |
46 | 71 | </div> |
47 | 72 | ); |
48 | 73 | } |
0 commit comments