From 7690514708ac80f6146f7347d4aa6f9e4170eede Mon Sep 17 00:00:00 2001 From: Matt Kirby <MattJKirby@outlook.com> Date: Sun, 12 Mar 2023 19:46:00 +0000 Subject: [PATCH] No more random angles --- daily-thought-frontend/src/components/post/Utils.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/daily-thought-frontend/src/components/post/Utils.ts b/daily-thought-frontend/src/components/post/Utils.ts index 1ff7df19..0fe16d09 100644 --- a/daily-thought-frontend/src/components/post/Utils.ts +++ b/daily-thought-frontend/src/components/post/Utils.ts @@ -1,5 +1,5 @@ export function generateRandomLinearGradient(colors: string[], fixedAngle: boolean): string{ - const randomAngle = Math.random() * 360; - const gradient = Math.floor((Math.random() * 20) + 10); + const randomAngle = 117; + const gradient = 20; return `linear-gradient(${fixedAngle? 117 : randomAngle}deg, ${colors[0]} ${gradient}%, ${colors[1]} ${100-gradient}%)` } \ No newline at end of file -- GitLab