[For You] 부분 처리건
1. 홈배너 노출부분. 2. 롤링배너에 노출시에 아이템 갯수별로 노출시 스타일 피그마랑 맞춤. 3. 저스트포유패널생성및 연결 - 피그마에는 따로 사이드바가 보이지않아 이부분은 월요일에 물어보고 처리해야할것같습니다. - 디자인만 우선 넣어둠.(좌우 스크롤이 정상작동하지않음) - 상품 컴포넌트 분리 필요 - 첫번째 타이틀이 흰색으로 처리되어있는데 이부분 스크롤시에 어떤식으로 생각하고 한부분인지 물어보고 처리필요.
This commit is contained in:
@@ -1,26 +1,34 @@
|
||||
import React, {
|
||||
use,
|
||||
useCallback,
|
||||
useEffect,
|
||||
useMemo,
|
||||
useRef,
|
||||
useState,
|
||||
} from "react";
|
||||
} from 'react';
|
||||
|
||||
import classNames from "classnames";
|
||||
import { indexOf } from "ilib/lib/JSUtils";
|
||||
import { useDispatch, useSelector } from "react-redux";
|
||||
import classNames from 'classnames';
|
||||
import { indexOf } from 'ilib/lib/JSUtils';
|
||||
import {
|
||||
useDispatch,
|
||||
useSelector,
|
||||
} from 'react-redux';
|
||||
|
||||
import platform from "@enact/core/platform";
|
||||
import Spotlight from "@enact/spotlight";
|
||||
import platform from '@enact/core/platform';
|
||||
import Spotlight from '@enact/spotlight';
|
||||
|
||||
import defaultWatchItem from "../../../assets/images/img-alert-banner-st@3x.png";
|
||||
import defaultWatchItem
|
||||
from '../../../assets/images/img-alert-banner-st@3x.png';
|
||||
// 테스트용 - TODO: 메인 홈 화면에 나와야 하는 이미지들 추가 후 preloadImages에 추가
|
||||
import testImage from "../../../assets/images/img-banner-myinfo-login@3x.png";
|
||||
import defaultImageItem from "../../../assets/images/img-thumb-empty-product@3x.png";
|
||||
import LoadingPreloadImage from "../../../assets/images/intro/splash_02_stop.webp";
|
||||
import LoadingAnimation from "../../../assets/images/intro/splash_03_end.webp";
|
||||
import LoadingCompleteImage from "../../../assets/images/intro/splash_04_end.webp";
|
||||
import LoadingShopOnTvImage from "../../../assets/images/intro/splash_end.jpg";
|
||||
import testImage from '../../../assets/images/img-banner-myinfo-login@3x.png';
|
||||
import defaultImageItem
|
||||
from '../../../assets/images/img-thumb-empty-product@3x.png';
|
||||
import LoadingPreloadImage
|
||||
from '../../../assets/images/intro/splash_02_stop.webp';
|
||||
import LoadingAnimation from '../../../assets/images/intro/splash_03_end.webp';
|
||||
import LoadingCompleteImage
|
||||
from '../../../assets/images/intro/splash_04_end.webp';
|
||||
import LoadingShopOnTvImage from '../../../assets/images/intro/splash_end.jpg';
|
||||
import {
|
||||
alertToast,
|
||||
changeAppStatus,
|
||||
@@ -29,70 +37,77 @@ import {
|
||||
setExitApp,
|
||||
setHidePopup,
|
||||
setShowPopup,
|
||||
} from "../../actions/commonActions";
|
||||
import { getHomeMenu, getHomeTerms } from "../../actions/homeActions";
|
||||
} from '../../actions/commonActions';
|
||||
import {
|
||||
getHomeMenu,
|
||||
getHomeTerms,
|
||||
updateHomeInfo,
|
||||
} from '../../actions/homeActions';
|
||||
import {
|
||||
sendLogAlarmClick,
|
||||
sendLogAlarmPop,
|
||||
sendLogLive,
|
||||
sendLogVOD,
|
||||
} from "../../actions/logActions";
|
||||
} from '../../actions/logActions';
|
||||
import {
|
||||
getMyUpcomingAlertShow,
|
||||
setMyTermsWithdraw,
|
||||
} from "../../actions/myPageActions";
|
||||
} from '../../actions/myPageActions';
|
||||
import {
|
||||
popPanel,
|
||||
pushPanel,
|
||||
resetPanels,
|
||||
updatePanel,
|
||||
} from "../../actions/panelActions";
|
||||
import { updateHomeInfo } from "../../actions/homeActions";
|
||||
import EndOfServicePopUp from "../../components/EndOfServicePopUp/EndOfServicePopUp";
|
||||
import Loader from "../../components/Loader/Loader";
|
||||
import { convertUtcToLocal } from "../../components/MediaPlayer/util";
|
||||
import PreloadImage from "../../components/PreloadImage/PreloadImage";
|
||||
import SystemNotification from "../../components/SystemNotification/SystemNotification";
|
||||
import TabLayout from "../../components/TabLayout/TabLayout";
|
||||
import TButton from "../../components/TButton/TButton";
|
||||
import TPopUp from "../../components/TPopUp/TPopUp";
|
||||
import TNewPopUp from "../../components/TPopUp/TNewPopUp";
|
||||
import usePrevious from "../../hooks/usePrevious";
|
||||
import * as Config from "../../utils/Config";
|
||||
import { panel_names } from "../../utils/Config";
|
||||
} from '../../actions/panelActions';
|
||||
import EndOfServicePopUp
|
||||
from '../../components/EndOfServicePopUp/EndOfServicePopUp';
|
||||
import Loader from '../../components/Loader/Loader';
|
||||
import { convertUtcToLocal } from '../../components/MediaPlayer/util';
|
||||
import OptionalTermsConfirm
|
||||
from '../../components/Optional/OptionalTermsConfirm';
|
||||
import OptionalTermsConfirmBottom
|
||||
from '../../components/Optional/OptionalTermsConfirmBottom';
|
||||
import PreloadImage from '../../components/PreloadImage/PreloadImage';
|
||||
import SystemNotification
|
||||
from '../../components/SystemNotification/SystemNotification';
|
||||
import TabLayout from '../../components/TabLayout/TabLayout';
|
||||
import TButton from '../../components/TButton/TButton';
|
||||
import TNewPopUp from '../../components/TPopUp/TNewPopUp';
|
||||
import TPopUp from '../../components/TPopUp/TPopUp';
|
||||
import usePrevious from '../../hooks/usePrevious';
|
||||
import * as Config from '../../utils/Config';
|
||||
import { panel_names } from '../../utils/Config';
|
||||
import {
|
||||
$L,
|
||||
getErrorMessage,
|
||||
getSpottableDescendants,
|
||||
} from "../../utils/helperMethods";
|
||||
import { SpotlightIds } from "../../utils/SpotlightIds";
|
||||
import CartPanel from "../CartPanel/CartPanel";
|
||||
import CategoryPanel from "../CategoryPanel/CategoryPanel";
|
||||
import CheckOutPanel from "../CheckOutPanel/CheckOutPanel";
|
||||
import ConfirmPanel from "../ConfirmPanel/ConfirmPanel";
|
||||
import DebugPanel from "../DebugPanel/DebugPanel";
|
||||
import DetailPanel from "../DetailPanel/DetailPanel";
|
||||
import ErrorPanel from "../ErrorPanel/ErrorPanel";
|
||||
import FeaturedBrandsPanel from "../FeaturedBrandsPanel/FeaturedBrandsPanel";
|
||||
import HomePanel from "../HomePanel/HomePanel";
|
||||
import HotPicksPanel from "../HotPicksPanel/HotPicksPanel";
|
||||
import ImagePanel from "../ImagePanel/ImagePanel";
|
||||
import IntroPanel from "../IntroPanel/IntroPanel.new";
|
||||
import LoadingPanel from "../LoadingPanel/LoadingPanel";
|
||||
import MyPagePanel from "../MyPagePanel/MyPagePanel";
|
||||
import OnSalePanel from "../OnSalePanel/OnSalePanel";
|
||||
import PlayerPanel from "../PlayerPanel/PlayerPanel";
|
||||
import PlayerPanelNew from "../PlayerPanel/PlayerPanel.new";
|
||||
import SearchPanel from "../SearchPanel/SearchPanel";
|
||||
import ThemeCurationPanel from "../ThemeCurationPanel/ThemeCurationPanel";
|
||||
import TrendingNowPanel from "../TrendingNowPanel/TrendingNowPanel";
|
||||
import VideoTestPanel from "../VideoTestPanel/VideoTestPanel";
|
||||
import WelcomeEventPanel from "../WelcomeEventPanel/WelcomeEventPanel";
|
||||
import UserReviewPanel from "../UserReview/UserReviewPanel";
|
||||
import OptionalTermsConfirm from "../../components/Optional/OptionalTermsConfirm";
|
||||
import OptionalTermsConfirmBottom from "../../components/Optional/OptionalTermsConfirmBottom";
|
||||
import css from "./MainView.module.less";
|
||||
import { use } from "react";
|
||||
} from '../../utils/helperMethods';
|
||||
import { SpotlightIds } from '../../utils/SpotlightIds';
|
||||
import CartPanel from '../CartPanel/CartPanel';
|
||||
import CategoryPanel from '../CategoryPanel/CategoryPanel';
|
||||
import CheckOutPanel from '../CheckOutPanel/CheckOutPanel';
|
||||
import ConfirmPanel from '../ConfirmPanel/ConfirmPanel';
|
||||
import DebugPanel from '../DebugPanel/DebugPanel';
|
||||
import DetailPanel from '../DetailPanel/DetailPanel';
|
||||
import ErrorPanel from '../ErrorPanel/ErrorPanel';
|
||||
import FeaturedBrandsPanel from '../FeaturedBrandsPanel/FeaturedBrandsPanel';
|
||||
import HomePanel from '../HomePanel/HomePanel';
|
||||
import HotPicksPanel from '../HotPicksPanel/HotPicksPanel';
|
||||
import ImagePanel from '../ImagePanel/ImagePanel';
|
||||
import IntroPanel from '../IntroPanel/IntroPanel.new';
|
||||
import JustForYouPanel from '../JustForYouPanel/JustForYouPanel';
|
||||
import LoadingPanel from '../LoadingPanel/LoadingPanel';
|
||||
import MyPagePanel from '../MyPagePanel/MyPagePanel';
|
||||
import OnSalePanel from '../OnSalePanel/OnSalePanel';
|
||||
import PlayerPanel from '../PlayerPanel/PlayerPanel';
|
||||
import PlayerPanelNew from '../PlayerPanel/PlayerPanel.new';
|
||||
import SearchPanel from '../SearchPanel/SearchPanel';
|
||||
import ThemeCurationPanel from '../ThemeCurationPanel/ThemeCurationPanel';
|
||||
import TrendingNowPanel from '../TrendingNowPanel/TrendingNowPanel';
|
||||
import UserReviewPanel from '../UserReview/UserReviewPanel';
|
||||
import VideoTestPanel from '../VideoTestPanel/VideoTestPanel';
|
||||
import WelcomeEventPanel from '../WelcomeEventPanel/WelcomeEventPanel';
|
||||
import css from './MainView.module.less';
|
||||
|
||||
const preloadImages = [
|
||||
LoadingPreloadImage,
|
||||
@@ -124,6 +139,7 @@ const panelMap = {
|
||||
[Config.panel_names.IMAGE_PANEL]: ImagePanel,
|
||||
[Config.panel_names.CONFIRM_PANEL]: ConfirmPanel,
|
||||
[Config.panel_names.USER_REVIEW_PANEL]: UserReviewPanel,
|
||||
[Config.panel_names.JUST_FOR_YOU_PANEL]: JustForYouPanel,
|
||||
// [Config.panel_names.OPTIONAL_TERMS_PANEL]: TermsOfOptional,
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user