diff --git a/web-ui/src/pages/HomePage.jsx b/web-ui/src/pages/HomePage.jsx index fc799b66d..a67cb46b2 100644 --- a/web-ui/src/pages/HomePage.jsx +++ b/web-ui/src/pages/HomePage.jsx @@ -83,6 +83,11 @@ export default function HomePage() { const kudosStyle = birthdays.length == 0 && anniversaries.length == 0 ? {} : { width: '450px' }; + // Determine the X position of the birthday confetti. If there aren't any + // anniversaries, it will be the left side. If there are anniversaries, we + // need it in the middle. Confetti X position ranges from 0 to 1. + const xPos = anniversaries.length > 0 ? .5 : .25; + return (
@@ -95,13 +100,13 @@ export default function HomePage() { /> ) : ( - { anniversaries.length > 0 && ( + { anniversaries.length > 0 && ( ) } { birthdays.length > 0 && ( - + ) }