(seedHex: string)
| 87 | } |
| 88 | |
| 89 | export function generateGradient(seedHex: string): string { |
| 90 | const color1 = getColorFromSeed(seedHex, 0, 6) |
| 91 | const color2 = getColorFromSeed(seedHex, 6, 6) |
| 92 | const degree = seedHex.charCodeAt(0) % 360 |
| 93 | const gradient = `linear-gradient(${degree}deg, #${color1}, #${color2})` |
| 94 | |
| 95 | return gradient |
| 96 | } |
| 97 | |
| 98 | export function getMatchingPosts(query: string) { |
| 99 | const words = query.split(' ').map((w) => w.trim()) |
no test coverage detected
searching dependent graphs…