@@ -19,12 +19,19 @@ async function generateSocialCard() {
1919 const canvas = createCanvas ( WIDTH , HEIGHT ) ;
2020 const ctx = canvas . getContext ( '2d' ) ;
2121
22- // Create gradient background (purple to pink, matching the original)
23- const gradient = ctx . createLinearGradient ( 0 , 0 , 0 , HEIGHT ) ;
24- gradient . addColorStop ( 0 , '#7c3aed' ) ; // Purple
25- gradient . addColorStop ( 1 , '#ec4899' ) ; // Fuchsia/Pink
22+ // Solid color background (professional minimalist approach)
23+ ctx . fillStyle = '#7c3aed' ; // Brand primary purple
24+ ctx . fillRect ( 0 , 0 , WIDTH , HEIGHT ) ;
25+
26+ // Add subtle radial overlay for depth without over-saturation
27+ const radialGradient = ctx . createRadialGradient (
28+ WIDTH / 2 , HEIGHT / 2 , 0 ,
29+ WIDTH / 2 , HEIGHT / 2 , WIDTH * 0.8
30+ ) ;
31+ radialGradient . addColorStop ( 0 , 'rgba(139, 92, 246, 0.3)' ) ; // Lighter purple center
32+ radialGradient . addColorStop ( 1 , 'rgba(124, 58, 237, 0)' ) ; // Transparent edges
2633
27- ctx . fillStyle = gradient ;
34+ ctx . fillStyle = radialGradient ;
2835 ctx . fillRect ( 0 , 0 , WIDTH , HEIGHT ) ;
2936
3037 // Add a white/cream box in the center for the logo
@@ -57,10 +64,11 @@ async function generateSocialCard() {
5764 ctx . arc ( centerX , centerY , radius , startAngle , endAngle ) ;
5865 ctx . stroke ( ) ;
5966
60- // Draw the node (small square at top-right)
67+ // Draw the node (small square at top-right) - matches logo.svg positioning
6168 const nodeSize = 22 ;
62- const nodeX = centerX + Math . cos ( ( Math . PI / 180 ) * 45 ) * radius - nodeSize / 2 ;
63- const nodeY = centerY - Math . sin ( ( Math . PI / 180 ) * 45 ) * radius - nodeSize / 2 ;
69+ const nodeAngle = 36.9 ; // Match logo.svg (was 45°, causing 8.1° misalignment)
70+ const nodeX = centerX + Math . cos ( ( Math . PI / 180 ) * nodeAngle ) * radius - nodeSize / 2 ;
71+ const nodeY = centerY - Math . sin ( ( Math . PI / 180 ) * nodeAngle ) * radius - nodeSize / 2 ;
6472
6573 ctx . fillStyle = '#ec4899' ;
6674 ctx . beginPath ( ) ;
0 commit comments