this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

at fix-the-posts-oml 77 lines 1.3 kB view raw
1export const blog = { 2 // overrideHour: 0, 3 post: { 4 width: 30, 5 xPadding: 2, 6 yLeeway: 5, 7 yGap: 20, 8 topYGap: 35, 9 drift: [0.1, 1], 10 timing: [10, 20], 11 }, 12 background: { 13 parallax: { 14 clouds: 50, 15 sun: 10, 16 moon: 20, 17 star: [0, 5], 18 }, 19 20 clouds: { 21 count: 8, 22 width: [40, 80], 23 height: [15, 30], 24 yGap: [15, 25], 25 26 bumpRadius: [20, 60], 27 gradientStops: [35, 80], 28 }, 29 30 stars: { 31 count: 40, 32 size: [2, 5], 33 prongs: [4, 8], 34 rotateSpeed: [20, 40], 35 }, 36 37 sun: { 38 prongs: [10, 20], 39 }, 40 }, 41 balloons: { 42 numBalloons: [1, 3], 43 length: [5, 15], 44 offset: [-2.5, 2.5], 45 rotation: [-10, 10], 46 timing: [30, 45], 47 size: [ 48 [5, 10], 49 [10, 20], 50 ], 51 opacity: [0.6, 0.9], 52 time: [2, 5], 53 }, 54 palette: { 55 sky: { 56 // blue 57 day: "#1E90FF", 58 // black 59 night: "#39375B" 60 }, 61 // yellow 62 sun: "#FFEC51", 63 // whites 64 moon: "#E5D4ED", 65 clouds: "#E5D4ED", 66 stars: "#ffffff", 67 } 68} as const; 69 70export const utils = { 71 getRandom( 72 variance: [number, number] | readonly [number, number], 73 seed?: number, 74 ) { 75 return variance[0] + (seed ?? Math.random()) * (variance[1] - variance[0]); 76 }, 77};