|
| 1 | +"use client"; |
| 2 | + |
| 3 | +interface LogoProps { |
| 4 | + /** Size in pixels (default 24) */ |
| 5 | + size?: number; |
| 6 | + /** Additional CSS classes */ |
| 7 | + className?: string; |
| 8 | +} |
| 9 | + |
| 10 | +/** |
| 11 | + * The Crowned S — premium personal logo mark. |
| 12 | + * Bold serif S with a minimal three-line crown chevron above. |
| 13 | + */ |
| 14 | +export function Logo({ size = 24, className = "" }: LogoProps) { |
| 15 | + const id = `logo-grad-${size}`; |
| 16 | + const crownY = size * 0.18; |
| 17 | + const crownSpread = size * 0.18; |
| 18 | + const crownCenter = size / 2; |
| 19 | + const strokeWidth = size < 28 ? 1.2 : 1.5; |
| 20 | + |
| 21 | + return ( |
| 22 | + <svg |
| 23 | + width={size} |
| 24 | + height={size} |
| 25 | + viewBox={`0 0 ${size} ${size}`} |
| 26 | + fill="none" |
| 27 | + xmlns="http://www.w3.org/2000/svg" |
| 28 | + className={className} |
| 29 | + aria-label="Pyae Sone Kyaw logo" |
| 30 | + > |
| 31 | + <defs> |
| 32 | + <linearGradient id={id} x1="0" y1="0" x2="0" y2="1"> |
| 33 | + <stop offset="0%" stopColor="#E8C88A" /> |
| 34 | + <stop offset="100%" stopColor="#C9A96E" /> |
| 35 | + </linearGradient> |
| 36 | + </defs> |
| 37 | + |
| 38 | + {/* Crown chevron — three angled lines */} |
| 39 | + <line |
| 40 | + x1={crownCenter} |
| 41 | + y1={crownY - size * 0.06} |
| 42 | + x2={crownCenter} |
| 43 | + y2={crownY + size * 0.06} |
| 44 | + stroke="#E8C88A" |
| 45 | + strokeWidth={strokeWidth} |
| 46 | + strokeLinecap="round" |
| 47 | + /> |
| 48 | + <line |
| 49 | + x1={crownCenter - crownSpread} |
| 50 | + y1={crownY + size * 0.06} |
| 51 | + x2={crownCenter - crownSpread * 0.45} |
| 52 | + y2={crownY - size * 0.06} |
| 53 | + stroke="#E8C88A" |
| 54 | + strokeWidth={strokeWidth} |
| 55 | + strokeLinecap="round" |
| 56 | + /> |
| 57 | + <line |
| 58 | + x1={crownCenter + crownSpread} |
| 59 | + y1={crownY + size * 0.06} |
| 60 | + x2={crownCenter + crownSpread * 0.45} |
| 61 | + y2={crownY - size * 0.06} |
| 62 | + stroke="#E8C88A" |
| 63 | + strokeWidth={strokeWidth} |
| 64 | + strokeLinecap="round" |
| 65 | + /> |
| 66 | + |
| 67 | + {/* Bold serif S */} |
| 68 | + <text |
| 69 | + x="50%" |
| 70 | + y="66%" |
| 71 | + dominantBaseline="central" |
| 72 | + textAnchor="middle" |
| 73 | + fill={`url(#${id})`} |
| 74 | + fontFamily="var(--font-playfair-display), 'Playfair Display', serif" |
| 75 | + fontWeight="700" |
| 76 | + fontSize={size * 0.55} |
| 77 | + letterSpacing=".02em" |
| 78 | + > |
| 79 | + S |
| 80 | + </text> |
| 81 | + </svg> |
| 82 | + ); |
| 83 | +} |
0 commit comments