diff --git a/frontend/frontend/src/components/Home/LanguagesLayoutSection.js b/frontend/frontend/src/components/Home/LanguagesLayoutSection.js index 504c4208..912f24d0 100644 --- a/frontend/frontend/src/components/Home/LanguagesLayoutSection.js +++ b/frontend/frontend/src/components/Home/LanguagesLayoutSection.js @@ -26,7 +26,7 @@ const LanguagesLayoutSection = ({ selectedOption, setSelectedOption }) => { ]; return ( -
+

Select a card layout.

{ const [customTitle, setCustomTitle] = useState(''); const [langsCount, setLangsCount] = useState(); const [hideProgress, setHideProgress] = useState(false); + const [enableAnimations, setEnableAnimations] = useState(true); const resetCustomization = () => { setSelectedTimeRange(DEFAULT_TIME_RANGE); @@ -111,6 +112,10 @@ const HomeScreen = () => { fullSuffix += `&langs_count=${langsCount}`; } + if (!enableAnimations) { + fullSuffix += `&disable_animations=${!enableAnimations}`; + } + if (hideProgress) { fullSuffix += `&hide_progress=${hideProgress}`; } @@ -235,6 +240,8 @@ const HomeScreen = () => { setCustomTitle={setCustomTitle} langsCount={langsCount} setLangsCount={setLangsCount} + enableAnimations={enableAnimations} + setEnableAnimations={setEnableAnimations} hideProgress={hideProgress} setHideProgress={setHideProgress} fullSuffix={fullSuffix} diff --git a/frontend/frontend/src/pages/Home/stages/Customize.js b/frontend/frontend/src/pages/Home/stages/Customize.js index 0e9d8ca9..6e8aee50 100644 --- a/frontend/frontend/src/pages/Home/stages/Customize.js +++ b/frontend/frontend/src/pages/Home/stages/Customize.js @@ -32,6 +32,8 @@ const CustomizeStage = ({ setCustomTitle, langsCount, setLangsCount, + enableAnimations, + setEnableAnimations, hideProgress, setHideProgress, fullSuffix, @@ -132,6 +134,15 @@ const CustomizeStage = ({ setVariable={setHideProgress} /> )} + {cardType === CardTypes.TOP_LANGS && ( + + )}