diff --git a/packages/fakeyou.com/src/scss/site-refresh.scss b/packages/fakeyou.com/src/scss/site-refresh.scss index 7c8f830011..93ddbd7244 100644 --- a/packages/fakeyou.com/src/scss/site-refresh.scss +++ b/packages/fakeyou.com/src/scss/site-refresh.scss @@ -828,6 +828,23 @@ styles with important tags: .tippy-box[data-theme~="fakeyou"] > .tippy-svg-arrow { fill: lighten($secondary, 5%); } + + .sliding-content { + overflow: hidden; + opacity: 0; + height: 0; + transition-property: none !important; + transition: all 0.1s !important; + transition-timing-function: ease !important; + } + .sliding-content.open { + overflow: visible; + opacity: 1; + height: 100%; + transition-property: none !important; + transition: all 0.4s !important; + transition-timing-function: ease !important; + } } select { diff --git a/packages/fakeyou.com/src/v2/view/pages/tts/tts_model_list/TtsModelListPage.tsx b/packages/fakeyou.com/src/v2/view/pages/tts/tts_model_list/TtsModelListPage.tsx index 6f5e9a9df0..fc53d53da1 100644 --- a/packages/fakeyou.com/src/v2/view/pages/tts/tts_model_list/TtsModelListPage.tsx +++ b/packages/fakeyou.com/src/v2/view/pages/tts/tts_model_list/TtsModelListPage.tsx @@ -39,7 +39,8 @@ import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import { faArrowRight, faBarsStaggered, - faCompass, + faChevronDown, + faChevronUp, faDeleteLeft, faGlobe, faVolumeHigh, @@ -64,11 +65,11 @@ import { AVAILABLE_TTS_LANGUAGE_CATEGORY_MAP, ENGLISH_LANGUAGE, } from "../../../../../_i18n/AvailableLanguageMap"; -import { ExploreVoicesModal } from "./explore/ExploreVoicesModal"; import { WebUrl } from "../../../../../common/WebUrl"; import { usePrefixedDocumentTitle } from "../../../../../common/UsePrefixedDocumentTitle"; import { RatingButtons } from "../../../_common/ratings/RatingButtons"; import { RatingStats } from "../../../_common/ratings/RatingStats"; +import { ExploreVoicesModal } from "./explore/ExploreVoicesModal"; export interface EnqueueJobResponsePayload { success: boolean; @@ -149,6 +150,12 @@ function TtsModelListPage(props: Props) { return () => clearTimeout(timeout); }, []); + const [isOpen, setIsOpen] = useState(false); + + const handleClickExplore = () => { + setIsOpen(!isOpen); + }; + let { setTtsModels, setAllTtsCategories, @@ -326,19 +333,19 @@ function TtsModelListPage(props: Props) { props.maybeSelectedTtsModel .ietf_primary_language_subtag as AvailableTtsLanguageKey ] || ENGLISH_LANGUAGE; - + let ratingButtons = <>; if (props.sessionWrapper.isLoggedIn()) { ratingButtons = ( - ); } directViewLink = ( -
+

{t("tts.TtsModelListPage.voiceDetails.voiceBy")}{" "} @@ -384,11 +391,14 @@ function TtsModelListPage(props: Props) { {ratingButtons} -

); @@ -508,10 +518,37 @@ function TtsModelListPage(props: Props) {
-
+ {/* Explore Rollout */} +
+ +
+ +
-
+
+ {} +
- {/* Explore Modal */} - - {directViewLink}
diff --git a/packages/fakeyou.com/src/v2/view/pages/tts/tts_model_list/explore/ExploreVoicesModal.tsx b/packages/fakeyou.com/src/v2/view/pages/tts/tts_model_list/explore/ExploreVoicesModal.tsx index 0380a35eb9..f7b65e8895 100644 --- a/packages/fakeyou.com/src/v2/view/pages/tts/tts_model_list/explore/ExploreVoicesModal.tsx +++ b/packages/fakeyou.com/src/v2/view/pages/tts/tts_model_list/explore/ExploreVoicesModal.tsx @@ -1,9 +1,5 @@ import React from "react"; -import { - faArrowRight, - faCompass, - faEraser, -} from "@fortawesome/free-solid-svg-icons"; +import { faEraser } from "@fortawesome/free-solid-svg-icons"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import { LanguageOptions } from "./LanguageOptions"; import { TtsCategoryType } from "../../../../../../AppWrapper"; @@ -90,108 +86,66 @@ export function ExploreVoicesModal(props: Props) { }; return ( -