-
{productName}
-
- {discountedPrice}
- {discountedPrice != originalPrice ? (
-
{originalPrice}
- ) : (
- <>>
- )}
+
+ {rolling === true && (
+
+ )}
+
handleClick(productId)}
+ >
+
+
{productName}
+
+ {discountedPrice}
+ {discountedPrice != originalPrice ? (
+ {originalPrice}
+ ) : (
+ <>>
+ )}
+
-
-
-

-
+
+
+

+
+
+
+ {rolling === true && (
+
+ )}
);
}
diff --git a/com.twin.app.shoptime/src/views/HomePanel/HomeTodayDeal/HomeTodayDeal.module.less b/com.twin.app.shoptime/src/views/HomePanel/HomeTodayDeal/HomeTodayDeal.module.less
index fa6e8ffb..f3b9d3ef 100644
--- a/com.twin.app.shoptime/src/views/HomePanel/HomeTodayDeal/HomeTodayDeal.module.less
+++ b/com.twin.app.shoptime/src/views/HomePanel/HomeTodayDeal/HomeTodayDeal.module.less
@@ -1,154 +1,112 @@
@import "../../../style/CommonStyle.module.less";
@import "../../../style/utils.module.less";
-.itemBox {
- background-image: url(../../../../assets/images/mainTemplate/img_home_banner_td_ver.png);
- background-repeat: no-repeat;
- background-size: 486px 858px;
- background-position: center center;
- .size(@w: 486px, @h: 858px);
- margin-right: 18px;
- .border-solid(@size:4px, @color:transparent);
- border-radius: 12px;
+.rollingWrap {
position: relative;
+ .itemBox {
+ background-image: url(../../../../assets/images/mainTemplate/img_home_banner_td_ver.png);
+ background-repeat: no-repeat;
+ background-size: 486px 858px;
+ background-position: center center;
+ .size(@w: 744px, @h: 420px);
+ .border-solid(@size:4px, @color:transparent);
+ border-radius: 12px;
+ position: relative;
- img {
- width: 100%;
- object-fit: contain;
- }
- .textBox {
- margin: 268px 36px 0;
- .size(@w: 406px, @h: 80px);
- .elip(@clamp:2);
- font-weight: bold;
- .font (@fontFamily:@baseFontBold, @fontSize:30px);
- color: @COLOR_GRAY06;
- line-height: 1.27;
- }
- .accBox {
- .size(@w: 406px, @h: 50px);
- margin: 6px 36px 0;
- text-align: center;
- .font (@fontFamily:@baseFontBold, @fontSize:42px);
- color: @PRIMARY_COLOR_RED;
- font-weight: bold;
- line-height: 1.14;
- .saleAccBox {
- .font (@fontFamily:@baseFontBold, @fontSize:24px);
- color: @COLOR_GRAY04;
- vertical-align: middle;
- text-decoration: line-through;
- }
- }
- .itemImgBox {
- margin: 29px 62px 60px;
- .size(@w: 354px, @h: 354px);
- > img {
+ img {
width: 100%;
+ object-fit: contain;
+ }
+ .textBox {
+ margin: 268px 36px 0;
+ .size(@w: 406px, @h: 80px);
+ .elip(@clamp:2);
+ font-weight: bold;
+ .font (@fontFamily:@baseFontBold, @fontSize:30px);
+ color: @COLOR_GRAY06;
+ line-height: 1.27;
+ }
+
+ .accBox {
+ .size(@w: 406px, @h: 50px);
+ margin: 6px 36px 0;
+ text-align: center;
+ .font (@fontFamily:@baseFontBold, @fontSize:42px);
+ color: @PRIMARY_COLOR_RED;
+ font-weight: bold;
+ line-height: 1.14;
+ .saleAccBox {
+ .font (@fontFamily:@baseFontBold, @fontSize:24px);
+ color: @COLOR_GRAY04;
+ vertical-align: middle;
+ text-decoration: line-through;
+ }
+ }
+ .itemImgBox {
+ margin: 29px 62px 60px;
+ .size(@w: 354px, @h: 354px);
+ > img {
+ width: 100%;
+ }
+ }
+
+ &.isHorizontal {
+ background-image: url(../../../../assets/images/mainTemplate/img_home_banner_td_hor.png);
+ background-size: 744px 420px;
+ display: flex;
+ > div {
+ flex: none;
+ }
+ .textBox {
+ margin: 230px 8px 0 46px;
+ .size(@w: 320px, @h: 80px);
+ .elip(@clamp:2);
+ font-weight: bold;
+ .font (@fontFamily:@baseFontBold, @fontSize:30px);
+ color: @COLOR_GRAY06;
+ line-height: 1.27;
+ }
+
+ .accBox {
+ .size(@w: 320px, @h: 50px);
+ margin: 6px 8px 0 46px;
+ text-align: left;
+
+ .saleAccBox {
+ color: #767676;
+ }
+ }
+ .itemImgBox {
+ margin: 44px 26px 44px 0;
+ .size(@w: 324px, @h: 324px);
+ }
}
}
- .leftBtn {
- .position(@position: absolute, @top: 408px, @right: auto, @bottom: auto, @left: 18px);
- .size(@w: 42px, @h: 42px);
- background-image: url("../../../../assets/icon/button_icon/btn_prev_thumb_nor.png");
- background-size: 42px 42px;
- background-position: center center;
- cursor: pointer;
- &:focus,
- &:focus-within,
- &:hover,
- &:active {
- background-image: url("../../../../assets/icon/button_icon/btn_prev_thumb_foc.png");
+ &:focus-within,
+ &:focus {
+ &::after {
+ .focused(@borderRadius: 12px);
}
}
- .rightBtn {
- .position(@position: absolute, @top: 408px, @right: 18px, @bottom: auto, @left: auto);
+ .arrow {
+ z-index: 10;
.size(@w: 42px, @h: 42px);
- background-image: url("../../../../assets/icon/button_icon/btn_next_thumb_nor.png");
background-size: 42px 42px;
background-position: center center;
- cursor: pointer;
- &:focus,
- &:focus-within,
- &:hover,
- &:active {
- background-image: url("../../../../assets/icon/button_icon/btn_next_thumb_foc.png");
- }
- }
-}
-
-.itemBox.isHorizontal {
- position: relative;
- background-image: url(../../../../assets/images/mainTemplate/img_home_banner_td_hor.png);
- background-repeat: no-repeat;
- background-size: 744px 420px;
- background-position: center center;
- .size(@w: 744px, @h: 420px);
- .border-solid(@size:4px, @color:transparent);
- border-radius: 12px;
- display: flex;
-
- > div {
- flex: none;
- }
- img {
- width: 100%;
- object-fit: contain;
- }
- .textBox {
- margin: 230px 8px 0 46px;
- .size(@w: 320px, @h: 80px);
- .elip(@clamp:2);
- font-weight: bold;
- .font (@fontFamily:@baseFontBold, @fontSize:30px);
- color: @COLOR_GRAY06;
- line-height: 1.27;
- }
- .accBox {
- .size(@w: 320px, @h: 50px);
- margin: 6px 8px 0 46px;
- text-align: left;
- .font (@fontFamily:@baseFontBold, @fontSize:42px);
- color: @PRIMARY_COLOR_RED;
- font-weight: bold;
- line-height: 1.14;
- .saleAccBox {
- .font (@fontFamily:@baseFontBold, @fontSize:24px);
- color: #767676;
- vertical-align: middle;
- text-decoration: line-through;
- }
- }
- .itemImgBox {
- margin: 44px 26px 44px 0;
- .size(@w: 324px, @h: 324px);
- > img {
- width: 100%;
- }
- }
- .leftBtn {
- .position(@position: absolute, @top: 189px, @right: auto, @bottom: auto, @left: 18px);
- .size(@w: 42px, @h: 42px);
- background-image: url("../../../../assets/icon/button_icon/btn_prev_thumb_nor.png");
- background-size: 42px 42px;
- background-position: center center;
- &:focus,
- &:focus-within,
- &:hover,
- &:active {
- background-image: url("../../../../assets/icon/button_icon/btn_prev_thumb_foc.png");
- }
- }
- .rightBtn {
- .position(@position: absolute, @top: 189px, @right: 18px, @bottom: auto, @left:auto);
- .size(@w: 42px, @h: 42px);
- background-image: url("../../../../assets/icon/button_icon/btn_next_thumb_nor.png");
- background-size: 42px 42px;
- background-position: center center;
- &:focus,
- &:focus-within,
- &:hover,
- &:active {
- background-image: url("../../../../assets/icon/button_icon/btn_next_thumb_foc.png");
+ &.leftBtn {
+ .position(@position: absolute, @top: 200px, @left: 18px);
+ background-image: url("../../../../assets/icon/button_icon/btn_prev_thumb_nor.png");
+ &:focus,
+ &:focus-within {
+ background-image: url("../../../../assets/icon/button_icon/btn_prev_thumb_foc.png");
+ }
+ }
+ &.rightBtn {
+ .position(@position: absolute, @top: 200px, @right: 18px);
+ background-image: url("../../../../assets/icon/button_icon/btn_next_thumb_nor.png");
+ &:focus,
+ &:focus-within {
+ background-image: url("../../../../assets/icon/button_icon/btn_next_thumb_foc.png");
+ }
}
}
}