Skip to content

Commit

Permalink
add random gradient bg util
Browse files Browse the repository at this point in the history
  • Loading branch information
2-NOW committed Jun 29, 2024
1 parent ea2f53f commit b8acde3
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/utils/getGradientBg.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
export const getGradientBg = () => {
return [
"bg-gradient-purple",
"bg-gradient-peach",
"bg-gradient-yellow",
"bg-gradient-green",
"bg-gradient-blue",
"bg-gradient-pink",
][Math.floor(Math.random() * 6)];
};

0 comments on commit b8acde3

Please # to comment.